* dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2
3 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
4 (struct dwarf2_offset_and_type): New.
5 (set_die_type, reset_die_and_siblings_types, get_die_type)
6 (offset_and_type_hash, offset_and_type_eq): New functions.
7 (read_structure_type, read_enumeration_type, read_array_type)
8 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
9 (read_tag_reference_type, read_tag_const_type)
10 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
11 (read_typedef, read_base_type, read_subrange_type): Use
12 set_die_type.
13
14 2004-09-20 Daniel Jacobowitz <dan@debian.org>
15
16 * Makefile.in (dwarf2read.o): Update dependencies.
17 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
18 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
19 and read_in_chain.
20 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
21 mark, and has_form_ref_addr.
22 (struct dwarf2_per_cu_data): New.
23 (dwarf2_max_cache_age): New.
24 (dwarf2_build_psymtabs_hard): Free cached compilation units
25 after loading. Create and manage the list of compilation units.
26 Remove unnecessary NULL initialization. Fix indentation.
27 (psymtab_to_symtab_1): Initialize all of CU.
28 (dwarf2_read_abbrevs): Set has_form_ref_addr.
29 (find_partial_die): Use dwarf2_find_containing_comp_unit
30 and load_comp_unit.
31 (free_stack_comp_unit): Update comments. Clear the per-cu
32 pointer. Handle aging.
33 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
34 (age_cached_comp_units, free_one_cached_comp_unit)
35 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
36 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
37 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
38 (show_dwarf2_cmd): New.
39 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
40 and "maint show dwarf2 max-cache-age".
41 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
42 externs.
43 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
44 global.
45
46 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
47
48 * dwarf2read.c (typename_concat): Change prototype to accept obstack
49 and dwarf2_cu struct pointer as arguments. Change function to use
50 obstack if provided and use dwarf2_cu to determine language-specific
51 separator.
52 (partial_die_parent_scope): Change comment to include java. Use
53 new version of typename_concat instead of obconcat.
54 (partial_die_full_name): Use typename_concat.
55 (read_namespace): Ditto.
56 (read_enumeration_type): Use typename_concat instead of obconcat.
57 (new_symbol): Ditto.
58 (add_partial_symbol): Enhance tests for C++ to also test for Java.
59 (guess_structure_name): Ditto.
60 (read_subroutine_type): Ditto.
61 (read_structure_type): Ditto.
62 (is_vtable_name): Add Java support.
63 (determine_class_name): Switch to new typename_concat call.
64 (determine_prefix): Switch to new typename_concat call.
65 * jv-exp.y (FuncStart): New pattern.
66 (MethodInvocation): Add support for simple function calls. Change
67 warning message for other forms of inferior call currently not
68 supported.
69 * valarith.c (value_subscript): Treat an array with upper-bound
70 of -1 as unknown size.
71
72 2004-09-20 Daniel Jacobowitz <dan@debian.org>
73
74 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
75 (lookup_partial_symtab): Use symtab_to_fullname.
76
77 2004-09-19 Jim Blandy <jimb@redhat.com>
78
79 * minsyms.c (lookup_minimal_symbol): Doc fix.
80
81 2004-09-20 Andrew Cagney <cagney@gnu.org>
82
83 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
84 CHILD_RESUME.
85 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
86 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
87 KILL_INFERIOR.
88 * infptrace.c: Update.
89
90 2004-09-19 Daniel Jacobowitz <dan@debian.org>
91
92 * symtab.c (output_source_filename): Mark first argument as const.
93 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
94 for "info sources" output.
95
96 2004-09-20 Mark Kettenis <kettenis@gnu.org>
97
98 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
99 <machine/vmparam.h>.
100 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
101 (register_u_addr): Remove prototype.
102
103 2004-09-19 Mark Kettenis <kettenis@gnu.org>
104
105 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
106 (i386bsd_fetch_inferior_registers): Rename from
107 fetch_inferior_registers. Make static.
108 (i386bsd_store_inferior_registers): Rename from
109 store_inferior_registers. Make static.
110 (i386bsd_target): New function.
111 * i386bsd-nat.h: New file.
112 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
113 "i386bsd-nat.h".
114 (i386fbsd_resume): Rename from child_resume. Make static.
115 (_initialize_i386fbsd_nat): Construct and add target vector.
116 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
117 (_initialize_i386nbsd_nat): Construct and add target vector.
118 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
119 Remove defines.
120 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
121 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
122 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
123 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
124 (LOADLIBES): New variable.
125 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
126 inf-ptrace.o. Remove inftarg.o.
127 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
128 inf-ptrace.o. Remove inftarg.o.
129 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
130 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
131 (LOADLIBES): New variable.
132 * Makefile.in (i386bsd_nat_h): New variable.
133 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
134 dependencies.
135
136 * sparc64nbsd-tdep.c: Include "objfiles.h".
137 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
138 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
139 svr4_lp64_fetch_link_map_offsets.
140 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
141 "nbsd-tdep.h".
142 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
143 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
144 svr4_lp64_fetch_link_map_offsets.
145 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
146 dependencies.
147
148 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
149 * fbsd-nat.h: New file.
150 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
151 (fbsd_nat_h): New variable.
152 (fbsd-nat.o): New dependency.
153
154 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
155 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
156
157 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
158 comment.
159
160 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
161
162 * ada-exp.y (type_int): New function to add layer of abstraction
163 around references to expression types.
164 (type_long): Ditto.
165 (type_long_long): Ditto.
166 (type_float): Ditto.
167 (type_double): Ditto.
168 (type_long_double): Ditto.
169 (type_char): Ditto.
170 (type_system_address): Ditto.
171 (simple_exp): Use type_* functions in place of builtin_*
172 variables.
173 (exp): Ditto.
174 (write_var_from_name): Ditto.
175 (write_object_renaming): Ditto.
176 * ada-lang.c (ada_create_fundamental_type): Remove redundant
177 declaration.
178 (build_ada_types): Remove, replacing with...
179 (ada_language_arch_info): New function to initialize primitive
180 type vector in language_arch_info.
181 (ada_array_length): Remove use of builtin_type_ada_int.
182 (value_pos_atr): Ditto.
183 (ada_evaluate_subexp): Ditto.
184 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
185 builtin_type_ada_long_long, builtin_type_ada_char,
186 builtin_type_ada_float, builtin_type_ada_double,
187 builtin_type_ada_long_double, builtin_type_ada_natural,
188 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
189 (ada_builtin_types): Remove.
190 (ada_language_defn): Remove entries for la_builtin_type_vector and
191 string_char_type and use ada_language_arch_info.
192 (_initialize_ada_language): Do type-vector initialization along
193 the lines of c-lang.c.
194 (ada_create_fundamental_type): Break up line.
195 (ada_dump_symtab): Remove unused function.
196 (enum ada_primitive_types): Define.
197 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
198 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
199 builtin_type_ada_float, builtin_type_ada_double,
200 builtin_type_ada_long_double, builtin_type_ada_natural,
201 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
202 * ada-lex.l: Use type_* functions in place of builtin_* variables.
203 (processInt): Ditto.
204 (processReal): Ditto.
205 (name_lookup): Ditto.
206 * ada-typeprint.c (print_range): Use builtin_type_int, not
207 builtin_type_ada_int.
208
209 2004-09-18 Mark Kettenis <kettenis@gnu.org>
210
211 * i386-tdep.c (i386_register_name): Rename regno to regnum.
212
213 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
214 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
215 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
216 * configure.in: Improve checks for curses library by checking for
217 mvwaddstr instead of initscr. Drop HP curses in favour of
218 standard curses on HP-UX.
219 * configure: Regenerated.
220
221 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
222
223 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
224 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
225 Minor formatting changes.
226 (empty_array): Slight rewrite for formatting.
227 (emit_char,parse,ada_language_defn,build_ada_types,
228 ada_is_exception_sym, _initialize_ada_language): Move
229 definitions around.
230 (ada_dump_symtab): Remove unused definition.
231 (ada_maybe_exception_partial_symbol): Remove unused definition.
232
233 2004-09-16 Andrew Cagney <cagney@gnu.org>
234
235 * inf-child.c: Include "gdb_string.h".
236 (inf_child_core_file_to_sym_file): Delete.
237 (inf_child_target): Set to_fetch_registers and to_store_registers.
238 * inf-ptrace.c: Include "gdb_string.h".
239 * Makefile.in: Update all dependencies.
240
241 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
242 problem.
243
244 2004-09-14 Joel Brobecker <brobecker@gnat.com>
245
246 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
247 call to heuristic_proc_desc. Remove code that became redundant
248 as a consequence.
249 (read_next_frame_reg): Remove special case for SP_REGNUM.
250 (set_reg_offset): Fix small typo.
251 (reset_saved_regs): New procedure.
252 (mips32_heuristic_proc_desc): No longer compute a fake
253 procedure descriptor. Compute the full frame cache instead.
254 Some minor comment reformatting.
255
256 2004-09-14 Andrew Cagney <cagney@gnu.org>
257
258 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
259 maintainer.
260
261 * thread-db.c (thread_db_new_objfile): Assume that there is a
262 child process.
263
264 2004-09-13 Jim Blandy <jimb@redhat.com>
265
266 * valops.c (value_assign): Move 'buffer' to the enclosing block,
267 so that its storage isn't referenced after its lifetime ends.
268
269 * valops.c (value_assign): 'use_buffer' is initialized to zero,
270 and never assigned to. Delete it, and the 'if (use_buffer)'
271 clauses. Delete 'raw_buffer', since it is now unused.
272
273 2004-09-13 Andrew Cagney <cagney@gnu.org>
274
275 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
276 * configure: Re-generate.
277 * nlm/Makefile.in (TAGS): Update.
278 * Makefile.in (TAGS): Update.
279 * config/vax/nbsd.mt (TM_FILE): Update.
280 * config/sparc/vxworks.mt (TM_FILE): Update.
281 * config/sparc/sol2.mt (TM_FILE): Update.
282 * config/sparc/sol2-64.mt (TM_FILE): Update.
283 * config/sparc/obsd64.mt (TM_FILE): Update.
284 * config/sparc/obsd.mt (TM_FILE): Update.
285 * config/sparc/nbsd64.mt (TM_FILE): Update.
286 * config/sparc/nbsd.mt (TM_FILE): Update.
287 * config/sparc/linux64.mt (TM_FILE): Update.
288 * config/sparc/linux.mt (TM_FILE): Update.
289 * config/sparc/fbsd.mt (TM_FILE): Update.
290 * config/sh/wince.mt (TM_FILE): Update.
291 * config/sh/nbsd.mt (TM_FILE): Update.
292 * config/sh/linux.mt (TM_FILE): Update.
293 * config/sh/embed.mt (TM_FILE): Update.
294 * config/s390/s390.mt (TM_FILE): Update.
295 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
296 * config/rs6000/rs6000.mt (TM_FILE): Update.
297 * config/rs6000/aix4.mt (TM_FILE): Update.
298 * config/powerpc/vxworks.mt (TM_FILE): Update.
299 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
300 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
301 * config/powerpc/obsd.mt (TM_FILE): Update.
302 * config/powerpc/nbsd.mt (TM_FILE): Update.
303 * config/powerpc/linux.mt (TM_FILE): Update.
304 * config/powerpc/aix.mt (TM_FILE): Update.
305 * config/pa/obsd.mt (TM_FILE): Update.
306 * config/pa/linux.mt (TM_FILE): Update.
307 * config/pa/hppahpux.mt (TM_FILE): Update.
308 * config/pa/hppa64.mt (TM_FILE): Update.
309 * config/pa/hppa.mt (TM_FILE): Update.
310 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
311 * config/mips/wince.mt (TM_FILE): Update.
312 * config/mips/vxmips.mt (TM_FILE): Update.
313 * config/mips/nbsd.mt (TM_FILE): Update.
314 * config/mips/linux.mt (TM_FILE): Update.
315 * config/mips/irix6.mt (TM_FILE): Update.
316 * config/mips/irix5.mt (TM_FILE): Update.
317 * config/mips/embed.mt (TM_FILE): Update.
318 * config/m68k/vxworks68.mt (TM_FILE): Update.
319 * config/m68k/st2000.mt (TM_FILE): Update.
320 * config/m68k/os68k.mt (TM_FILE): Update.
321 * config/m68k/obsd.mt (TM_FILE): Update.
322 * config/m68k/nbsd.mt (TM_FILE): Update.
323 * config/m68k/monitor.mt (TM_FILE): Update.
324 * config/m68k/linux.mt (TM_FILE): Update.
325 * config/m68k/cisco.mt (TM_FILE): Update.
326 * config/ia64/linux.mt (TM_FILE): Update.
327 * config/ia64/aix.mt (TM_FILE): Update.
328 * config/ia64/ia64.mt (TM_FILE): Update.
329 * config/i386/vxworks.mt (TM_FILE): Update.
330 * config/i386/obsd64.mt (TM_FILE): Update.
331 * config/i386/obsd.mt (TM_FILE): Update.
332 * config/i386/nto.mt (TM_FILE): Update.
333 * config/i386/nbsd64.mt (TM_FILE): Update.
334 * config/i386/nbsd.mt (TM_FILE): Update.
335 * config/i386/linux64.mt (TM_FILE): Update.
336 * config/i386/linux.mt (TM_FILE): Update.
337 * config/i386/i386sol2.mt (TM_FILE): Update.
338 * config/i386/i386lynx.mt (TM_FILE): Update.
339 * config/i386/fbsd64.mt (TM_FILE): Update.
340 * config/i386/fbsd.mt (TM_FILE): Update.
341 * config/i386/cygwin.mt (TM_FILE): Update.
342 * config/h8300/h8300.mt (TM_FILE): Update.
343 * config/frv/frv.mt (TM_FILE): Update.
344 * config/cris/cris.mt (TM_FILE): Update.
345 * config/arm/wince.mt (TM_FILE): Update.
346 * config/arm/nbsd.mt (TM_FILE): Update.
347 * config/arm/linux.mt (TM_FILE): Update.
348 * config/arm/embed.mt (TM_FILE): Update.
349 * config/alpha/nbsd.mt (TM_FILE): Update.
350 * config/alpha/fbsd.mt (TM_FILE): Update.
351 * config/alpha/alpha.mt (TM_FILE): Update.
352 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
353 * config/alpha/alpha-linux.mt (TM_FILE): Update.
354
355 Eliminate event_loop_p, always has the value 1.
356 * defs.h (event_loop_p): Delete macro.
357 * breakpoint.c (until_break_command): Simplify.
358 * utils.c (prompt_for_continue): Simplify.
359 * tracepoint.c (read_actions): Simplify.
360 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
361 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
362 (set_prompt, init_main): Simplify.
363 (init_signals, disconnect): Delete, unused.
364 * remote.c (remote_async_resume)
365 (extended_remote_async_create_inferior): Simplify.
366 * mi/mi-interp.c (mi_input): Delete, unused.
367 (mi_interpreter_resume, mi_command_loop): Simplify.
368 * interps.c (current_interp_command_loop): Simplify.
369 * infrun.c (proceed): Simplify.
370 * infcmd.c (run_command, continue_command, step_1, jump_command)
371 (until_command, advance_command, finish_command)
372 (interrupt_target_command): Simplify.
373 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
374
375 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
376 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
377 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
378 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
379 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
380 * mips-tdep.c (mips_dump_tdep): Do not print same.
381
382 2004-09-12 Andrew Cagney <cagney@gnu.org>
383
384 * valprint.c (print_longest): Use fputs_filtered. Make "val"
385 const.
386 * Makefile.in (valprint.o): Delete explict rule.
387
388 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
389 reported by Dave Anderson.
390
391 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
392
393 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
394
395 2004-09-12 Salvador E. Tropea <set@users.sf.net>
396 Andrew Cagney <cagney@gnu.org>
397
398 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
399 (mi_cmd_data_list_register_values)
400 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
401 the register number computation.
402
403 2004-09-12 Andrew Cagney <cagney@gnu.org>
404
405 * ppcnbsd-nat.c: Include "inf-ptrace.h".
406 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
407 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
408 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
409 target.
410 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
411 inf-ptrace.o and inf-child.o.
412 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
413 * Makefile.in: Update dependencies.
414
415 2004-09-11 Andrew Cagney <cagney@gnu.org>
416
417 * language.c (hex_string, hex_string_custom): Move from here ...
418 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
419 (CELLSIZE): Increase to 50.
420 * language.h (hex_string, hex_string_custom): Move from here ...
421 * defs.h: ... to here.
422 * Makefile.in: Update all dependencies.
423
424 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
425
426 * language.c (local_hex_format_custom): Remove.
427 (local_hex_string): Rename to hex_string, use C format, and move to
428 utils.c
429 (local_hex_string_custom): Rename to hex_string_custom and change
430 interface. Now uses C format. Move to utils.c
431 (local_octal_format_custom): Remove.
432 (local_decimal_format_custom): Remove.
433 (unknown_language_defn): Remove language-specific number
434 formatting entries.
435 (auto_language_defn): Ditto.
436 (local_language_defn): Ditto.
437 * language.h (struct language_format_info): Delete declaration.
438 (struct language_defn): Remove language_format_info fields
439 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
440 (local_binary_format): Remove macro.
441 (local_binary_format_prefix): Remove macro.
442 (local_binary_format_specifier): Remove macro.
443 (local_binary_format_suffix): Remove macro.
444 (local_octal_format): Remove macro.
445 (local_octal_format_prefix): Remove macro.
446 (local_octal_format_specifier): Remove macro.
447 (local_octal_format_suffix): Remove macro.
448 (local_decimal_format): Remove macro.
449 (local_decimal_format_prefix): Remove macro.
450 (local_decimal_format_specifier): Remove macro.
451 (local_decimal_format_suffix): Remove macro.
452 (local_hex_format): Remove macro.
453 (local_hex_format_prefix): Remove macro.
454 (local_hex_format_specifier): Remove macro.
455 (local_hex_format_suffix): Remove macro.
456 (local_decimal_format_custom): Remove.
457 (local_octal_format_custom): Remove.
458 (local_hex_format_custom): Remove.
459 (local_hex_string): Rename to hex_string and move to defs.h.
460 (local_hex_string_custom): Rename to hex_string_custom, change
461 interface, and move to defs.h.
462 * utils.c: (int_string): New function.
463 (hex_string): New function (from language.c).
464 (hex_string_custom): New function (from language.c).
465 (octal2str): New function.
466 (decimal2str): Add width parameter.
467 (paddr_u): Use new decimal2str interface.
468 (paddr_d): Ditto.
469 * defs.h (hex_string): Declare.
470 (hex_string_custom): Declare.
471 (int_string): Declare.
472 * printcmd.c (print_scalar_formatted): Remove localized binary
473 formatting.
474 * valprint.c (print_longest): Use int_string.
475 (print_floating): Use C hex format.
476 (print_hex_chars): Ditto.
477 (print_binary_chars): Remove language-specific formatting.
478 (print_octal_chars): Use C octal format.
479 (print_decimal_chars): Delocalize format.
480 (print_decimal): Remove.
481 * ada-lang.c (ada_language_defn): Remove language-specific number
482 formatting entries.
483 * p-lang.c (pascal_language_defn): Ditto.
484 * c-lang.c (c_language_defn): Ditto.
485 (cplus_language_defn): Ditto.
486 (asm_language_defn): Ditto.
487 (minimal_language_defn): Ditto.
488 * f-lang.c (f_language_defn): Ditto.
489 * jv-lang.c (java_language_defn): Ditto.
490 * m2-lang.c (m2_language_defn): Ditto.
491 * scm-lang.c (scm_language_defn): Ditto.
492 * objc-lang.c (objc_language_defn): Ditto.
493 * memattr.c (mem_info_command): Use renamed hex_string_custom with
494 new interface.
495 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
496 * ui-out.c (ui_out_field_core_addr): Ditto.
497 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
498 * exec.c (print_section_info): Ditto.
499 * i387-tdep.c (print_i387_status_word): Ditto.
500 (print_i387_control_word): Ditto.
501 (i387_print_float_info): Ditto.
502 * maint.c (maint_print_section_info): Ditto.
503 * solib.c (info_sharedlibrary_command): Ditto.
504 * somsolib.c (som_sharedlibrary_info_command): Ditto.
505 * symtab.c (print_msymbol_info): Ditto.
506 * tracepoint.c (tracepoints_info): Ditto.
507 * solib-frv.c (lm_base): Ditto.
508 (frv_current_sos): Ditto.
509 (enable_break2): Ditto.
510 (enable_break): Ditto.
511 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
512 (process_one_symbol): Ditto.
513 * infcmd.c (program_info): Ditto.
514 * mdebugread.c (parse_partial_symbols): Ditto.
515 * symfile.c (add_symbol_file_command): Ditto.
516 * cli/cli-cmds.c (edit_command): Ditto.
517 (list_command): Ditto.
518 * infcall.c (call_function_by_hand): Ditto.
519 * remote-vx.c (vx_run_files_info): Ditto.
520 (vx_wait): Ditto.
521 (vx_attach): Ditto.
522 (vx_detach): Ditto.
523 (vx_kill): Ditto.
524 * aix-thread.c (pdc_symbol_addrs): Ditto.
525 (pdc_read_regs): Ditto.
526 (pdc_write_regs): Ditto.
527 (pdc_read_data): Ditto.
528 (pdc_write_data): Ditto.
529 * d10v-tdep.c (display_trace): Ditto.
530 * rs6000-nat.c (find_toc_address): Ditto.
531 * aix-thread.c: Don't include language.h.
532 * buildsym.c: Ditto.
533 * dbxread.c: Ditto.
534 * mdebugread.c: Ditto.
535 * rs6000-nat.c: Ditto.
536 * buildsym.c (make_blockvector): Use renamed hex_string.
537
538 2004-09-10 Jason Molenda (jmolenda@apple.com)
539
540 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
541 chars after 'if' or 'while' commands in user-defined commands.
542
543 2004-09-08 Jim Blandy <jimb@redhat.com>
544
545 Fix bug reported and analyzed by Olivier Crete:
546 * symfile.c (copy_section_addr_info): New function.
547 (symbol_file_add_with_addrs_or_offsets): Use it to save the
548 original set of address arguments, instead of handwritten code
549 that uses one length to allocate and a different length to
550 initialize. Use make_cleanup_free_section_addr_info.
551 * symfile.h (copy_section_addr_info): New declaration.
552 * utils.c: #include "symfile.h".
553 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
554 New functions.
555 * defs.h (make_cleanup_free_section_addr_info): New declaration.
556 * Makefile.in (utils.o): Update dependencies.
557
558 2004-09-08 Andrew Cagney <cagney@gnu.org>
559
560 * thread-db.c (keep_thread_db): Delete.
561 (thread_db_new_objfile, thread_db_create_inferior)
562 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
563
564 2004-09-08 Mark Kettenis <kettenis@gnu.org>
565
566 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
567 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
568 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
569 (i386_frameless_signal_p): Remove prototype.
570 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
571 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
572 I386_SSE_NUM_REGS.
573 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
574 instead of FP0_REGNUM.
575 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
576 of FP0_REGNUM and FPC_REGNUM.
577
578 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
579 (sunos_solib_create_inferior_hook): Don't call
580 sunos_relocate_main_executable.
581
582 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
583 solib_svr4_fetch_link_map_offsets to
584 svr4_ilp32_fetch_link_map_offsets.
585 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
586 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
587 svr4_ilp32_fetch_link_map_offsets.
588 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
589
590 2004-09-07 Jim Blandy <jimb@redhat.com>
591
592 * frame.h (frame_register): Doc fix.
593
594 2004-09-07 Andrew Cagney <cagney@gnu.org>
595
596 * vx-share/wait.h: Delete #ifdef USG.
597 * utils.c (request_quit): Ditto.
598 * tui/tui.c (tui_reset): Ditto.
599 * remote.c: Ditto.
600 * remote-sds.c: Ditto.
601 * remote-rdi.c: Ditto.
602 * mdebugread.c: Ditto.
603 * m68klinux-nat.c: Ditto.
604 * infttrace.c: Ditto.
605 * infptrace.c: Ditto.
606 * i386v-nat.c: Ditto.
607 * exec.c: Ditto.
608 * dbxread.c: Ditto.
609 * core-aout.c: Ditto.
610
611 2004-09-05 Joel Brobecker <brobecker@gnat.com>
612
613 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
614 heuristic_proc_desc.
615 (mips_insn32_frame_cache): Likewise.
616
617 2004-09-04 Joel Brobecker <brobecker@gnat.com>
618
619 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
620 left behind by error.
621
622 2004-09-04 Joel Brobecker <brobecker@gnat.com>
623
624 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
625 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
626
627 2004-09-04 Joel Brobecker <brobecker@gnat.com>
628
629 * config/rs6000/xm-aix4.h: Remove this file.
630 * config/rs6000/aix4.mh (XM_FILE): Delete.
631
632 2004-09-04 Joel Brobecker <brobecker@gnat.com>
633
634 * config/rs6000/xm-rs6000.h: Remove this file.
635 * config/rs6000/rs6000.mh (XM_FILE): Remove.
636
637 2004-09-03 Andrew Cagney <cagney@gnu.org>
638
639 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
640 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
641 only use.
642
643 * mips-tdep.c (temp_saved_regs): Delete.
644 (set_reg_offset): Replace saved_regs parameter with this_cache.
645 (heuristic_proc_desc, mips16_heuristic_proc_desc)
646 (mips32_heuristic_proc_desc): Add this_cache parameter.
647 (mips_insn32_frame_cache, mips_insn16_frame_cache)
648 (after_prologue): Pass a NULL this_cache.
649
650 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
651 non-kernel trap prologues.
652
653 * mips-tdep.c (find_proc_desc): Delete function.
654 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
655 simplify.
656 (mips_insn16_frame_cache): Replace find_proc_desc with code from
657 mips_insn32_frame_cache.
658
659 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
660 Simplify as NEXT_FRAME is NULL.
661 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
662
663 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
664 local variable.
665 (mips_skip_prologue): Update.
666
667 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
668 "cur_frame" parameter.
669 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
670 (mips_insn32_frame_cache, find_proc_desc): Update
671
672 * config/vax/nm-obsd.h: Delete file.
673 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
674 * config/vax/nm-nbsd.h: Delete file.
675 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
676 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
677 * config/sh/nm-nbsd.h: Delete file.
678 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
679 * config/rs6000/nm-rs6000ly.h: Delete file.
680 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
681 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
682 * config/powerpc/nm-obsd.h: Delete file.
683 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
684 * config/powerpc/nm-nbsd.h: Delete file.
685 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
686 * config/pa/nm-obsd.h: Delete file.
687 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
688 * config/mips/nm-nbsd.h: Delete file.
689 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
690 * config/m88k/nm-obsd.h: Delete file.
691 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
692 * config/m68k/nm-nbsd.h: Delete file.
693 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
694 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
695 * config/i386/nm-nbsd.h: Delete file.
696 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
697 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
698 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
699 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
700 * config/i386/nm-i386lynx.h: Delete file.
701 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
702 * config/arm/nm-nbsd.h: Delete file.
703 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
704 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
705
706 * config/i386/tm-fbsd.h: Delete file.
707 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
708 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
709
710 * config/rs6000/tm-rs6000-aix4.h: Delete file.
711 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
712 * config/rs6000/aix4.mt (TM_FILE): Set to
713 config/rs6000/tm-rs6000.h.
714 * config/powerpc/tm-ppc-aix.h: Delete file.
715 * config/powerpc/aix.mt (TM_FILE): Set to
716 config/rs6000/tm-rs6000.h.
717 * config/m68k/tm-linux.h: Delete file.
718 * config/m68k/linux.mt (TM_FILE): Set to solib.h
719 * config/i386/tm-linux64.h: Delete file.
720 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
721 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
722
723 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
724 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
725 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
726 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
727 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
728 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
729 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
730 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
731 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
732
733 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
734 gdb_host_cpu.
735
736 2004-09-02 Joel Brobecker <brobecker@gnat.com>
737
738 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
739 Minor reformatting. Some code factoring.
740
741 2004-09-02 Andrew Cagney <cagney@gnu.org>
742
743 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
744 * config/vax/tm-nbsd.h: Delete file.
745 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
746 * config/sparc/tm-vxworks.h: Delete file.
747 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
748 * config/sparc/tm-nbsd.h: Delete file.
749 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
750 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
751 * config/sparc/tm-linux.h: Delete file.
752 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
753 * config/s390/tm-linux.h: Delete file.
754 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
755 * config/pa/tm-bsd.h: Delete file.
756 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
757 * config/m68k/tm-obsd.h: Delete file.
758 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
759 * config/m68k/tm-nbsd.h: Delete file.
760 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
761 * config/i386/tm-vxworks.h: Delete file.
762 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
763 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
764 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
765 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
766 * config/i386/tm-nbsd.h: Delete file.
767 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
768 * config/i386/tm-i386lynx.h: Delete file.
769 * config/cris/cris.mt (TM_FILE): Set to solib.h.
770 * config/cris/tm-cris.h: Delete file.
771
772 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
773 * configure: Re-generate.
774 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
775 * config/arm/tm-nbsd.h: Delete file.
776
777 * config/powerpc/tm-ppcle-sim.h: Delete.
778 * config/powerpc/tm-ppcle-eabi.h: Delete.
779 * config/powerpc/tm-nbsd.h: Delete.
780 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
781 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
782 tm-ppcle-eabi.h.
783
784 * config/i386/nto.mh (NAT_FILE): Delete.
785 * config/i386/nm-nto.h: Delete.
786
787 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
788 * config/m68k/tm-os68k.h: Ditto.
789 * config/m68k/tm-monitor.h: Ditto.
790 * config/m68k/tm-cisco.h: Ditto.
791 * config/m68k/st2000.mt (TM_FILE): Delete.
792 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
793 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
794 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
795 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
796
797 * config/m68k/tm-st2000.h: Delete.
798 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
799 * config/sparc/fbsd.mt (TM_FILE): Delete.
800 * config/sparc/tm-fbsd.h: Delete.
801
802 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
803 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
804 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
805
806 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
807 GDB_TM_FILE and GDB_XM_FILE.
808 * gdbarch.c: Re-generate.
809 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
810 quotes in macro definition.
811 * configure.in: Re-generate.
812
813 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
814 validating architecture methods.
815 * gdbarch.c: Re-generate.
816
817 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
818 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
819 GDB_MULTI_ARCH_PARTIAL.
820 * gdbarch.h: Re-generate.
821
822 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
823 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
824 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
825 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
826 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
827 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
828 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
829 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
830 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
831 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
832 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
833 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
834
835 2004-09-01 Andrew Cagney <cagney@gnu.org>
836
837 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
838 and main_func_highpc.
839 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
840 * objfiles.c (init_entry_point_info, objfile_relocate): Update
841 * nlmread.c (nlm_symfile_read): Update.
842
843 2004-09-01 Joel Brobecker <brobecker@gnat.com>
844
845 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
846 (mips_insn32_frame_cache): Inline call to find_proc_desc.
847 (find_proc_desc): Remove dead code.
848
849 2004-09-01 Joel Brobecker <brobecker@gnat.com>
850
851 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
852
853 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
854
855 * observer.sh: Add struct so_list declaration.
856 * Makefile.in: Add dependencies on observer.h for solib.c and
857 breakpoint.c.
858 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
859 function.
860 (_initialize_breakpoint): Register
861 disable_breakpoints_in_unloaded_shlib as an observer of the
862 "solib unloaded" observation event.
863 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
864 call decode_line_1 so unfound breakpoint errors are silent.
865 * solib.c (update_solib_list): When a solib is discovered to have
866 been unloaded by the program, notify all observers of the
867 "solib unloaded" observation event.
868
869 2004-09-01 Andrew Cagney <cagney@gnu.org>
870
871 * frame.c: Include "objfiles.h".
872 (inside_main_func): New function.
873 (get_prev_frame): Use new inside_main_func.
874 * Makefile.in (frame.o): Update dependencies.
875 * defs.h (inside_main_func): Delete declaration.
876 * blockframe.c (inside_main_func): Delete function.
877
878 2004-08-31 Jim Blandy <jimb@redhat.com>
879
880 * dwarf2read.c (is_vtable_name): New function, based on logic from
881 read_structure_type, but passing the correct length to strncmp,
882 and using 'sizeof' instead of 'strlen'.
883 (read_structure_type): Call it.
884
885 2004-08-31 Joel Brobecker <brobecker@gnat.com>
886
887 * config/powerpc/aix.mh: Add comment.
888
889 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
890
891 * MAINTAINERS: Add self to Write-After-Approval.
892
893 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
894
895 * MAINTAINERS: Add self to Write-After-Approval.
896
897 2004-08-30 Andrew Cagney <cagney@gnu.org>
898
899 Fix PR breakpoints/1757.
900 * infrun.c (struct execution_control_state): Replace
901 remove_breakpoints_on_following_step with
902 step_after_step_resume_breakpoint.
903 (init_execution_control_state): Update.
904 (handle_inferior_event): For signals, when stepping off a
905 breakpoint, set step_after_step_resume_breakpoint. When
906 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
907 (keep_going): Delete code handling
908 remove_breakpoints_on_following_step.
909
910 2004-08-29 David Lecomber <david@streamline-computing.com>
911
912 Fix PR gdb/648
913 * language.h (enum array_ordering): New enum.
914 * language.h (struct language_defn): New la_array_ordering
915 attribute.
916 * language.c (unknown_language_defn, auto_language_defn)
917 (local_language_defn): Ditto.
918 * ada-lang.c (ada_language_defn): Ditto.
919 * c-lang.c (c_language_defn, cplus_language_defn)
920 (asm_language_defn, minimal_language_defn): Ditto.
921 * f-lang.c (f_language_defn): Ditto.
922 * jv-lang.c (java_language_defn): Ditto.
923 * m2-lang.c (f_language_defn): Ditto.
924 * objc-lang.c (objc_language_defn): Ditto.
925 * p-lang.c (pascal_language_defn): Ditto.
926 * scm-lang.c (scm_language_defn): Ditto.
927 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
928 oriented large to small in type structure.
929 * dwarf2read.c (read_array_order): New function.
930 (read_array_type): Use read_array_order to check row/column
931 major ordering.
932
933 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
934
935 * target.c (target_resize_to_sections): Check
936 current_target.to_sections for an old value when updating.
937
938 2004-08-27 Joel Brobecker <brobecker@gnat.com>
939
940 * procfs.c (dbx_link_bpt_addr): New static global variable.
941 (dbx_link_shadow_contents): New static global variable.
942 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
943 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
944 if we just hit it.
945 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
946 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
947 from run to run.
948 (procfs_create_inferior): Remove syssgi syscall-exit notifications
949 after the inferior has been forked.
950 (remove_dbx_link_breakpoint): New function.
951 (dbx_link_addr): New function.
952 (insert_dbx_link_bpt_in_file): New function.
953 (insert_dbx_link_bpt_in_region): New function.
954 (insert_dbx_link_breakpoint): New function.
955 (proc_trace_syscalls_1): New function, extracted from
956 proc_trace_syscalls.
957 (proc_trace_syscalls): Replace extract code by call to
958 proc_trace_syscalls_1.
959 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
960 is no longer valid.
961
962 2004-08-25 Jim Blandy <jimb@redhat.com>
963
964 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
965
966 2004-08-25 Andrew Cagney <cagney@gnu.org>
967
968 * infrun.c (struct execution_control_state): Delete field
969 "stepping_through_sigtramp".
970 (init_execution_control_state): Do not set same.
971 (context_switch): Do not pass same to save_infrun_state and
972 load_infrun_state.
973 * gdbthread.h (struct thread_info): Delete field
974 stepping_through_sigtramp.
975 (save_infrun_state, load_infrun_state): Delete parameter
976 stepping_through_sigtramp.
977 * thread.c (load_infrun_state, save_infrun_state): Update.
978
979 * infrun.c: Re-indent. Move expression operators to the beginning
980 of the line. Remove long disabled #if 0 code.
981
982 2004-08-24 Andrew Cagney <cagney@gnu.org>
983
984 * doublest.h (floatformat_ieee_quad): Rename
985 floatformat_ia64_quad.
986 * doublest.c (floatformat_ieee_quad): Rename
987 floatformat_ia64_quad.
988 (_initialize_doublest): Update.
989
990 2004-08-24 Jim Blandy <jimb@redhat.com>
991
992 * dwarf2expr.h (struct dwarf_expr_context): New members
993 'num_pieces' and 'pieces', for returning the result of an
994 expression that uses DW_OP_piece.
995 (struct dwarf_expr_piece): New struct type.
996 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
997 pieces.
998 (free_dwarf_expr_context): Free pieces, if any.
999 (add_piece): New function.
1000 (execute_stack_op): Implement DW_OP_piece.
1001 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1002 expression is a list of pieces, print an error message.
1003 (dwarf2_loc_desc_needs_frame): If the expression yields
1004 pieces, and any piece is in a register, then we need a frame.
1005
1006 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1007 the stack until we've decided what sort of result the evaluation
1008 has produced. Use separate variables, with more specific names.
1009
1010 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
1011
1012 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1013 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1014 (arm_netbsd_init_abi_common): Register them.
1015
1016 2004-08-22 Mark Kettenis <kettenis@gnu.org>
1017
1018 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1019
1020 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1021 safe_frame_unwind_memory instead of target_read_memory.
1022
1023 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1024 Reorder includes.
1025 (fetch_register, store_register): Remove prototypes.
1026 (child_resume): Reorganize code and comments such that it is
1027 grouped a bit more logically.
1028 (attach): Explicitly compare errno against 0.
1029 (detach): Likewise. Use perror_with_name instead of
1030 print_sys_errmsg.
1031 * Makefile.in (infptrace.o): Update dependencies.
1032
1033 * ia64-linux-nat.c: Update copyright year.
1034 (fetch_debug_register, store_debug_register)
1035 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1036 PTRACE_TYPE_ARG3.
1037 * config/ia64/nm-linux.h: Update copyright year.
1038 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1039
1040 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1041 from CORE_ADDR to struct frame_info *. Use
1042 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1043 (amd64_linux_sigtramp_p): Adjust for changed signature of
1044 and64_linux_sigtramp_start
1045
1046 * gdb_ptrace.h: GNU/Linux.
1047
1048 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1049 Remove defines.
1050
1051 * infptrace.c: Include "gdb_assert.h".
1052 (PTRACE_XFER_TYPE): Remove define.
1053 (offsetof): Only define if U_REGS_OFFSET isn't defined.
1054 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1055 Tweak comment.
1056 (fetch_inferior_registers, store_inferior_registers): Remove
1057 redundant culry braces. Tweak comment. s/regno/regnum.
1058 * Makefile.in (infptrace.o): Update dependencies.
1059
1060 * configure.in: Change test for return type of ptrace to default
1061 to `long' instead of `int'.
1062 * configure: Regenerate.
1063
1064 2004-08-21 Mark Kettenis <kettenis@gnu.org>
1065
1066 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1067
1068 * configure.in: Check for ttrace function.
1069 * configure, config.in: Regenerate.
1070
1071 * gdb_ptrace.h: New file.
1072 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1073 <sys/ptrace.h>.
1074 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1075 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1076 (attach): Don't define PT_ATTACH.
1077 (detach): Don't define PT_DETACH.
1078 * Makefile.in (gdb_ptrace_h): New variable.
1079 (infptrace.o): Update dependencies.
1080
1081 2004-08-16 Mark Kettenis <kettenis@gnu.org>
1082
1083 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1084 instead of `int' if not already defined.
1085 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1086 PTRACE_TYPE_ARG3.
1087 * infptrace.c (call_ptrace): Revert change that replaced
1088 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1089
1090 2004-08-15 Mark Kettenis <kettenis@gnu.org>
1091
1092 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1093 Remove defines.
1094
1095 * linux-nat.c (kill_inferior): Add missing third and fourth
1096 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
1097
1098 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1099 PTRACE_TYPE_RET.
1100
1101 * proc-why.c (proc_prettyfprint_why): Fix format string.
1102
1103 * solib-osf.c (osf_current_sos): Remove unsused label.
1104
1105 * configure.in: Add <ncurses/ncurses.h> to the list of possible
1106 curses headers.
1107 * configure, config.in: Regenerate.
1108 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
1109 <ncurses/ncurses.h>.
1110
1111 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
1112 * config/nm-nbsd.h: Update copyright year.
1113 (PTRACE_ARG3_TYPE): Remove define.
1114
1115 * sparc-nat.c (fetch_inferior_registers)
1116 (store_inferior_registers, sparc_xfer_wcookie):
1117 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1118
1119 * alphabsd-nat.c (fetch_inferior_registers):
1120 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1121 PTRACE_TYPE_ARG3.
1122 * amd64bsd-nat.c (fetch_inferior_registers)
1123 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1124 PTRACE_TYPE_ARG3.
1125 * armnbsd-nat.c: Update copyright year.
1126 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
1127 (store_register, store_regs, store_fp_register, store_fp_regs):
1128 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1129 * hppabsd-nat.c (fetch_inferior_registers)
1130 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1131 PTRACE_TYPE_ARG3.
1132 * i386bsd-nat.c (fetch_inferior_registers)
1133 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
1134 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1135 * m68kbsd-nat.c (fetch_inferior_registers)
1136 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1137 PTRACE_TYPE_ARG3.
1138 * m88kbsd-nat.c (fetch_inferior_registers)
1139 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1140 PTRACE_TYPE_ARG3.
1141 * mipsnbsd-nat.c: Update copyright year.
1142 (fetch_inferior_registers, store_inferior_registers):
1143 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1144 * ns32knbsd-nat.c: Update copyright year.
1145 (fetch_inferior_registers, store_inferior_registers):
1146 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1147 * ppcnbsd-nat.c (fetch_inferior_registers):
1148 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1149 PTRACE_TYPE_ARG3.
1150 * ppcobsd-nat.c (fetch_inferior_registers):
1151 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1152 PTRACE_TYPE_ARG3.
1153 * shnbsd-nat.c: Update copyright year.
1154 (fetch_inferior_registers, store_inferior_registers):
1155 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1156 * vaxbsd-nat.c (fetch_inferior_registers)
1157 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1158 PTRACE_TYPE_ARG3.
1159
1160 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
1161 PTRACE_TYPE_ARG3.
1162 * infptrace.c (call_ptrace, child_resume, attach, detach)
1163 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
1164 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1165 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
1166 PTRACE_TYPE_ARG3.
1167
1168 2004-08-14 Mark Kettenis <kettenis@gnu.org>
1169
1170 * defs.h: Remove out-of-date comment.
1171 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
1172 [!GETENV_PROVIDED] (getenv): Remove prototype.
1173
1174 * standalone.c: Remove file.
1175 * Makefile.in (standalone.o): Remove dependency.
1176
1177 * i386-linux-nat.c (dummy_sse_values): Remove function and
1178 prototype.
1179 (i386_linux_dr_get): Fix typo in comment.
1180 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
1181
1182 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
1183
1184 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1185 from declaration.
1186 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1187 from definition.
1188
1189 2004-08-13 Mark Kettenis <kettenis@gnu.org>
1190
1191 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
1192 parenthesis in definition.
1193 * configure: Regenerated.
1194
1195 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
1196
1197 * PROBLEMS: Mention build/1411.
1198
1199 2004-08-09 Robert Millan <robertmh@gnu.org>
1200
1201 Committed by Nathanael Nerode.
1202 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
1203 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
1204
1205 2004-08-12 Andrew Cagney <cagney@gnu.org>
1206
1207 * NEWS: Mention fixes in GDB 6.2.1.
1208 * PROBLEMS: Remove mention of mips-irix.
1209
1210 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1211
1212 * config/powerpc/xm-aix.h: Delete.
1213 * config/powerpc/aix.mh (MH_FILE): Remove.
1214 * config/powerpc/aix432.mh (MH_FILE): Remove.
1215
1216 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1217
1218 * config/powerpc/aix.mh: Remove obsolete comment.
1219 * config/powerpc/aix432.mh: Likewise.
1220
1221 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1222
1223 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
1224
1225 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1226
1227 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
1228 this file is now empty.
1229 * config/xm-aix4.h: Remove, this file is no longer included
1230 anywhere.
1231
1232 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1233
1234 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
1235 that file is now empty.
1236 (termdef): Remove prototype, function no longer used.
1237
1238 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1239
1240 * doc/gdbint.texinfo (Host Definition): Remove documentation
1241 for USE_O_NOCTTY, no longer used.
1242 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
1243 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
1244
1245 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1246
1247 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
1248 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
1249 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
1250
1251 2004-08-11 Mark Kettenis <kettenis@gnu.org>
1252
1253 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
1254 instead of FIVE_ARG_PTRACE.
1255
1256 * inflow.c (O_NOCTTY): Define to zero if not already defined.
1257 (new_tty): Use O_NOCTTY unconditionally.
1258
1259 2004-08-10 Mark Kettenis <kettenis@gnu.org>
1260
1261 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
1262 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
1263 fflush on stdout.
1264
1265 2004-08-10 Joel Brobecker <brobecker@gnat.com>
1266
1267 * xcoff_symfile_finish: Replace last call to xmfree by call
1268 to xfree.
1269
1270 2004-08-10 Andrew Cagney <cagney@gnu.org>
1271
1272 * main.c (captured_main): Delete call to init_malloc.
1273 * defs.h (init_malloc): Delete declaration.
1274 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
1275 (init_malloc): Delete functions.
1276
1277 * defs.h (xmfree): Delete.
1278 * utils.c (xmfree): Delete function.
1279 (xfree): Inline calls to xmfree and mfree.
1280 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
1281 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
1282 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
1283 * somread.c (som_symfile_finish): Ditto.
1284 * objfiles.c (allocate_objfile, free_objfile):
1285 * nlmread.c (nlm_symfile_finish): Ditto.
1286 * hpread.c (hpread_symfile_finish): Ditto.
1287 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
1288 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
1289 * coffread.c (coff_symfile_finish): Ditto.
1290
1291 * defs.h (xmcalloc): Delete declaration.
1292 * utils.c (xmcalloc): Delete.
1293 (xcalloc): Inline calls to xmcalloc and mcalloc.
1294 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
1295 xcalloc and xfree.
1296 * symtab.c (create_demangled_names_hash): Ditto.
1297
1298 * defs.h (xmrealloc): Delete.
1299 * utils.c (xmrealloc): Delete.
1300 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
1301 * symmisc.c (extend_psymbol_list): Use xrealloc.
1302 * source.c (find_source_lines): Ditto.
1303 * hpread.c (hpread_lookup_type): Ditto.
1304 * dbxread.c (add_bincl_to_list): Ditto.
1305
1306 * utils.c (xmmalloc): Delete.
1307 (xmalloc): Inline xmmalloc and mmalloc calls.
1308 (msavestring): Use xmalloc.
1309 * defs.h (xmmalloc): Delete declaration.
1310 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
1311 xmmalloc.
1312 * symmisc.c (extend_psymbol_list): Ditto.
1313 * symfile.c (init_psymbol_list): Ditto.
1314 * source.c (find_source_lines): Ditto.
1315 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
1316 * elfread.c (elf_symtab_read): Ditto.
1317 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
1318 * coffread.c (coff_symfile_init): Ditto.
1319
1320 2004-08-10 David Carlton <carlton@bactrian.org>
1321
1322 * MAINTAINERS: Remove David Carlton from c++ testsuite
1323 maintainers.
1324
1325 2004-08-10 Jerome Guitton <guitton@gnat.com>
1326
1327 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
1328 print a line feed before the prompt.
1329
1330 2004-08-10 Mark Kettenis <kettenis@gnu.org>
1331
1332 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
1333
1334 2004-08-09 Joel Brobecker <brobecker@gnat.com>
1335
1336 General cleanup of the AIX xm include file:
1337 * config/xm-aix4.h (fd_set): Remove undefine.
1338 Remove include of <sys/select.h>.
1339 (HAVE_TERMIO): Remove define.
1340 (USG): Likewise.
1341 (NULL): Remove redefine.
1342 (alloca): Remove #pragma.
1343 (vfork): Remove define.
1344 (termdef): Remove.
1345 (SIGWINCH_HANDLER): Remove.
1346 (SIGWINCH_HANDLER_BODY): Remove.
1347
1348 2004-08-09 Mark Kettenis <kettenis@gnu.org>
1349
1350 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
1351 GDB_OSABI_OPENBSD_ELF.
1352
1353 2004-08-07 Robert Millan <robertmh@gnu.org>
1354
1355 * bsd-kvm.c: Check for nlist.h before including it.
1356
1357 2004-08-09 Mark Kettenis <kettenis@gnu.org>
1358
1359 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
1360 sigcontext' offset consistency checks for ancient BSD.
1361
1362 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
1363
1364 * configure.in: Check for <sys/types.h>. Check return and
1365 argument types of ptrace.
1366 * configure, config.in: Regenerate.
1367
1368 2004-08-09 Jim Blandy <jimb@redhat.com>
1369
1370 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
1371 rs6000_register_sim_regno): Doc fixes.
1372
1373 2004-08-08 Joel Brobecker <brobecker@gnat.com>
1374
1375 * mips-tdep.c: Include "floatformat.h".
1376 (n32n64_floatformat_always_valid): New function.
1377 (floatformat_n32n64_long_double_big): New constant.
1378 (mips_gdbarch_init): Set size and format of long double
1379 for N32 and N64 ABIs.
1380 * Makefile.in (mips-tdep.o): Update dependencies.
1381
1382 2004-08-08 Andrew Cagney <cagney@gnu.org>
1383
1384 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
1385 print. Improve script's error messages.
1386 * gdbarch.h: Re-generate.
1387
1388 * gdbarch.sh (pformat): New function.
1389 (float_format, double_format, long_double_format): List with bit
1390 members. Use pformat when printing.
1391 * gdbarch.c, gdbarch.h: Re-generate.
1392
1393 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
1394
1395 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
1396 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
1397 (ppcnbsd_supply_pcb): New function.
1398 (_initialize_ppcnbsd_nat): New prototype and function.
1399 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1400 (LOADLIBES): New variable.
1401 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
1402
1403 2004-08-08 Andrew Cagney <cagney@gnu.org>
1404
1405 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
1406 (builtin_type_ieee_double, builtin_type_ia64_quad)
1407 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
1408 BE/LE floating-point types.
1409 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
1410 (builtin_type_ieee_double, builtin_type_ia64_quad)
1411 (builtin_type_ia64_spill): Declare.
1412 * doublest.c (_initialize_doublest, floatformat_ieee_single)
1413 (floatformat_ieee_double, floatformat_arm_ext)
1414 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
1415 of LE/BE floatformats.
1416 * doublest.h: (struct floatformat, floatformat_ieee_single)
1417 (floatformat_ieee_double, floatformat_arm_ext)
1418 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
1419
1420 2004-08-08 Mark Kettenis <kettenis@gnu.org>
1421
1422 * i386gnu-nat.c (gnu_store_registers): Fix typo.
1423
1424 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
1425 instead of regcache_raw_supply when storing the registers.
1426
1427 * i386gnu-nat.c: Update copyright year.
1428 (gnu_store_registers): Don't use deprecated_registers and
1429 deprecated_registers_valid. Use regcache_valid_p and
1430 regcache_raw_supply instead.
1431
1432 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
1433 frame_pc_unwind.
1434
1435 * procfs.c (procfs_pid_to_str): Remove redundant and unused
1436 variables. Incapitalized "process".
1437
1438 * configure.in: Add cursesX to the list of possible curses libs.
1439 Add cursesX.h to the list of possible curses headers.
1440 * configure, config.in: Regenerate.
1441
1442 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1443
1444 * configure.in: Test for struct lwp in <sys/lwp.h>.
1445 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
1446 the offset of l_addr in struct lwp.
1447
1448 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1449
1450 * bsd-kvm.c: Include "gdbcore.h"
1451 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
1452
1453 2004-08-07 Andrew Cagney <cagney@gnu.org>
1454
1455 * gdbtypes.c (build_flt, build_complex): New functions.
1456 (gdbtypes_post_init): Use.
1457
1458 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
1459
1460 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
1461 through to builtin_type_uint128.
1462
1463 * c-exp.y: Use builtin_type function to obtain builtin types.
1464
1465 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
1466 builtin_uint128.
1467 * gdbtypes.c (gdbtypes_post_init): Update.
1468 (build_gdbtypes): Move initialization of builtin_type_int0
1469 through to builtin_type_uint128 from here ...
1470 (_initialize_gdbtypes): ... to here.
1471 * d10v-tdep.c (d10v_register_type): Update.
1472
1473 * doublest.c: Update copyright.
1474 (floatformat_from_length): Call error when floatformat is NULL.
1475 (extract_floating_by_length): Remove NULL fmt check.
1476 (store_floating_by_length): Ditto.
1477
1478 2004-08-07 Andrew Cagney <cagney@gnu.org>
1479
1480 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
1481 that the register is valid.
1482
1483 2004-08-05 Mark Kettenis <kettenis@chello.nl>
1484
1485 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1486 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
1487 struct frame_info *. Use safe_frame_unwind_memory instead of
1488 deprecated_read_memory_nobpt.
1489 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
1490 changed signature of i386_linux_sigtramp_start and
1491 i386_linux_rt_sigtramp_start.
1492
1493 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
1494 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
1495 instead of deprecated_read_memory_nobpt.
1496 (i386nbsd_sigtramp_p): Adjust for changed signature of
1497 i386nbsd_sigtramp_offset.
1498
1499 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
1500 safe_frame_unwind_memory instead of target_read_memory.
1501
1502 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1503 !NO_SYS_FILE.
1504 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
1505 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
1506 (_initialize_kernel_u_addr): Remove prototype and function.
1507 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1508 !NO_SYS_FILE.
1509 * xcoffread.c: Likewise.
1510
1511 2004-08-06 Mark Kettenis <kettenis@gnu.org>
1512
1513 * vax-nat.c: New file.
1514 * vaxbsd-nat.c: Tweak comment.
1515 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
1516 vaxnbsd-tdep.c.
1517 (vax-nat.o): New dependency.
1518 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
1519 (vax-*-ultrix2*): Remove.
1520 * config/vax/vax.mh: New file.
1521 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
1522 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
1523 (vax_register_u_addr): New prototype.
1524 (REGISTER_U_ADDR): Define using vax_register_u_addr.
1525 * config/vax/vaxult2.mh: Remove file.
1526 * config/vax/vaxult.mh: Remove file.
1527 * config/vax/vaxbsd.mh: Remove file.
1528 * config/vax/vax.mt (TM_FILE): Remove.
1529 * config/vax/tm-vaxbsd.h: Remove file.
1530
1531 2004-08-06 Joel Brobecker <brobecker@gnat.com>
1532
1533 * aix-thread.c (get_signaled_thread): New function.
1534 (iter_trap): Delete, no longer used.
1535 (iter_tid): New function.
1536 (pd_update): Find the thread that received the SIGTRAP signal
1537 by first locating the kernel thread, and then finding its
1538 associated thread.
1539
1540 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
1541
1542 * lin-lwp.c (child_wait): Continue inferior after processing
1543 PTRACE_EVENT_CLONE event.
1544
1545 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
1546
1547 * MAINTAINERS: Add self to Write-After-Approval.
1548
1549 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
1550
1551 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
1552 libunwind-xxxx.so" where xxxx is UNW_TARGET.
1553
1554 2004-08-05 Andrew Cagney <cagney@gnu.org>
1555
1556 * config/xm-sysv4.h: Delete file.
1557 * config/mips/xm-irix5.h: Delete file.
1558 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
1559 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
1560 * config/ia64/xm-aix.h: Delete file.
1561 * config/ia64/aix.mh (XM_FILE): Delete.
1562 * config/pa/xm-hppah.h: Delete file.
1563 * config/pa/hpux11w.mh (XM_FILE): Delete.
1564 * config/pa/hpux11.mh (XM_FILE): Delete.
1565 * config/pa/hpux1020.mh (XM_FILE): Delete.
1566 * config/pa/hppahpux.mh (XM_FILE): Delete.
1567
1568 * config/alpha/xm-alphalinux.h: Delete file.
1569 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
1570 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
1571 * config/alpha/xm-alphaosf.h: Delete file.
1572 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
1573 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
1574 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
1575 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
1576
1577 * config/i386/xm-i386v.h: Delete file.
1578 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
1579 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
1580 * config/i386/xm-i386sco.h: Delete file.
1581 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
1582 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
1583 * config/i386/xm-i386v4.h: Delete file.
1584 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
1585 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
1586 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
1587 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
1588
1589 * config/vax/xm-vax.h: Delete file.
1590 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
1591 * config/vax/xm-vaxult2.h: Delete file.
1592 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
1593 * config/vax/vaxult2.mh (XM_FILE): Delete.
1594 * config/vax/xm-vaxult.h: Delete file.
1595 * config/vax/vaxult.mh (XM_FILE): Delete.
1596 * config/vax/xm-vaxbsd.h: Delete file.
1597 * config/vax/vaxbsd.mh (XM_FILE): Delete.
1598
1599 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
1600 * gdbarch.h, gdbarch.c: Re-generate.
1601 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
1602 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
1603 * frame.h: Delete deprecated_read_fp from comments.
1604 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
1605 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
1606
1607 2004-08-04 Mark Kettenis <kettenis@gnu.org>
1608
1609 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
1610 trampoline in OpenBSD 3.5-current.
1611
1612 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
1613 SSE registers.
1614
1615 * Makefile.in: Remove embedded page breaks.
1616
1617 2004-08-04 Jim Blandy <jimb@redhat.com>
1618
1619 * regcache.c (regcache_raw_read): Assert that, after calling
1620 target_fetch_registers, the register we're reading is cached.
1621
1622 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
1623 a call to 'internal_error', with a more helpful error message.
1624 * rs6000-tdep.c (e500_pseudo_register_read,
1625 e500_pseudo_register_write, rs6000_store_return_value): Same.
1626
1627 2004-08-04 Andrew Cagney <cagney@gnu.org>
1628
1629 * Makefile.in: Update dependencies.
1630
1631 2004-08-04 Jim Blandy <jimb@redhat.com>
1632
1633 Change the layout of the PowerPC E500 raw register cache to allow
1634 the lower 32-bit halves of the GPRS to be their own raw registers,
1635 not pseudoregisters.
1636 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
1637 add ppc_ev0_upper_regnum flag.
1638 * rs6000-tdep.c: #include "reggroups.h".
1639 (spe_register_p): Recognize the ev upper half registers as SPE
1640 registers.
1641 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
1642 registers.
1643 (e500_move_ev_register): New function.
1644 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
1645 vector registers are the pseudo-registers now, formed by splicing
1646 together the gprs and the upper-half registers.
1647 (e500_register_reggroup_p): New function.
1648 (P): Macro deleted.
1649 (P8, A4): New macro.
1650 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
1651 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
1652 macros.
1653 (registers_e500): Rearrange register set so that the raw register
1654 set contains 32-bit GPRs and upper-half registers, and the SPE
1655 vector registers become pseudo-registers.
1656 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
1657 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
1658 register numbers are now the same for the E500 as they are for
1659 other PowerPC variants. Register e500_register_reggroup_p as the
1660 register group function for the E500.
1661 * Makefile.in (rs6000-tdep.o): Update dependencies.
1662
1663 Adapt PPC E500 native support to the new raw regcache layout.
1664 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
1665 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
1666 (fetch_spe_register, store_spe_register): Handle fetching/storing
1667 all the SPE registers at once, if regno == -1. These now take
1668 over the job of fetch_spe_registers and store_spe_registers.
1669 (fetch_spe_registers, store_spe_registers): Deleted.
1670 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
1671 unconditionally; they're always raw. Fetch/store SPE upper half
1672 registers, if present, instead of ev registers.
1673 (fetch_register, store_register): Remove sanity checks: gprs are
1674 never pseudo-registers now, so we never need to even mention any
1675 registers that are ever pseudoregisters.
1676
1677 Use a fixed register numbering when communicating with the PowerPC
1678 simulator.
1679 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
1680 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
1681 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
1682 New functions.
1683 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
1684 init_sim_regno_table.
1685 * Makefile.in (gdb_sim_ppc_h): New variable.
1686 (rs6000-tdep.o): Update dependencies.
1687
1688 2004-08-02 Andrew Cagney <cagney@gnu.org>
1689
1690 * cris-tdep.c (cris_register_size): Restore function, still used
1691 locally.
1692
1693 * gdbarch.sh (deprecated_target_read_fp)
1694 (deprecated_frame_locals_address, deprecated_frame_args_address)
1695 (deprecated_frame_chain_valid, deprecated_frame_chain)
1696 (deprecated_init_extra_frame_info, deprecated_pop_frame)
1697 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
1698 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
1699 * gdbarch.h, gdbarch.c: Re-generate.
1700 * regcache.c (deprecated_read_fp): Do not call
1701 DEPRECATED_TARGET_READ_FP_P.
1702 * infcmd.c (default_print_registers_info): Do not call
1703 DEPRECATED_DO_REGISTERS_INFO.
1704 * frame-base.c (default_frame_locals_address): Do not call
1705 DEPRECATED_FRAME_LOCALS_ADDRESS.
1706 (default_frame_args_address): Do not call
1707 DEPRECATED_FRAME_ARGS_ADDRESS.
1708
1709 * gdbarch.sh (deprecated_register_raw_size)
1710 (deprecated_register_virtual_size:int): Delete.
1711 * gdbarch.h, gdbarch.c: Re-generate.
1712 * cris-tdep.c (cris_register_size): Delete.
1713 (cris_gdbarch_init): Update.
1714 * alpha-tdep.c (alpha_register_raw_size)
1715 (alpha_register_virtual_size): Delete.
1716 (alpha_gdbarch_init): Update.
1717
1718 * gdbarch.sh (deprecated_register_virtual_type)
1719 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
1720 (deprecated_dummy_write_sp): Delete.
1721 * gdbarch.h, gdbarch.c: Re-generate.
1722
1723 * gdbarch.sh (deprecated_register_bytes): Delete.
1724 * gdbarch.h, gdbarch.c: Re-generate.
1725 * regcache.c (deprecated_register_bytes): New function.
1726 * regcache.h (deprecated_register_bytes): Declare.
1727 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1728 * v850-tdep.c (v850_gdbarch_init): Update.
1729 * sh64-tdep.c (sh64_gdbarch_init): Update.
1730 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1731 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1732 * mcore-tdep.c (mcore_gdbarch_init): Update.
1733 * cris-tdep.c (cris_gdbarch_init): Update.
1734 * arm-tdep.c (arm_gdbarch_init): Update.
1735 * remote.c (init_remote_state): Update.
1736 * remote-vx.c (vx_prepare_to_store): Update.
1737 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
1738 * irix5-nat.c (fetch_core_registers): Update.
1739 * cris-tdep.c (cris_register_bytes_ok): Update.
1740 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1741
1742 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
1743 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
1744 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
1745 (mips_insn16_frame_base_address, mips_insn16_frame_base)
1746 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
1747 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
1748 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
1749 (mips_insn32_frame_base_address, mips_insn32_frame_base)
1750 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
1751 with mips_insn16 and mips_insn32.
1752
1753 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1754 * rs6000-tdep.c (rs6000_push_dummy_call)
1755 (rs6000_extract_return_value): Use register_size.
1756 * xstormy16-tdep.c (xstormy16_get_saved_register)
1757 (xstormy16_extract_return_value): Ditto.
1758 * valops.c (value_assign): Ditto.
1759 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
1760 * v850-tdep.c (v850_extract_return_value): Ditto.
1761 * tracepoint.c (collect_symbol): Ditto.
1762 * target.c (debug_print_register): Ditto.
1763 * stack.c (frame_info): Ditto.
1764 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
1765 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1766 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
1767 (store_register_using_P): Ditto.
1768 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
1769 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
1770 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1771 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
1772 * regcache.c (deprecated_read_register_bytes)
1773 (deprecated_write_register_bytes, read_register)
1774 (write_register): Ditto.
1775 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
1776 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
1777 * monitor.c (monitor_supply_register, monitor_fetch_register)
1778 (monitor_store_register): Ditto.
1779 * mn10300-tdep.c (mn10300_pop_frame_regular)
1780 (mn10300_print_register): Ditto.
1781 * mipsv4-nat.c (fill_fpregset): Ditto.
1782 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
1783 (mips64_fill_fpregset): Ditto.
1784 * mi/mi-main.c (register_changed_p, get_register)
1785 (mi_cmd_data_write_register_values): Ditto.
1786 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
1787 * irix5-nat.c (fill_gregset, fetch_core_registers):
1788 * infrun.c (write_inferior_status_register): Ditto.
1789 * infptrace.c (fetch_register, store_register): Ditto.
1790 * infcmd.c (default_print_registers_info): Ditto.
1791 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
1792 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
1793 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
1794 * hpux-thread.c (hpux_thread_fetch_registers)
1795 (hpux_thread_store_registers): Ditto.
1796 * hppah-nat.c (store_inferior_registers, fetch_register):
1797 * findvar.c (value_from_register): Ditto.
1798 * dve3900-rom.c (fetch_bitmapped_register):
1799 * cris-tdep.c (cris_gdbarch_init): Ditto.
1800 * alpha-tdep.h: Ditto.
1801 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
1802
1803 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
1804 DEPRECATED_REGISTER_RAW_SIZE from comments.
1805 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
1806 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
1807 DEPRECATED_REGISTER_RAW_SIZE.
1808 * findvar.c (value_of_register): Simplify by assuming that the
1809 registers raw and virtual sizes are identical.
1810 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
1811 comment.
1812 * arch-utils.c (generic_register_size): Simplify by assuming
1813 register_type.
1814
1815 * regcache.c (legacy_read_register_gen, real_register)
1816 (legacy_write_register_gen): Delete, not used.
1817
1818 * regcache.c (struct regcache_descr): Delete legacy_p.
1819 (init_legacy_regcache_descr): Delete function.
1820 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
1821 Do not use deprecated register functions.
1822 (regcache_raw_read, deprecated_write_register_gen):
1823 (deprecated_read_register_gen, regcache_raw_write): Delete code
1824 predicated on legacy_p.
1825 (register_size): Delete check against register raw size.
1826
1827 * cris-tdep.c (cris_register_type): Replace
1828 cris_register_virtual_type.
1829 (cris_gdbarch_init): Update, set register_type.
1830
1831 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
1832 * gdbarch.h, gdbarch.c: Re-generate.
1833 * arm-tdep.c (arm_frameless_function_invocation): Delete.
1834 (arm_gdbarch_init) Do not set frameless function invocation.
1835 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
1836 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
1837 * frv-tdep.c (frv_frameless_function_invocation): Delete.
1838 (frv_gdbarch_init): Do not set frameless function invocation.
1839 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1840 * sh-tdep.c (sh_gdbarch_init): Ditto.
1841 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
1842 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1843 * avr-tdep.c (avr_gdbarch_init): Ditto.
1844
1845 * blockframe.c (legacy_frame_chain_valid): Delete function.
1846
1847 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
1848 and pc. Update comments.
1849 (pc_in_dummy_frame): Delete function.
1850 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
1851 use the "id".
1852 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
1853 call_hi, top and pc, use the id.
1854 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
1855
1856 * dummy-frame.c: Include "gdb_string.h".
1857 (generic_save_call_dummy_addr, generic_push_dummy_frame)
1858 (generic_save_dummy_frame_tos): Delete.
1859 (dummy_frame_push): New function, replaces above.
1860 * dummy-frame.h: Update copyright.
1861 (dummy_frame_push): Declare.
1862 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
1863 (generic_save_call_dummy_addr): Delete declarations.
1864 * infcall.c: Include "dummy-frame.h".
1865 (call_function_by_hand): Add locals caller_regcache,
1866 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
1867 with call to frame_save_as_regcache plus cleanup. Delete calls to
1868 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
1869 Move clear_proceed_status to just before the resume, add call to
1870 dummy_frame_push (discard cleanup).
1871 * Makefile.in (infcall.o): Add $(dummy_frame_h).
1872 (dummy-frame.o): Add $(gdb_string_h).
1873
1874 2004-08-01 Andrew Cagney <cagney@gnu.org>
1875
1876 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
1877 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
1878 * dummy-frame.c (find_dummy_frame): Delete.
1879 (struct dummy_frame_cache, dummy_frame_sniffer)
1880 (dummy_frame_prev_register, dummy_frame_this_id)
1881 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
1882 frame unwinder using a dummy_frame_cache.
1883
1884 2004-08-01 Andrew Cagney <cagney@gnu.org>
1885
1886 * frame.h (frame_save_as_regcache): Declare.
1887 * frame.c (frame_save_as_regcache): New function.
1888 (do_frame_read_register): Replace do_frame_unwind_register.
1889 (frame_pop): Use frame_save_as_regcache.
1890 * dummy-frame.c (generic_push_dummy_frame): Use
1891 frame_save_as_regcache.
1892
1893 2004-08-01 Joel Brobecker <brobecker@gnat.com>
1894
1895 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
1896 file as included until we record the first line in the linetable.
1897
1898 2004-08-01 Andrew Cagney <cagney@gnu.org>
1899
1900 * frame.h (deprecated_pop_dummy_frame)
1901 (deprecated_read_register_dummy)
1902 (deprecated_generic_find_dummy_frame): Delete.
1903 * dummy-frame.c (deprecated_generic_find_dummy_frame)
1904 (deprecated_read_register_dummy)
1905 (deprecated_find_dummy_frame_regcache)
1906 (discard_innermost_dummy)
1907 (deprecated_pop_dummy_frame): Delete.
1908 (dummy_frame_this_id): Simplify.
1909 (struct dummy_frame): Delete "fp" and "sp".
1910 (find_dummy_frame): Simplify.
1911 (generic_push_dummy_frame): Do not set "fp" or "sp".
1912 (fprint_dummy_frames): Do not print "fp" and "sp"
1913
1914 2004-08-01 Mark Kettenis <kettenis@gnu.org>
1915
1916 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
1917 (struct i386_insn): New structure.
1918 (i386_match_insn): New function.
1919 (i386_frame_setup_skip_insns): New variable.
1920 (i386_analyze_frame_setup): Change to use i386_match_insn and the
1921 array i386_frame_setup_insns of instructions that should be
1922 skipped inside the frame setup sequence.
1923
1924 2004-08-01 Andrew Cagney <cagney@gnu.org>
1925
1926 * frame.h (deprecated_frame_xmalloc_with_cleanup)
1927 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1928 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1929 * stack.c (frame_info): Delete references to
1930 DEPRECATED_FRAME_INIT_SAVED_REGS and
1931 deprecated_get_frame_saved_regs.
1932 * frame.c (struct frame_info): Delete saved_regs and extra_info.
1933 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
1934 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
1935 (frame_unwind_register_signed)
1936 (frame_unwind_register_unsigned)
1937 (frame_unwind_unsigned_register): Use register_size.
1938 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
1939 (deprecated_frame_xmalloc_with_cleanup)
1940 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1941 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1942
1943 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
1944 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
1945 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
1946 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
1947
1948 * infcall.c (call_function_by_hand): Do not use
1949 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
1950 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
1951 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
1952 DEPRECATED_STACK_ALIGN.
1953
1954 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1955
1956 Committed by Andrew Cagney.
1957 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
1958
1959 2004-08-01 Andrew Cagney <cagney@gnu.org>
1960
1961 * mips-tdep.c (mips16_frame_cache)
1962 (mips16_frame_this_id, mips16_frame_prev_register)
1963 (mips16_frame_unwind, mips16_frame_sniffer)
1964 (mips16_frame_base_address, mips16_frame_base)
1965 (mips16_frame_base_sniffer, mips32_frame_cache)
1966 (mips32_frame_this_id, mips32_frame_prev_register)
1967 (mips32_frame_unwind, mips32_frame_sniffer)
1968 (mips32_frame_base_address, mips32_frame_base)
1969 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
1970 separate heuristic mips16 and mips32 unwinders.
1971 (mips_stub_frame_cache, mips_stub_frame_this_id)
1972 (mips_stub_frame_prev_register)
1973 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
1974 (mips_stub_frame_base_address, mips_stub_frame_base)
1975 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
1976 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
1977 match true mdebug frames.
1978 (non_heuristic_proc_desc): Add forward declaration.
1979
1980 2004-08-01 Andrew Cagney <cagney@gnu.org>
1981
1982 * config/mips/tm-irix6.h: Delete file.
1983 * config/mips/tm-irix5.h: Delete file.
1984 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
1985 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
1986
1987 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
1988 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
1989 * config/nm-gnu.h (NO_CORE_OPS): Delete.
1990 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
1991 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
1992 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
1993 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
1994 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
1995 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
1996 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
1997 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
1998 (TARGET_SIGNAL_RAW_VALUES): Delete.
1999 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2000 Delete.
2001 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
2002 (TARGET_HW_WATCH_LIMIT): Delete.
2003 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2004 * minimon.h: Delete file.
2005
2006 * trad-frame.c (trad_frame_get_this_base)
2007 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2008 functions.
2009 * trad-frame.h (trad_frame_set_this_base)
2010 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2011
2012 2004-07-31 Andrew Cagney <cagney@gnu.org>
2013
2014 * trad-frame.c (trad_frame_get_prev_register): Rename
2015 trad_frame_get_prev_register.
2016 * vax-tdep.c (vax_frame_prev_register): Update.
2017 * trad-frame.h: Update.
2018 * trad-frame.c (trad_frame_get_register): Update.
2019 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2020 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2021 Update.
2022 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2023 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2024 Update.
2025 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2026 Update.
2027 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2028 Update.
2029 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2030 Update.
2031 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2032 Update.
2033 * s390-tdep.c (s390_frame_prev_register)
2034 (s390_stub_frame_prev_register)
2035 (s390_sigtramp_frame_prev_register): Update.
2036 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2037 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2038 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2039 * m88k-tdep.c (m88k_frame_prev_register)
2040 * m68hc11-tdep.c (m68hc11_frame_prev_register)
2041 * m32r-tdep.c (m32r_frame_prev_register): Update.
2042 * hppa-tdep.c (hppa_frame_prev_register_helper)
2043 * frv-tdep.c (frv_frame_prev_register): Update.
2044 * d10v-tdep.c (d10v_frame_prev_register): Update.
2045 * cris-tdep.c (cris_frame_prev_register): Update.
2046 * avr-tdep.c (avr_frame_prev_register): Update.
2047 * arm-tdep.c (arm_prologue_prev_register)
2048 (arm_sigtramp_prev_register): Update.
2049
2050 2004-07-31 Andrew Cagney <cagney@gnu.org>
2051
2052 * frame.h (legacy_saved_regs_unwind)
2053 (legacy_frame_chain_valid, legacy_frame_p)
2054 (enum frame_type): Delete UNKNOWN_FRAME.
2055 * dummy-frame.c (dummy_frame_this_id): Simplify.
2056 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
2057 * frame.c (struct frame_info): Delete the field "type".
2058 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2059 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2060 (legacy_saved_regs_unwind, legacy_frame_p)
2061 (frame_type_from_pc): Delete.
2062 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2063 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2064
2065 2004-07-31 Mark Kettenis <kettenis@gnu.org>
2066
2067 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2068 indentation.
2069
2070 * mips-nat.c: Remove file.
2071 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2072 (mips-nat.o): Remove dependency.
2073
2074 * infptrace.c: Update copyright year.
2075 (fetch_register): Pass NULL in regcache_raw_supply call instead of
2076 explicitly setting the buffer to all zeroes.
2077
2078 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2079 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2080
2081 2004-07-30 Andrew Cagney <cagney@gnu.org>
2082
2083 * GDB 6.2 released from gdb_6_2-branch.
2084
2085 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
2086
2087 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2088
2089 * exec.c (exec_file_attach):
2090 * nto-tdep.c (nto_find_and_open_solib):
2091 * pa64solib.c (pa64_solib_sizeof_symbol_table):
2092 * solib.c (solib_open):
2093 * somsolib.c (som_solib_sizeof_symbol_table):
2094 * source.c (is_regular_file, openp, open_source_file):
2095 * symfile.c (symfile_bfd_open):
2096 * wince.c (upload_to_device): Differentiate between the search for
2097 binary and source files.
2098
2099 2004-07-30 Andrew Cagney <cagney@gnu.org>
2100
2101 * complaints.c (_initialize_complaints): Pass NULL to
2102 add_setshow_zinteger_cmd for help_doc.
2103 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
2104
2105 2004-07-30 Andrew Cagney <cagney@gnu.org>
2106
2107 Fix PR i18n/761.
2108 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
2109 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
2110 $(PACKAGE).pot and update-po.
2111 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
2112 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
2113 (update-po): New rules.
2114 (localedir): Define using autoconf.
2115 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
2116 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
2117 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
2118 * configure.in: Generate CATALOGS and LINGUAS from contents of
2119 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
2120 * configure: Re-generate.
2121 * po/gdbtext: New file
2122
2123 2004-07-30 Jerome Guitton <guitton@gnat.com>
2124
2125 * MAINTAINERS: Reorder Write After Approval list in alphabetical
2126 order.
2127
2128 2004-07-30 David Lecomber <dsl@sources.redhat.com>
2129
2130 * dwarf2read.c (read_file_scope): Set producer if attribute
2131 present.
2132 (struct dwarf2_cu): Added new member producer.
2133
2134 2004-07-30 Jerome Guitton <guitton@gnat.com>
2135
2136 * inflow.c (kill_command): release file handles in BFD.
2137 * exec.c (exec_file_attach): Ditto.
2138 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
2139
2140 2004-07-29 Andrew Cagney <cagney@gnu.org>
2141
2142 * PROBLEMS (mips-irix): Note that it is broken.
2143
2144 2004-07-29 Andrew Cagney <cagney@gnu.org>
2145
2146 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
2147 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
2148
2149 * config/xm-nbsd.h: Delete file.
2150 * config/arm/xm-nbsd.h: Delete file.
2151 * config/i386/xm-nbsd.h: Delete file.
2152 * config/ns32k/xm-nbsd.h: Delete file.
2153 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
2154 * config/i386/nbsdelf.mh (XM_FILE): Delete.
2155 * config/i386/nbsdaout.mh (XM_FILE): Delete.
2156 * config/arm/nbsdelf.mh (XM_FILE): Delete.
2157 * config/arm/nbsdaout.mh (XM_FILE): Delete.
2158
2159 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
2160 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
2161 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
2162 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
2163 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
2164 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
2165
2166 * config/powerpc/xm-linux.h: Delete empty file.
2167 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
2168 * config/powerpc/linux.mh (XM_FILE): Delete.
2169 * config/m68k/xm-linux.h: Delete empty file.
2170 * config/m68k/linux.mh (XM_FILE): Delete.
2171 * config/ia64/xm-linux.h: Delete empty file.
2172 * config/ia64/linux.mh (XM_FILE): Delete.
2173 * config/arm/xm-linux.h: Delete empty file.
2174 * config/arm/linux.mh (XM_FILE): Delete.
2175
2176 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2177 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
2178 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2179 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
2180 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2181 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
2182 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2183 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
2184
2185 * config/m68k/xm-m68k.h: Delete file.
2186 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
2187 copyright.
2188 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2189 * config/pa/xm-linux.h: Delete empty file.
2190 * config/pa/linux.mh (XM_FILE): Delete.
2191 * config/i386/xm-i386.h: Delete empty file.
2192 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
2193 "i386/xm-i386.h".
2194 * config/i386/obsdaout.mh (XM_FILE): Delete.
2195 * config/i386/obsd64.mh (XM_FILE): Delete.
2196 * config/i386/fbsd64.mh (XM_FILE): Delete.
2197 * config/i386/nto.mh (XM_FILE): Delete.
2198 * config/i386/obsd.mh (XM_FILE): Delete.
2199 * config/i386/linux64.mh (XM_FILE): Delete.
2200 * config/i386/linux.mh (XM_FILE): Delete.
2201 * config/i386/i386sol2.mh (XM_FILE): Delete.
2202 * config/i386/i386gnu.mh (XM_FILE): Delete.
2203 * config/i386/fbsd.mh (XM_FILE): Delete.
2204 * config/i386/nbsd64.mh (XM_FILE): Delete.
2205
2206 2004-07-29 Andrew Cagney <cagney@gnu.org>
2207
2208 * config/pa/xm-linux.h: Do not include "floatformat.h".
2209 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2210 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2211 * config/i386/xm-i386.h: Do not include "floatformat.h".
2212 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2213 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2214 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2215 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
2216 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
2217 GDB_HOST_LONG_DOUBLE_FORMAT instead.
2218 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
2219 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
2220 * configure, config.in: Regenerate.
2221 * configure.host (gdb_host_float_format, gdb_host_double_format)
2222 (gdb_host_long_double_format): Set according to the host.
2223
2224 2004-07-29 Andrew Cagney <cagney@gnu.org>
2225
2226 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
2227
2228 2004-07-28 Andrew Cagney <cagney@gnu.org>
2229
2230 * PROBLEMS: Mention threads/1650.
2231 * NEWS: Mention the NPTL fix.
2232
2233 2004-07-28 Andrew Cagney <cagney@gnu.org>
2234
2235 * cli/cli-decode.c (add_setshow_cmd): Delete function.
2236 (add_setshow_cmd_full): Make static.
2237 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
2238 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
2239 * cli/cli-decode.c (add_setshow_filename_cmd)
2240 (add_setshow_string_cmd): New functions.
2241 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
2242 * mips-tdep.c (_initialize_mips_tdep): Update.
2243 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
2244 * cli/cli-logging.c (_initialize_cli_logging): Update.
2245 * complaints.c (_initialize_complaints): Update.
2246 * remote.c (_initialize_remote): Update.
2247
2248 2004-07-28 Andrew Cagney <cagney@gnu.org>
2249
2250 * cli/cli-decode.c (add_setshow_zinteger_cmd)
2251 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
2252 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
2253 print parameters. Make string parameters constant.
2254 * command.h: Update. Update copyright.
2255 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
2256 * observer.c (_initialize_observer): Ditto.
2257 * frame.c (_initialize_frame): Ditto.
2258 * complaints.c (_initialize_complaints): Ditto.
2259 * maint.c (_initialize_maint_cmds): Ditto.
2260 * target.c (initialize_targets): Ditto.
2261 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
2262 * infcall.c (_initialize_infcall): Ditto.
2263 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2264 * m32r-rom.c (_initialize_m32r_rom): Ditto.
2265 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2266 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
2267 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2268
2269 2004-07-28 Andrew Cagney <cagney@gnu.org>
2270
2271 * gdbtypes.c (lookup_primitive_typename): Delete function.
2272 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
2273 * ada-lex.l: Use language_lookup_primitive_type_by_name.
2274 * gdbtypes.c (lookup_typename): Ditto.
2275 * f-exp.y (yylex): Ditto.
2276 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
2277
2278 * scm-lang.c (c_builtin_types): Delete extern declaration.
2279 (scm_language_defn): Replace
2280 string_char_type and primitive_type_vector with
2281 la_language_arch_info.
2282 * jv-lang.c (java_language_defn): Replace
2283 string_char_type and primitive_type_vector with
2284 la_language_arch_info.
2285 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
2286 c_builtin_types in comment.
2287 * c-lang.h (struct language_arch_info): Declare opaque.
2288 (c_language_arch_info): Declare.
2289 (c_builtin_types): Delete declaration.
2290 * c-lang.c (c_language_arch_info): Set string_char_type to
2291 builtin_char, not builtin_true_char. Make global.
2292 (c_builtin_types): Delete array.
2293 (asm_language_defn, minimal_language_defn): Replace
2294 string_char_type and primitive_type_vector with
2295 la_language_arch_info.
2296
2297 2004-07-28 Andrew Cagney <cagney@gnu.org>
2298
2299 * gdbtypes.h (struct builtin_type): Rename true_char to
2300 builtin_true_char.
2301 * gdbtypes.c (gdbtypes_post_init): Update.
2302 * c-lang.c (arch_info): New function.
2303 (enum c_primitive_types): New enum.
2304 (c_language_defn): Instead of string_char_type and
2305 primitive_type_vector set la_language_arch_info.
2306
2307 2004-07-28 Andrew Cagney <cagney@gnu.org>
2308
2309 * language.h (struct language_arch_info): Fix typo
2310 s/primative/primitive/.
2311 * gdbtypes.c (lookup_primitive_typename): Ditto.
2312 * language.c (language_lookup_primitive_type_by_name)
2313 (unknown_language_arch_info): Ditto.
2314
2315 2004-07-27 Andrew Cagney <cagney@gnu.org>
2316
2317 * defs.h (enum language): Add nr_languages.
2318 * language.h (struct language_arch_info): Define.
2319 (struct language_defn): Add la_language_arch_info.
2320 (language_lookup_primative_type_by_name): Declare.
2321 (language_string_char_type): Declare.
2322 * language.c (_initialize_language, language_gdbarch_post_init)
2323 (struct language_gdbarch, language_gdbarch_data): Implement
2324 per-architecture language information.
2325 (unknown_language_arch_info, language_string_char_type)
2326 (language_lookup_primative_type_by_name): New functions.
2327 (unknown_language_defn, auto_language_defn)
2328 (local_language_defn): Set la_language_arch_info to
2329 unknown_language_arch_info.
2330 (unknown_builtin_types): Delete.
2331 * gdbtypes.c (lookup_primitive_typename): Use
2332 language_lookup_primative_type_by_name.
2333 (create_string_type): Use language_string_char_type.
2334 * values.c (value_from_string): Use language_string_char_type.
2335 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
2336 * p-lang.c (pascal_language_defn): Ditto.
2337 * m2-lang.c (m2_language_defn): Ditto.
2338 * jv-lang.c (java_language_defn): Ditto.
2339 * objc-lang.c (objc_language_defn): Ditto.
2340 * f-lang.c (f_language_defn): Ditto.
2341 * c-lang.c (c_language_defn, cplus_language_defn)
2342 (asm_language_defn, minimal_language_defn): Ditto.
2343
2344 2004-07-27 Andrew Cagney <cagney@gnu.org>
2345
2346 * gdbtypes.h (struct builtin_type): Declare.
2347 (builtin_type): Declare.
2348 * d10v-tdep.c (d10v_register_type): Use builtin_type.
2349 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
2350 (gdbtypes_post_init): New function.
2351 (builtin_type): New function.
2352
2353 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
2354
2355 * remote-m32r-sdi.c: Fix breakpoint bug.
2356 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
2357 recv_char_data, recv_long_data): New functions to replace communication
2358 sequences.
2359
2360 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
2361
2362 Document PR threads/1650.
2363 * PROBLEMS (Threads): Document problem with many threads
2364
2365 2004-07-26 Andrew Cagney <cagney@gnu.org>
2366
2367 * gdb-mi.el: Move from here ...
2368 * mi/gdb-mi.el: ... to here.
2369
2370 2004-07-26 Andrew Cagney <cagney@gnu.org>
2371
2372 Problem reported by Ashley Pittman <ashley@quadrics.com>.
2373 * main.c (captured_main): When in batch mode always detach.
2374
2375 2004-07-26 Andrew Cagney <cagney@gnu.org>
2376
2377 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
2378 and h8300 as broken.
2379 * NEWS: END-OF-LIFE frame compatibility module.
2380 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
2381 specific comments.
2382
2383 2004-07-26 Andrew Cagney <cagney@gnu.org>
2384
2385 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
2386 * xcoffsolib.c (_initialize_xcoffsolib): Update.
2387 * wince.c (_initialize_wince): Update.
2388 * win32-nat.c (_initialize_win32_nat): Update.
2389 * varobj.c (_initialize_varobj): Update.
2390 * valops.c (_initialize_valops): Update.
2391 * utils.c (initialize_utils, initialize_utils): Update.
2392 * tui/tui-win.c (_initialize_tui_win): Update.
2393 * top.c (init_main): Update.
2394 * symfile.c (_initialize_symfile): Update.
2395 * source.c (_initialize_source): Update.
2396 * somsolib.c (_initialize_som_solib): Update.
2397 * solib.c (_initialize_solib): Update.
2398 * solib-frv.c (_initialize_frv_solib): Update.
2399 * serial.c (_initialize_serial): Update.
2400 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
2401 * remote.c (_initialize_remote, _initialize_remote): Update.
2402 * remote-vx.c (_initialize_vx): Update.
2403 * remote-utils.c (_initialize_sr_support): Update.
2404 * remote-sds.c (_initialize_remote_sds): Update.
2405 * remote-mips.c (_initialize_remote_mips): Update.
2406 * remote-e7000.c (_initialize_remote_e7000): Update.
2407 * proc-api.c (_initialize_proc_api): Update.
2408 * printcmd.c: Update.
2409 * parse.c (_initialize_parse): Update.
2410 * pa64solib.c (_initialize_pa64_solib): Update.
2411 * p-valprint.c (_initialize_pascal_valprint): Update.
2412 * monitor.c (_initialize_remote_monitors): Update.
2413 * mips-tdep.c (_initialize_mips_tdep): Update.
2414 * mcore-tdep.c (_initialize_mcore_tdep): Update.
2415 * maint.c (_initialize_maint_cmds): Update.
2416 * lin-lwp.c (_initialize_lin_lwp): Update.
2417 * language.c (_initialize_language): Update.
2418 * kod.c (_initialize_kod): Update.
2419 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
2420 * i386-tdep.c (_initialize_i386_tdep): Update.
2421 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
2422 * gdbarch.sh: Update.
2423 * gdbarch.c: Re-generate.
2424 * gdb-events.sh: Update.
2425 * gdb-events.c: Re-generate.
2426 * frame.c (_initialize_frame): Update.
2427 * exec.c: Update.
2428 * demangle.c (_initialize_demangler): Update.
2429 * dcache.c (_initialize_dcache): Update.
2430 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
2431 * cp-valprint.c (_initialize_cp_valprint): Update.
2432 * corefile.c (_initialize_core): Update.
2433 * command.h: Update.
2434 * cli/cli-decode.h: Update.
2435 * cli/cli-cmds.c (init_cli_cmds): Update.
2436 * charset.c (_initialize_charset): Update.
2437 * breakpoint.c (_initialize_breakpoint): Update.
2438 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
2439 * alpha-tdep.c (_initialize_alpha_tdep): Update.
2440 * aix-thread.c (_initialize_aix_thread): Update.
2441
2442 2004-07-24 Mark Kettenis <kettenis@gnu.org>
2443
2444 Partial fix for PR backtrace/1718.
2445 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
2446 that GCC migrates into the prolugue. Don't handle any
2447 instructions that clobber %ebx.
2448
2449 2004-07-23 Andrew Cagney <cagney@gnu.org>
2450
2451 Use regcache_raw_collect instead of regcache_collect.
2452 * regcache.h (regcache_collect): Delete declaration.
2453 * regcache.c (regcache_colect): Delete function.
2454 * win32-nat.c (do_child_store_inferior_registers): Update.
2455 * sol-thread.c (sol_thread_store_registers): Update.
2456 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
2457 * rs6000-nat.c (store_register): Update.
2458 * remote.c (store_register_using_P, remote_store_registers): Update.
2459 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
2460 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
2461 (fill_vrregset, store_spe_registers, fill_gregset)
2462 (fill_gregset): Update.
2463 * nto-procfs.c (procfs_store_registers): Update.
2464 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
2465 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
2466 * m68klinux-nat.c (store_register, fill_gregset): Update.
2467 * m68k-tdep.c (fill_gregset): Update.
2468 * infptrace.c (store_register): Update.
2469 * i386-nto-tdep.c (i386nto_regset_fill): Update.
2470 * i386-linux-nat.c (store_register, fill_gregset): Update.
2471 * hppa-linux-nat.c (fill_gregset): Update.
2472 * go32-nat.c (store_register): Update.
2473 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
2474 (store_fp_regs): Update.
2475 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
2476 (store_nwfpe_extended, store_fpregister, store_fpregs)
2477 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
2478 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
2479 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
2480 (store_regs_user_thread, store_regs_kernel_thread): Update.
2481
2482 2004-07-24 Mark Kettenis <kettenis@gnu.org>
2483
2484 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
2485 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
2486 encoding.
2487 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
2488 member of `struct comp_unit'.
2489
2490 2004-07-23 Andrew Cagney <cagney@gnu.org>
2491
2492 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
2493 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
2494
2495 2004-07-23 Martin Hunt <hunt@redhat.com>
2496 Kevin Buettner <kevinb@redhat.com>
2497
2498 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
2499 alignment was being added to the offset instead of multiplied.
2500
2501 2004-07-23 Mark Kettenis <kettenis@gnu.org>
2502
2503 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
2504 changed signal trampoline in OpenBSD 3.5-current.
2505
2506 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
2507 <machine/pcb.h> and "bsd-kvm.h".
2508 (sparc64nbsd_supply_pcb): New function.
2509 (_initialize_sparc64nbsd_nat): Renamed from
2510 _initialize_sparcnbsd_nat. Enable libkvm interface.
2511 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
2512 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
2513 (LOADLIBES): New variable.
2514
2515 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
2516
2517 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
2518
2519 2004-07-21 Andrew Cagney <cagney@gnu.org>
2520
2521 Use regcache_raw_supply instead of supply_register.
2522 * regcache.h (supply_register): Delete declaration.
2523 * regcache.c (supply_register): Delete function.
2524 * wince.c (do_child_fetch_inferior_registers): Update.
2525 * win32-nat.c (do_child_fetch_inferior_registers)
2526 (fetch_elf_core_registers): Update.
2527 * v850ice.c (v850ice_fetch_registers): Update.
2528 * thread-db.c (thread_db_store_registers): Update.
2529 * sol-thread.c (sol_thread_store_registers): Update.
2530 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
2531 * rs6000-nat.c (fetch_register): Update.
2532 * rom68k-rom.c (rom68k_supply_one_register): Update.
2533 * remote.c (remote_wait, remote_async_wait): Update.
2534 * remote-st.c (get_hex_regs): Update.
2535 * remote-sim.c (gdbsim_fetch_register): Update.
2536 * remote-sds.c (sds_fetch_registers): Update.
2537 * remote-rdp.c (remote_rdp_fetch_register): Update.
2538 * remote-rdi.c (arm_rdi_fetch_registers): Update.
2539 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
2540 * remote-m32r-sdi.c (m32r_fetch_register): Update.
2541 * remote-hms.c (init_hms_cmds): Update.
2542 * remote-est.c (init_est_cmds): Update.
2543 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
2544 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
2545 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
2546 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
2547 (fetch_register, supply_vrregset, supply_vrregset)
2548 (fetch_spe_registers): Update.
2549 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
2550 * monitor.c (monitor_supply_register): Update.
2551 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
2552 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
2553 (mipsnbsd_supply_fpreg): Update.
2554 * mips-nat.c (fetch_inferior_registers)
2555 (fetch_core_registers): Update.
2556 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
2557 (supply_fpregset, mips64_supply_gregset)
2558 (mips64_supply_fpregset): Update.
2559 * m68klinux-nat.c (fetch_register, supply_gregset)
2560 (supply_fpregset): Update.
2561 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
2562 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
2563 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
2564 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
2565 * infptrace.c (fetch_register): Update.
2566 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
2567 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
2568 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
2569 (gnu_fetch_registers, gnu_store_registers): Update.
2570 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
2571 * i386-linux-nat.c (fetch_register, supply_gregset)
2572 (dummy_sse_values): Update.
2573 * hpux-thread.c (hpux_thread_fetch_registers): Update.
2574 * hppah-nat.c (fetch_register): Update.
2575 * hppa-linux-nat.c (fetch_register, supply_gregset)
2576 (supply_fpregset): Update.
2577 * go32-nat.c (fetch_register): Update.
2578 * dve3900-rom.c (fetch_bitmapped_register)
2579 (_initialize_r3900_rom): Update.
2580 * cris-tdep.c (supply_gregset): Update.
2581 * abug-rom.c (init_abug_cmds): Update.
2582 * core-aout.c (fetch_core_registers): Update.
2583 * armnbsd-nat.c (supply_gregset, supply_fparegset)
2584 (fetch_register, fetch_fp_register): Update.
2585 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
2586 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
2587 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
2588 * alphanbsd-tdep.c (fetch_core_registers): Update.
2589 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
2590 * alpha-nat.c (fetch_osf_core_registers)
2591 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
2592 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
2593 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
2594
2595 2004-07-21 Andrew Cagney <cagney@gnu.org>
2596
2597 * PROBLEMS: Mention breakpoints/1702.
2598 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
2599 that is known to work.
2600
2601 2004-07-21 Andrew Cagney <cagney@gnu.org>
2602
2603 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
2604 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
2605 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
2606 (handle_inferior_event): Wrap call to deprecated
2607 IGNORE_HELPER_CALL in #ifdef.
2608 * config/mips/tm-nbsd.h: Update.
2609
2610 2004-07-20 Jim Blandy <jimb@redhat.com>
2611
2612 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
2613 bfd_mach_ppc has no segment registers.
2614
2615 Include PowerPC SPR numbers for special-purpose registers.
2616 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
2617 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
2618 new member in initializer.
2619 (S, S4, SN4, S64): New macros for defining special-purpose
2620 registers.
2621 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
2622 registers_403, registers_403GC, registers_505, registers_860,
2623 registers_601, registers_602, registers_603, registers_604,
2624 registers_750, registers_e500): Use them.
2625
2626 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
2627 replace references with expression used to initialize variable.
2628
2629 2004-07-20 Andrew Cagney <cagney@gnu.org>
2630
2631 * breakpoint.c (deprecated_read_memory_nobpt): Rename
2632 read_memory_nobpt.
2633 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
2634 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
2635 (s390_sigtramp_frame_sniffer): Update.
2636 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
2637 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
2638 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
2639 (mips32_fetch_instruction): Update.
2640 * mcore-tdep.c (get_insn): Update.
2641 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
2642 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
2643 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
2644 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2645 (i386_linux_rt_sigtramp_start): Update.
2646 * i386-linux-nat.c (child_resume): Update.
2647 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
2648 * hppa-linux-tdep.c (insns_match_pattern): Update.
2649 * gdbcore.h: Update.
2650 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
2651 * frame.c (safe_frame_unwind_memory): Update.
2652 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
2653 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
2654 * alpha-tdep.c (alpha_read_insn): Update.
2655
2656 2004-07-20 Andrew Cagney <cagney@gnu.org>
2657
2658 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
2659 containing both bytes and mask. Add "frame_type".
2660 * tramp-frame.c (tramp_frame_start): Update.
2661 (tramp_frame_prepend_unwinder): Update.
2662 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2663 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2664 (mips_linux_n64_rt_sigframe): Update. Make "static const".
2665 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
2666
2667 2004-07-19 Eli Zaretskii <eliz@gnu.org>
2668
2669 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
2670 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
2671 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
2672 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
2673
2674 2004-07-17 Andrew Cagney <cagney@gnu.org>
2675
2676 * NEWS, PROBLEMS: Update for 6.2.
2677
2678 * README: Update to 6.2.
2679
2680 * utils.c (xvasprintf): Call xstrvprintf.
2681
2682 * parse.c: Update copyright.
2683 (null_post_parser): Eliminate ARGSUSED.
2684
2685 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
2686 * tui/tui-win.c (tui_get_cmd_list): Ditto.
2687 * symfile-mem.c (_initialize_symfile_mem): Ditto.
2688
2689 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
2690 * ppc-linux-nat.c: Use "Linux kernel".
2691 * hppa-linux-tdep.c: Use GNU/Linux.
2692 * hppa-linux-nat.c: Use GNU/Linux.
2693 * dwarfread.c: Add [sic] to use of Linux.
2694
2695 * hppa-linux-nat.c: Do not include <string.h>.
2696 (supply_fpregset): Remove "register" attribute.
2697
2698 * solib-frv.c (fetch_loadmap): Use xfree, not free.
2699
2700 2004-07-17 Mark Kettenis <kettenis@gnu.org>
2701
2702 * configure.in: Define _MSE_INT_H on Solaris 9 too.
2703 * configure, config.in: Regenerated.
2704
2705 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
2706 "bsd-kvm.h".
2707 (vaxbsd_supply_pcb): New function.
2708 (_initialize_vaxbsd_nat): New prototype and function.
2709 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
2710 solib-sunos.o.
2711 (LOADLIBES): New variable.
2712 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2713 (LOADLIBES): New variable.
2714 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2715 (LOADLIBES): New variable.
2716 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2717
2718 2004-07-16 Andrew Cagney <cagney@gnu.org>
2719
2720 * defs.h (event_loop_p): Replace variable declaration with macro,
2721 always 1.
2722 * main.c (captured_main): Delete options "-async" and "-noasync".
2723 (event_loop_p): Delete variable.
2724 * NEWS: Mention that "-async" and "-noasync" were removed.
2725
2726 2004-07-16 Andrew Cagney <cagney@gnu.org>
2727
2728 * remote-m32r-sdi.c: Re-indent.
2729
2730 2004-07-16 Jim Blandy <jimb@redhat.com>
2731
2732 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
2733 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
2734 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
2735 missing MPC823 SPRs.
2736 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
2737 incorrect. (This was corrected in GDB's register name tables on
2738 2004-07-14.)
2739
2740 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
2741 should be "esasrr" ("ESA Save and Restore Register").
2742
2743 2004-07-16 Andrew Cagney <cagney@gnu.org>
2744
2745 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
2746 calls, no longer applicable. Update comments and rename parameter
2747 "step_frame" to "return_frame".
2748
2749 2004-07-16 Andrew Cagney <cagney@gnu.org>
2750
2751 * frame.c (fprint_field): New function.
2752 (fprint_frame_id): Use fprint_field.
2753
2754 2004-07-15 Joel Brobecker <brobecker@gnat.com>
2755
2756 * ada-lang.c (ada_language_defn): Remove commented out code.
2757
2758 2004-07-15 Jim Blandy <jimb@redhat.com>
2759
2760 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
2761 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
2762
2763 2004-07-14 Jim Blandy <jimb@redhat.com>
2764
2765 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
2766
2767 * ppc-tdep.h (ppc_num_vrs): New enum constant.
2768
2769 * ppc-tdep.h (ppc_num_srs): New enum constant.
2770
2771 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
2772 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
2773 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
2774 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
2775 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
2776 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
2777 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
2778 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
2779 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
2780 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
2781 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
2782 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
2783 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
2784 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
2785 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
2786 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
2787 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
2788 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
2789 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
2790 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
2791 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
2792 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
2793 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
2794 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
2795 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
2796 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
2797 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
2798 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
2799 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
2800 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
2801 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
2802 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
2803 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
2804 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
2805 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
2806 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
2807 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
2808 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
2809 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
2810 special-purpose register numbers.
2811
2812 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
2813 manual mentions 'md_twb', but many mention 'm_twb', and at that
2814 point in the register list.)
2815
2816 2004-07-14 Andrew Cagney <cagney@gnu.org>
2817
2818 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
2819 instead of "internal-error".
2820
2821 2004-07-10 Joel Brobecker <brobecker@gnat.com>
2822
2823 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
2824 that was inserted inside a comment.
2825
2826 2004-07-10 Randolph Chung <tausq@debian.org>
2827
2828 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
2829 function.
2830 (hppa_hpux_push_dummy_code): New function.
2831 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
2832 Set find_global_pointer method.
2833
2834 2004-07-10 Mark Kettenis <kettenis@gnu.org>
2835
2836 * NEWS: Mention BSD libkvm interface.
2837
2838 2004-07-10 Michael Snyder <msnyder@redhat.com>
2839
2840 * symfile.c (generic_load): Comment typo.
2841 * stack.c (get_selected_block): Ditto.
2842 * regcache.c (regcache_cooked_read): Ditto.
2843 * monitor.c (monitor_debug): Ditto.
2844 * mips-tdep.c (mips_read_pc): Ditto.
2845 * i386-linux-nat.c (ps_get_thread_area): Ditto.
2846 * gdb_mbuild.sh: Ditto.
2847 * gdbarch.sh: Ditto.
2848 * gdbarch.h: Ditto.
2849
2850 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
2851
2852 * ada-tasks.c: Remove file.
2853
2854 Remove ARI problems:
2855
2856 * ada-exp.y (write_var_from_sym): Reformat to put operator at
2857 beginning of line.
2858
2859 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
2860 Add comment.
2861 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
2862 (MIN_OF_SIZE): Rename min_of_size. Add comment.
2863 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
2864 (UMIN_OF_SIZE): Remove.
2865 (max_of_type): New function to replace orphan macro in gdbtypes.h
2866 (min_of_type): Ditto.
2867 (discrete_type_high_bound): Use max_of_type.
2868 (discrete_type_low_bound): Use min_of_type.
2869 (possible_user_operator_p): Move operator to beginning of line.
2870 (ada_is_variant_part): Ditto.
2871 (ensure_lval): Rewrite to avoid deprecated operations.
2872 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
2873 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
2874 (ada_enum_name): Remove assignments in 'if' statements.
2875 (build_ada_types): Add gdbarch parameter.
2876 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
2877 with gdbarch_data_register_post_init.
2878 Use add_setshow_uinteger_cmd rather than add_set_cmd and
2879 add_show_from_set.
2880
2881 * ada-valprint.c (inspect_it): Remove declaration.
2882 (repeat_count_threshold): Remove declaration.
2883 (ada_print_floating): Remove assignments in 'if' statements.
2884 (print_str): Move operator to beginning of line.
2885
2886 2004-07-08 Jim Blandy <jimb@redhat.com>
2887
2888 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
2889
2890 2004-07-08 Bob Rossi <bob@brasko.net>
2891
2892 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
2893
2894 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
2895
2896 * language.h (struct_language_defn): Add new function pointer:
2897 la_class_name_from_physname. Also add new prototype for
2898 language_class_name_from_physname.
2899 * language.c (language_class_name_from_physname): New function.
2900 (unk_lang_class_name): Ditto.
2901 (unknown_language_defn, auto_language_defn): Change
2902 to add unk_lang_class_name function pointer for
2903 la_class_name_from_physname.
2904 (local_language_defn): Ditto.
2905 * dwarf2read.c (guess_structure_name): Change to call
2906 language_class_name_from_physname.
2907 (determine_class_name): Ditto.
2908 * cp-support.c (class_name_from_physname): Renamed.
2909 (cp_class_name_from_physname): New name of function.
2910 * cp-support.h: Ditto.
2911 * c-lang.c (c_language_defn): Change to add NULL
2912 for class_name_from_physname function pointer.
2913 (cplus_language_defn): Change to add cp_class_name_from_physname.
2914 * jv-lang.c (java_class_name_physname): New function.
2915 (java_find_last_component): New static routine.
2916 (java_language_defn): Add java_class_name_from_physname pointer.
2917 * ada-lang.c (ada_language_defn): Change to add NULL
2918 for class_name_from_physname function pointer.
2919 * f-lang.c (f_language_defn): Ditto.
2920 * m2-lang.c (m2_language_defn): Ditto.
2921 * objc-lang.c (objc_language_defn): Ditto.
2922 * p-lang.c (pascal_language_defn): Ditto.
2923 * scm-lang.c (scm_language_defn): Ditto.
2924
2925 2004-07-06 Andrew Cagney <cagney@gnu.org>
2926
2927 Patch from Bart Robinson.
2928 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
2929 (O_LARGEFILE): Define to 0, if not defined.
2930
2931 2004-07-03 Mark Kettenis <kettenis@gnu.org>
2932
2933 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
2934 <machine/pcb.h> and "bsd-kvm.h".
2935 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
2936 (m68kbsd_supply_pcb): New function.
2937 (_initialize_m68kbsd_nat): New prototype and function.
2938 * Makefile.in (m68kbsd-nat.o): Update dependencies.
2939 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2940 (LOADLIBES): New variable.
2941 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2942 (LOADLIBES): New variable.
2943
2944 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
2945
2946 2004-07-03 Mark Kettenis <kettenis@gnu.org>
2947
2948 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
2949 <sys/proc.h>.
2950 (bsd_kvm_cmdlist): New variable.
2951 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
2952 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
2953 command and "kvm proc" command.
2954 * Makefile.in (bsd-kvm.o): Update dependencies.
2955
2956 2004-07-02 Mark Kettenis <kettenis@gnu.org>
2957
2958 * osabi.c: Update copyright year.
2959 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
2960 notes if EI_OSABI is set to ELFOSABI_HPUX.
2961
2962 2004-07-01 Michael Snyder <msnyder@redhat.com>
2963
2964 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
2965 that seems to have gotten whacked out of line.
2966
2967 2004-07-01 Mark Kettenis <kettenis@gnu.org>
2968
2969 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
2970 code.
2971
2972 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2973
2974 * ada-lang.c (decode_packed_array): Minor change to comment.
2975 (ada_value_slice_ptr): New function.
2976 (ada_value_slice): New function.
2977 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
2978 test. Don't know why it is there.
2979 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
2980 to avoid dereferencing huge arrays from which one is slicing.
2981 (empty_array): Correct to return an array rather than
2982 a subrange value.
2983 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
2984 on empty arrays (let'em use 'FIRST instead).
2985
2986 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2987
2988 Address complaints from gdb_ari.sh:
2989
2990 * ada-exp.y: Include gdb_string.h rather than string.h.
2991 (convert_char_literal): Reformat declaration.
2992 * ada-lang.h: Include opaque struct declaration for struct frame_info.
2993 * ada-lex.l: Change use of free to xfree (the macro would do so
2994 anyway, but this is harmless).
2995 Include gdb_string.h rather than string.h.
2996 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
2997
2998 * ada-lang.c (parse): Remove K&Rism in parameter list.
2999 (is_name_suffix): Correct Linux => GNU/Linux in comment.
3000
3001 2004-06-30 Mark Kettenis <kettenis@gnu.org>
3002
3003 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3004 dead code.
3005
3006 2004-06-30 Mark Kettenis <kettenis@gnu.org>
3007
3008 * alphabsd-nat.c: Update copyright year.
3009 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3010
3011 2004-06-29 Joel Brobecker <brobecker@gnat.com>
3012
3013 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
3014 (i386_cygwin_in_solib_call_trampoline): New function.
3015 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3016 and skip_trampoline_code gdbarch methods.
3017
3018 2004-06-29 Jim Blandy <jimb@redhat.com>
3019
3020 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3021 name actually used in the dependency lists.
3022
3023 2004-06-29 Randolph Chung <tausq@debian.org>
3024
3025 * NEWS (New native configurations): Mention GNU/Linux/hppa.
3026
3027 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
3028
3029 * win32-nat.c (child_pid_to_exec_file): New function.
3030 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
3031 functionality.
3032
3033 2004-06-28 Andrew Cagney <cagney@gnu.org>
3034
3035 * defs.h (xstrvprintf): Declare.
3036 * utils.c (xstrvprintf): New function.
3037 (internal_vproblem, xstrprintf, xasprintf)
3038 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3039 * serial.c (serial_printf): Ditto.
3040 * complaints.c (vcomplaint): Ditto.
3041
3042 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
3043
3044 * infcmd.c (attach_command): Move call to target_terminal_inferior
3045 behind loading symbol table.
3046
3047 2004-06-28 Andrew Cagney <cagney@gnu.org>
3048
3049 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3050 change - add back extern deprecated_ui_loop_hook declaration.
3051
3052 2004-06-28 Andrew Cagney <cagney@gnu.org>
3053
3054 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3055 xstrprintf.
3056 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3057 (c_value_of_variable): Ditto.
3058 * utils.c (internal_vproblem): Ditto.
3059 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3060 * remote.c (add_packet_config_cmd): Ditto.
3061 * remote-rdp.c (rdp_set_command_line): Ditto.
3062 * regcache.c (regcache_dump): Ditto.
3063 * frv-tdep.c (new_variant, new_variant): Ditto.
3064 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3065 (fbsd_find_memory_regions): Ditto.
3066 * breakpoint.c (create_thread_event_breakpoint)
3067 (create_breakpoints): Ditto.
3068 * aix-thread.c (aix_thread_pid_to_str): Ditto.
3069 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
3070
3071 2004-06-28 Joel Brobecker <brobecker@gnat.com>
3072
3073 * ada-lang.c: Re-indent file, with some massaging to help indent
3074 a bit when the result is otherwise really too ugly.
3075
3076 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3077
3078 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
3079 code_addr_p and special_addr_p to 'unsigned int'.
3080
3081 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3082
3083 * i386v4-nat.c: Update copyright year and tweak comment.
3084 (regmap): Remove trailing comma.
3085 (supply_gregset): Rename local variable i to regnum. Call
3086 regcache_raw_supply instead of supply_register.
3087 (fill_gregset): Rename argument regno to regnum. Call
3088 regcache_raw_collect instead of regcache_collect.
3089
3090 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3091
3092 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3093 and special_addr_p.
3094 (frame_id_build, frame_id_build_special): Update comments.
3095 (frame_id_build_wild): New prototype.
3096 * frame.c (frame_id_build, frame_id_build_special): Fill in new
3097 struct frame_id fields.
3098 (frame_id_build_wild): New function.
3099 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3100
3101 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3102
3103 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
3104 hppabsd-tdep.c.
3105
3106 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3107
3108 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
3109
3110 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3111
3112 * ada-lang.c: Re-indent file.
3113
3114 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3115
3116 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
3117 (no_symtab_msg): Likewise.
3118
3119 2004-06-27 Andreas Schwab <schwab@suse.de>
3120
3121 * source.c: Fix whitespace.
3122
3123 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3124
3125 * configure.in: Include <sys/param.h> for td_pcb test.
3126 * configure: Regenerated.
3127
3128 * i386nbsd-nat.c: New file.
3129 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
3130 i386obsd-nat.c and i386obsd-tdep.c.
3131 (i386nbsd-nat.o): New dependency.
3132 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
3133 bsd-kvm.o.
3134 (LOADLIBES): New variable.
3135 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
3136 bsd-kvm.o.
3137 (LOADLIBES): New variable.
3138
3139 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
3140 (LOADLIBES): New variable.
3141
3142 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
3143 fetching from BSD_KVM_PADDR. Correctly lookup address for
3144 "_thread0".
3145
3146 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
3147 "bsd-kvm.h".
3148 (amd64fbsd_supply_pcb): New funcion.
3149 (_initialize_amd64fbsd_nat): Enable libkvm interface.
3150
3151 2004-06-27 <david@streamline-computing.com>
3152
3153 Partial fix for PR cli/1056.
3154 * valarith.c: Check for zero in division and remainder
3155 evaluation.
3156
3157 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3158
3159 * i387-tdep.c: Remove excessive whitespace.
3160
3161 2004-06-26 Andrew Cagney <cagney@gnu.org>
3162
3163 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
3164 * gdb-events.h, gdb-events.c: Re-generate.
3165 * tui/tui-hooks.c (tui_install_hooks): Update.
3166 (tui_remove_hooks): Update.
3167 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
3168
3169 2004-06-26 Mark Kettenis <kettenis@gnu.org>
3170
3171 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
3172 (gregset_t, fpregset_t): Remove typedefs.
3173 (REG_OFFSET): Rename argument.
3174 (amd64bsd_r_reg_offset): Rename from reg_offset.
3175 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3176 Remove functions.
3177 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
3178 of reg_offset.
3179 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
3180
3181 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
3182
3183 * vax-tdep.c: Tweak comment.
3184
3185 Add OpenBSD/hppa support.
3186 * NEWS (New native configurations): Mention OpenBSD/hppa.
3187 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
3188 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
3189 files.
3190 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3191 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
3192 * configure.host: Add hppa*-*-openbsd*.
3193 * configure.tgt: Add hppa*-*-openbsd*.
3194
3195 2004-06-25 Andrew Cagney <cagney@gnu.org>
3196
3197 * defs.h (deprecated_ui_loop_hook): Deprecated.
3198 * wince.c (child_wait): Update.
3199 * win32-nat.c (child_wait): Update.
3200 * v850ice.c (v850ice_wait): Update.
3201 * top.c (deprecated_ui_loop_hook): Update.
3202 * serial.h: Update.
3203 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
3204 (do_unix_readchar): Update.
3205 * ser-tcp.c (net_open): Update.
3206 * remote-sim.c (gdb_os_poll_quit): Update.
3207 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
3208
3209 2004-06-24 Andrew Cagney <cagney@gnu.org>
3210
3211 * defs.h (deprecated_pre_add_symbol_hook)
3212 (deprecated_post_add_symbol_hook): Deprecated.
3213 * symfile.c (symbol_file_add_with_addrs_or_offsets)
3214 (symbol_file_add_with_addrs_or_offsets): Update references.
3215
3216 2004-06-24 Andrew Cagney <cagney@gnu.org>
3217
3218 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
3219 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
3220 * wince.c (ui_loop_hook): Delete extern declaration.
3221 * win32-nat.c (ui_loop_hook): Delete extern declaration..
3222 * v850ice.c (ui_loop_hook): Delete extern declaration..
3223 * ser-unix.c (ui_loop_hook): Delete extern declaration..
3224 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
3225 * remote-sim.c (ui_loop_hook): Delete extern declaration..
3226 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
3227 ui_loop_hook declaration.
3228
3229 2004-06-24 Andrew Cagney <cagney@gnu.org>
3230
3231 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
3232 entry_func_highpc fields.
3233 * objfiles.c (init_entry_point_info): Do not clear
3234 entry_func_lowpc and entry_func_highpc.
3235 (objfile_relocate): Do not relocate entry_func_lowpc and
3236 entry_func_highpc.
3237 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
3238 entry_func_highpc.
3239 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
3240 entry_func_highpc.
3241 * blockframe.c (legacy_frame_chain_valid): Replace tests against
3242 entry_func_lowpc and entry_func_highpc with call to
3243 inside_entry_func.
3244
3245 2004-06-24 Mark Kettenis <kettenis@gnu.org>
3246
3247 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
3248 quad-precision floating point arguments in registers.
3249
3250 2004-06-24 Mark Kettenis <kettenis@gnu.org>
3251
3252 From Michael Mueller <m.mueller99@kay-mueller.de>:
3253 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
3254 account.
3255
3256 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
3257
3258 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
3259 to -1.
3260 * breakpoint.c (bpstat_stop_status): Move check for ignoring
3261 untriggered watchpoints to a separate if clause. Update function
3262 comment regarding STOPPED_BY_WATCHPOINT argument.
3263
3264 2004-06-22 Jim Blandy <jimb@redhat.com>
3265
3266 * gdbarch.sh: Doc fix.
3267
3268 2004-06-21 Martin Hunt <hunt@redhat.com>
3269 Kevin Buettner <kevinb@redhat.com>
3270
3271 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
3272 * mips-tdep.h (MIPS_SP_REGNUM): Define.
3273 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
3274 to set_gdbarch_sp_regnum(). Use cooked register number.
3275 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
3276
3277 2004-06-21 Andrew Cagney <cagney@gnu.org>
3278
3279 * gdbarch.sh: When the macro field is empty, do not generate a
3280 macro definition. When the macro field is "=", generate the macro
3281 name from the upper-case function name.
3282 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
3283 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
3284 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
3285 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
3286 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
3287 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
3288 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
3289 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
3290 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
3291 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
3292 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
3293 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
3294 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
3295 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
3296 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
3297 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
3298 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
3299 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
3300 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
3301 (DEPRECATED_USE_STRUCT_CONVENTION)
3302 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3303 (DEPRECATED_FRAME_INIT_SAVED_REGS)
3304 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
3305 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
3306 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
3307 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
3308 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
3309 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
3310 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
3311 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
3312 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
3313 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
3314 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
3315 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
3316 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
3317 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
3318 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
3319 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
3320
3321 2004-06-21 Andrew Cagney <cagney@gnu.org>
3322
3323 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
3324 macro name, and the function rather than macro value. Only wrap
3325 macro print statements in #ifdef. Move format logic to where it
3326 is needed.
3327 * gdbarch.c: Re-generate.
3328
3329 * gdbarch.sh (read): Delete "print_p" and "description", add
3330 "garbage_at_eol". Check for non-empty garbage at end-of-line.
3331 Delete references to print_p.
3332 (TARGET_ARCHITECTURE): Delete print predicate.
3333 * gdbarch.c: Re-generate.
3334
3335 * gdbarch.sh: Check that multi-arch methods do not provide a
3336 macro.
3337 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
3338 (print_registers_info, print_float_info, print_vector_info)
3339 (adjust_breakpoint_address, remote_translate_xfer_address)
3340 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
3341 (address_class_type_flags_to_name, unwind_sp): Remove the macro
3342 name from the multi-arch definition.
3343
3344 2004-06-20 Andrew Cagney <cagney@gnu.org>
3345
3346 * gdbarch.sh: Sort by the function, instead of macro name.
3347 * gdbarch.c: Re-generate.
3348
3349 2004-06-20 Andrew Cagney <cagney@gnu.org>
3350
3351 * gdbarch.sh: Use the function, instead of macro name in
3352 errors and the log file.
3353 (return_value): Remove stray ":" in spec.
3354
3355 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
3356 * gdbarch.h, gdbarch.c: Re-generate.
3357 * Makefile.in (arch-utils.o): Update dependencies.
3358 * values.c (using_struct_return): Move code calling
3359 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
3360 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
3361 to legacy_return_value, simplify.
3362 * infcmd.c (print_return_value): Move code calling
3363 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
3364 to legacy_return_value, simplify.
3365 * infcall.c (call_function_by_hand): Move code calling
3366 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
3367 * arch-utils.c: Update copyright. Include "gdbcore.h".
3368 (legacy_return_value): New function.
3369 * arch-utils.h: Update copyright.
3370 (legacy_return_value): Declare.
3371
3372 2004-06-20 Andrew Cagney <cagney@gnu.org>
3373
3374 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
3375 * gdbarch.h, gdbarch.c: Re-generate.
3376 * values.c (using_struct_return): Update call.
3377 * mcore-tdep.c: Update comment.
3378 * infcall.c (call_function_by_hand): Update comment.
3379 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3380 * arch-utils.h (always_use_struct_convention): Update.
3381 * v850-tdep.c (v850_gdbarch_init): Update.
3382 * sh64-tdep.c (sh64_gdbarch_init): Update.
3383 * sh-tdep.c (sh_gdbarch_init): Update.
3384 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3385 * mips-tdep.c (mips_gdbarch_init): Update.
3386 * mcore-tdep.c (mcore_gdbarch_init): Update.
3387 * m32r-tdep.c (m32r_gdbarch_init): Update.
3388 * ia64-tdep.c (ia64_gdbarch_init): Update.
3389 * h8300-tdep.c (h8300_gdbarch_init): Update.
3390 * frv-tdep.c (frv_gdbarch_init): Update.
3391 * cris-tdep.c (cris_gdbarch_init): Update.
3392 * arm-tdep.c (arm_gdbarch_init): Update.
3393 * alpha-tdep.c (alpha_gdbarch_init): Update.
3394
3395 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
3396
3397 * PROBLEMS: Add more specific information, and a work-around,
3398 for PR gdb/1458.
3399
3400 2004-06-18 Andrew Cagney <cagney@gnu.org>
3401
3402 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
3403 * gdbarch.h, gdbarch.c: Re-generate.
3404 * ada-lang.c (ada_finish_decode_line_1): Update.
3405 * infrun.c (handle_inferior_event): Update.
3406 * infcall.c (find_function_addr): Update.
3407 * linespec.c (minsym_found): Update.
3408 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
3409 Update.
3410 * blockframe.c (legacy_frameless_look_for_prologue): Update.
3411 * cli/cli-cmds.c (disassemble_command): Update.
3412 * vax-tdep.c (vax_gdbarch_init): Update.
3413
3414 2004-06-18 Mark Kettenis <kettenis@gnu.org>
3415
3416 * i386-tdep.c (i386_collect_fpregset): Fix comment.
3417
3418 2004-06-17 Andrew Cagney <cagney@gnu.org>
3419
3420 GDB 6.1.1 released from the GDB 6.1 branch.
3421 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
3422 * PROBLEMS: Ditto.
3423
3424 2004-06-16 Daniel Jacobowitz <dan@debian.org>
3425
3426 PR gdb/1658
3427 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
3428 operation as a uleb128. Found by Michael Coulter.
3429
3430 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
3431
3432 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
3433 make it non-static.
3434 * ada-lang.h (task_control_block): declaration moved from ada-task.c
3435 to ada-lang.h; this is needed to be able to implement the kill command
3436 in multi-task mode.
3437 (task_ptid): Ditto.
3438 (task_entry): Ditto.
3439 (task_list): Ditto.
3440 (ada_build_task_list): Ditto.
3441
3442 * ada-lang.c: Conditionalize routines and data structures related
3443 to breakpoints, exceptions, completion, and symbol caching on
3444 GNAT_GDB, since these are not yet used in the submitted public sources.
3445 (ada_main_name): Editorial: Move definition out of exception-related
3446 code.
3447
3448 2004-06-15 Andrew Cagney <cagney@gnu.org>
3449
3450 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
3451 deprecated_pc_in_call_dummy.
3452
3453 2004-06-15 Alan Modra <amodra@bigpond.net.au>
3454
3455 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
3456 bfd_get_section_size_before_reloc or _raw_size.
3457 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3458 * dwarf2read.c (dwarf2_locate_sections): Likewise.
3459 (dwarf2_read_section): Likewise.
3460 * elfread.c (elf_locate_sections): Likewise.
3461 * gcore.c (derive_heap_segment): Likewise.
3462 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
3463 * remote-e7000.c (e7000_load): Likewise.
3464 * remote-m32r-sdi.c (m32r_load): Likewise.
3465 * remote-mips.c (mips_load_srec): Likewise.
3466 (pmon_load_fast): Likewise.
3467 * remote.c (compare_sections_command): Likewise.
3468 * symfile.c (add_section_size_callback): Likewise.
3469 (load_section_callback): Likewise.
3470 (pc_in_unmapped_range): Likewise.
3471 (pc_in_mapped_range): Likewise.
3472 (sections_overlap): Likewise.
3473 (list_overlays_command): Likewise.
3474 (simple_overlay_update_1): Likewise.
3475 (simple_overlay_update): Likewise.
3476 * tracepoint.c (remote_set_transparent_ranges): Likewise.
3477 * win32-nat.c (core_section_load_dll_symbols): Likewise.
3478
3479 2004-06-14 Randolph Chung <tausq@debian.org>
3480
3481 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
3482 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
3483 static.
3484 (hppa_hpux_inferior_created): New function.
3485 (hppa_hpux_init_abi): Register observer.
3486 * symfile.c (hp_cxx_exception_support_initialized)
3487 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
3488 (symbol_file_add_main_1, symbol_file_clear): Likewise.
3489
3490 2004-06-14 Randolph Chung <tausq@debian.org>
3491
3492 * MAINTAINERS (Write After Approval): Alphabetize my entry
3493 correctly.
3494
3495 2004-06-14 Andrew Cagney <cagney@gnu.org>
3496
3497 * MAINTAINERS (testsuite): List Michael Chastain as the lead
3498 testsuite maintainer.
3499
3500 2004-06-13 Andrew Cagney <cagney@gnu.org>
3501
3502 * infcmd.c (print_return_value): Fix logic, allow
3503 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
3504
3505 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
3506 defining any macros.
3507 * gdbarch.h: Re-generate.
3508
3509 * gdbarch.sh: Delete "level" attribute. Only check for a macro
3510 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
3511 * gdbarch.h: Re-generate.
3512
3513 * values.c (generic_use_struct_convention): Don't check gcc_p.
3514
3515 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3516 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
3517 * gdbarch.h, gdbarch.c: Regenerate.
3518 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
3519 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
3520 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3521 deprecated_max_register_raw_size and
3522 deprecated_max_register_virtual_size.
3523 * v850-tdep.c (v850_gdbarch_init): Ditto.
3524 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3525 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3526 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3527 * cris-tdep.c (cris_gdbarch_init): Ditto.
3528
3529 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
3530 * gdbarch.h, gdbarch.c: Re-generate.
3531 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
3532 (m68hc11_use_struct_convention): Delete function.
3533 (m68hc11_extract_struct_value_address): Delete function.
3534 (m68hc11_return_value): New function.
3535 (m68hc11_gdbarch_init): Instead of store_return_value,
3536 extract_return_value, return_value_on_stack,
3537 deprecated_extract_struct_value_address and use_struct_convention,
3538 set return_value.
3539 * values.c (using_struct_return): Do not call
3540 RETURN_VALUE_ON_STACK.
3541 * arch-utils.h (generic_return_value_on_stack_not): Delete
3542 declaration.
3543 * arch-utils.c (generic_return_value_on_stack_not): Delete
3544 function.
3545
3546 2004-06-12 Andrew Cagney <cagney@gnu.org>
3547
3548 * values.c (register_value_being_returned): Delete function.
3549 * infcmd.c (legacy_return_value): Delete function.
3550 * infcall.c (call_function_by_hand): Inline
3551 "register_value_being_returned", simplify.
3552 * values.c (using_struct_return): Update comment, refer to
3553 print_return_value instead of register_value_being_returned.
3554 * infcmd.c (print_return_value): Inline calls to
3555 register_value_being_returned and legacy_return_value. Simplify.
3556
3557 2004-06-11 Randolph Chung <tausq@debian.org>
3558
3559 * somread.c (som_symtab_read): Exclude gcc local symbols.
3560
3561 2004-06-11 Randolph Chung <tausq@debian.org>
3562
3563 * infrun.c (handle_inferior_event): Handle the case when a
3564 trampoline ends up in the runtime resolver, and if the trampoline
3565 has no name. Rearrange the code so that all the trampoline
3566 processing happens before other step-out-of-range handling.
3567
3568 2004-06-11 Martin Hunt <hunt@redhat.com>
3569
3570 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
3571 has no fpu.
3572
3573 2004-06-10 Andrew Cagney <cagney@gnu.org>
3574
3575 * blockframe.c (legacy_inside_entry_func): Delete.
3576 (legacy_frame_chain_valid): Inline call to
3577 legacy_inside_entry_func, simplify.
3578
3579 2004-06-10 Bob Rossi <bob@brasko.net>
3580
3581 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3582 * dwarf2read.c (partial_die_info): Add dirname field.
3583 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
3584 (read_partial_die): Save away DW_AT_comp_dir.
3585 * defs.h (symtab_to_filename): Removed.
3586 * source.c (find_and_open_source): Added.
3587 (open_source_file): Just calls find_and_open_source.
3588 (symtab_to_filename): Removed.
3589 (symtab_to_fullname, psymtab_to_fullname): Added.
3590 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
3591 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
3592 symtab_to_filename.
3593 * symtab.h (partial_symtab): Add dirname field.
3594 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3595 (mi_cmd_file_list_exec_source_file): Call new function
3596 symtab_to_fullname to find fullname.
3597 (mi_cmd_file_list_exec_source_files): Added.
3598 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
3599 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
3600
3601 2004-06-10 Andrew Cagney <cagney@gnu.org>
3602
3603 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
3604 to generic_use_struct_convention, the default value.
3605
3606 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
3607 of abort.
3608
3609 * ns32k-tdep.c (ns32k_push_arguments): New function.
3610 (ns32k_gdbarch_init): Set deprecated_push_arguments.
3611 * infcall.c (call_function_by_hand): Call error instead of
3612 legacy_push_arguments.
3613 * value.h (legacy_push_arguments): Delete declaration.
3614 * valops.c (legacy_push_arguments): Delete function.
3615 (value_push): Delete function.
3616
3617 2004-06-10 Brian Ford <ford@vss.fsi.com>
3618
3619 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
3620 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
3621 info.
3622 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
3623
3624 2004-06-10 Andrew Cagney <cagney@gnu.org>
3625
3626 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
3627 * gdbarch.h, gdbarch.c: Re-generate.
3628 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
3629 parameters.
3630 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
3631 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
3632 deprecated_pc_in_call_dummy instead of
3633 DEPRECATED_PC_IN_CALL_DUMMY.
3634 (arm_skip_prologue): Ditto.
3635 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
3636 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
3637 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
3638 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
3639 Ditto.
3640 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
3641 (sh64_init_extra_frame_info, sh64_get_saved_register)
3642 (sh64_pop_frame): Ditto.
3643 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
3644 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
3645 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
3646 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
3647 (h8300_pop_frame): Ditto.
3648 * blockframe.c (legacy_inside_entry_func)
3649 (legacy_frame_chain_valid): Ditto.
3650 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
3651 to deprecated_pc_in_call_dummy.
3652
3653 2004-06-09 Andrew Cagney <cagney@gnu.org>
3654
3655 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
3656 provide a default value.
3657 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
3658 * gdbarch.h, gdbarch.c: Re-generate.
3659 * arch-utils.c (generic_convert_register_p): Rename
3660 legacy_convert_register_p
3661 (legacy_register_to_value, legacy_value_to_register): Delete
3662 functions.
3663 * arch-utils.h (generic_convert_register_p): Rename
3664 legacy_convert_register_p.
3665 (legacy_register_to_value, legacy_value_to_register): Delete
3666 declarations.
3667
3668 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
3669 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
3670 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
3671 * gdbarch.h, gdbarch.c: Re-generate.
3672 * infcmd.c (default_print_registers_info): Simplify.
3673 * findvar.c (value_of_register): Simplify.
3674 * mi/mi-main.c (get_register): Simplify.
3675 * arch-utils.c (legacy_convert_register_p): Always return 0.
3676 (legacy_register_to_value, legacy_value_to_register): Always call
3677 internal_error.
3678
3679 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
3680 #ifdef CLEAR_INSN_CACHE code.
3681 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
3682 Delete #ifdef CLEAR_DEFERRED_STORES code.
3683
3684 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
3685
3686 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
3687 copyright.
3688 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
3689
3690 * config/mips/mipsv4.mh: Delete file.
3691
3692 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
3693 unreferenced macro.
3694 (hpread_adjust_stack_address): Delete declaration.
3695
3696 2004-06-08 Andrew Cagney <cagney@gnu.org>
3697
3698 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3699 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
3700 PTRACE_ATTACH / PTRACE_DETACH available call error.
3701 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
3702 * infttrace.c (update_thread_state_after_attach, attach, detach):
3703 Remove #ifdef wrappers.
3704 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
3705 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3706 * config/nm-bsd.h (ATTACH_DETACH): Delete.
3707 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
3708 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
3709 * config/nm-linux.h (ATTACH_DETACH): Delete.
3710 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
3711 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
3712 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
3713 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
3714 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
3715
3716 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
3717
3718 * configure.in: Set $configdir to the right OS specific value.
3719 Use value when setting $tcldir and $tkdir.
3720 * configure: Regenerate.
3721
3722 2004-06-06 Paul Brook <paul@codesourcery.com>
3723
3724 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
3725 records.
3726
3727 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
3728
3729 * ada-lang.c (lookup_symbol_in_language): New function to allow
3730 re-use of another language's symbol lookup code. (Placed here
3731 temporarily while Ada support is being integrated into the public
3732 tree).
3733 (restore_language): New auxiliary function for
3734 lookup_symbol_in_language.
3735 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
3736 temporarily while Ada support is being integrated into the public
3737 tree).
3738
3739 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
3740
3741 * Makefile.in (check//%): New.
3742
3743 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
3744 (mn10300_store_return_value): Rewrite.
3745 (mn10300_type_align): New.
3746 (mn10300_use_struct_convention): Rewrite.
3747 (mn10300_return_value): New, using all of the above.
3748 (mn10300_pop_frame_regular): Add saved_regs_size.
3749 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
3750
3751 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
3752 regs if PC is on movm.
3753
3754 2004-06-07 Jim Blandy <jimb@redhat.com>
3755
3756 Add native Linux support for the PowerPC E500.
3757 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
3758 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
3759 all architectures except the E500.
3760 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
3761 #definitions.
3762 (struct gdb_evrregset_t): New type.
3763 (have_ptrace_getsetevrregs): New variable.
3764 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
3765 fetch_spe_registers): New functions.
3766 (fetch_register): Call fetch_spe_register as appropriate.
3767 Assert that we're only passed raw register numbers.
3768 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
3769 Don't fetch gprs if they're pseudoregisters.
3770 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
3771 store_spe_registers): New functions.
3772 (store_register): Call store_spe_register as appropriate.
3773 Assert that we're only passed raw register numbers.
3774 (store_ppc_registers): Call store_spe_registers as appropriate.
3775 Don't store gprs if they're pseudoregisters.
3776
3777 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
3778
3779 * thread-db.c (thread_get_info_callback): Fill in the thread_info
3780 struct if one exists, even if we are dealing with a zombie thread.
3781
3782 2004-06-07 Andrew Cagney <cagney@gnu.org>
3783
3784 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
3785 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
3786 Rename PC_REQUIRES_RUN_BEFORE_USE.
3787 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
3788 #ifdef.
3789
3790 2004-06-07 Randolph Chung <tausq@debian.org>
3791
3792 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
3793 unwinding after sp has been saved to the stack but before the end
3794 of the prologue, and after the fp has been modified but before it has
3795 been saved to the stack.
3796 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
3797 Remove superfluous definitions.
3798 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
3799
3800 2004-06-07 Guy Martin <gmsoft@gentoo.org>
3801
3802 Committed by Randolph Chung.
3803 * hppa-linux-nat.c: Include the correct version of the header file
3804 depending on the kernel version.
3805
3806 2004-06-06 Randolph Chung <tausq@debian.org>
3807
3808 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
3809 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
3810
3811 2004-06-06 Randolph Chung <tausq@debian.org>
3812
3813 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3814 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
3815 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
3816 * hppa-tdep.c (hppa_symbol_address): New function definition.
3817 * hppa-tdep.h (hppa_symbol_address): New function declaration.
3818
3819 2004-06-06 Randolph Chung <tausq@debian.org>
3820
3821 * hppa-tdep.h (struct value): Forward declaration.
3822 (gdbarch_tdep): Define tdep find_global_pointer method.
3823 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
3824 associated with the function we are trying to call, and write it
3825 to the gp register.
3826 (hppa32_convert_from_funct_ptr_addr): New function.
3827 (hppa_find_global_pointer): New function.
3828 (hppa_gdbarch_init): Set default find_global_pointer method; set
3829 convert_from_func_ptr_addr method.
3830 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
3831 (hppa_linux_init_abi): Set find_global_pointer method.
3832 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
3833
3834 2004-06-06 Randolph Chung <tausq@debian.org>
3835
3836 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
3837 to struct value *function.
3838 * gdbarch.c: Regenerate.
3839 * gdbarch.h: Likewise.
3840 * infcall.c (call_function_by_hand): Pass entire function value
3841 to push_dummy_call.
3842
3843 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
3844 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
3845 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
3846 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
3847 * arm-tdep.c (arm_push_dummy_call): Likewise.
3848 * avr-tdep.c (avr_push_dummy_call): Likewise.
3849 * cris-tdep.c (cris_push_dummy_call): Likewise.
3850 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
3851 * frv-tdep.c (frv_push_dummy_call): Likewise.
3852 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3853 * hppa-tdep.c (hppa32_push_dummy_call)
3854 (hppa64_push_dummy_call): Likewise.
3855 * i386-tdep.c (i386_push_dummy_call): Likewise.
3856 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
3857 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
3858 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
3859 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
3860 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
3861 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3862 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
3863 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3864 (ppc64_sysv_abi_push_dummy_call): Likewise.
3865 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
3866 (ppc64_sysv_abi_push_dummy_call): Likewise.
3867 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3868 * s390-tdep.c (s390_push_dummy_call): Likewise.
3869 * sh-tdep.c (sh_push_dummy_call_fpu)
3870 (sh_push_dummy_call_nofpu): Likewise.
3871 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
3872 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
3873 * vax-tdep.c (vax_push_dummy_call): Likewise.
3874
3875 2004-06-04 Jim Blandy <jimb@redhat.com>
3876
3877 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
3878 gdbarch argument to register_size.
3879
3880 * rs6000-tdep.c (rs6000_store_return_value): Use
3881 regcache_cooked_write_part instead of
3882 deprecated_write_register_bytes.
3883 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
3884 not gdbarch_deprecated_store_return_value.
3885
3886 * ppc-linux-nat.c (store_register, fetch_register): Remove
3887 incorrect assertions. Simplify and generalize handling of
3888 transfers whose sizes are not multiples of, or less than, sizeof
3889 (PTRACE_XFER_TYPE).
3890
3891 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
3892
3893 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
3894 as a new thread event.
3895 * thread-db.c (thread_get_info_callback): If the thread is a
3896 zombie, return TD_THR_ZOMBIE.
3897 (thread_from_lwp): If thread_get_info_callback returns
3898 TD_THR_ZOMBIE, check if the thread is still on the thread list
3899 and return a -1 ptid if not found.
3900 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
3901 change the status to TARGET_WAITKIND_SPURIOUS.
3902
3903 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
3904
3905 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
3906 double values in little endian mode.
3907
3908 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
3909
3910 Committed by Andrew Cagney.
3911 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
3912 after last enum constant to avoid error from IBM C
3913 compiler.
3914
3915 2004-06-02 Jim Blandy <jimb@redhat.com>
3916
3917 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
3918 to 'message', and make it local to the lone block that uses it.
3919
3920 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
3921
3922 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
3923
3924 * ada-exp.y: Update copyright notice.
3925 Include block.h.
3926
3927 Replace REGNAME, LAST, INTERNAL_VARIABLE with
3928 SPECIAL_VARIABLE and unify the treatment of these cases.
3929
3930 (write_attribute_call0): Remove.
3931 (write_attribute_call1): Remove.
3932 (write_attribute_calln): Remove.
3933 (save_qualifier): Add missing semicolon.
3934
3935 (simple_exp,exp): Decomment (i.e., reactivate) code that was
3936 temporarily disabled to allow compilation with FSF head version.
3937
3938 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
3939 use individual operators (OP_*) for all attributes.
3940 (exp syntax): Use write_int.
3941 Handle STRING literals with OP_STRING.
3942 (variable syntax): Add limit parameter to calls to
3943 write_object_renaming.
3944
3945 (temp_parse_space): New definition to hold entities that need
3946 only live until the next call to ada_parse.
3947 (string_to_operator): Rename fields of ada_opname_table entries.
3948
3949 (write_var_from_sym): Record block.
3950 (write_var_from_name): Minor reformatting.
3951 Make sure saved name is properly encoded in the case of multiple
3952 matches, and set its language to Ada.
3953 Update comment.
3954 Modify to indicate unresolved name as symbol in the UNRESOLVED
3955 namespace, allocated in temp_parse_space.
3956 (write_int): New function.
3957
3958 (write_object_renaming): Add max_depth parameter to limit
3959 chains of object renamings.
3960 Handle case where root of renaming expression is itself a renaming.
3961 Use temp_parse_space for temporary name buffer.
3962 Handle renamings to dereferenced pointers (___XEXA suffices).
3963
3964 (ada_parse, yyerror, string_to_operator,
3965 write_var_from_sym, write_var_from_name, write_attribute_call0,
3966 write_attribute_call1, write_attribute_calln,
3967 write_object_renaming): Protoize.
3968
3969 (_initialize_ada_exp): New function.
3970
3971 * ada-lang.c: Update copyright notice.
3972 General terminology change to conform to GNAT compiler usage:
3973 mangle => encode, demangle => decode
3974 Include gdb_obstack.h.
3975 Include gdb_regex.h
3976 Include frame.h
3977 Include hashtab.h
3978 Include completer.h
3979 Include gdb_stat.h
3980 Include block.h
3981 Include infcall.h
3982
3983 (ADA_RETAIN_DOTS): Make sure this is defined.
3984 (TRUNCATION_TOWARDS_ZERO): Define.
3985 (struct string_vector): Define.
3986 (unresolved_names): Remove definition.
3987 (xnew_string_vector): New function.
3988 (string_vector_append): New function.
3989 (extract_string): Make static.
3990 (ada_unqualified_name): New function.
3991 (add_angle_brackets): New function.
3992 (function_name_from_pc): New function.
3993 (place_on_stack): Rename to ensure_lval.
3994
3995 (ensure_lval): Renamed from place_on_stack.
3996 Make identity on lvals.
3997 Update comment.
3998 (is_nonfunction): New interface.
3999 Only symbols in LOC_CONST class can be enumerals.
4000 (fill_in_ada_prototype): Remove; now independent of language.
4001 (add_defn_to_vec): Add obstack and symtab arguments.
4002 Use obstack to hold collected definitions.
4003 (num_defns_collected): New function.
4004 (defns_collected): New function.
4005 (ada_resolve_subexp): Rename to resolve_subexp.
4006 (resolve_subexp): Renamed from ada_resolve_subexp.
4007 (ada_op_name): Return non-const result.
4008 (ada_decoded_op_name): Renamed from ada_op_name, now used for
4009 other purposes.
4010
4011 (to_fixed_array_type): Add declaration.
4012 (coerce_unspec_val_to_type): Remove offset parameter.
4013 (find_sal_from_funcs_and_line): New interface.
4014 (find_line_in_linetable): Ditto.
4015
4016 (all_sals_for_line): Rename to ada_sals_for_line and make
4017 global.
4018 Add new parameter. When set, do not ask the user to choose the
4019 instance, but use the first one found instead.
4020 Use given line number in returned sals.
4021 Fix comment.
4022 Skip the prologue if funfirstline is set.
4023 Correct for memory leak when 0 lines found.
4024
4025 (value_pos_atr): Use pos_atr.
4026 (pos_atr): New function.
4027 (standard_lookup): Add block parameter.
4028
4029 (makeTimeStart): Remove declaration and uses.
4030 (makeTimeStop): Remove declaration and uses.
4031
4032 (ada_completer_word_break_characters): Allow for VMS.
4033 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4034 (raise_sym_name): New constant.
4035 (raise_unhandled_sym_name): New constant.
4036 (raise_assert_sym_name): New constant.
4037 (process_raise_exception_name): New constant.
4038 (longest_exception_template): New constant.
4039 (warning_limit): New variable to limit warnings during expression
4040 evaluation.
4041 (warnings_issued): New variable to keep track of warnings issued.
4042 (known_runtime_file_name_patterns): New constant.
4043 (known_auxiliary_function_name_patterns): New constant.
4044 (symbol_list_obstack): New variable.
4045
4046 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4047 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4048 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4049 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
4050 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
4051 ada_variant_discrim_name, field_alignment, dynamic_template_type,
4052 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
4053 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
4054 and strcmp.
4055
4056 (ada_get_field_index): New function.
4057 (lim_warning): New function.
4058 (ada_translate_error_message): New function.
4059 (MAX_OF_SIZE): New function.
4060 (MIN_OF_SIZE): New function.
4061 (UMAX_OF_SIZE): New function.
4062 (UMIN_OF_SIZE): New function.
4063 (discrete_type_high_bound): New function.
4064 (discrete_type_low_bound): New function.
4065 (base_type): New function.
4066 (do_command): Remove.
4067
4068 (ada_update_initial_language): Use language_ada, not language_unknown.
4069 (ada_encode): Renamed from ada_mangle.
4070 Obey ADA_RETAIN_DOTS.
4071 (ada_decode): Renamed from ada_demangle.
4072 Update coding conventions.
4073 (decoded_names_store): New hash table.
4074 (ada_decode_symbol): New function.
4075 (ada_la_decode): New function.
4076
4077 (modify_general_field): Correct computations of offset and bit
4078 position.
4079 (desc_base_type): Handle ref types, too.
4080 (ada_is_direct_array_type): New function.
4081
4082 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4083 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4084 (ada_is_bogus_array_descriptor,ada_type_of_array,
4085 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4086 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
4087 ada_is_array_descriptor_type.
4088
4089 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4090 (ada_is_packed_array_type): Handle pointers or
4091 references to packed arrays as well.
4092 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4093 (decode_packed_array_type): Search for the packed array type
4094 symbol in the currently selected block and associated
4095 superblocks too.
4096 Use lookup_symbol again.
4097
4098 (decode_packed_array): Handle pointers and references.
4099 Update call to coerce_unspec_val_to_type.
4100 (decode_packed_array_type,value_subscript_packed): Limit warnings.
4101 (ada_value_primitive_packed_val): Improve comment.
4102
4103 (ada_index_type): Substitute int type for "undefined".
4104 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
4105 ada_array_langth, ada_is_string_type): Use renamed
4106 ada_is_simple_array_type.
4107 (empty_array): New function.
4108
4109 (ada_resolve): Rename to resolve.
4110 (resolve): Make static.
4111 Call renamed resolve_subexp.
4112 Update comment.
4113 (ada_resolve_subexp): Rename to resolve_subexp.
4114 (resolve_subexp): Update comment.
4115 Decomment disabled code.
4116 Add LOC_COMPUTED* cases.
4117 Modify to use temporary struct symbols (marked as being in
4118 UNDEF_NAMESPACE) to indicate unresolved names, instead of
4119 OP_UNRESOLVED_VALUE.
4120 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
4121 Add OP_STRING case.
4122 Remove OP_ARRAY.
4123 Use SYMBOL_PRINT_NAME instead of ada_demangle.
4124 Use new ada_lookup_symbol_list interface.
4125 Use new ada_resolve_function interface.
4126 Remove OP_TYPE case.
4127
4128 (ada_args_match): Idiot proof against null actuals.
4129 Use intermediate variables to clarify.
4130 (ada_resolve_function): Update comment and interface.
4131 (mangled_ordered_before): Rename to encoded_ordered_before and
4132 update comment.
4133 (sort_choices): Update comment and interface.
4134 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
4135 (user_select_syms): New interface.
4136 Use new sort_choices interface.
4137 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
4138 (possible_user_operator_p): Idiot-proof against null values.
4139 (ada_simple_renamed_entity): Don't make cleanup; rely on
4140 caller to free result string.
4141 Remove const from return type.
4142 (make_array_descriptor): Rename uses of place_on_stack to
4143 ensure_lval.
4144 Make sure that arrays are on stack.
4145
4146 (HASH_SIZE): Define.
4147 (struct cache_entry): Define.
4148 (cache_space): Define.
4149 (cache): Define.
4150 (clear_ada_sym_cache): New function.
4151 (find_entry): New function.
4152 (lookup_cached_symbol): New function.
4153 (defn_vector_size): Define.
4154 (cache_symbol): New function.
4155 (defn_symbols): Remove.
4156
4157 (standard_lookup): Use lookup_symbol_in_language to get effect of
4158 C lookup.
4159 Cache results.
4160
4161 (symbol_completion_match): New function.
4162 (symbol_completion_add): New function.
4163 (ada_make_symbol_completion_list): New function.
4164
4165 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
4166 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
4167 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4168 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
4169
4170 (ada_lookup_simple_minsym): New function.
4171 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
4172
4173 (add_symbols_from_enclosing_procs): New interface.
4174 Conditionalize more helpfully.
4175 Don't bother if program isn't running.
4176 Use new interface to get_frame_block.
4177 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
4178
4179 (remove_extra_symbols): New interface.
4180 (xget_renaming_scope): New function.
4181 (is_package_name): New function.
4182 (renaming_is_visible): New function.
4183 (remove_out_of_scope_renamings): New function.
4184
4185 (ada_lookup_symbol_list): New interface.
4186 Properly reinitialize the symbol list obstack.
4187 Don't call add_symbols_from_enclosing_procs if we start from a
4188 static or global block.
4189 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
4190 add_symbols_from_enclosing_procs.
4191 Add symtab data to cached entries.
4192 Handle symbols prefixed with
4193 "standard__" specially; strip prefix and don't look in local symbols.
4194 Do not include out of scope renaming symbols in list of
4195 symbols returned.
4196 Add const to block parameter.
4197 Move check for non-local, non-global symbols earlier.
4198 Remove timing stuff.
4199 (ada_lookup_symbol): New interface.
4200 Find symtab as well.
4201 (ada_lookup_symbol_nonlocal): New function.
4202
4203 (is_name_suffix): Enhance suffix detection to recognize
4204 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
4205 (is_dot_digits_suffix): New function.
4206 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
4207
4208 (ada_add_block_symbols): New interface. Use obstack to return results
4209 in a vector of struct ada_symbol_infos. Add symtab argument.
4210 Use new interface to add_defn_to_vec.
4211 Remove calls to fill_in_ada_prototype.
4212 Use BLOCK_BUCKETS, BLOCK_BUCKET.
4213
4214 (ada_finish_decode_line_1): Add const qualification to local to fix
4215 warning.
4216 Start looking in static block for functions to avoid attempts
4217 to search frame chain for up-level variables.
4218 Adapt to new ada_sals_for_line interface.
4219 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
4220 Handle quoting of the function name inside the spec string.
4221 Skip prologue when funfirstline is set and update the
4222 function documentation to that effect.
4223
4224 (debug_print_lines, debug_print_block, debug_print_blocks,
4225 debug_print_symtab): Remove.
4226
4227 (ada_main_name): New function.
4228 (ada_exception_breakpoint_type): New function.
4229 (is_known_support_routine): New function.
4230 (ada_find_printable_frame): Renamed from find_printable_frame and made
4231 global.
4232 Remove level parameter.
4233 Use new interface to select_frame.
4234
4235 (begin_command): Remove.
4236 (ada_adjust_exception_stop): New function.
4237 (ada_print_exception_stop): New function.
4238 (exception_name_from_cond): New function.
4239 (ada_report_exception_break): Replace disabled code with
4240 conditionalization on GNAT_GDB.
4241 Get the exception name from the condition string.
4242 Remove and move functionality into new functions
4243 ada_print_exception_breakpoint_task and
4244 ada_print_exception_breakpoint_nontask.
4245 (error_breakpoint_runtime_sym_not_found): New function.
4246 (is_runtime_sym_defined): New function.
4247 (ada_breakpoint_rewrite): Uncomment suppressed code.
4248 Use symbolic error-message and runtime-symbol names.
4249 Surround runtime symbol names in quotes.
4250 Allow non-specific breakpoints on exceptions and assertions before
4251 program starts.
4252
4253 (ada_is_tagged_type): Add parameter.
4254 (ada_is_tag_type): New function.
4255 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
4256 (ada_variant_discrim_type): Ditto.
4257 (value_tag_from_contents_and_address): New function.
4258 (type_from_tag): New function.
4259 (struct tag_args): New structure used to communicate with
4260 ada_tag_name_1.
4261 (ada_tag_name_1): New function.
4262 (ada_tag_name): New function.
4263
4264 (ada_scan_number): Update comment.
4265 (find_struct_field): New function.
4266 (ada_search_struct_field): Make static.
4267 (ada_value_struct_elt): New version that returns references when
4268 given pointers or references to structs.
4269 (ada_lookup_struct_elt_type): Add 'refok' parameter.
4270 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
4271 interface.
4272 (ada_value_ind): Use new ada_to_fixed_value interface.
4273 (ada_coerce_ref): Ditto.
4274 (field_offset): Remove.
4275
4276 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
4277 (ada_find_renaming_symbol): New function.
4278 (ada_prefer_type): Prefer named types over unnamed ones.
4279 (variant_field_index): New function.
4280 (contains_variant_part): Removed: subsumed by variant_field_index.
4281 (ada_template_to_fixed_record_type): New function, mostly from
4282 template_to_fixed_record_type.
4283 (template_to_fixed_record_type):
4284 Do not scan the type fields beyond the last one; prevents a
4285 potential SEGV.
4286 Handle case where variant field is listed BEFORE discriminant it
4287 depends on.
4288 Fix calculation of record length when bit length is
4289 not evenly divisible by char length.
4290 Move code to ada_template_to_fixed_record_type and call it.
4291
4292 (template_to_static_fixed_type): Revise comment.
4293 Modify to work on ordinary record types as well as templates,
4294 so as to handle fields that use ___XVE or ___XVU encodings.
4295 (to_record_with_fixed_variant_part): Fill out comment.
4296 Initialize C++ stuff in right type.
4297 Allow case where DVAL is null.
4298 Handle case where variant field is not last.
4299 Fix typo concerning record length.
4300 (to_fixed_record_type): Decomment disabled code.
4301 (to_fixed_record_type): Use variant_field_index instead of
4302 contains_variant_part.
4303 (to_fixed_variant_branch_type): Ditto.
4304 (to_fixed_array_type): Decomment disabled code.
4305 (ada_to_fixed_type): Convert tagged types to the specific type.
4306 Deactivate the size-check for array types in order to avoid
4307 some false size alarms.
4308 (to_static_fixed_type): Decomment disabled code.
4309 Modify to call template_to_static_fixed_type
4310 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
4311 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
4312 Remove valaddr argument, as it is never really used.
4313 (ada_to_fixed_value): Change interface to act on single struct value*
4314 operand.
4315 (adjust_pc_past_prologue): New function.
4316 (ada_attribute_name): Modify to take enum exp_opcode argument.
4317
4318 (ada_enum_name): Recognize new homonym-distinguishing convention.
4319 Adjust local variable's type to remove compiler warning.
4320 Fix a small problem in the part that unqualifies the enumeration name.
4321 (ada_value_binop): New function.
4322 (ada_value_equal): New function.
4323
4324 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
4325 Don't give error message when not doing normal evaluation
4326 and a tagged type doesn't seem to contain a structure member.
4327 Give error message for packed arrays.
4328 For indexing arrays, handle pointers to packed arrays correctly.
4329 Handle case of 'first and 'last attributes of bare integral type
4330 without encoded subtype info.
4331 Remove some unnecessary casts.
4332 Fix uninitialized value of type in computing 'first, 'last, or 'length
4333 of array object.
4334 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
4335 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
4336 calls.
4337 Attributes are now exp_opcode values.
4338 Correct treatment of 'modulus.
4339 Better error message for taking 'length of wrong kind of type;
4340 improve comment.
4341 Change EVAL_NORMAL to noside for consistency.
4342 Use ada_value_binop for DIV, MOD, REM.
4343 Make special case out of array of length 0, since an argument
4344 of 0 upsets some platforms' malloc.
4345 Use OP_STRING instead of OP_ARRAY.
4346 For slice, add check that we have an array type before extracting
4347 a slice out of it. Avoids a SEGV.
4348 When evaluating an array slice, if the array type is a reference to
4349 an aligner type, then replace the aligner type by the actual type.
4350 Decomment disabled code.
4351 Remove some dead code.
4352 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
4353 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
4354 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
4355 and UNOP_MBR to UNOP_IN_RANGE.
4356 If an array type has a parallel ___XVE type, then use it.
4357 Turn arrays into pointers for lvalue arrays.
4358 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
4359 bounds error and handle 0-length slices.
4360 Use lim_warning.
4361 When selecting fields, apply ada_to_fixed_value (because the fields
4362 might have ___XVU or ___XVE encodings even if not dynamic.)
4363 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
4364 (ada_is_system_address_type): New function.
4365
4366 (get_var_value): Use new interface to ada_lookup_symbol_list.
4367 (get_int_var_value): New interface.
4368 (to_fixed_range_type): Allow unknown bound, with warning.
4369 (ada_is_modular_type): Decomment disabled code.
4370 (ADA_OPERATORS): New definition.
4371 (ada_operator_length): New function.
4372 (ada_expr_op_name): New function.
4373 (ada_forward_operator_length): New function.
4374 (ada_dump_subexp_body): New function.
4375 (ada_print_subexp): New function.
4376 (ada_exp_descriptor): New constant.
4377 (ada_op_print_tab): Add 'size. Remove FIXMEs.
4378 (ada_language_defn): Add ada_exp_descriptor entry.
4379 Change ada_parse => parse.
4380 Add post-parser entry.
4381 Use ada-specific non-local symbol lookup.
4382 Don't use C-style arrays.
4383 String lower-bound is 1.
4384 Decomment disabled code.
4385 (parse): New function.
4386 New fields ada_translate_error_message, ada_lookup_symbol,
4387 ada_lookup_minimal_symbol.
4388
4389 * ada-lang.h: Update copyright dates.
4390 Replace the mangle/demangle terminology throughout by the
4391 more appropriate encode/decode one.
4392 Include breakpoint.h.
4393 Forward declare struct partial_symbol, struct block.
4394 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
4395 (EXTRACT_ADDRESS): Remove.
4396 (EXTRACT_INT): Remove.
4397 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
4398 (MAX_ENCLOSING_FRAME_LEVELS): Define.
4399 (MAX_RENAMING_CHAIN_LENGTH): Define.
4400 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
4401
4402 (enum task_states): Remove.
4403 ada_task_states: Remove.
4404 (fat_string): Remove.
4405 (struct entry_call): Remove.
4406 (struct task_fields): Remove.
4407 (struct task_entry): Remove.
4408
4409 (struct ada_symbol_info): Define.
4410 (enum ada_attribute): Remove.
4411 (enum ada_operator): Define.
4412
4413 (ada_get_field_index): Declare.
4414 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
4415 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4416 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4417 (ada_lookup_symbol_list): New interface.
4418 (ada_decode_symbol): Declare.
4419 (ada_decode): Declare.
4420 (ada_lookup_symbol): New interface.
4421 (ada_update_initial_language): Declare.
4422 (ada_lookup_simple_minsym): Declare.
4423 (user_select_syms): New interface.
4424 (ada_sals_for_line): Declare.
4425 (ada_is_tagged_type): New interface.
4426 (ada_tag_name): Declare.
4427 (ada_lookup_struct_elt_type): Remove declaration.
4428 (ada_search_struct_field): Remove declaration.
4429 (ada_attribute_name): New interface.
4430 (ada_is_system_address_type): Declare.
4431 (ada_to_fixed_value): Remove declaration.
4432 (ada_template_to_fixed_record_type_1): Declare.
4433 (get_int_var_value): New interface.
4434 (ada_find_any_symbol): Declare.
4435 (ada_find_renaming_symbol): Declare.
4436 (ada_mangle): Rename to ada_encode.
4437 (ada_simple_renamed_entity): Remove const.
4438 (ada_main_name): Declare.
4439 (get_current_task): Rename to ada_get_current_task.
4440 (get_entry_number): Remove declaration.
4441 (ada_report_exception_break): Remove declaration.
4442 (ada_print_exception_breakpoint_nontask): Declare.
4443 (ada_print_exception_breakpoint_task): Declare.
4444 (ada_find_printable_frame): Declare.
4445
4446 * ada-lex.l: Update copyright notices.
4447 Use xmalloc and xfree instead of malloc and free.
4448 Use new interface to name_lookup.
4449 Use new interface to
4450 ada_mangle=>ada_encode.
4451 Redo handling of '$...' variable to parallel current treatment
4452 in c-exp.y.
4453 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
4454 digit_to_int, strtoulst, processInt, processReal, processId,
4455 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
4456 yywrap): Protoize.
4457
4458 (processInt): Use cast to remove harmless warning.
4459 (processReal): Modify to get rid of compiler warning on scan formats.
4460
4461 (processId): Replace xmalloc with obstack_alloc for name and remove
4462 call to ada_name_string_cleanup.
4463 Remove obsolete disabled code.
4464 (name_lookup): Ditto.
4465 New interface.
4466 Use obsavestring on temp_parse_space instead of savestring
4467 on name, and remove call to ada_name_string_cleanup.
4468 Free string returned from ada_simple_renamed_entity.
4469 Use new interface to ada_lookup_symbol_list.
4470 Decomment disabled code.
4471 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
4472 not types.
4473 When a type name lookup succeeds as a result of
4474 lookup_primitive_typename, check for regular type entry that has not
4475 yet been read in.
4476 Limit length of chain of renamed symbols we are willing to follow.
4477 Do not break names beginning with "standard__" into segments.
4478 (block_lookup): Use new interface to ada_lookup_symbol_list.
4479
4480 * ada-typeprint.c: Update copyright notice.
4481 (demangled_type_name): Rename to decoded_type_name.
4482 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
4483 (print_range_bound): Correct handling of negative
4484 bounds that make the index type looked unsigned under STABS.
4485 (print_dynamic_range_bound): Use new interface to get_int_var_value.
4486 (print_range_type_named): Use the builtin int type if no type
4487 corresponding to the given type name could be found.
4488 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
4489 Add some bullet-proofing.
4490 (print_variant_clauses): Allow for variant branches with ___XVU
4491 encodings that are not dynamic fields.
4492 Use new interface to ada_is_tagged_type.
4493 (print_record_type): Allow for fields with ___XVE encodings that
4494 are not dynamic fields.
4495 Use new interface to ada_is_tagged_type.
4496 (ada_print_type): ada_is_array_descriptor =>
4497 ada_is_array_descriptor_type.
4498
4499 * ada-valprint.c: Update copyright notice.
4500 Include gdb_string.h
4501 Include infcall.h
4502 (ui_memcpy): New function.
4503 (ada_print_floating): New function.
4504 (ada_print_str): Order arguments correctly.
4505 Correct handling of empty arrays and arrays of 0-length items.
4506 ada_is_array_descriptor => ada_is_array_descriptor_type
4507 Print values of type System.Address in hexadecimal format.
4508 Use ada_print_floating to print floating-point numbers in Ada format.
4509 Print class tag values with type names.
4510 No longer print the address of reference values. Avoids
4511 a potential confusion.
4512 (ada_value_print): Stop printing the object type for reference
4513 values, but preserve that behavior for access types. Avoids
4514 a potential confusion.
4515 Simplify one conditional expression, as the first part is now
4516 necessarily true.
4517 ada_is_array_descriptor => ada_is_array_descriptor_type
4518 Add check for arrays for null records, and print them by hand.
4519
4520 2004-06-01 Jim Blandy <jimb@redhat.com>
4521
4522 * ppc-tdep.h: Delete unused 'regoff' member.
4523 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
4524
4525 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
4526
4527 Fix PR symtab/1661.
4528 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
4529 (hpread_read_struct_type): Likewise.
4530
4531 2004-06-01 Andrew Cagney <cagney@gnu.org>
4532
4533 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
4534 instead of xasprintf.
4535 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
4536 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
4537 (mi_cmd_data_list_register_names)
4538 (mi_cmd_data_list_changed_registers)
4539 (mi_cmd_data_list_register_values)
4540 (get_register, mi_cmd_data_write_register_values)
4541 (mi_cmd_data_write_register_values)
4542 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
4543 (mi_cmd_target_download, mi_cmd_target_select)
4544 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
4545 (mi_execute_cli_command, mi_execute_async_cli_command)
4546 (mi_execute_async_cli_command): Ditto.
4547 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
4548 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
4549
4550 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
4551 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
4552 error_last_message instead of mi_error_last_message.
4553 * mi/mi-main.c (mi_error_last_message): Delete function.
4554
4555 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
4556 "invalid number of columns" error. Delete redundant "out of
4557 memory" check.
4558
4559 2004-05-31 Mark Kettenis <kettenis@gnu.org>
4560
4561 * i386bsd-nat.c: Don't include <sys/procfs.h>.
4562 (gregset_t, fpregset_t): Remove typedefs.
4563 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
4564 (REG_OFFSET): Rename argument.
4565 (i386bsd_r_reg_offset): Rename from reg_offset.
4566 (REG_ADDR): Remove macro.
4567 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
4568 functions.
4569 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
4570 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
4571 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
4572 instead of supply_gregset.
4573 (store_inferior_registers): Use `struct reg' and `struct fpreg'
4574 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
4575 instead of fill_gregset.
4576 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
4577
4578 * i386bsd-nat.c: Don't include "gregset.h".
4579 (supply_gregset, fill_gregset): Make static.
4580 (supply_fpregset, fill_fpregset): Remove.
4581 * Makefile.in (i386bsd-nat.o): Update dependencies.
4582
4583 2004-05-30 Mark Kettenis <kettenis@gnu.org>
4584
4585 * fbsd-proc.c: Include "regcache.h", "regset.h" and
4586 "gdb_assert.h". Con't include "gregset.h".
4587 (fbsd_make_corefile_notes): Use regset-based core file support
4588 instead off fill_gregset and fill_fpregset.
4589 * Makefile.in (fbsd-proc.o): Update dependencies.
4590
4591 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
4592 instructions.
4593 (m88k_frame_prev_register): Simplify code a bit.
4594
4595 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
4596 (amd64_collect_fpregset): New function.
4597 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
4598
4599 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
4600
4601 * i386-tdep.c (i386_supply_gregset): Adjust comment.
4602 (i386_collect_gregset): New function.
4603 (i386_supply_fpregset): Adjust comment.
4604 (i386_collect_fpregset): New function.
4605 (i386_regset_from_core_section): Use i386_collect_gregset and
4606 i386_collect_fpregset.
4607
4608 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
4609 handle VALUEP being null.
4610
4611 * regset.h (collect_regset_ftype): Unconstify fourth argument.
4612
4613 2004-05-29 Mark Kettenis <kettenis@gnu.org>
4614
4615 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
4616
4617 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
4618 assembler in OpenBSD 3.5-current.
4619 (amd64obsd_sigcontext_addr): Likewise.
4620
4621 2004-05-28 Jim Blandy <jimb@redhat.com>
4622
4623 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
4624 register set, so our regcache isn't declared "legacy" and our E500
4625 pseudoregister read and write functions aren't ignored.
4626 (rs6000_register_byte, rs6000_register_raw_size,
4627 rs6000_register_virtual_type, rs6000_register_convertible,
4628 rs6000_register_convert_to_virtual,
4629 rs6000_register_convert_to_raw): Deleted.
4630 (rs6000_register_type, rs6000_convert_register_p,
4631 rs6000_register_to_value, rs6000_value_to_register): New
4632 functions.
4633 (rs6000_gdbarch_init): Don't register
4634 gdbarch_deprecated_register_size,
4635 gdbarch_deprecated_register_bytes,
4636 gdbarch_deprecated_register_byte,
4637 gdbarch_deprecated_register_raw_size,
4638 gdbarch_deprecated_register_virtual_type,
4639 gdbarch_deprecated_register_convertible,
4640 gdbarch_deprecated_register_convert_to_virtual, or
4641 gdbarch_deprecated_register_convert_to_raw methods. Instead,
4642 register gdbarch_register_type, gdbarch_convert_register_p,
4643 gdbarch_register_to_value, and gdbarch_value_to_register methods.
4644
4645 2004-05-26 Jim Blandy <jimb@redhat.com>
4646
4647 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
4648 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
4649 functions, updated to match the register numberings used in GCC.
4650 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
4651 rs6000_dwarf2_reg_to_regnum as register number conversions
4652 functions for STABS and Dwarf2.
4653
4654 2004-05-26 Randolph Chung <tausq@debian.org>
4655
4656 * infttrace.h (target_waitkind): Forward declare type instead of pulling
4657 in header file.
4658
4659 2004-05-25 Joel Brobecker <brobecker@gnat.com>
4660
4661 * NEWS: Document new "start" command.
4662
4663 2004-05-25 Randolph Chung <tausq@debian.org>
4664
4665 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
4666 hppa-linux.
4667
4668 2004-05-25 Randolph Chung <tausq@debian.org>
4669
4670 * hppa-hpux-tdep.c (offsetof): Define.
4671 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
4672 (hppa32_hpux_frame_base_before_sigtramp)
4673 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
4674 (hppa64_hpux_frame_saved_pc_in_sigtramp)
4675 (hppa64_hpux_frame_base_before_sigtramp)
4676 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
4677 functions.
4678 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
4679 (hppa_hpux_sigtramp_frame_unwind_cache)
4680 (hppa_hpux_sigtramp_frame_this_id)
4681 (hppa_hpux_sigtramp_frame_prev_register)
4682 (hppa_hpux_sigtramp_frame_unwind)
4683 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
4684 (hppa_hpux_init_abi): Register sigtramp unwinder.
4685 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
4686
4687 2004-05-25 Randolph Chung <tausq@debian.org>
4688
4689 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
4690 and multiple stack unwinds.
4691 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
4692
4693 2004-05-25 Andrew Cagney <cagney@gnu.org>
4694
4695 * symfile.h (symbol_file_add_from_memory): Delete declaration.
4696 * symfile-mem.h: Delete file.
4697 * symfile-mem.c: Do not include "symfile-mem.h".
4698 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
4699 "struct bfd_section". When an error do not bother returning NULL.
4700 (add_symbol_file_from_memory_command): Use "struct bfd" and
4701 "struct bfd_section".
4702 * Makefile.in (symfile_mem_h): Delete.
4703 (symfile-mem.o): Update dependencies.
4704
4705 2004-05-25 Nick Roberts <nickrob@gnu.org>
4706
4707 * gdb-mi.el: New file.
4708
4709 2004-05-25 Andrew Cagney <cagney@gnu.org>
4710
4711 * inftarg.c: Include "observer.h".
4712 (child_attach, child_create_inferior): Notify inferior_created.
4713 * corelow.c: Include "observer.h".
4714 (core_open): Notify inferior_created.
4715 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
4716
4717 2004-05-25 Andrew Cagney <cagney@gnu.org>
4718
4719 * target.h (struct target_ops): Add from_tty to
4720 to_create_inferior.
4721 (target_create_inferior, find_default_create_inferior): Update.
4722 * infcmd.c (run_command): Update.
4723 * wince.c (child_create_inferior): Update.
4724 * win32-nat.c (child_create_inferior): Update.
4725 * uw-thread.c (uw_thread_create_inferior): Update.
4726 * thread-db.c (thread_db_create_inferior): Update.
4727 * target.c (debug_to_create_inferior)
4728 (find_default_create_inferior): Update.
4729 (maybe_kill_then_create_inferior): Update.
4730 * sol-thread.c (sol_thread_create_inferior): Update.
4731 * remote.c (extended_remote_async_create_inferior)
4732 (extended_remote_create_inferior): Update.
4733 * remote-vx.c (vx_create_inferior): Update.
4734 * remote-st.c (st2000_create_inferior): Update.
4735 * remote-sim.c (gdbsim_create_inferior): Update.
4736 * remote-sds.c (sds_create_inferior): Update.
4737 * remote-rdp.c (remote_rdp_create_inferior): Update.
4738 * remote-rdi.c (arm_rdi_create_inferior): Update.
4739 * remote-m32r-sdi.c (m32r_create_inferior): Update.
4740 * remote-e7000.c (e7000_create_inferior): Update.
4741 * procfs.c (procfs_create_inferior): Update.
4742 * ocd.c (ocd_create_inferior): Update.
4743 * ocd.h (ocd_create_inferior): Update.
4744 * nto-procfs.c (procfs_create_inferior): Update.
4745 * monitor.c (monitor_create_inferior): Update.
4746 * lin-lwp.c (lin_lwp_create_inferior): Update.
4747 * inftarg.c (child_create_inferior): Update.
4748 * hpux-thread.c (hpux_thread_create_inferior): Update.
4749 * gnu-nat.c (gnu_create_inferior): Update.
4750
4751 2004-05-25 Andrew Cagney <cagney@gnu.com>
4752
4753 * MAINTAINERS: Update e-mail address.
4754
4755 2004-05-24 Randolph Chung <tausq@debian.org>
4756
4757 * thread.c (info_threads_command, thread_apply_all_command)
4758 (thread_apply_command, thread_command, do_captured_thread_select):
4759 Remove HPUXHPPA-specific code.
4760
4761 2004-05-24 Randolph Chung <tausq@debian.org>
4762
4763 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
4764 unused symbols.
4765 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
4766 references.
4767
4768 2004-05-24 Joel Brobecker <brobecker@gnat.com>
4769
4770 * infcmd.c (kill_if_already_running): New function, extracted
4771 from run_command().
4772 (run_command): Replace extracted code by call to
4773 kill_if_already_running().
4774 (start_command): New function.
4775 (_initialize_infcmd): Add "start" command.
4776
4777 2004-05-24 Mark Kettenis <kettenis@gnu.org>
4778
4779 Add OpenBSD/m88k support.
4780 * NEWS (New native configurations): Mention OpenBSD/m88k.
4781 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
4782 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
4783 * Makefile.in (m88k_tdep_h): New variable.
4784 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
4785 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
4786 * configure.host: Add m88*-*-openbsd*.
4787 * configure.tgt: Add m88*-*-openbsd*.
4788
4789 2004-05-24 Jim Blandy <jimb@redhat.com>
4790
4791 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
4792 to approve changes.
4793
4794 2004-05-24 Kevin Buettner <kevinb@redhat.com>
4795
4796 * symtab.c (fixup_section): Search section table when lookup by
4797 name fails.
4798
4799 2004-05-24 Randolph Chung <tausq@debian.org>
4800
4801 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
4802 be "small_struct".
4803
4804 2004-05-24 Mark Kettenis <kettenis@gnu.org>
4805
4806 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
4807 register number in regcache_raw_collect call.
4808 (m68kbsd_collect_fpregset): Likewise.
4809 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
4810
4811 * regset.h (struct regset): Add back `regset' member.
4812
4813 2004-05-23 Mark Kettenis <kettenis@gnu.org>
4814
4815 * configure.in: Check for td_pcb in `struct thread'.
4816 * configure, config.in: Regenerated.
4817
4818 * dpx2-nat.c: Remove file.
4819 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
4820 (dpx2-nat.o): Remove dependencies.
4821
4822 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
4823 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
4824 (amd64obsd_supply_pcb): New function.
4825 (_initialize_amd64obsd_nat): Enable libkvm interface.
4826 * Makefile.in (amd64obsd-nat.o): Update dependencies.
4827 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
4828 (LOADLIBES): New variable.
4829
4830 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
4831 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
4832 (sparc32nbsd_supply_pcb): New function.
4833 (_initialize_sparcnbsd_nat): Enable libkvm interface.
4834 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
4835 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4836 (LOADLIBES): New variable.
4837
4838 2004-05-22 Mark Kettenis <kettenis@gnu.org>
4839
4840 * bsd-kvm.c, bsd-kvm.h: New files.
4841 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4842 "bsd-kvm.h".
4843 (i386fbsd_supply_pcb): New function.
4844 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
4845 (i386fbsd-nat.o): Update dependencies.
4846 (bsd_kvm_h): New variable.
4847 (bsd-kvm.o): New dependency.
4848 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4849 (LOADLIBES): New variable.
4850
4851 * regset.c: Tweak comment.
4852 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
4853 macro.
4854 * regset.h: Update copyright year.
4855 (struct regset): Remove `descr' member, add `gdbarch' member.
4856 (regset_alloc): Adjust prototype and comment.
4857 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
4858 (i386_supply_fpregset): Likewise.
4859 (i386_regset_from_core_section): Update call to regset_alloc.
4860 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
4861 REGSET->arch.
4862 (i386obsd_aout_regset_from_core_section): Update call to
4863 regset_alloc.
4864 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
4865 REGSET->arch.
4866 (i386nbsd_aout_regset_from_core_section): Update call to
4867 regset_alloc.
4868 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
4869 REGSET->arch.
4870 (amd64_regset_from_core_section): Update call to regset_alloc.
4871 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
4872 REGSET->arch.
4873 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
4874 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
4875 &sparc32nbsd_gregset in sparc32_supply_gregset call.
4876 (sparc32nbsd_init_abi): Update call to regset_alloc.
4877 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
4878 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
4879 (sparc64obsd_init_abi): Update call to regset_alloc.
4880 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
4881 &sparc64nbsd_gregset in sparc64_supply_gregset call.
4882 (sparc64nbsd_init_abi): Update call to regset_alloc.
4883 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
4884 &sparc64fbsd_gregset in sparc64_supply_gregset call.
4885 (sparc64fbsd_init_abi): Update call to regset_alloc.
4886
4887 2004-05-22 Jim Blandy <jimb@redhat.com>
4888
4889 * ppc-tdep.h (spe_register_p): New declaration.
4890 (struct gdbarch_tdep): New members: ppc_acc_regnum and
4891 ppc_spefscr_regnum.
4892 * rs6000-tdep.c (spe_register_p): New function.
4893 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
4894 spefscr.
4895 (rs6000_gdbarch_init): Initialize the new members of the tdep
4896 structure.
4897
4898 2004-05-21 Jim Blandy <jimb@redhat.com>
4899
4900 * ppc-linux-nat.c (fetch_register): Move code back to be next
4901 to the comment that describes it. (Moved code, instead of
4902 comment, for symmetry with store_register.)
4903
4904 Allocate regset structures in the gdbarch's obstack, not using
4905 xmalloc.
4906 * regset.c (regset_alloc): Renamed from regset_xmalloc.
4907 Add 'arch' argument. Allocate the regset on arch's obstack, not
4908 using xmalloc.
4909 * regset.h (regset_alloc): Update declaration.
4910 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
4911 gdbarch argument.
4912 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4913 * i386-tdep.c (i386_regset_from_core_section): Same.
4914 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4915 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4916 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4917 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4918 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4919 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4920
4921 2004-05-21 Joel Brobecker <brobecker@gnat.com>
4922
4923 * config/djgpp/fnchange.lst: Undo previous change, was useless.
4924
4925 2004-05-21 Jim Blandy <jimb@redhat.com>
4926
4927 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
4928 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
4929
4930 2004-05-20 Jim Blandy <jimb@redhat.com>
4931
4932 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
4933
4934 2004-05-20 Mark Kettenis <kettenis@gnu.org>
4935
4936 * regset.h: Make prototype const-correct.
4937 * regset.c (regset_xmalloc): Make const-correct.
4938
4939 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
4940
4941 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
4942 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
4943 (symbol_search_name): Declare.
4944
4945 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
4946 (iter_name_next_hashed): Ditto.
4947 (iter_name_next_linear): Ditto.
4948 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
4949
4950 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
4951 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
4952 (symbol_search_name): New function.
4953
4954 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
4955
4956 * minsyms.c (build_minimal_symbol_hash_tables): Change
4957 test for adding to demangled hash table to check for difference
4958 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
4959
4960 2004-05-19 Jim Blandy <jimb@redhat.com>
4961
4962 Use a constructor function to create regset structures.
4963 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
4964 (struct regset): Use supply_regset_ftype. Add new
4965 'collect_regset' member.
4966 (regset_xmalloc): New declaration.
4967 * regset.c: New file.
4968 * am64-tdep.c (amd64_regset_from_core_section): Use
4969 regset_xmalloc to construct regset structures.
4970 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4971 * i386-tdep.c (i386_regset_from_core_section): Same.
4972 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4973 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4974 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4975 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4976 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4977 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4978 * Makefile.in (COMMON_OBS): Add regset.o.
4979 (regset.o): New rule.
4980
4981 2004-05-19 Joel Brobecker <brobecker@gnat.com>
4982
4983 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
4984 and pthread_cond_wait.c.
4985
4986 2004-05-18 Jim Blandy <jimb@redhat.com>
4987
4988 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
4989 before the mach-specific switch, and then let the individual cases
4990 override the defaults, rather than leaving them uninitialized
4991 until the switch and then setting them in each case.
4992
4993 2004-05-18 Randolph Chung <tausq@debian.org>
4994
4995 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
4996 millicode functions.
4997
4998 2004-05-18 Randolph Chung <tausq@debian.org>
4999
5000 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5001 references to dld_flags_buffer consistent.
5002
5003 2004-05-18 Randolph Chung <tausq@debian.org>
5004
5005 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5006 it for unwinding the stack.
5007
5008 2004-05-18 Randolph Chung <tausq@debian.org>
5009
5010 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5011 Undefine these so we can overide them using gdbarch.
5012
5013 2004-05-18 Randolph Chung <tausq@debian.org>
5014
5015 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5016 handling for 64-bit HPUX (elf).
5017
5018 2004-05-18 Daniel Jacobowitz <dan@debian.org>
5019
5020 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5021 constants.
5022 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5023 * ia64-tdep.c (examine_prologue): Likewise.
5024 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5025 * v850-tdep.c (v850_fix_call_dummy): Likewise.
5026
5027 2004-05-18 Mark Kettenis <kettenis@gnu.org>
5028
5029 * vax-tdep.c (vax_return_value): Implement
5030 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5031
5032 2004-05-17 Mark Kettenis <kettenis@gnu.org>
5033
5034 * vax-tdep.c (vax_return_value): Fix typo.
5035
5036 2004-05-17 Andrew Cagney <cagney@redhat.com>
5037
5038 * MAINTAINERS: Mark Salter was also responsible for
5039 testsuite/config/
5040
5041 * NEWS: Mention signal fixes.
5042
5043 2004-05-17 Randolph Chung <tausq@debian.org>
5044
5045 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5046 check to see if we are unwinding an export stub. Export stubs clobber
5047 the %rp in the call path and stores the original rp in a stack slot.
5048
5049 2004-05-17 Jim Blandy <jimb@redhat.com>
5050
5051 * MAINTAINERS: Update address for J.T. Conklin.
5052
5053 2004-05-17 Randolph Chung <tausq@debian.org>
5054
5055 * hppa-tdep.c: Remove superfluous #include's.
5056 * Makefile.in (hppa-tdep.o): Update dependencies.
5057
5058 2004-05-17 Randolph Chung <tausq@debian.org>
5059
5060 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5061 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5062 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5063 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5064 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5065 Remove static function declarations.
5066
5067 2004-05-17 Mark Kettenis <kettenis@gnu.org>
5068
5069 * alphabsd-nat.c: Update copyright year.
5070 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5071
5072 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5073 and M68K_A2_REGNUM.
5074
5075 * m68k-tdep.c (m68k_svr4_return_value): Implement
5076 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5077
5078 2004-05-16 Mark Kettenis <kettenis@gnu.org>
5079
5080 * sol-thread.c Update copyright year. Fix various coding
5081 standards violations. Tweak a few comments.
5082 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5083 Delete prototypes.
5084
5085 2004-05-15 Randolph Chung <tausq@debian.org>
5086
5087 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5088 as pointer instead of array reference since HPUX compiler does
5089 not accept unsized array arguments.
5090 * somsolib.c (dld_flags_buffer): Use constant array size.
5091
5092 2004-05-15 Mark Kettenis <kettenis@gnu.org>
5093
5094 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5095 offset with decimal offset.
5096 (amd64obsd_sigcontext_addr): Return correct address for entire
5097 signal trampoline.
5098
5099 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5100 instead of get_frame_base.
5101
5102 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5103 (fill_gregset): Use regcache_raw_collect.
5104
5105 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
5106 ppcobsd-tdep.c.
5107
5108 * config/sparc/tm-nbsd64.h: Remove file.
5109 * config/tm-sunos.h: Remove file.
5110
5111 2004-05-15 Joel Brobecker <brobecker@gnat.com>
5112
5113 * rs6000-tdep.c (store_param_on_stack_p): New function,
5114 an improved version of some code extracted from skip_prologue().
5115 (skip_prologue): Use store_param_on_stack_p() to detect
5116 instructions saving a parameter on the stack. Detect when r0
5117 is used to save a parameter.
5118 Do not mark "li rx, SIMM" instructions as part of the prologue,
5119 unless the following instruction is also part of the prologue.
5120
5121 2004-05-14 Andrew Cagney <cagney@redhat.com>
5122
5123 * infrun.c (handle_inferior_event): Simplify
5124 STEP_OVER_UNDEBUGGABLE.
5125
5126 * infrun.c (handle_step_into_function): Delete function.
5127 (handle_inferior_event): Inline calls to
5128 handle_step_into_function.
5129
5130 2004-05-14 Jerome Guitton <guitton@gnat.com>
5131
5132 * rs6000-nat.c: Fix a comment.
5133
5134 2004-05-12 David Anderson <davea@sgi.com>
5135
5136 Committed by Jim Blandy <jimb@redhat.com>:
5137 * regcache.c (struct regcache_descr): fix comment spelling.
5138
5139 2004-05-13 J. Brobecker <brobecker@gnat.com>
5140
5141 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
5142 Fixes a link link failure.
5143
5144 2004-05-13 J. Brobecker <brobecker@gnat.com>
5145
5146 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
5147 error that was causing the build to fail.
5148
5149 2004-05-13 J. Brobecker <brobecker@gnat.com>
5150
5151 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
5152 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
5153
5154 2004-05-13 Andrew Cagney <cagney@redhat.com>
5155
5156 * infrun.c (handle_inferior_event): Check for
5157 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
5158 calls. Update comments.
5159
5160 2004-05-13 Jim Blandy <jimb@redhat.com>
5161
5162 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
5163 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5164 (store_regs_user_thread, store_regs_kernel_thread): Use
5165 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
5166 * ppc-linux-nat.c (fill_gregset): Same.
5167 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
5168 (ppc_linux_sigtramp_cache): Same.
5169 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
5170 (ppcnbsd_sigtramp_cache_init): Same.
5171 * rs6000-nat.c (fetch_core_registers): Same.
5172 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5173 (rs6000_frame_cache): Same.
5174
5175 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
5176 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
5177 of assuming that the gprs are numbered starting with zero.
5178 * ppc-linux-nat.c (fill_gregset): Same.
5179 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
5180 * ppcnbsd-nat.c (getregs_supplies): Same.
5181 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
5182 * rs6000-nat.c (fetch_core_registers): Same.
5183 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
5184
5185 2004-05-07 Michael Snyder <msnyder@redhat.com>
5186
5187 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
5188 LOC_COMPUTED_ARG, and LOC_INDIRECT.
5189
5190 2004-05-13 Andrew Cagney <cagney@redhat.com>
5191
5192 * infrun.c (handle_inferior_event): Use frame_unwind_id.
5193
5194 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5195
5196 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
5197 base_address for shared libraries.
5198
5199 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5200
5201 * MAINTAINERS (write after approval): Add myself.
5202
5203 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5204
5205 * breakpoint.c (bpstat_stop_status): Add new argument
5206 STOPPED_BY_WATCHPOINT. Use it instead of testing
5207 target_stopped_data_address agaist 0 to check whether
5208 or not we stopped due to a hardware watchpoint.
5209 * breakpoint.h (bpstat_stop_status): Adapt prototype.
5210 * infrun.c (handle_inferior_event): Call bpstat_stop_status
5211 with new argument.
5212
5213 2004-05-12 Jim Blandy <jimb@redhat.com>
5214
5215 * configure.in: When checking whether we should use the -bbigtoc
5216 option, don't forget to restore the original value of LDFLAGS.
5217 * configure: Regenerated.
5218
5219 2004-05-12 Andrew Cagney <cagney@redhat.com>
5220
5221 * thread.c (load_infrun_state): Delete step_sp.
5222 * infrun.c (context_switch): Ditto.
5223 * inferior.h (step_sp): Ditto.
5224 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
5225 * gdbthread.h (struct thread_info, save_infrun_state)
5226 (restore_infrun_state): Ditto.
5227
5228 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
5229
5230 * MAINTAINERS (write after approval): Add myself.
5231
5232 2004-05-12 Andrew Cagney <cagney@redhat.com>
5233
5234 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
5235 eliminate reference to step_sp.
5236 (struct execution_control_state, init_execution_control_state)
5237 (handle_inferior_event, keep_going): Delete update_step_sp and
5238 step_sp.
5239 * infcmd.c (step_sp): Note that variable is unused.
5240
5241 2004-05-11 Andrew Cagney <cagney@redhat.com>
5242
5243 * infrun.c (step_over_function): Delete function.
5244 (handle_step_into_function): Use insert_step_resume_breakpoint.
5245 (insert_step_resume_breakpoint): Fix assertion.
5246
5247 2004-05-11 Nick Roberts <nickrob@gnu.org>
5248
5249 * utils.c (defaulted_query): Just use the normal query input type
5250 when printing the annotations.
5251
5252 2004-05-11 Andrew Cagney <cagney@redhat.com>
5253
5254 * infrun.c (handle_inferior_event): Simplify code handling
5255 step-into or return-from a signal trampoline.
5256
5257 2004-05-11 Andrew Cagney <cagney@redhat.com>
5258
5259 * ppcnbsd-tdep.c: Include "gdb_assert.h".
5260 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
5261
5262 2004-05-10 Jim Blandy <jimb@redhat.com>
5263
5264 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
5265 with a call to internal_error.
5266
5267 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
5268 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
5269 processor variant lacks those registers.
5270 (ppc_floating_point_unit_p): Change description to make it clear
5271 that this returns info about the ISA, not the ABI.
5272 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
5273 return true or false by checking tdep->ppc_fp0_regnum and
5274 tdep->ppc_fpscr_regnum. The original code replicated the BFD
5275 arch/mach switching done in rs6000_gdbarch_init; it's better to
5276 keep that logic there, and just check the results here.
5277 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
5278 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
5279 floating-point registers.
5280 (ppc_supply_fpregset, ppc_collect_fpregset)
5281 (rs6000_push_dummy_call, rs6000_extract_return_value)
5282 (rs6000_store_return_value): Assert that we have floating-point
5283 registers.
5284 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
5285 (rs6000_frame_cache): Don't note the locations at which
5286 floating-point registers were saved if we have no fprs.
5287 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
5288 registers.
5289 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5290 (store_regs_user_thread, store_regs_kernel_thread): Only call
5291 supply_fprs / fill_fprs if we actually have floating-point
5292 registers.
5293 (special_register_p): Check ppc_fpscr_regnum before matching
5294 against it.
5295 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
5296 supply / collect fpscr if we don't have it.
5297 * ppc-bdm.c: #include "gdb_assert.h".
5298 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
5299 have floating-point registers, since I can't test this code on
5300 FP-free systems to adapt it.
5301 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
5302 fpscr and floating point register numbers if they don't exist.
5303 (fetch_register): Assert that we have floating-point registers
5304 before we reach the code that handles them.
5305 (store_register): Same. And use tdep instead of calling
5306 gdbarch_tdep again.
5307 (fill_fpregset): Don't try to collect FP registers and fpscr if we
5308 don't have them.
5309 (ppc_linux_sigtramp_cache): Don't record the saved locations of
5310 fprs and fpscr if we don't have them.
5311 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
5312 don't have them.
5313 * ppcnbsd-nat.c: #include "gdb_assert.h".
5314 (getfpregs_supplies): Assert that we have floating-point registers.
5315 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
5316 * ppcobsd-tdep.c: #include "gdb_assert.h".
5317 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
5318 have floating-point registers.
5319 * rs6000-nat.c (regmap): Don't match against the fpscr and
5320 floating point register numbers if they don't exist.
5321 (fetch_inferior_registers, store_inferior_registers,
5322 fetch_core_registers): Only fetch / store / supply the
5323 floating-point registers and the fpscr if we have them.
5324 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
5325 (ppcobsd-tdep.o): Update dependencies.
5326
5327 2004-05-10 Andrew Cagney <cagney@redhat.com>
5328
5329 * infrun.c (through_sigtramp_breakpoint): Delete variable.
5330 (context_switch): Do not switch through_sigtramp_breakpoint.
5331 * gdbthread.h (save_infrun_state, load_infrun_state)
5332 (struct thread_info): Delete through_sigtramp_breakpoint parameter
5333 and structure member.
5334 * thread.c (load_infrun_state, save_infrun_state): Update.
5335
5336 2004-05-10 Mark Kettenis <kettenis@gnu.org>
5337
5338 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
5339
5340 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5341
5342 * acinclude.m4: Quote macro names being defined by AC_DEFUN
5343 throughout.
5344 * aclocal.m4: Regenerate.
5345
5346 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
5347
5348 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
5349
5350 2004-05-10 Andrew Cagney <cagney@redhat.com>
5351
5352 * infrun.c (check_sigtramp2): Delete function.
5353 (handle_inferior_event): When single stepping, and taking a
5354 signal, set a breakpoint at the signal return address. Delete
5355 redundant calls to check_sigtramp2.
5356 (insert_step_resume_breakpoint): New function.
5357 (through_sigtramp_breakpoint, handle_inferior_event)
5358 (follow_exec, wait_for_inferior, fetch_inferior_event)
5359 (currently_stepping, keep_going): Delete most uses of
5360 through_sigtramp_breakpoint, not that it should be deleted.
5361 (delete_breakpoint_current_contents): Delete function.
5362
5363 2004-05-10 Randolph Chung <tausq@debian.org>
5364
5365 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
5366 target.
5367 * config/pa/tm-linux.h: New file.
5368
5369 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
5370
5371 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
5372 of prefixes. Don't print the prefix twice in the CLI.
5373
5374 2004-05-10 Jim Blandy <jimb@redhat.com>
5375
5376 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
5377 collect all the gprs.
5378
5379 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
5380 loop collecting gprs.
5381
5382 2004-05-09 Andrew Cagney <cagney@redhat.com>
5383
5384 * remote-vx.c (net_step): Delete step-range code.
5385 * remote.c (remote_resume, init_all_packet_configs)
5386 (set_remote_protocol_E_packet_cmd)
5387 (show_remote_protocol_E_packet_cmd)
5388 (remote_protocol_E, show_remote_cmd, _initialize_remote)
5389 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
5390 (show_remote_protocol_e_packet_cmd): Ditto.
5391
5392 2004-05-09 Mark Kettenis <kettenis@gnu.org>
5393
5394 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
5395
5396 * hppa-tdep.h: Update copyright year.
5397 (struct trad_frame_saved_reg): Add opaque declaration.
5398
5399 * amd64-tdep.c (amd64_return_value): Implement
5400 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5401
5402 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
5403 (m68k_value_to_register): New functions.
5404 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
5405 value_to_register.
5406
5407 * defs.h (enum return_value_convention): Add
5408 RETURN_VALUE_ABI_RETURNS_ADDRESS and
5409 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5410 * infcmd.c (legacy_return_value): New function.
5411 (print_return_value): Rwerite to implement
5412 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5413 * values.c (using_struct_return): Check for inequality to
5414 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
5415 RETURN_VALUE_STRUCT_CONVENTION.
5416 * i386-tdep.c (i386_return_value): Implement
5417 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5418
5419 * vax-tdep.c: Tweak comments. Reorder include files. Don't
5420 include "symtab.h", "opcode/vax.h" and "inferior.h".
5421 (vax_skip_prologue): Replace calls to read_memory_integer by calls
5422 to read_memory_unsigned_integer.
5423 (vax_gdbarch_init): Reorder.
5424 (_initialize_vax_tdep): Spell out prototype.
5425 * Makefile.in (vax-tdep.o): Update dependencies.
5426
5427 2004-05-08 Andrew Cagney <cagney@redhat.com>
5428
5429 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
5430 * target.c (target_detach, target_disconnect): Ditto.
5431
5432 * infcall.c (call_function_by_hand): When no
5433 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
5434 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
5435 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
5436 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5437 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5438
5439 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
5440 * gdbarch.h, gdbarch.c: Re-generate.
5441 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5442 deprecated_fix_call_dummy.
5443 * v850-tdep.c (v850_gdbarch_init): Ditto.
5444 * infcall.c (call_function_by_hand): Do not call
5445 DEPRECATED_FIX_CALL_DUMMY.
5446
5447 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
5448 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
5449 * gdbarch.h, gdbarch.c: Re-generate.
5450 * arm-linux-tdep.c (arm_linux_call_dummy_words)
5451 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
5452 deprecated_sizeof_call_dummy_words.
5453 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
5454 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5455 * v850-tdep.c (v850_gdbarch_init): Ditto.
5456 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
5457 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
5458 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5459 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5460 * arch-utils.h (legacy_call_dummy_words)
5461 (legacy_sizeof_call_dummy_words): Delete declarations.
5462 * arch-utils.c (legacy_call_dummy_words)
5463 (legacy_sizeof_call_dummy_words): Delete variables.
5464
5465 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
5466 * gdbarch.h, gdbarch.c: Re-generate.
5467 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
5468 * infcall.c (call_function_by_hand): Eliminate call to
5469 DEPRECATED_PUSH_DUMMY_FRAME.
5470 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5471 push_dummy_frame.
5472 (ns32k_push_dummy_frame): Delete function.
5473
5474 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5475 deprecated_call_dummy_breakpoint_offset or
5476 deprecated_call_dummy_start_offset.
5477 * dummy-frame.c, arm-tdep.c: Update comments.
5478 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
5479 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
5480 * gdbarch.h, gdbarch.c: Re-generate.
5481
5482 * infcall.c (legacy_push_dummy_code): Delete function.
5483 (push_dummy_code): Delete call.
5484
5485 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
5486 * gdbarch.h, gdbarch.c: Re-generate.
5487 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
5488 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
5489 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
5490 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
5491
5492 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
5493 (struct frame_info): Delete opaque declaration.
5494 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
5495 * frame.c (get_frame_type): Delete call.
5496
5497 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5498 pc_in_call_dummy.
5499 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
5500 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
5501
5502 2004-05-08 Mark Kettenis <kettenis@gnu.org>
5503
5504 * alphanbsd-tdep.c: Include "gdb_string.h".
5505 * armnbsd-tdep.c: Update copyright year.
5506 Include "gdb_string.h".
5507 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
5508 dependencies.
5509
5510 * delta68-nat.c: Remove file.
5511 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
5512 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
5513 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
5514 (delta68-nat.o): Remove dependency.
5515
5516 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
5517 function.
5518 (m68k_gdbarch_init): Don't set
5519 deprecated_frameless_function_invocation.
5520
5521 2004-05-07 Randolph Chung <tausq@debian.org>
5522
5523 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
5524 read_memory_nobpt for code reading when doing frame unwinding.
5525 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
5526
5527 2004-05-07 Randolph Chung <tausq@debian.org>
5528
5529 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
5530 instead of sp, handle sigaltstack case.
5531 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
5532 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
5533 signal handler and not that of the caller.
5534 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
5535 hppa_linux_sigtramp_find_sigcontext.
5536
5537 2004-05-07 Randolph Chung <tausq@debian.org>
5538
5539 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
5540 hppa-linux-nat.c.
5541 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
5542 * hppa-linux-nat.c (fetch_register, store_register): Define.
5543 (fetch_inferior_registers, store_inferior_registers): Define.
5544 (supply_gregset): Add comment and clean up some unneeded code.
5545 (fill_gregset): Add comment and fix so that it saves registers in
5546 the right place in the gregset.
5547 (fill_fpregset): Fix buffer overrun problem.
5548 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
5549
5550 2004-05-07 Randolph Chung <tausq@debian.org>
5551
5552 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
5553 do common handling of the pcoqt register.
5554 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
5555 to use helper function.
5556 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
5557 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
5558 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
5559 generic fallback unwinder when all else fails.
5560 (hppa_gdbarch_init): Add fallback sniffer.
5561 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
5562 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
5563 to use helper function.
5564
5565 2004-05-08 Joel Brobecker <brobecker@gnat.com>
5566
5567 * config/djgpp/fnchange.lst: Add translation rules for
5568 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
5569
5570 2004-05-08 Mark Kettenis <kettenis@gnu.org>
5571
5572 * frame.c (get_prev_frame_1): Work around GCC bug.
5573 * frame.h: Add comment about GCC bug.
5574
5575 2004-05-07 Andrew Cagney <cagney@redhat.com>
5576
5577 * observer.c: Include "commands.h" and "gdbcmd.h".
5578 (observer_debug, _initialize_observer): Add the
5579 command "set/show debug observer".
5580 * observer.sh: When observer debugging, log notify calls.
5581 * Makefile.in (observer.o): Update dependencies.
5582
5583 2004-05-07 Jason Molenda (jmolenda@apple.com)
5584
5585 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
5586
5587 2004-05-07 Jim Blandy <jimb@redhat.com>
5588
5589 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
5590 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
5591 to recognize gpr regnums, instead of assuming that
5592 tdep->ppc_fp0_regnum marks the end of the general-purpose
5593 registers.
5594
5595 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
5596 the given architecture has floating-point registers.
5597
5598 2004-05-07 Andrew Cagney <cagney@redhat.com>
5599
5600 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
5601 macro defined to 1.
5602 * gdbarch.h, gdbarch.c: Re-generate.
5603 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5604 deprecated_use_generic_dummy_frames.
5605
5606 2004-05-07 Brian Ford <ford@vss.fsi.com>
5607
5608 * NEWS: Mention Cygwin DWARF 2 support.
5609
5610 2004-05-07 Andrew Cagney <cagney@redhat.com>
5611
5612 * objfiles.h (struct entry_info): Delete unused fields
5613 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
5614 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
5615 * mipsread.c (mipscoff_symfile_read): Update.
5616 * mdebugread.c (parse_partial_symbols): Update.
5617 * dwarfread.c (read_file_scope): Update.
5618 * dwarf2read.c (read_file_scope): Update.
5619 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
5620 * coffread.c (complete_symtab): Update.
5621
5622 2004-05-07 Mark Kettenis <kettenis@gnu.org>
5623
5624 * infcall.c (_initialize_infcall): Fix typo.
5625
5626 2004-05-07 Andrew Cagney <cagney@redhat.com>
5627
5628 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
5629 * command.h (add_setshow_zinteger_cmd): Declare.
5630
5631 2004-05-06 Randolph Chung <tausq@debian.org>
5632
5633 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
5634 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
5635 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
5636 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
5637 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
5638 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
5639 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
5640 definitions ...
5641 * hppa-tdep.h: ... to here, with HPPA_ prefix.
5642 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
5643 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
5644 (hppa64_hpux_frame_find_saved_regs_in_sig)
5645 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
5646 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
5647 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
5648 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
5649 (hppa_linux_sigtramp_frame_prev_register): Likewise.
5650 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
5651 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
5652 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
5653 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
5654 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
5655 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
5656 (hppa32_register_type, hppa_cannot_store_register)
5657 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
5658 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
5659 * hpread.c (hpread_process_one_debug_symbol): Likewise.
5660 * pa64solib.c (pa64_solib_have_load_event)
5661 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
5662 (pa64_solib_unloaded_library_pathname): Likewise.
5663 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
5664 (som_solib_library_pathname): Likewise.
5665
5666 2004-05-05 Jim Ingham <jingham@apple.com>
5667
5668 * breakpoint.c (create_breakpoints): Copy the ignore count and
5669 thread id over from the pended breakpoint to the actual
5670 breakpoint.
5671
5672 2004-05-05 Andrew Cagney <cagney@redhat.com>
5673
5674 * gdbarch.sh (PARM_BOUNDARY): Delete.
5675 gdbarch.h, gdbarch.c: Re-generate.
5676 * valops.c (PARM_BOUNDARY): Delete macro.
5677 (value_push): Delete PARM_BOUNDARY code.
5678 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
5679
5680 2004-05-04 Jim Blandy <jimb@redhat.com>
5681
5682 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
5683 Don't assume that the gprs, fprs, and UISA sprs are
5684 contiguous, start at register number zero, and end with fpscr.
5685 Instead, use the numbers from the tdep structure.
5686
5687 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
5688 should no longer be used in code specific to the RS6000 and its
5689 derivatives.
5690 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
5691 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
5692 tdep->ppc_fp0_regnum.
5693 (ppc_supply_fpregset, ppc_collect_fpregset)
5694 (rs6000_push_dummy_call, rs6000_extract_return_value)
5695 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
5696 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
5697 FP0_REGNUM.
5698 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
5699 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
5700 Same.
5701 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
5702 bdm_ppc_store_registers): Same.
5703 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
5704 (store_register, fill_fpregset): Same.
5705 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
5706 (ppc_linux_supply_fpregset): Same.
5707 * ppcnbsd-nat.c (getfpregs_supplies): Same.
5708 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
5709 Same.
5710 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
5711 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
5712 ppc64_sysv_abi_return_value): Same.
5713 * rs6000-nat.c (regmap, fetch_inferior_registers)
5714 (store_inferior_registers, fetch_core_registers): Same.
5715
5716 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5717
5718 * m68knbsd-nat.c: Remove file.
5719 * m68knbsd-tdep.c: Remove file.
5720 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
5721 dependencies.
5722 * configure.host: Add m68k-*-netbsdelf*.
5723 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
5724 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
5725 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
5726 (XM_FILE): Remove.
5727 * config/m68k/nbsdelf.mh: New file.
5728 * config/m68k/nbsd.mt: New file.
5729 * config/m68k/nbsdaout.mt: Remove file.
5730 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
5731 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
5732 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
5733 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
5734 (use_struct_convention): Remove prototype.
5735 (USE_STRUCT_CONVENTION): Remove define.
5736 * config/m68k/xm-nbsd.h: Remove file.
5737
5738 2004-05-04 Michael Snyder <msnyder@redhat.com>
5739
5740 * m68k-tdep.c (m68k_gdbarch_init): Default to using
5741 reg_struct_return method (as gcc usually does for cross targets).
5742
5743 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5744
5745 Committed by Andrew Cagney.
5746 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
5747 alignment padding when accessing ucontext struct members.
5748
5749 2004-05-04 Jim Blandy <jimb@redhat.com>
5750
5751 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
5752 'ppc_gplast_regnum' member.
5753 (ppc_num_gprs): New enum constant.
5754 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
5755 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
5756 * rs6000-nat.c (regmap, fetch_inferior_registers,
5757 store_inferior_registers): Same.
5758 * rs6000-tdep.c (e500_pseudo_register_read)
5759 (e500_pseudo_register_write): Same.
5760 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
5761
5762 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
5763 * ppc-tdep.h (ppc_num_fprs): New enum constant.
5764 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
5765 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
5766 FPLAST_REGNUM.
5767 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5768 Same.
5769 * ppc-linux-nat.c (ppc_register_u_addr): Same.
5770 * rs6000-nat.c (regmap, fetch_inferior_registers)
5771 (store_inferior_registers): Same.
5772
5773 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
5774 with FPLAST_REGNUM.
5775
5776 2004-05-03 Joel Brobecker <brobecker@gnat.com>
5777
5778 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
5779 failure detected by recent versions of GCC.
5780 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
5781 to be consistent with the usage in dwarf2_create_include_psymtab.
5782
5783 2004-05-03 Michael Snyder <msnyder@redhat.com>
5784
5785 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
5786 (heuristic_proc_start): Whitespace cleanup.
5787
5788 2004-05-04 Mark Kettenis <kettenis@gnu.org>
5789
5790 * sun3-nat.c: Remove file.
5791 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
5792 dependencies.
5793 (ALLDEPFILES): Remove sun3-nat.c.
5794 (sun3-nat.o): Remove dependencies.
5795
5796 * i386-interix-nat.c, i386-interix-tdep.c,
5797 config/i386/nm-interix.h, config/i386/interix.mh,
5798 config/i386/interix.mt: Remove files.
5799 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
5800 dependencies.
5801
5802 2004-05-03 Mark Kettenis <kettenis@gnu.org>
5803
5804 * m68k-tdep.h (struct gdbarch_tdep): Add member
5805 struct_value_regnum.
5806 (m68k_svr4_init_abi): New prototype.
5807 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
5808 different calling conventions.
5809 (m68k_extract_return_value): Remove code dealing with single-field
5810 structs.
5811 (m68k_store_return_value): Remove code dealing with single-field
5812 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
5813 (m68k_extract_struct_value_address): Remove function.
5814 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
5815 (m68k_reg_struct_return_p, m68k_return_value)
5816 (m68k_svr4_return_value): New functions.
5817 (m68k_use_struct_convention): Remove function.
5818 (m68k_push_dummy_call): Use new struct_value_regnum member of
5819 `struct gdbarch_tdep' instead of hardcoded register number to
5820 store STRUCT_ADDR.
5821 (m68k_svr4_init_abi): New function.
5822 (m68k_gdbarch_init): Don't set extract_return_value,
5823 store_return_values, deprecated_extract_struct_value_address and
5824 use_struct_convention. Set return_value instead. Initialize new
5825 struct_value_regnum member of `struct gdbarch_tdep'.
5826 * m68klinux-tdep.c: Update copyright year.
5827 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
5828 (m68k_linux_extract_struct_value_address): Remove function.
5829 (m68k_linux_init_abi): Don't set extract_return_value,
5830 store_return_values, deprecated_extract_struct_value_address and
5831 use_struct_convention. Call m68k_svr4_init_abi but override the
5832 new struct_value_regnum member of `struct gdbarch_tdep'.
5833 * Makefile.in (m68k-tdep.o): Update dependencies.
5834
5835 2004-05-03 J. Brobecker <brobecker@gnat.com>
5836
5837 * dwarf2read.c (line_header): Add new included_p field in
5838 field file_names.
5839 (partial_die_info): New field has_stmt_list. New field line_offset.
5840 (dwarf2_create_include_psymtab): New function.
5841 (dwarf2_build_include_psymtabs): New function.
5842 (add_file_name): Add forward declaration. Initialize new field.
5843 (dwarf_decode_lines): Add new parameter. Enhance this procedure
5844 to be able to determine the list of files included by the
5845 given unit, and build their associated psymtabs.
5846 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
5847 files as well.
5848 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
5849 (read_file_scope): Update call to dwarf_decode_lines.
5850 (read_partial_die): Handle DW_AT_stmt_list attributes.
5851
5852 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
5853
5854 Unfix PR gdb/1626.
5855 * configure.in: Revert special case for osf5.*.
5856 * configure: Regenerate.
5857
5858 2004-05-02 Jim Blandy <jimb@redhat.com>
5859
5860 Move the symbol-file-from-memory functions into their own file.
5861 * symfile-mem.c, symfile-mem.h: New files.
5862 * symfile.c (symbol_file_add_from_bfd): New function.
5863 (symbol_file_add): Call symbol_file_add_from_bfd.
5864 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
5865 Moved to symfile-mem.c.
5866 (_initialize_symfile): Move definition of
5867 add-symbol-file-from-memory command to symfile-mem.c.
5868 * symfile.h (symbol_file_add_from_bfd): New declaration.
5869 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
5870 * config/powerpc/linux.mt (TDEPFILES): Same.
5871 * Makefile.in (SFILES): Add symfile-mem.c.
5872 (symfile_mem_h): New variable.
5873 (HFILES_NO_SRCDIR): Add symfile-mem.h.
5874 (symfile-mem.o): New rule.
5875
5876 2004-05-01 Andrew Cagney <cagney@redhat.com>
5877
5878 * breakpoint.c (insert_bp_location): Use get_frame_id, and
5879 frame_find_by_id instead of frame_relative_level.
5880 (do_enable_breakpoint): Ditto.
5881 * thread.c: Update copyright.
5882 (info_threads_command): Ditto, simplify.
5883
5884 * frame.c (deprecated_generic_get_saved_register): Delete
5885 function, moved to "xstormy16-tdep.c".
5886 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
5887 deprecated_generic_get_saved_register from "frame.c".
5888 (xstormy16_frame_saved_register): Call
5889 xstormy16_get_saved_register.
5890 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
5891 static.
5892 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
5893 * frame.h (deprecated_generic_get_saved_register): Delete.
5894
5895 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
5896
5897 * dwarfread.c: Update documentation on the state of dwarf-1.
5898
5899 2004-05-01 Andrew Cagney <cagney@redhat.com>
5900
5901 * stack.c (select_frame_command): Delete call to
5902 frame_relative_level.
5903 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
5904 Delete #if0 code.
5905 (frame_info): Do not print FRAMELESS.
5906 (print_block_frame_labels): Replace DEPRECATED_STREQ.
5907 (catch_info): Delete #if0 code.
5908
5909 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
5910 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
5911 of frame_relative_level.
5912 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
5913 to SENTINEL_FRAME.
5914 * frame.h (enum frame_type): Add SENTINEL_FRAME.
5915 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
5916 frame_relative_level.
5917
5918 * frame.h (deprecated_set_frame_type): Delete declaration.
5919 * frame.c (deprecated_set_frame_type): Delete function, update
5920 comments.
5921
5922 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
5923 * gdbarch.h, gdbarch.c: Re-generate.
5924 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
5925 (shnbsd_pc_in_sigtramp): Delete.
5926 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
5927 pc_in_sigtramp.
5928 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
5929 pc_in_sigtramp.
5930 * frame.h: Update comments.
5931 * ppc-linux-tdep.c: Update comments.
5932 * breakpoint.c (bpstat_what): Update comments.
5933
5934 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
5935 m68klinux-tdep.o's dependencies, were previously added to
5936 m68klinux-nat.o.
5937
5938 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
5939 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
5940 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5941 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5942 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5943
5944 * Makefile.in (m68klinux-nat.o): Update dependencies.
5945 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5946 (m68k_linux_sigtramp_frame_cache)
5947 (m68k_linux_sigtramp_frame_this_id)
5948 (m68k_linux_sigtramp_frame_prev_register)
5949 (m68k_linux_sigtramp_frame_unwind)
5950 (m68k_linux_sigtramp_frame_sniffer)
5951 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
5952 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
5953 names, use trad-frame.h.
5954 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
5955 (struct m68k_sigtramp_info): Delete.
5956 * m68k-tdep.c (m68k_sigtramp_frame_cache)
5957 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
5958 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
5959 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
5960 "m68klinux-tdep.c".
5961
5962 * infrun.c (check_sigtramp2): Delete check for
5963 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
5964
5965 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5966
5967 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
5968
5969 2004-05-01 Andrew Cagney <cagney@redhat.com>
5970
5971 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5972 (frv_linux_sigtramp_frame_cache)
5973 (frv_linux_sigtramp_frame_this_id)
5974 (frv_linux_sigtramp_frame_prev_register)
5975 (frv_linux_sigtramp_frame_unwind)
5976 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
5977 include "linux" in function and variable names, directly call
5978 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
5979 the latest trad-frame code.
5980 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
5981 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
5982 * Makefile.in (frv-linux-tdep.o): Update dependencies.
5983 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
5984 * frv-tdep.c (frv_sigtramp_frame_cache)
5985 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5986 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
5987 frv-linux-tdep.c.
5988 (frv_gdbarch_init): Do not append a sigtramp sniffer.
5989 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
5990 (frv_set_sigcontext_reg_addr): Delete function.
5991
5992 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
5993 (DEPRECATED_SIGTRAMP_END): Delete.
5994 * gdbarch.h, gdbarch.c: Re-generate.
5995 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
5996 * config/vax/tm-vaxbsd.h: Update copyright.
5997 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5998 (DEPRECATED_IN_SIGTRAMP): Define.
5999 * config/m68k/tm-nbsd.h: Update copyright.
6000 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6001 (DEPRECATED_IN_SIGTRAMP): Define.
6002
6003 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6004
6005 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6006 encondings. Fixes PR gdb/1628.
6007
6008 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6009 DW_CFA_restore state without a matching DW_CFA_remember_state
6010 instead of aborting. Fixes PR backtrace/1589.
6011
6012 2004-04-30 Joel Brobecker <brobecker@gnat.com>
6013
6014 * MAINTAINERS: Add self as AIX maintainer.
6015 Update my e-mail address in write-after-approval section.
6016
6017 2004-04-30 Andrew Cagney <cagney@redhat.com>
6018
6019 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6020 (legacy_get_prev_frame): Ditto.
6021
6022 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6023 (mips_gdbarch_init): Do not set pc_in_sigtramp.
6024 * mipsread.c (sigtramp_address): Delete extern variable.
6025 (mipscoff_new_init): Delete reference.
6026 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6027 (fixup_sigtramp): Delete function.
6028 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6029 (fixup_sigtramp): Delete declarations.
6030
6031 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6032 deprecated_pc_in_sigtramp.
6033 (ppcnbsd_pc_in_sigtramp): Delete function.
6034
6035 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6036
6037 * config/m68k/nm-nbsd.h: Tweak comments.
6038 * config/m68k/nm-nbsdaout.h: Likewise.
6039
6040 2004-04-30 Andrew Cagney <cagney@redhat.com>
6041
6042 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6043 legacy_pc_in_sigtramp.
6044 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6045
6046 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6047
6048 Add OpenBSD/m68k support.
6049 * NEWS (New native configurations): Mention OpenBSD/m68k.
6050 * m68kbsd-tdep.c: New file.
6051 * m68kbsd-nat.c: New file.
6052 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6053 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6054 * configure.host: Add m68k-*-openbsd.
6055 * configure.tgt: Add m68k-*-openbsd.
6056 * config/m68k/tm-obsd.h: New file.
6057 * config/m68k/obsd.mt: New file.
6058 * config/m68k/obsd.mh: New file.
6059 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6060 m68kbsd-tdep.c.
6061
6062 2004-04-30 Andrew Cagney <cagney@redhat.com>
6063
6064 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6065 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6066
6067 2004-04-30 Mark Kettenis <kettenis@gnu.org>
6068
6069 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6070 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6071
6072 2004-04-30 Brian Ford <ford@vss.fsi.com>
6073
6074 Revert 2004-04-16 change.
6075 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6076 (i386_coff_init_abi): Remove.
6077 * i386-tdep.h (i386_coff_init_abi): Remove.
6078 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6079
6080 2004-04-30 Andrew Cagney <cagney@redhat.com>
6081
6082 * blockframe.c (find_pc_partial_function): Delete use of
6083 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6084 DEPRECATED_SIGTRAMP_END.
6085
6086 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6087 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6088 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6089 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6090 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6091
6092 * defs.h (deprecated_inside_entry_file): Delete declaration.
6093 * blockframe.c (deprecated_inside_entry_file): Delete function.
6094 (legacy_frame_chain_valid): Delete call.
6095 * sh64-tdep.c (sh64_frame_chain): Delete call.
6096 * objfiles.h: Update comments.
6097 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6098 call.
6099 * frame.c (get_prev_frame): Delete call, update comments.
6100
6101 2004-04-30 Brian Ford <ford@vss.fsi.com>
6102
6103 * MAINTAINERS (Write After Approval): Add myself.
6104
6105 2004-04-30 Andrew Cagney <cagney@redhat.com>
6106
6107 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
6108 * gdbarch.h, gdbarch.c: Re-generate.
6109 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
6110 code.
6111
6112 2004-04-30 Andrew Cagney <cagney@redhat.com>
6113
6114 * gdb-events.sh (selected_thread_changed)
6115 (selected_frame_level_changed, target_changed): Delete.
6116 * gdb-events.h, gdb-events.c: Re-generate.
6117 * valops.c (value_assign): Update.
6118 * stack.c (select_frame_command, up_silently_base)
6119 (down_silently_base): Update.
6120
6121 2004-04-29 Andrew Cagney <cagney@redhat.com>
6122
6123 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
6124 registers correctly.
6125 (print_gp_register_row, mips32_heuristic_proc_desc)
6126 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
6127 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
6128 references to mips_isa_regsize.
6129
6130 2004-04-29 Andrew Cagney <cagney@redhat.com>
6131
6132 * mips-tdep.c (struct gdbarch_tdep): Delete
6133 mips_fp_register_double.
6134 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
6135 mips_abi_regsize.
6136 (mips_gdbarch_init): Do not set mips_fp_register_double.
6137 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
6138
6139 2004-04-29 Joel Brobecker <brobecker@gnat.com>
6140
6141 Committed by Andrew Cagney.
6142 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
6143 function calls.
6144
6145 2004-04-29 Andrew Cagney <cagney@redhat.com>
6146
6147 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
6148 gdbarch, use mips_abi, update callers.
6149 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
6150 mips_abi_regsize, update callers.
6151 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
6152 mips_default_abi_regsize.
6153 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
6154 mips_default_abi_regsize.
6155
6156 2004-04-29 Andrew Cagney <cagney@redhat.com>
6157
6158 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
6159 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
6160 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
6161 mips_default_abi_regsize.
6162 (mips_isa_regsize): Rename mips_regisze.
6163 * mipsnbsd-tdep.c: Update.
6164 * mips-linux-tdep.c: Update.
6165 * irix5-nat.c: Update.
6166 * mips-tdep.h (mips_isa_regsize): Update.
6167
6168 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
6169 Delete all disabled code.
6170 * gdb-events.h, gdb-events.c: Re-generate.
6171
6172 2004-04-19 Jerome Guitton <guitton@gnat.com>
6173 Mark Kettenis <kettenis@gnu.org>
6174
6175 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
6176 the function begins with a branch instruction.
6177
6178 2004-04-29 Mark Kettenis <kettenis@gnu.org>
6179
6180 * i386-tdep.c: Fix spelling mistakes.
6181
6182 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6183 Andrew Cagney <cagney@redhat.com>
6184
6185 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
6186 <sys/proc.h>.
6187 * acconfig.h: Provide default _KMEMUSER value.
6188 * config.in, configure: Re-generate.
6189 * NEWS: Mention fix.
6190
6191 2004-04-24 Randolph Chung <tausq@debian.org>
6192
6193 * configure.host (hppa*-*-linux*): New target.
6194 * configure.tgt (hppa*-*-linux*): Likewise.
6195 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
6196 gdbarch_init_osabi() call earlier so that osabi-specific frame
6197 unwinders can be registered first.
6198 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
6199 hppa-linux-nat.c.
6200 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
6201 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
6202 * config/pa/linux.mh: New file.
6203 * config/pa/linux.mt: New file.
6204 * config/pa/nm-linux.h: New file.
6205 * config/pa/xm-linux.h: New file.
6206 * hppa-linux-nat.c: New file.
6207 * hppa-linux-tdep.c: New file.
6208
6209 2004-04-28 Randolph Chung <tausq@debian.org>
6210
6211 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
6212 return values.
6213 (hppa32_push_dummy_call): Fix small struct and floating point argument
6214 passing, and make sure the stack frame is properly aligned.
6215
6216 2004-04-28 Andrew Cagney <cagney@redhat.com>
6217
6218 * stack.c (print_stack_frame): Fix description.
6219
6220 * NEWS: Mention gdb/gdbserver/configure execute permission
6221 changed. PR server/519.
6222
6223 2004-04-28 Andrew Cagney <cagney@redhat.com>
6224
6225 * stack.c (print_stack_frame_stub): Delete declaration.
6226 (struct print_stack_frame_args, print_stack_frame)
6227 (print_frame_info, print_frame): Replace "source" with print what.
6228 Replace "print" with "print_level". Replace "args" with
6229 "print_args".
6230 * frame.h (show_and_print_stack_frame, print_stack_frame)
6231 (print_frame_info): Update declarations.
6232 * stack.c (select_and_print_frame, frame_command)
6233 (current_frame_command, up_command, down_command): Update calls -
6234 use get_selected_frame, pass "enum print_what" for source, do not
6235 call frame_relative_level.
6236 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
6237 * remote-rdp.c (remote_rdp_open): Ditto.
6238 * remote-mips.c (common_open): Ditto.
6239 * remote-e7000.c (e7000_start_remote): Ditto.
6240 * ocd.c (ocd_start_remote): Ditto.
6241 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
6242 * infrun.c (normal_stop): Ditto.
6243 * inflow.c (kill_command): Ditto.
6244 * infcmd.c (finish_command): Ditto.
6245 * corelow.c (core_open): Ditto.
6246 * tracepoint.c (finish_tfind_command): Ditto.
6247 * thread.c (info_threads_command, info_threads_command)
6248 (restore_current_thread, do_captured_thread_select): Ditto.
6249 * ada-tasks.c (task_command): Ditto.
6250
6251 2004-04-26 Orjan Friberg <orjanf@axis.com>
6252
6253 * frame.c: Include "observer.h".
6254 (frame_observer_target_changed): New function.
6255 (_initialize_frame): Attach target_changed observer.
6256 * regcache.c: Include "observer.h".
6257 (regcache_observer_target_changed): New function.
6258 (_initialize_regcache): Attach target_changed observer.
6259 * valops.c: Include "observer.h".
6260 (value_assign): Notify target_changed event when modifying register.
6261 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
6262
6263 2004-04-26 Orjan Friberg <orjanf@axis.com>
6264
6265 From Paul Koning <pkoning@equallogic.com>:
6266 * breakpoint.c (free_valchain): New function.
6267 (insert_bp_location, delete_breakpoint): Use free_valchain.
6268 (remove_breakpoint): Do not remove the valchain.
6269 (bpstat_stop_status): If not stopped by watchpoint, skip
6270 watchpoints when generating stop status list.
6271 * infrun.c (handle_inferior_event): Make
6272 stepped_after_stopped_by_watchpoint a global variable.
6273 * remote.c (remote_stopped_data_address): Return watch data
6274 address rather than zero if stepped_after_stopped_by_watchpoint is
6275 set.
6276
6277 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
6278
6279 Fix PR gdb/1626.
6280 * configure.in: Check for curses after termcap.
6281 On osf5.*, do not check for ncurses.
6282 * configure: Regenerate.
6283
6284 2004-04-25 Mark Kettenis <kettenis@gnu.org>
6285
6286 * ppcobsd-nat.c: Include "ppc-tdep.h".
6287 * Makefile.in (ppcobsd-nat.o): Update dependencies.
6288
6289 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
6290 Fixes PR tdep/1623 and PR tdep/1624.
6291
6292 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
6293
6294 * xmodem.h, xmodem.c: Remove files.
6295 * Makefile.in: Remove references to xmodem.h, xmodem.c.
6296
6297 2004-04-23 Randolph Chung <tausq@debian.org>
6298
6299 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
6300 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
6301 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
6302 for handling stackless frames.
6303 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
6304
6305 2004-04-23 Randolph Chung <tausq@debian.org>
6306
6307 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
6308 starts at a pc before the frame is created.
6309
6310 2004-04-23 Joel Brobecker <brobecker@gnat.com>
6311
6312 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
6313
6314 2004-04-23 Jerome Guitton <guitton@gnat.com>
6315
6316 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
6317 use convert_typed_floating to get the appropriate format.
6318
6319 2004-04-22 Randolph Chung <tausq@debian.org>
6320
6321 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
6322 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
6323 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
6324 (hppa_sign_extend): Add prototype.
6325 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
6326 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
6327 (sign_extend): Rename with hppa_ prefix and make non-static. Other
6328 hppa targets will also use these functions.
6329 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
6330 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
6331 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
6332 (hppa_gdbarch_init): Remove gdbarch setting of
6333 skip_trampoline_code, in_solib_call_trampoline and
6334 in_solib_return_trampoline.
6335 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6336 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
6337 hppa_in_solib_call_trampoline.
6338 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
6339 Moved from hppa-tdep.c.
6340 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
6341 in_solib_call_trampoline and in_solib_return_trampoline.
6342
6343 2004-04-22 Randolph Chung <tausq@debian.org>
6344
6345 * hppa-tdep.c (hppa_debug): New variable.
6346 (find_unwind_entry, hppa_frame_cache): Add debug output.
6347 (_initialize_hppa_tdep): Add command to set debug flag.
6348
6349 2004-04-22 Andrew Cagney <cagney@redhat.com>
6350
6351 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
6352 "trad-frame.h".
6353 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
6354 signal trampoline unwinder.
6355 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
6356
6357 2004-04-22 Mark Kettenis <kettenis@gnu.org>
6358
6359 Add OpenBSD/powerpc support.
6360 * NEWS (New native configurations): Mention OpenBSD/powerpc.
6361 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
6362 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
6363 (ppc_collect_fpregset): New prototypes.
6364 * ppcobsd-nat.c: New file.
6365 * ppcobsd-tdep.c: New file.
6366 * ppcobsd-tdep.h: New file.
6367 * rs6000-tdep.c: Include "regset.h".
6368 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
6369 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
6370 New functions.
6371 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
6372 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
6373 (rs6000-tdep.o): Update dependencies.
6374 * configure.host: Add powerpc-*-openbsd.
6375 * configure.tgt: Add powerpc-*-openbsd.
6376 * config/powerpc/obsd.mh: New file.
6377 * config/powerpc/nm-obsd.h: New file.
6378 * config/powerpc/obsd.mt: New file.
6379
6380 2004-04-22 Andrew Cagney <cagney@redhat.com>
6381
6382 * frame.h (show_frame_info): Delete declaration.
6383
6384 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
6385 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
6386 * m32r-tdep.c (m32r_frame_this_id): Ditto.
6387 * frv-tdep.c (frv_frame_this_id): Ditto.
6388 * avr-tdep.c (avr_frame_this_id): Ditto.
6389
6390 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
6391
6392 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
6393
6394 2004-04-22 Jim Blandy <jimb@redhat.com>
6395
6396 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
6397 register number zero.
6398
6399 2004-04-21 Michael Snyder <msnyder@redhat.com>
6400
6401 * mips-tdep.c (heuristic_proc_start):
6402 Warning() already prefixes "Warning: ".
6403
6404 2004-04-21 Andrew Cagney <cagney@redhat.com>
6405
6406 * annotate.h (deprecated_annotate_starting_hook)
6407 (deprecated_annotate_stopped_hook)
6408 (deprecated_annotate_exited_hook)
6409 (deprecated_annotate_signal_hook)
6410 (deprecated_annotate_signalled_hook): Deprecate.
6411 * tracepoint.h (deprecated_create_tracepoint_hook)
6412 (deprecated_delete_tracepoint_hook)
6413 (deprecated_modify_tracepoint_hook)
6414 (deprecated_trace_find_hook)
6415 (deprecated_trace_start_stop_hook): Deprecate.
6416 * target.h (deprecated_target_new_objfile_hook): Deprecate.
6417 * remote.h (deprecated_target_resume_hook)
6418 (deprecated_target_wait_loop_hook): Deprecate.
6419 * gdbcore.h (deprecated_exec_file_display_hook)
6420 (deprecated_file_changed_hook): Deprecate.
6421 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
6422 * defs.h (deprecated_modify_breakpoint_hook)
6423 (deprecated_command_loop_hook, deprecated_show_load_progress)
6424 (deprecated_print_frame_info_listing_hook)
6425 (deprecated_query_hook, deprecated_warning_hook)
6426 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
6427 (deprecated_delete_breakpoint_hook)
6428 (deprecated_interactive_hook, deprecated_registers_changed_hook)
6429 (deprecated_readline_begin_hook, deprecated_readline_hook)
6430 (deprecated_readline_end_hook, deprecated_register_changed_hook)
6431 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
6432 (deprecated_context_hook, deprecated_target_wait_hook)
6433 (deprecated_attach_hook, deprecated_detach_hook)
6434 (deprecated_call_command_hook, deprecated_set_hook)
6435 (deprecated_error_hook, deprecated_error_begin_hook)
6436 (deprecated_ui_load_progress_hook): Deprecate.
6437 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
6438 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
6439 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
6440 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
6441 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
6442 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
6443 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
6444 * annotate.c, aix-thread.c: Update.
6445
6446 2004-04-21 Andrew Cagney <cagney@redhat.com>
6447
6448 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
6449 * vaxnbsd-tdep.c: Include "gdb_string.h".
6450
6451 * symfile.c (symbol_file_add_from_memory): #if 0 function.
6452 (add_symbol_file_from_memory_command): #if 0 function body, call
6453 error instead.
6454
6455 2004-04-21 Andrew Cagney <cagney@redhat.com>
6456
6457 * gdbcore.h: Update copyright.
6458 (deprecated_add_core_fns): Rename add_core_fns.
6459 * win32-nat.c (_initialize_core_win32): Update.
6460 * sun3-nat.c (_initialize_core_sun3): Update.
6461 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
6462 * rs6000-nat.c (_initialize_core_rs6000): Update.
6463 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
6464 * nto-tdep.c (_initialize_nto_tdep): Update.
6465 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
6466 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
6467 * mips-nat.c (_initialize_core_mips): Update.
6468 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6469 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
6470 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
6471 * lynx-nat.c (_initialize_core_lynx): Update.
6472 * irix5-nat.c (_initialize_core_irix5): Update.
6473 * i386-interix-nat.c (_initialize_core_interix): Update.
6474 * cris-tdep.c (_initialize_cris_tdep): Update.
6475 * corelow.c (deprecated_add_core_fns): Update.
6476 * core-regset.c (_initialize_core_regset): Update.
6477 * core-aout.c (_initialize_core_aout): Update.
6478 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
6479 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
6480 * alpha-nat.c (_initialize_core_alpha): Update.
6481
6482 2004-04-21 Jim Blandy <jimb@redhat.com>
6483
6484 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
6485
6486 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
6487
6488 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
6489 Delete.
6490 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
6491 (read_attribute_value): Update calls to dwarf_alloc_block.
6492 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
6493 dwarf2_tmp_obstack.
6494 (psymtab_to_symtab_1): Likewise. Clean up using
6495 free_stack_comp_unit.
6496 (add_to_cu_func_list): Use the comp_unit_obstack.
6497
6498 2004-04-19 Joel Brobecker <brobecker@gnat.com>
6499
6500 * dwarf2read.c (dwarf2_flag_true_p): New function.
6501 (die_is_declaration): Use the function above. Add some comments.
6502
6503 2004-04-19 Mark Kettenis <kettenis@gnu.org>
6504
6505 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
6506 architecture when registering sparcnbsd_core_osabi_sniffer.
6507 Adjust comment.
6508
6509 2004-04-18 Mark Kettenis <kettenis@gnu.org>
6510
6511 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
6512 return value.
6513
6514 Based on a patch from Brian Ford <ford@vss.fsi.com>:
6515 * i386-tdep.c: Correct register numbering scheme comments
6516 throughout.
6517 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
6518 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
6519 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
6520 (i386_gdb_arch_init): Likewise.
6521
6522 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
6523 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
6524 ppcnbsd-tdep.o.
6525
6526 * m68k-tdep.h: Tweak comments.
6527 * m68k-tdep.c: Tweak comment.
6528
6529 2004-04-17 Randolph Chung <tausq@debian.org>
6530
6531 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
6532 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
6533 (hppa_hpux_som_init_abi): Set is_elf to 0.
6534 (hppa_hpux_elf_init_abi): Set is_elf to 1.
6535 * hppa-tdep.c (low_text_segment_address): Remove global.
6536 (record_text_segment_lowaddr): Pass in low address as parameter. Use
6537 section offset to calculate segment address.
6538 (internalize_unwinds): Define low_text_segment_address as local and
6539 pass to record_text_segment_lowaddr for ELF targets.
6540 (hppa_gdbarch_init): Zero fill tdep structure.
6541 (hppa_dump_tdep): Print tdep structure.
6542 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
6543
6544 2004-04-17 Randolph Chung <tausq@debian.org>
6545
6546 * hppa-tdep.c (hppa_pseudo_register_read): Define.
6547 (hppa_gdbarch_init): Set pseudo_register_read.
6548 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
6549 * regcache.c (supply_register): Remove check for
6550 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
6551
6552 2004-04-17 Randolph Chung <tausq@debian.org>
6553
6554 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
6555 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
6556 (hpread_adjust_stack_address): Move to hpread.c.
6557 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6558 obj_private_struct): Move from tm-hppa.h.
6559 * hpread.c (hppa-tdep.h): Include.
6560 (hpread_adjust_stack_address): Move from hppa-tdep.c.
6561 (hpread_read_function_type, hpread_read_doc_function_type)
6562 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
6563 directly.
6564 * pa64solib.c (hppa-tdep.h): Include.
6565 * somsolib.c (hppa-tdep.h): Include.
6566 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
6567 inferior_status): Remove unused forward declarations.
6568 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
6569 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6570 obj_private_struct): Move to hppa-tdep.h.
6571 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
6572
6573 2004-04-17 Randolph Chung <tausq@debian.org>
6574
6575 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
6576 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
6577 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
6578 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
6579 Remove forward declaration and make static.
6580 (hppa_reg_struct_has_addr): Remove.
6581
6582 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6583
6584 * observer.sh: Move comments in sed command to first column.
6585
6586 2004-04-16 Jason Molenda (jmolenda@apple.com)
6587
6588 * frame.c: Minor typeo corrections in comments.
6589
6590 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6591
6592 * observer.c (observer_test_first_notification_function): Update
6593 function profile.
6594 (observer_test_second_notification_function): Likewise.
6595 (observer_test_third_notification_function): Likewise.
6596
6597 2004-04-16 Mark Kettenis <kettenis@gnu.org>
6598
6599 From Brian Ford <ford@vss.fsi.com>:
6600 * i386-tdep.c (i386_coff_init_abi): New function.
6601 * i386-tdep.h (i386_coff_init_abi): New prototype.
6602 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
6603 register number translation functions for DWARF and DWARF 2.
6604
6605 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6606
6607 * dwarf2read.c: Back out my previous change, it was incorrect.
6608
6609 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
6610
6611 * dwarf2read.c: Include "hashtab.h".
6612 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
6613 has_namespace_info.
6614 (struct partial_die_info): Add comments. Use bitfields to reduce
6615 memory footprint. Add scope, scope_set, has_specification,
6616 spec_offset, die_parent, die_child, and die_sibling.
6617 (peek_die_abbrev): Add prototype.
6618 (partial_read_comp_unit_head): New function, broken out from
6619 dwarf2_build_psymtabs_hard.
6620 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
6621 Use partial_read_comp_unit_head. Initialize the CU and
6622 comp_unit_obstack. Update calls to read_partial_die and
6623 scan_partial_symbols. Use free_stack_comp_unit and
6624 load_partial_dies.
6625 (scan_partial_symbols): Change PDI to a pointer. Use the child and
6626 sibling pointers to walk partial DIEs. Call fixup_partial_die.
6627 Update calls to helper functions. Remove NAMESPACE argument.
6628 Update comments.
6629 (partial_die_parent_scope, partial_die_full_name): New functions.
6630 (add_partial_symbol): Remove namespace argument. Update call to
6631 pdi_needs_namespace. Use partial_die_full_name. Handle
6632 DW_TAG_namespace. Check has_namespace_info flag.
6633 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
6634 tag. Handle namespaces.
6635 (add_partial_namespace, add_partial_enumeration): Simplify.
6636 (guess_structure_name): New function, derived from
6637 add_partial_structure.
6638 (add_partial_structure): Remove.
6639 (determine_class_name): Update comment.
6640 (dwarf2_read_abbrevs): Set has_namespace_info flag.
6641 (is_type_tag_for_partial, load_partial_dies): New functions.
6642 (read_partial_die): Pass abbrev and abbrev_len as arguments.
6643 Record specifications instead of following them immediately.
6644 (find_partial_die_in_comp_unit, find_partial_die)
6645 (fixup_partial_die, free_stack_comp_unit)
6646 (hashtab_obstack_allocate, dummy_obstack_deallocate)
6647 (partial_die_hash, partial_die_eq): New functions.
6648 * Makefile.in (hashtab_h): Define.
6649 (dwarf2read.o): Update dependencies.
6650 (observer_inc, observer_h): Move to the correct section.
6651
6652 2004-04-15 Joel Brobecker <brobecker@gnat.com>
6653
6654 * dwarf2read.c (dwarf2_attribute_true_p): New function.
6655 (die_is_declaration): Use the function above. Add comment.
6656
6657 2004-04-15 Joel Brobecker <brobecker@gnat.com>
6658
6659 * dwarf2read.c (read_structure_scope): Identify stub types
6660 using die_is_declaration() only.
6661
6662 2004-04-15 Roland McGrath <roland@redhat.com>
6663
6664 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
6665 argument instead of NAME.
6666 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
6667 in call to symbol_file_add_with_addrs_or_offsets.
6668 (build_addr_info): New function, helper for ...
6669 (symbol_file_add_from_memory): New function.
6670 (add_symbol_file_from_memory_command): New function using that.
6671 (_initialize_symfile): Register it for add-symbol-file-from-memory.
6672 (pre_add_symbol_hook): Add const to argument type.
6673 * symfile.h (symbol_file_add_from_memory): Declare it.
6674
6675 2004-04-15 Mark Kettenis <kettenis@gnu.org>
6676
6677 * NEWS (New native configurations): Mention OpenBSD/vax.
6678 * configure.host: Add vax-*-openbsd*.
6679 * config/vax/obsd.mh: New file.
6680 * config/vax/nm-obsd.h: New file.
6681
6682 * vax-tdep.c: Include "regset.h".
6683 (vax_supply_gregset): New function.
6684 (vax_gregset): New variable.
6685 (vax_regset_from_core_section): New function.
6686 (vax_gdbarch_init): Set regset_from_core_section.
6687 * Makefile.in (vax-tdep.o): Update dependencies.
6688
6689 2004-04-15 Andrew Cagney <cagney@redhat.com>
6690
6691 * observer.c (normal_stop_subject, observer_notify_normal_stop)
6692 (observer_normal_stop_notification_stub)
6693 (observer_attach_normal_stop, observer_detach_normal_stop):
6694 Delete, replaced by #include "observer.inc".
6695 * infrun.c (normal_stop): Pass "stop_bpstat" to
6696 observer_notify_normal_stop.
6697 * Makefile.in (observer_inc): Define.
6698 (observer.o): Update dependencies.
6699 (observer.h, observer.inc): New rules.
6700 * observer.h: Delete file.
6701 * observer.sh: New file.
6702
6703 2004-04-15 Mark Kettenis <kettenis@gnu.org>
6704
6705 * vax-tdep.c (vax_frame_cache): Fix typo.
6706
6707 2004-04-14 Mark Kettenis <kettenis@gnu.org>
6708
6709 * NEWS (New native configurations): Mention NetBSD/vax.
6710 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
6711 * config/vax/nbsdelf.mh: New file.
6712 * config/vax/nbsdaout.mh: New file.
6713 * config/vax/nm-nbsd.h: New file.
6714 * config/vax/nm-nbsdaout.h: New file.
6715
6716 * vaxnbsd-tdep.c: New file.
6717 * Makefile.in (vaxnbsd-tdep.o): New dependency.
6718 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
6719 * config/vax/nbsd.mt: New file.
6720 * config/vax/tm-nbsd.h: New file.
6721
6722 * Makefile.in (vaxbsd-nat.o): New dependency.
6723
6724 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
6725 * vax-tdep.c (vax_store_arguments): Remove struct_return and
6726 struct_addr arguments. Don't push return value address.
6727 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
6728 arguments to vax_store_arguments. Store return value address in
6729 R1.
6730 (vax_store_struct_return, vax_extract_return_value)
6731 (vax_store_return_value): Remove functions.
6732 (vax_return_value): New function.
6733 (vax_gdbarch_init): Set return value. Don't set
6734 deprecated_store_struct_return, deprecated_extract_struct_return
6735 and deprecated_store_return_value.
6736
6737 2004-04-14 Andreas Schwab <schwab@suse.de>
6738
6739 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
6740 value buffer.
6741 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
6742
6743 2004-04-14 Mark Kettenis <kettenis@gnu.org>
6744
6745 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
6746 (vax_unwind_dummy_id): New functions.
6747 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
6748 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
6749 variables.
6750 (vax_fix_call_dummy): Remove function.
6751 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
6752 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
6753 call_dummy_location, deprecated_call_dummy_words,
6754 deprecated_sizeof_call_dummy_words,
6755 deprecated_call_dummy_breakpoint_offset,
6756 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
6757 and deprecated_dummy_write_sp.
6758
6759 2004-04-13 David Carlton <carlton@kealia.com>
6760
6761 * MAINTAINERS: Move myself to "paper trail" section.
6762
6763 2004-04-12 Mark Kettenis <kettenis@gnu.org>
6764
6765 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
6766 "trad-frame.h".
6767 (vax_frame_init_saved_regs): Remove function.
6768 (vax_sigtramp_saved_pc): Remove function.
6769 (vax_frame_saved_pc): Remove function.
6770 (vax_frame_args_address): Remove function.
6771 (vax_frame_num_args): Rewrite.
6772 (vax_frame_chain): Remove function.
6773 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
6774 VAX_FP_REGNUM.
6775 (vax_pop_frame): Likewise.
6776 (vax_saved_pc_after_call): Remove function.
6777 (struct vax_frame_cache): New structure.
6778 (vax_frame_cache): New function.
6779 (vax_frame_this_id): New function.
6780 (vax_frame_prev_register): New function.
6781 (vax_frame_unwind): New variable.
6782 (vax_frame_sniffer): New function.
6783 (vax_frame_base_address): New function.
6784 (vax_frame_args_address): New function.
6785 (vax_frame_base): New variable.
6786 (vax_unwind_pc): New function.
6787 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
6788 deprecated_fp_regnum, deprecated_saved_pc_after_call,
6789 deprecated_frame_chain, deprecated_frame_saved_pc,
6790 deprecated_frame_args_address and
6791 deprecated_frame_init_saved_regs.
6792 * Makefile.in (vax-tdep.o): Update dependencies.
6793
6794 * vaxbsd-nat.c: New file.
6795
6796 * vax-tdep.h: Update copyright year. Adjust comments.
6797 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
6798 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
6799 (vax_regnum): New enum. Replacing...
6800 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
6801 (VAX_PS_REGNUM): ... these removed macros.
6802 * vax-tdep.c (vax_register_name): Remove prototype.
6803 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
6804 (vax_register_byte, vax_register_raw_size,
6805 vax_register_virtual_size, vax_register_virtual_type): Remove
6806 functions.
6807 (vax_register_type): New function.
6808 (vax_breakpoint_from_pc): Reorganize.
6809 (vax_gdbarch_init): Set register_type. Don't set
6810 deprecated_register_size, deprecated_register_bytes,
6811 deprecated_register_byte, deprecated_register_raw_size,
6812 deprecated_max_register_raw_size,
6813 deprecated_register_virtual_size,
6814 deprecated_max_register_virtual_size and
6815 deprecated_register_virtual_type. Add comment on stack direction.
6816
6817 2004-04-11 Mark Kettenis <kettenis@gnu.org>
6818
6819 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
6820 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
6821 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
6822
6823 2004-04-10 Randolph Chung <tausq@debian.org>
6824
6825 * MAINTAINERS (write after approval): Add myself.
6826
6827 2004-04-07 Randolph Chung <tausq@debian.org>
6828
6829 * hppa-tdep.c (hppa_inner_than): Remove.
6830 (is_pa_2): Remove unused static variable.
6831 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
6832
6833 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
6834
6835 * language.h (language_defn): Add new la_post_parser field.
6836 * parser-defs.h (null_post_parser): New declaration (default for
6837 la_post_parser).
6838
6839 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
6840 insert call to that function.
6841 (parse_exp_in_context): New function, including code formerly in
6842 parse_exp_1. Calls language-dependent post-parser after
6843 prefixification.
6844 (parse_expression_in_context): New exported function.
6845 (null_post_parser): New definition.
6846 * expression.h (parse_expression_in_context): Add declaration.
6847
6848 * p-lang.c (pascal_language_defn): Add trivial post-parser.
6849 * c-lang.c (c_language_defn): Ditto.
6850 (cplus_language_defn): Ditto.
6851 (asm_language_defn): Ditto.
6852 (minimal_language_defn): Ditto.
6853 * f-lang.c (f_language_defn): Ditto.
6854 * jv-lang.c (java_language_defn): Ditto.
6855 * language.c (unknown_language_defn): Ditto.
6856 (auto_language_defn): Ditto.
6857 (local_language_defn): Ditto.
6858 * m2-lang.c (m2_language_defn): Ditto.
6859 * scm-lang.c (scm_language_defn): Ditto.
6860 * obj-lang.c (objc_language_defn): Ditto.
6861
6862 2004-04-10 Mark Kettenis <kettenis@gnu.org>
6863
6864 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
6865 (amd64nbsd_mcontext_addr): New function.
6866 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
6867 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
6868 with amd64nbsd_r_reg_offset, instead of building it on the fly.
6869
6870 * corelow.c (core_xfer_partial): Fix coding standards violation.
6871 Add support for TARGET_OBJECT_WCOOKIE.
6872
6873 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
6874 deprecated_pc_in_sigtramp.
6875 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
6876 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
6877 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
6878 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6879 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
6880 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6881 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
6882
6883 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
6884 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
6885 Fix typo.
6886
6887 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
6888 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
6889 (amd64_collect_fxsave): Likewise.
6890
6891 * i386-sol2-tdep.c: Include "gdb_string.h".
6892 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
6893 name.
6894 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6895
6896 2004-04-10 Mark Kettenis <kettenis@gnu.org>
6897
6898 * i386-sol2-tdep.c: Include "solib-svr4.h".
6899 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6900 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6901 * config/i386/tm-i386sol2.h: Include :solib.h".
6902 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
6903 solib-svr4.o and solib-legacy.o.
6904 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
6905 solib-svr4.o.
6906
6907 2004-04-09 Mark Kettenis <kettenis@gnu.org>
6908
6909 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
6910 whether a register is supplied by PTRACE_GETFPREGS.
6911 (store_inferior_registers): Likewise.
6912 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
6913 whether a register is supplied by PT_GETFPREGS.
6914 (store_inferior_registers): Likewise.
6915
6916 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
6917 * config/i386/linux64.mt (TDEPFILES): Likewise.
6918
6919 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
6920
6921 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
6922 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6923 the program counter is in the range specified by `struct
6924 gdbarch_tdep'.
6925 * amd64-linux-tdep.c: Include "symtab.h".
6926 (amd64_linux_pc_in_sigtramp): Remove function.
6927 (amd64_linux_sigtramp_p): New function.
6928 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6929 deprecated_pc_in_sigtramp.
6930 * amd64nbsd-tdep.c: Include "symtab.h".
6931 (amd64nbsd_sigtramp_p): New function.
6932 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6933 deprecated_pc_in_sigtramp.
6934 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
6935 few comments.
6936 (amd64obsd_pc_in_sigtramp): Remove function.
6937 (amd64obsd_sigtramp_p): New function.
6938 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6939 deprecated_pc_in_sigtramp.
6940 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
6941 (i386bsd_pc_ins_sigtramp): Remove prototype.
6942 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
6943 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
6944 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6945 the program counter is in the range specified by `struct
6946 gdbarch_tdep'.
6947 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
6948 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
6949 (i386_go32_pc_in_sigtramp): Remove function.
6950 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
6951 Initialize TDEP->sigtramp_p.
6952 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
6953 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
6954 deprecated_pc_in_sigtramp.
6955 * i386-linux-tdep.c: Adjust comments.
6956 (i386_linux_pc_in_sigtramp): Remove function.
6957 (i386_linux_sigtramp_p): New function.
6958 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6959 deprecated_pc_in_sigtramp.
6960 * i386-nto-tdep.c: Update copyright year.
6961 (i386nto_pc_in_sigtramp): Remove function.
6962 (i386nto_sigtramp_p): New function.
6963 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
6964 SP_REGNUM.
6965 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
6966 deprecated_pc_in_sigtramp.
6967 * i386-sol2-tdep.c: Update copyright year.
6968 (i386_sol2_pc_in_sigtramp): Remove function.
6969 (i386_sol2_sigtramp_p): New function.
6970 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
6971 deprecated_pc_in_sigtramp.
6972 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
6973 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
6974 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6975 deprecated_sigtramp_start and deprecated_sigtramp_end.
6976 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
6977 (i386nbsd_pc_in_sigtramp): Remove function.
6978 (i386nbsd_sigtramp_p): New function.
6979 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6980 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6981 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
6982 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
6983 (i386obsd_pc_in_sigtramp): Remove function.
6984 (i386obsd_sigtramp_p): New function.
6985 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
6986 functions.
6987 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6988 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6989 TDEP->sigtramp_p.
6990 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
6991 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
6992 dependencies.
6993
6994 * config/i386/i386aout.mt: Remove file.
6995
6996 * configure.tgt: Remove i[34567]86-*-go32*,
6997 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
6998 and i[34567]86-*-isc*. Set gdb_target to i386 for
6999 i[34567]86-*-netware* and i[34567]86-*-*.
7000 * config/i386/i386.mt: New file.
7001 * config/i386/embed.mt: Remove file.
7002 * config/i386/go32.mt: Remove file.
7003 * config/i386/i386nw.mt: Remove file.
7004 * config/i386/i386v.mt: Remove file.
7005 * config/i386/tm-go32.h: Remove file.
7006
7007 * tui/tui-hooks.c: Include "readline/readline.h" after
7008 "gdb_curses.h" instead of before.
7009 * tui/tui-io.c: Likewise.
7010
7011 * tui/tui.c: Fix typo in comment.
7012
7013 * sparc64-tdep.c (sparc_address_from_register): Remove function.
7014
7015 2004-04-08 Andrew Cagney <cagney@redhat.com>
7016
7017 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7018 (deprecated_exception_support_initialized): Declare.
7019 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
7020 (initialize_hp_cxx_exception_support)
7021 (child_enable_exception_callback): Update.
7022 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7023 (deprecated_exception_support_initialized): Rename
7024 deprecated_exception_catchpoints_are_fragile and
7025 deprecated_exception_support_initialized.
7026 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7027
7028 * symtab.c (deprecated_hp_som_som_object_present): Rename
7029 hp_som_som_object_present.
7030 * symtab.h (deprecated_hp_som_som_object_present): Declare.
7031 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7032 Update. Delete extern declaration.
7033 * valops.c (hp_som_som_object_present): Ditto.
7034 * parse.c (deprecated_hp_som_som_object_present)
7035 (parse_nested_classes_for_hpacc): Ditto.
7036 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
7037 * hppa-hpux-tdep.c (hp_som_som_object_present)
7038 (initialize_hp_cxx_exception_support): Ditto.
7039 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
7040 * cp-valprint.c (hp_som_som_object_present)
7041 (cp_print_class_method): Ditto.
7042 * c-typeprint.c (hp_som_som_object_present):
7043 (c_type_print_base): Ditto.
7044 * c-exp.y (hp_som_som_object_present): Ditto.
7045
7046 2004-04-08 Andrew Cagney <cagney@redhat.com>
7047
7048 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7049 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7050 (frame_unwind_find_by_frame): Re-implement the unwind code so
7051 that it can both prepend and append sniffers. Replace
7052 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7053 * tramp-frame.c (tramp_frame_append): Use
7054 frame_unwind_prepend_unwinder.
7055 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7056 frame_unwind_register_unwinder.
7057 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7058 tramp_frame_append.
7059 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
7060 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
7061 (mips_linux_init_abi): Update.
7062
7063 2004-04-08 Kevin Buettner <kevinb@redhat.com>
7064
7065 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7066 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
7067 file support.
7068
7069 2004-04-07 Kevin Buettner <kevinb@redhat.com>
7070
7071 * ia64-tdep.c (elf.h): Don't include.
7072 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7073
7074 2004-04-07 Jason Molenda (jmolenda@apple.com)
7075
7076 * frame.h: Typeo corrections in comments.
7077
7078 2004-04-07 Jim Blandy <jimb@redhat.com>
7079
7080 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7081 %esp and %ebp
7082
7083 2004-04-07 Mark Kettenis <kettenis@gnu.org>
7084
7085 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7086 * config/sparc/linux64.mt (TDEPFILES): Likewise.
7087 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7088 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7089 and solib-legacy.o.
7090 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7091 solib-svr4.o.
7092 * config/sparc/tm-sol2.h: Update copyright year. Include
7093 "solib.h".
7094
7095 * sparc-sol2-tdep.c: Update copyright year. Include
7096 "solib-svr4.h".
7097 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7098 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7099 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7100 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
7101 dependencies.
7102
7103 2004-04-06 Andrew Cagney <cagney@redhat.com>
7104
7105 * infttrace.c: Include "infttrace.h".
7106 * infttrace.h: Include "target.h".
7107 * Makefile.in (infttrace_h): Update.
7108 (infttrace.o): Update.
7109
7110 2004-04-06 Andrew Cagney <cagney@redhat.com>
7111
7112 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
7113 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
7114 move extern declarations from here ...
7115 * infttrace.h: ... to here.
7116 * Makefile.in (hppah-nat.o): Update dependencies.
7117
7118 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
7119 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
7120 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
7121 (hppa_breakpoint_from_pc): Delete.
7122
7123 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
7124
7125 2004-04-05 Andrew Cagney <cagney@redhat.com>
7126
7127 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
7128 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
7129 <sys/file.h>.
7130
7131 2004-04-06 Randolph Chung <tausq@debian.org>
7132
7133 Committed by Andrew Cagney (mechanical change).
7134 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
7135 exception_catchpoints_are_fragile, find_stub_with_shl_get,
7136 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
7137 child_enable_exception_callback, current_ex_event,
7138 null_symtab_and_line, child_get_current_exception_event,
7139 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
7140 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
7141 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
7142 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
7143 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
7144 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
7145 Move hpux-specific definitions ...
7146 * hppa-hpux-tdep.c: ... to here.
7147
7148 2004-04-05 Andrew Cagney <cagney@redhat.com>
7149
7150 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
7151 skip_prologue_using_sal.
7152
7153 2004-04-05 Andrew Cagney <cagney@redhat.com>
7154
7155 * config/i386/tm-i386.h: Delete file.
7156 * config/i386/tm-vxworks.h: Update copyright, do not include
7157 "tm-i386.h".
7158 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
7159 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
7160 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
7161 * config/i386/ncr3000.mt (TM_FILE): Delete.
7162 * config/i386/interix.mt (TM_FILE): Delete.
7163 * config/i386/i386v.mt (TM_FILE): Delete.
7164 * config/i386/i386nw.mt (TM_FILE): Delete.
7165 * config/i386/i386gnu.mt (TM_FILE): Delete.
7166 * config/i386/i386aout.mt (TM_FILE): Delete.
7167 * config/i386/embed.mt (TM_FILE): Delete.
7168
7169 2004-04-05 Kevin Buettner <kevinb@redhat.com>
7170
7171 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
7172 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
7173 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
7174 (accg7_regnum): New constants.
7175 (last_spr_regnum, last_pseudo_regnum): Update.
7176 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
7177 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
7178 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
7179 for accg registers.
7180 (frv_register_sim_regno): Update spr_map[].
7181
7182 2004-04-04 Andrew Cagney <cagney@redhat.com>
7183
7184 * config/mips/xm-riscos.h: Delete.
7185 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
7186 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
7187 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
7188 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
7189 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
7190 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
7191 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
7192 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
7193 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
7194 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
7195 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
7196 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
7197 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
7198 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
7199 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
7200 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
7201 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
7202 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
7203 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
7204 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
7205 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
7206 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
7207 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
7208 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
7209 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
7210 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
7211
7212 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
7213 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
7214 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
7215 * configure.host: Remove m680[01]0-sun-sunos3*,
7216 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
7217 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
7218 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
7219 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
7220 mips-*-riscos*.
7221 * NEWS: Mention removed systems.
7222
7223 2004-04-04 Andrew Cagney <cagney@redhat.com>
7224
7225 GDB 6.1 release created from 6.1 branch.
7226
7227 2004-04-04 Andrew Cagney <cagney@redhat.com>
7228
7229 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
7230 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
7231 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
7232
7233 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
7234 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
7235 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
7236
7237 2004-04-03 Jim Blandy <jimb@redhat.com>
7238
7239 * MAINTAINERS: Chris Faylor has changed employers; add him to
7240 "paper trail" section, and update his E-mail address.
7241
7242 2004-04-03 Andrew Cagney <cagney@redhat.com>
7243
7244 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
7245 generic dummy frames.
7246 * dummy-frame.c: Update copyright.
7247 (dummy_frame_sniffer): Delete check for generic dummy frames.
7248
7249 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
7250 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
7251 (REG_PARM_STACK_SPACE): Delete.
7252 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
7253 Inline reference to REG_PARM_STACK_SPACE.
7254
7255 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
7256 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7257 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7258 (FRAME_BASE_BEFORE_SIGTRAMP)
7259 (hppa32_hpux_frame_base_before_sigtramp)
7260 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
7261 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
7262 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
7263 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7264 (FRAME_BASE_BEFORE_SIGTRAMP)
7265 (hppa64_hpux_frame_base_before_sigtramp)
7266 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
7267
7268 2004-04-03 Andrew Cagney <cagney@redhat.com>
7269
7270 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
7271
7272 2004-04-02 Andrew Cagney <cagney@redhat.com>
7273
7274 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
7275 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
7276 * dummy-frame.h: Delete out-of-date comments.
7277 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
7278 * gdbarch.h, gdbarch.c: Re-generate.
7279
7280 2004-04-02 Joel Brobecker <brobecker@gnat.com>
7281
7282 Committed by Andrew Cagney <cagney@redhat.com>.
7283 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
7284 into account an instruction saving a register if we have already
7285 seen an earlier instruction saving that same register.
7286
7287 2004-04-02 Andrew Cagney <cagney@redhat.com>
7288
7289 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
7290 * gdbarch.h, gdbarch.c: Re-generate.
7291 * frame.c (legacy_get_prev_frame): Delete references to
7292 DEPRECATED_INIT_FRAME_PC_FIRST.
7293
7294 * infrun.c (pc_in_sigtramp): Delete function.
7295 (check_sigtramp2): Inline call to pc_in_sigtramp, use
7296 get_frame_type.
7297
7298 2004-04-02 Andrew Cagney <cagney@redhat.com>
7299
7300 * infrun.c (handle_step_into_function): Delete code conditional on
7301 legacy_frame_p.
7302 (handle_inferior_event, step_over_function): Ditto.
7303
7304 2004-04-02 Andrew Cagney <cagney@redhat.com>
7305
7306 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
7307 "previous frame inner to this frame" test.
7308
7309 2004-04-02 Andrew Cagney <cagney@redhat.com>
7310
7311 * frame.c (safe_frame_unwind_memory): New function.
7312 * frame.h (safe_frame_unwind_memory): Declare. Update description
7313 of /safe_/ methods.
7314 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
7315 "next_frame". Use safe_frame_unwind_memory.
7316 (tramp_frame_sniffer): Update call to tramp_frame_start.
7317
7318 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
7319
7320 * dwarf2read.c (dwarf2_objfile_data_key): New.
7321 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
7322 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
7323 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
7324 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
7325 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
7326 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
7327 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
7328 Remove variables.
7329 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
7330 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
7331 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
7332 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
7333 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
7334 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
7335 Remove macros.
7336 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
7337 data.
7338 (dwarf2_locate_sections, dwarf2_build_psymtabs)
7339 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
7340 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
7341 (read_partial_die, read_full_die, read_indirect_string)
7342 (dwarf_decode_line_header, dwarf_decode_macros)
7343 (dwarf2_symbol_mark_computed): Remove use of removed macros.
7344 Update uses of removed variables.
7345 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
7346 of removed macros.
7347 (_initialize_dwarf2_read): New function.
7348 * symfile.h (dwarf2_has_info): Update prototype.
7349 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
7350 * elfread.c (elf_symfile_read): Likewise.
7351
7352 2004-04-01 Jim Blandy <jimb@redhat.com>
7353
7354 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
7355 function for register numbers on all the rs6000-derived targets.
7356 (rs6000_gdbarch_init): Don't register a separate
7357 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
7358 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
7359 variants.
7360
7361 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
7362 numbering.
7363
7364 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
7365
7366 * valarith.c: Update copyright notice.
7367 (value_add): Handle range types.
7368 (value_sub): Ditto.
7369 (value_equal): Ditto.
7370 (value_less): Ditto.
7371 (value_neg): Ditto.
7372 (value_complement): Ditto.
7373 (value_binop): Simplify slightly by using is_integral_type and
7374 eliminiating unnecessary COERCE_ENUMs.
7375
7376 2004-03-31 Andrew Cagney <cagney@redhat.com>
7377
7378 * frame.h (frame_unwind_id): Declare.
7379 * frame.c (frame_unwind_id): New function.
7380 (get_prev_frame_1): New function.
7381 (frame_debug_got_null_frame): New function.
7382 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
7383 code proper to prev_frame, update description.
7384 * infrun.c (step_over_function): Use frame_unwind_id.
7385
7386 2004-04-31 J. Brobecker <brobecker@gnat.com>
7387
7388 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
7389 (hppa64_push_dummy_call): Likewise.
7390
7391 2004-03-30 Jim Blandy <jimb@redhat.com>
7392
7393 From Ulrich Weigand:
7394 * utils.c (query): Do not use a va_list variable multiple times.
7395
7396 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
7397
7398 * Makefile.in (linux_nat_h): Update dependencies.
7399 * configure.in: Check for <gnu/libc-version.h>.
7400 * configure: Regenerate.
7401 * config.in: Regenerate.
7402 * linux-nat.h: Include "target.h". Add waitstatus field to
7403 struct lwp_info.
7404 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
7405 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
7406 to.
7407 (lin_lwp_handle_extended): New function. Handle clone events.
7408 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
7409 thread exit events.
7410 (child_wait): Handle clone events.
7411 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
7412 * linux-nat.c (linux_enable_event_reporting): Turn on
7413 PTRACE_O_TRACECLONE.
7414 (linux_handle_extended_wait): Handle clone events.
7415 * thread-db.c: Include <gnu/libc-version.h>.
7416 (struct private_thread_info): Add dying flag.
7417 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
7418 higher.
7419 (attach_thread): Update comments. Handle dying threads.
7420 (detach_thread): Set the dying flag.
7421 (check_event): Always call attach_thread.
7422
7423 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
7424
7425 * mips-tdep.c (mips_pdr_data): New.
7426 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
7427 (_initialize_mips_tdep): Initialize mips_pdr_data.
7428
7429 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
7430
7431 * minsyms.c (install_minimal_symbols): Move dropping leading
7432 char from linkage name from here...
7433 (prim_record_minimal_symbol_and_info): ...to here. Simplify
7434 test for "__gnu_compiled*" symbols.
7435
7436 2004-03-28 Jim Blandy <jimb@redhat.com>
7437
7438 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
7439 registers to temp register r0 and byte stores as prologue
7440 instructions.
7441
7442 2004-03-28 Andrew Cagney <cagney@redhat.com>
7443
7444 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
7445 arm*-*-*.
7446
7447 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
7448
7449 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
7450 and switch the layout to force a display of register window.
7451
7452 2004-02-26 J. Brobecker <brobecker@gnat.com>
7453
7454 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
7455 of the INTEGER class.
7456
7457 2004-03-26 Jim Blandy <jimb@redhat.com>
7458
7459 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
7460 bytes long on PPC GNU/Linux.
7461
7462 2004-03-26 David Carlton <carlton@kealia.com>
7463
7464 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
7465
7466 2004-03-25 Andrew Cagney <cagney@redhat.com>
7467
7468 * PROBLEMS: Add general section titles, remove references to
7469 specific releases.
7470
7471 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
7472
7473 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
7474 INT_REGISTER_SIZE.
7475 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
7476 FP_REGISTER_VIRTUAL_SIZE.
7477 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
7478 of DEPRECATED_REGISTER_RAW_SIZE.
7479 (arm_register_type): Add gdbarch argument.
7480 (arm_register_raw_size, arm_register_virtual_size): Delete.
7481 (arm_register_byte, arm_extract_return_value)
7482 (arm_store_return_value, arm_get_longjmp_target): Update references
7483 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
7484 (arm_gdbarch_init): Likewise. Don't set
7485 deprecated_register_raw_size, deprecated_register_virtual_size,
7486 deprecated_max_register_raw_size,
7487 deprecated_max_register_virtual_size, or
7488 deprecated_max_register_virtual_type. Do set register_type.
7489 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
7490 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
7491 (FP_REGISTER_VIRTUAL_SIZE): Delete.
7492 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
7493 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
7494 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
7495 INT_REGISTER_SIZE.
7496 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
7497 (remote_rdp_store_register): Likewise.
7498
7499 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
7500
7501 * Makefile.in (mips-linux-tdep.o): Update dependencies.
7502 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
7503 to after osabi initialization.
7504 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
7505 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
7506 functions.
7507 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
7508 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
7509 variables.
7510 (mips_linux_init_abi): Append signal trampoline unwinders.
7511
7512 2004-03-24 Andrew Cagney <cagney@redhat.com>
7513
7514 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
7515 * tramp-frame.c: Include "gdb_assert.h".
7516 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
7517 correct sizeof.
7518 (tramp_frame_append): Validate the tramp frame's instructions.
7519 * Makefile.in (tramp-frame.o): Update dependencies.
7520
7521 2004-03-23 Andrew Cagney <cagney@redhat.com>
7522
7523 * trad-frame.h (trad_frame_set_reg_addr): Declare.
7524
7525 2004-03-23 Andrew Cagney <cagney@redhat.com>
7526
7527 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
7528 Nasser as past testsuite/lib/ (and other) maintainers.
7529
7530 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
7531
7532 * infcmd.c (attach_command): Reread symbols if we already have
7533 an exec file.
7534
7535 2004-03-23 Andrew Cagney <cagney@redhat.com>
7536
7537 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
7538
7539 2004-03-23 Andrew Cagney <cagney@redhat.com>
7540
7541 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
7542 * gdbarch.h, gdbarch.c: Re-generate.
7543 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7544 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7545 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7546 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
7547 (DEPRECATED_SIGTRAMP_START): Update.
7548 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
7549 (DEPRECATED_SIGTRAMP_START): Update.
7550 * blockframe.c (find_pc_sect_partial_function): Update.
7551 * arch-utils.c (legacy_pc_in_sigtramp): Update.
7552
7553 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
7554
7555 * remote.c (remote_open_1): Reopen the exec file and reread symbols
7556 if necessary.
7557
7558 2004-03-23 Andrew Cagney <cagney@redhat.com>
7559
7560 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
7561 predicate, deprecate.
7562 * gdbarch.h, gdbarch.c: Re-generate.
7563 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7564 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7565 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
7566 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7567 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
7568 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
7569 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
7570 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
7571 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
7572 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
7573 * blockframe.c (find_pc_partial_function): Update.
7574 * breakpoint.c (bpstat_what): Update.
7575 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
7576 * frv-linux-tdep.c (frv_linux_init_abi): Update.
7577 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
7578 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
7579 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7580 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7581 * i386-nto-tdep.c (i386nto_init_abi): Update.
7582 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
7583 * i386-tdep.c (i386_sigtramp_frame_sniffer)
7584 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
7585 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7586 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7587 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7588 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
7589 * infrun.c (pc_in_sigtramp): Update.
7590 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
7591 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
7592 * mips-tdep.c (mips_gdbarch_init): Update.
7593 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
7594 * ppc-linux-tdep.c: Update comment.
7595 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
7596 * shnbsd-tdep.c (shnbsd_init_abi): Update.
7597 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
7598 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
7599 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
7600 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
7601 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
7602 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
7603 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
7604 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
7605
7606 2004-03-23 Andrew Cagney <cagney@redhat.com>
7607
7608 * tramp-frame.h, tramp-frame.h: New files.
7609 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
7610 Update rules to include "tramp-frame.h" and "tramp-frame.c".
7611
7612 * Makefile.in: Update all dependencies.
7613
7614 2004-03-23 Andrew Cagney <cagney@redhat.com>
7615
7616 * Makefile.in (trad_frame_h): Add $(frame_h).
7617 * trad-frame.h: Update copyright. Include "frame.h".
7618 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
7619 (trad_frame_set_id, trad_frame_get_id): Declare.
7620 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
7621 * trad-frame.c: Update copyright.
7622 (struct trad_frame_cache): Define.
7623 (trad_frame_cache_zalloc): New function.
7624 (trad_frame_set_id, trad_frame_get_id): New functions.
7625 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
7626
7627 2004-03-22 Andrew Cagney <cagney@redhat.com>
7628
7629 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
7630 s390_pltstub_unwind_cache.
7631 (s390_stub_frame_unwind_cache): Rename
7632 s390_pltstub_frame_unwind_cache.
7633 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
7634 (s390_stub_frame_prev_register): Rename
7635 s390_pltstub_frame_prev_register.
7636 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
7637 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
7638
7639 From Ulrich Weigand:
7640 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
7641 pointer calls like PLT calls.
7642
7643 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
7644
7645 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
7646 PC rather than the partial function start address. Use the start
7647 address to sanity check the found PDR.
7648
7649 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
7650
7651 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
7652 linux_handle_extended_wait.
7653
7654 2004-03-22 Andrew Cagney <cagney@redhat.com>
7655
7656 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
7657 function.
7658
7659 * frame.h (generic_pop_current_frame): Delete declaration.
7660 (deprecate_pop_dummy_frame): Deprecate
7661 generic_pop_dummy_frame.
7662 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
7663 (generic_pop_current_frame): Delete function.
7664 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
7665 generic_pop_current_frame.
7666 * v850-tdep.c (v850_pop_frame): Update.
7667 * mcore-tdep.c (mcore_pop_frame): Update.
7668 * sh64-tdep.c (sh64_pop_frame): Update.
7669 * h8300-tdep.c (h8300_pop_frame): Update.
7670
7671 2004-03-22 Andrew Cagney <cagney@redhat.com>
7672
7673 * frame.h (deprecated_pc_in_call_dummy): Rename
7674 generic_pc_in_call_dummy.
7675 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
7676 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
7677 generic_pc_in_call_dummy.
7678 (pc_in_dummy_frame): Make static.
7679 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
7680 * gdbarch.h, gdbarch.c: Re-generate.
7681 * dummy-frame.c (dummy_frame_sniffer): Simplify.
7682 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
7683 (legacy_get_prev_frame): Ditto.
7684 * inferior.h: Delete reference to generic_pc_in_call_dummy in
7685 comment.
7686
7687 2004-03-21 Andrew Cagney <cagney@redhat.com>
7688
7689 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
7690 declaration and out-of-date comment.
7691 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
7692 Delete function.
7693 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
7694 deprecated_pc_in_call_dummy.
7695
7696 * infrun.c (handle_inferior_event): For non legacy frames, use the
7697 frame ID and frame type to identify a signal trampoline. Update
7698 comments.
7699
7700 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
7701
7702 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
7703 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
7704
7705 2004-03-21 Andrew Cagney <cagney@redhat.com>
7706
7707 * frame-unwind.h: Update copyright.
7708 (struct frame_data): Add opaque declaration.
7709 (frame_sniffer_ftype): Declare.
7710 (struct frame_unwind): Add "unwind_data" and "sniffer".
7711 (frame_unwind_register_unwinder): Declare.
7712 (frame_unwind_find_by_frame): Add parameter "this_cache".
7713 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
7714 (legacy_get_prev_frame, legacy_get_prev_frame)
7715 (get_frame_type): Pass the prologue_cache to
7716 frame_unwind_find_by_frame.
7717 * frame-unwind.c (struct frame_unwind_table_entry): Add field
7718 "unwinder".
7719 (frame_unwind_register_unwinder): New function.
7720 (frame_unwind_find_by_frame): Handle an unwind sniffer.
7721
7722 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
7723
7724 * bcache.c (print_percentage): Use floating point to avoid
7725 incorrect results when portion*100 overflows.
7726
7727 2004-03-19 Kevin Buettner <kevinb@redhat.com>
7728
7729 * ppc_tdep.h (ppc_linux_frame_saved_pc)
7730 (ppc_linux_init_extra_frame_info)
7731 (ppc_linux_frameless_function_invocation)
7732 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
7733 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
7734 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
7735 (rs6000_frame_chain): Delete declarations.
7736 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
7737 (ppc_linux_init_extra_frame_info)
7738 (ppc_linux_frameless_function_invocation)
7739 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
7740 (ppc_linux_init_abi): Remove registration of above deleted functions.
7741 * rs6000-tdep.c (rs6000_init_extra_frame_info)
7742 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
7743 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
7744 (rs6000_pop_frame, rs6000_frameless_function_invocation)
7745 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
7746 (rs6000_gdbarch_init): Remove registration of above deleted functions.
7747 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
7748 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
7749 frame management for all OSABIs.
7750
7751 2004-03-19 Andrew Cagney <cagney@redhat.com>
7752
7753 Committed by Kevin Buettner <kevinb@redhat.com>.
7754
7755 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
7756 Update copyright.
7757 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
7758 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
7759 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
7760 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
7761 unwinders. #ifdef legacy frame code.
7762 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7763 "frame-base.h".
7764 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
7765 (struct rs6000_frame_cache, rs6000_frame_cache)
7766 (rs6000_frame_this_id, rs6000_frame_prev_register)
7767 (rs6000_frame_sniffer, rs6000_frame_unwind)
7768 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
7769 (rs6000_frame_base): Implement a traditional frame unwinder.
7770 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
7771 frame unwinder.
7772
7773 2004-03-19 Kevin Buettner <kevinb@redhat.com>
7774
7775 * breakpoint.c (adjust_breakpoint_address): Don't adjust
7776 breakpoint address for watchpoints or the catch eventpoints.
7777 Add new paramter ``bptype''. Adjust all callers.
7778
7779 2004-03-19 Andrew Cagney <cagney@redhat.com>
7780
7781 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
7782
7783 * PROBLEMS: Delete note that ARM does not use frame code, problem
7784 fixed.
7785
7786 2004-03-18 Andrew Cagney <cagney@redhat.com>
7787
7788 * stack.c (return_command): Delete code wrapped in #ifdef
7789 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
7790
7791 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
7792
7793 2004-03-18 Andrew Cagney <cagney@redhat.com>
7794
7795 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
7796 DEPRECATED_IN_SIGTRAMP.
7797 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7798 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
7799 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7800 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7801 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7802 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7803 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7804 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7805 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
7806 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
7807
7808 2004-03-18 Andrew Cagney <cagney@redhat.com>
7809
7810 * frame-base.c: Update copyright. Include "gdb_obstack.h".
7811 (struct frame_base_table_entry): Define.
7812 (struct frame_base_table): Re-implement as a linked list.
7813 (frame_base_init): Re-implement.
7814 (frame_base_table): Delete function.
7815 (append_predicate): Delete function.
7816 (frame_base_append_sniffer): Update.
7817 (frame_base_set_default): Update.
7818 (frame_base_find_by_frame): Update.
7819 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
7820 * Makefile.in (frame-base.o): Update dependencies.
7821
7822 2004-03-17 Andrew Cagney <cagney@redhat.com>
7823
7824 * frame.c (legacy_get_prev_frame): Pass correct frame to
7825 frame_unwind_find_by_frame.
7826
7827 2004-03-17 David Carlton <carlton@kealia.com>
7828
7829 * NEWS: Mention C++ nested types and namespaces
7830
7831 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
7832
7833 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
7834 and "Regressions since gdb 5.3.". Add known regressions since
7835 gdb 6.0.
7836
7837 2004-03-16 David Carlton <carlton@kealia.com>
7838
7839 * dwarf2read.c (process_structure_scope): Process children even
7840 when we're a declaration.
7841
7842 2004-03-16 Andrew Cagney <cagney@redhat.com>
7843
7844 * symtab.h (find_pc_sect_partial_function): Delete declaration.
7845 * blockframe.c (find_pc_partial_function)
7846 (find_pc_sect_partial_function): Merge into a single
7847 find_pc_partial_function.
7848
7849 2004-03-16 Mark Kettenis <kettenis@gnu.org>
7850
7851 * i386bsd-nat.c: s/regno/regnum/g.
7852 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
7853 FP0_REGNUM.
7854 (store_inferior_registers): Likewise.
7855
7856 2004-03-16 Mark Kettenis <kettenis@gnu.org>
7857
7858 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
7859 of i387_fill_fsave.
7860 (store_inferior_registers): Call i387_collect_fsave and
7861 i387_collect_fxsave instead of i387_fill_fsave and
7862 i387_fill_fxsave.
7863
7864 2004-03-15 Andrew Cagney <cagney@redhat.com>
7865
7866 * Makefile.in (frame-unwind.o): Update dependencies.
7867 * frame-unwind.c: Include "gdb_obstack.h".
7868 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
7869 parameter.
7870 (append_predicate): Delete function.
7871 (struct frame_unwind_table_entry): New structure.
7872 (struct frame_unwind_table): Replace "sniffer" with "head" and
7873 "tail".
7874 (frame_unwind_append_sniffer): Update.
7875 (frame_unwind_find_by_frame): Update.
7876 (_initialize_frame_unwind): Registe frame_unwind_init using
7877 gdbarch_data_register_pre_init.
7878
7879 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7880
7881 * i386bsd-nat.c: Update copyright year.
7882 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
7883 define unconditionally.
7884
7885 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7886
7887 * i387-tdep.h (i387_collect_fsave): New prototype.
7888 * i387-tdep.c (i387_collect_fsave): New function containing most
7889 of the code from i387_fill_fsave.
7890 (i387_fill_fsave): Call i387_collect_fsave.
7891
7892 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7893
7894 * i386-linux-tdep.c: Update copyright year.
7895 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
7896 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
7897 svr4_ilp32_link_map_offsets instead of
7898 i386_linux_svr4_fetch_link_map_offsets.
7899
7900 2004-03-15 David Carlton <carlton@kealia.com>
7901
7902 Fix for PR c++/1553:
7903 * dwarf2read.c (read_structure_type): Determine type name by
7904 calling determine_class_name.
7905 (determine_class_name): New.
7906 (determine_prefix): Look at TYPE_TAG_NAME and call
7907 determine_class_name when appropriate.
7908 (determine_prefix_aux, class_name): Delete.
7909 (read_namespace): Set die->type.
7910
7911 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7912
7913 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
7914 unused macro definition. The definition in target.h (or perhaps
7915 elsewhere) takes precedence.
7916
7917 2004-03-15 Andrew Cagney <cagney@redhat.com>
7918
7919 * ppc-tdep.h: Update copyright.
7920 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
7921 function signatures to match "regsets.h".
7922 * ppc-linux-tdep.c: Include "regset.h".
7923 (ELF_GREGSET_SIZE): Delete.
7924 (right_supply_register): New function.
7925 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
7926 using right_supply_register.
7927 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
7928 functions.
7929 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
7930 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
7931 (_initialize_ppc_linux_tdep): Do not register
7932 ppc_linux_regset_core_fns.
7933 (ppc_linux_regset_from_core_section): Replace
7934 fetch_core_registers.
7935 (ppc_linux_regset_core_fns): Delete.
7936 * ppc-linux-nat.c: (right_fill_reg): New function.
7937 (supply_gregset): Update call to ppc_linux_supply_gregset.
7938 (fill_gregset): Clear the register set, use right_fill_reg.
7939 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
7940 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
7941
7942 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
7943 unsigned.
7944
7945 2004-03-15 Andrew Cagney <cagney@redhat.com>
7946
7947 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
7948 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
7949 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
7950 and register_gdbarch_data.
7951 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
7952 (struct gdbarch_data): Replace "init" by "pre_init" and
7953 "post_init".
7954 * gdbarch.h, gdbarch.c: Re-generate.
7955 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
7956 with"obstack", use OBSTACK_ZALLOC.
7957 (dwarf2_frame_ops): Delete.
7958 (dwarf2_frame_set_init_reg): Use gdbarch_data.
7959 (dwarf2_frame_init_reg): Use gdbarch_data.
7960 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
7961 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
7962 (_initialize_svr4_solib): Update.
7963 * user-regs.c (_initialize_user_regs): Update.
7964 * reggroups.c (_initialize_reggroup): Update.
7965 * regcache.c (_initialize_regcache): Update.
7966 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7967 * libunwind-frame.c (_initialize_libunwind_frame): Update.
7968 * gnu-v3-abi.c (init_gnuv3_ops): Update.
7969 * frame-unwind.c (_initialize_frame_unwind): Update.
7970 * frame-base.c (_initialize_frame_base): Update.
7971 * user-regs.c (user_reg_add): Update.
7972 * reggroups.c (reggroup_add): Update.
7973 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
7974 * libunwind-frame.c (libunwind_frame_set_descr): Update.
7975 * frame-unwind.c (frame_unwind_append_sniffer): Update.
7976 * frame-base.c (frame_base_table): Update.
7977 * remote.c (_initialize_remote): Update.
7978 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
7979
7980 2004-03-15 Andrew Cagney <cagney@redhat.com>
7981
7982 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
7983
7984 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7985
7986 * Makefile.in (frv-linux-tdep.o): Add dependencies.
7987 * frv-linux-tdep.c: New file.
7988 * frv-tdep.c (struct gdbarch_tdep): Add new field
7989 ``sigcontext_reg_addr''.
7990 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
7991 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7992 (frv_sigramp_frame_sniffer): New functions.
7993 (frv_sigtramp_frame_unwind): New static global.
7994 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
7995 sniffers.
7996 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
7997 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
7998
7999 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8000
8001 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8002 but not via a call to error(), when unable to read memory.
8003
8004 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8005
8006 * frv-tdep.c (frv_call_dummy_words): Delete.
8007 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8008
8009 2004-03-15 Andrew Cagney <cagney@redhat.com>
8010
8011 * infrun.c (handle_step_into_function, step_over_function): Only
8012 update and use STEP_FRAME_ID when the system is using legacy
8013 frames. Update comments.
8014
8015 2004-03-14 Mark Kettenis <kettenis@gnu.org>
8016
8017 * amd64-linux-tdep.h: Remove file.
8018 * amd64-linux-tdep.c: Don't include "inferior.h" and
8019 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
8020 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8021 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8022 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8023 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8024 macros.
8025 (user_to_gdb_regmap): Remove variable.
8026 (amd64_linux_gregset_reg_offset): New variable.
8027 (amd64_core_fns): Remove variable.
8028 (fetch_core_registers): Remove function.
8029 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8030 functions.
8031 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8032 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8033 * Makefile.in (amd64_linux_tdep_h): Remove.
8034 (amd64-linux-nat.o): Update dependencies.
8035 (amd64-linux-tdep.o): Update dependencies.
8036
8037 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8038 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8039 functions.
8040 (fetch_inferior_registers, store_inferior_registers): Rewrite.
8041
8042 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8043 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8044
8045 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
8046
8047 * dwarf2read.c (read_structure_type): Rename from
8048 read_structure_scope. Don't create a symbol or call process_die.
8049 Return immediately if die->type is set. Call read_type_die before
8050 dwarf2_add_member_fn.
8051 (process_structure_scope): New function.
8052 (read_enumeration_type, process_enumeration_scope): New functions,
8053 broken out from read_enumeration. Don't create the enumeration
8054 type if it has already been created.
8055 (read_enumeration): Removed.
8056 (process_die): Call read_structure_type, process_structure_scope,
8057 read_enumeration_type, and process_enumeration_scope. Just call
8058 new_symbol for base and subrange types. Add a comment about other
8059 type dies.
8060 (read_type_die): Call read_enumeration_type.
8061 (add_partial_structure, new_symbol): Update comments.
8062
8063 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8064
8065 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8066
8067 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8068
8069 * tui/tui-win.h (tui_get_cmd_list): Declare.
8070 * tui/tui-win.c (tui_command): New function.
8071 (tui_get_cmd_list): New function.
8072 (_initialize_tui_win): Moved initialization of tui command in
8073 tui_get_cmd_list.
8074
8075 * tui/tui-data.c (init_content_element): Setup new data members.
8076 (init_win_info): Likewise.
8077 (free_content_elements): Free it.
8078 * tui/tui-data.h (struct tui_data_element): Store the register
8079 content to print.
8080 (struct tui_data_info): Keep the current register group.
8081
8082 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8083
8084 * tui/tui-regs.h (tui_show_registers): Update prototype.
8085 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8086 (tui_resize_all): No need to calculate anything for register window.
8087 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8088 (tui_set_register_element, tui_set_general_regs_content): Remove.
8089 (tui_set_special_regs_content): Remove.
8090 (tui_set_general_and_special_regs_content): Remove.
8091 (tui_set_float_regs_content): Remove.
8092 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8093 (tui_set_regs_content): Remove.
8094 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8095 (tui_v_show_registers_command_support): Remove.
8096 (tui_show_registers): Use a reggroup to specify the registers to show.
8097 (tui_show_register_group): New function.
8098 (tui_display_registers_from): Compute the layout of register window
8099 and refresh with new API; be sure to delete old register windows.
8100 (tui_check_register_values): Update to use tui_get_register and
8101 tui_display_data.
8102 (tui_display_register): Just refresh the register window part.
8103 (tui_register_format): Format registers and save in tui_data_element.
8104 (tui_get_register): New to combine tui_reg_value_has_changed and
8105 tui_get_register_raw_value; fix to use the new gdb API.
8106 (tui_show_float_command): Renamed tui_reg_float_command.
8107 (tui_show_general_command): Renamed tui_reg_general_command.
8108 (tui_show_special_command): Renamed tui_reg_system_command.
8109 (_initialize_tui_regs): Remove unused commands.
8110
8111 2004-03-13 Mark Kettenis <kettenis@gnu.org>
8112
8113 * NEWS (New native configurations): Mention OpenBSD/amd64.
8114
8115 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
8116 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
8117 Remove defines.
8118 * config/i386/nm-fbsd64.h: Likewise.
8119 * config/i386/nm-obsd.h: Likewise.
8120 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
8121 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
8122
8123 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8124
8125 * frv-tdep.c (set_variant_scratch_registers): New function.
8126 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
8127 New constants.
8128
8129 From Richard Sandiford <rsandifo@redhat.com>:
8130 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
8131
8132 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8133
8134 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
8135 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
8136 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
8137 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
8138 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
8139 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
8140 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
8141 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
8142 definitions from frv-tdep.c to frv-tdep.h.
8143
8144 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8145
8146 Add shared library support for FR-V FDPIC ABI:
8147 * Makefile.in (solib-frv.o): Add dependencies.
8148 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
8149 New functions.
8150 (frv_push_dummy_call): Add support for FDPIC ABI.
8151 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
8152 for FDPIC ABI.
8153 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
8154 (frv_fdpic_find_canonical_descriptor): Declare.
8155 * solib-frv.c: New file.
8156 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
8157 * config/frv/tm-frv.h (solib.h): Include.
8158
8159 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8160
8161 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
8162 (frv-tdep.o): Update dependencies.
8163 * frv-tdep.h: New file.
8164 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
8165 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
8166 constants.
8167 (struct gdbarch_tdep): Add new member ``frv_abi''.
8168 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
8169 functions.
8170 (new_variant): Set ``frv_abi'' field.
8171 (gdb_arch_init): Detect FDPIC executables.
8172
8173 2004-03-12 Mark Kettenis <kettenis@gnu.org>
8174
8175 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
8176 wrapper.
8177
8178 2004-03-11 Andrew Cagney <cagney@redhat.com>
8179
8180 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
8181
8182 2004-03-11 Kevin Buettner <kevinb@redhat.com>
8183
8184 * solist.h (master_so_list): New function.
8185 * solib.c (master_so_list): Likewise.
8186 * solib-svr4.c (enable_break): Iterate over so_list entries
8187 obtained from master list instead of entries obtained directly
8188 via svr4_current_sos().
8189
8190 2004-03-10 Ben Elliston <bje@gnu.org>
8191
8192 * MAINTAINERS: Update my mail address.
8193
8194 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
8195
8196 * remote-m32r-sdi.c: Support hardware watchpoint.
8197
8198 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8199
8200 * user-regs.c: Update copyright years.
8201 (struct user_regs): Rename to gdb_user_regs.
8202 (append_user_reg, builtin_user_regs, user_regs_init)
8203 (user_reg_add, user_reg_map_name_to_regnum)
8204 (usernum_to_user_reg): Update.
8205
8206 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8207
8208 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
8209 (skip_children): New functions.
8210 (locate_pdi_sibling): Call skip_children.
8211
8212 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8213
8214 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
8215 * gdbtypes.c (check_typedef): Update comments.
8216
8217 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8218
8219 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
8220 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
8221 pointer. Update comment about comp_unit_head.
8222 (struct abbrev_info): Shorten two int flags.
8223 (dwarf_alloc_abbrev): Take a CU argument.
8224 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
8225 each time through the loop. Update cleanup argument.
8226 (psymtab_to_symtab_1): Update cleanup call.
8227 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
8228 abbrev_obstack.
8229 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
8230 Just call obstack_free and clear the pointer.
8231
8232 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8233
8234 * infrun.c (handle_inferior_event): Remove short-circuit code for
8235 events in a different thread.
8236
8237 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8238
8239 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
8240 print the whole transfer.
8241 (initialize_targets): Update description of "set debug target".
8242
8243 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8244
8245 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
8246
8247 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
8248
8249 * MAINTAINERS (write after approval): Add myself.
8250
8251 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
8252
8253 * sh-tdep.c (sh_print_registers_info): Use for loop.
8254 Don't skip multiple registers when a float register is encountered.
8255
8256 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
8257
8258 Fix PR tdep/1291.
8259 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
8260 to official SH documentation.
8261
8262 2004-03-07 Andrew Cagney <cagney@redhat.com>
8263
8264 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
8265 unused function.
8266
8267 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
8268
8269 * arm-tdep.c (thumb_get_next_pc): Handle BX.
8270 (arm_get_next_pc): Handle BX and BLX.
8271
8272 2004-03-07 Andrew Cagney <cagney@redhat.com>
8273
8274 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
8275 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
8276 HPPA_SP_REGNUM.
8277 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
8278 (hppa_target_read_fp): Delete.
8279 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
8280 register_virtual_size, max_register_raw_size,
8281 max_register_virtual_size, register_byte, register_size,
8282 target_read_fp, fp_regnum, and register_bytes. Set register_type
8283 instead of register_virtual_type.
8284 (hppa32_register_type, hppa64_register_type): Replace
8285 hppa32_register_virtual_type and hppa64_register_virtual_type.
8286 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
8287 (HPPA_FP_REGNUM): Define.
8288
8289 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
8290
8291 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
8292 (pa_do_registers_info): Delete.
8293 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8294 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
8295 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
8296
8297 * infcall.c (legacy_push_dummy_code): Delete #ifdef
8298 GDB_TARGET_IS_HPPA code.
8299 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8300 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
8301 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
8302 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8303 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
8304 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
8305 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
8306 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8307 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
8308 (hppa_frameless_function_invocation, hppa64_store_return_value)
8309 (hppa_store_struct_return, hppa64_extract_return_value)
8310 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8311 (hppa32_call_dummy_length, hppa64_call_dummy_length)
8312 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8313 (find_proc_framesize, deposit_21, restore_pc_queue)
8314 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
8315 (rp_saved, pc_in_linker_stub): Delete.
8316
8317 Unconditionally enable 64-bit frame and ABI code.
8318 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
8319 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
8320 push_dummy_frame, fix_call_dummy, push_arguments,
8321 call_dummy_location, extract_return_value, use_struct_convention,
8322 store_return_value, store_struct_return, saved_pc_after_call,
8323 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
8324 frame_chain, frame_chain_valid, frameless_function_invocation,
8325 frame_saved_pc, and pop_frame.
8326
8327 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
8328 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
8329 (hppa_gdbarch_init): Do not set PC_REGNUM.
8330
8331 2004-03-06 Mark Kettenis <kettenis@gnu.org>
8332
8333 * config/alpha/tm-fbsd.h: Remove file.
8334 * config/alpha/fbsd.mt: Tweak comment.
8335 (TM_FILE): Set to tm-alpha.h.
8336
8337 2004-03-05 Andrew Cagney <cagney@redhat.com>
8338
8339 * infrun.c (step_over_function): When non-legacy code, and no
8340 step_frame_id, use the unwinder to get the caller's frame ID.
8341
8342 2004-03-05 Mark Kettenis <kettenis@gnu.org>
8343
8344 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
8345 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
8346 bfd_arch_unknown. Adjust comment.
8347
8348 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
8349 * i386obsd-tdep.c: Correct spelling in comment.
8350 * i386nbsd-tdep.c: Correct spelling in comment.
8351 * sparc-tdep.c: Correct spelling in comments.
8352
8353 2004-03-05 David Carlton <carlton@kealia.com>
8354
8355 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
8356 bug.
8357
8358 2004-03-05 Mark Kettenis <kettenis@gnu.org>
8359
8360 * sparc-tdep.c: Fix typo in comment.
8361
8362 2004-03-04 J. Brobecker <brobecker@gnat.com>
8363
8364 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
8365
8366 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
8367
8368 * dwarf2read.c: Add comment describing memory lifetimes.
8369 (struct dwarf2_pinfo): Update comment.
8370 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
8371 (read_enumeration, new_symbol): Don't use obsavestring.
8372
8373 2004-03-04 Mark Kettenis <kettenis@gnu.org>
8374
8375 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
8376 instead of amd64_fill_fxsave.
8377 * amd64bsd-nat.c (store_inferior_registers): Likewise.
8378 * amd64fbsd-nat.c (fill_fpregset): Likewise.
8379
8380 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
8381 Reorganize code a bit.
8382
8383 2004-03-04 Orjan Friberg <orjanf@axis.com>
8384
8385 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8386 when the frame pointer is pushed. Don't set the frame pointer's
8387 address on the stack unless it's actually located there.
8388 Set the SRP's address on the stack correctly when the PC is still in
8389 the prologue.
8390 (cris_return_value): New function.
8391 (cris_gdbarch_init): Clear deprecated store_return_value,
8392 extract_return_value.
8393
8394 2004-03-02 Jim Blandy <jimb@redhat.com>
8395
8396 * stabsread.c (reg_value_complaint): The maximum register number
8397 is one less than the number of registers.
8398
8399 2004-03-02 Andrew Cagney <cagney@redhat.com>
8400
8401 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
8402 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
8403 trailing comma and redundant assignment of I386_ST0_REGNUM.
8404 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
8405 32-bit segment registers.
8406
8407 2004-03-01 Andrew Cagney <cagney@redhat.com>
8408
8409 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
8410 use frame_relative_level and get_next_frame.
8411
8412 2004-02-29 Andrew Cagney <cagney@redhat.com>
8413
8414 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
8415 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
8416 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
8417 Delete macro.
8418
8419 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
8420
8421 * inflow.c (terminal_inferior): Don't give up the terminal if we
8422 previously couldn't get the inferior's terminal state.
8423
8424 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
8425
8426 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
8427 PC_REGNUM.
8428
8429 2004-02-28 Andrew Cagney <cagney@redhat.com>
8430
8431 * NEWS: Refer to GDB 6.1.
8432 * README: Refer to GDB 6.1.
8433 * PROBLEMS: Refer to GDB 6.1.
8434
8435 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
8436
8437 * thread-db.c (disable_thread_signals): Remove unused function.
8438
8439 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8440
8441 * amd64-nat.c: Include "gdb_string.h".
8442 (amd64_collect_native_gregset): Zero-extend the 32-bit
8443 general-purpose registers and %eip.
8444
8445 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
8446 * amd64-tdep.c (amd64_collect_fxsave): New function.
8447 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
8448
8449 * i387-tdep.h: Update copyright year.
8450 (i387_collect_fxsave): New prototype.
8451 * i387-tdep.c: Update copyright year.
8452 (i387_collect_fxsave): New function containing most of the code
8453 from i387_fill_fxsave.
8454 (i387_fill_fxsave): Call i387_collect_fxsave.
8455
8456 2004-02-28 Andrew Cagney <cagney@redhat.com>
8457
8458 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
8459 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
8460
8461 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8462
8463 * amd64-tdep.c (amd64_frame_cache): Fix comment.
8464
8465 2004-02-28 Andrew Cagney <cagney@redhat.com>
8466
8467 * utils.c: Use "", instead of <>, to include readline.
8468 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
8469 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
8470 * source.c, solib.c, exec.c, event-top.c: Ditto.
8471 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
8472 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
8473 * Makefile.in: Update all dependencies.
8474 (readline_tilde_h, readline_history_h): Define.
8475 (readline_headers): Delete.
8476
8477 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8478
8479 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
8480 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
8481 "config/i386/tm-lx64.h".
8482
8483 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
8484 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
8485 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
8486
8487 2004-02-28 Andrew Cagney <cagney@redhat.com>
8488
8489 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
8490
8491 * breakpoint.c (_initialize_breakpoint): Use
8492 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
8493 Add help to show command.
8494
8495 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8496
8497 * i386-nat.c: Reformat to be closer to coding standards.
8498 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
8499 `retval'. Make variables `align' and `size' local to while-loop.
8500 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
8501 (_initialize_i386_nat): New prototype.
8502
8503 * tui/tui.c: Include <readline/readline.h> instead of
8504 "readline/readline.h". Include it after <term.h> and
8505 "gdb_curses.h".
8506
8507 2004-02-27 Andrew Cagney <cagney@redhat.com>
8508
8509 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
8510 the new frame unwind code.
8511 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
8512 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
8513 PCOQ_HEAD_REGNUM.
8514
8515 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
8516 "return_value" and "push_dummy_call".
8517 (hppa32_use_struct_convention): Delete unused function.
8518 (hppa32_store_return_value): Delete unused function.
8519 (hppa32_extract_return_value): Delete unused function.
8520 (hppa32_stack_align): Delete function.
8521
8522 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
8523
8524 * coffread.c (enter_linenos): Don't let rawptr reference memory
8525 outside linetab[]'s limits.
8526
8527 2004-02-27 Andrew Cagney <cagney@redhat.com>
8528
8529 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
8530 inferior stack space - the stack needs to grow upwards.
8531 (hppa32_frame_align): New function.
8532 (hppa64_frame_align): Replace hppa_frame_align.
8533 (hppa_gdbarch_init): Update.
8534
8535 2004-02-26 Orjan Friberg <orjanf@axis.com>
8536
8537 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
8538 (dwarf2-frame.h): Include.
8539 (enum cris_regnums): New enum CRIS_FP_REGNUM.
8540 Remove static variables related to ABI setting.
8541 (struct gdbarch_tdep): Remove cris_abi member.
8542 (struct frame_extra_info): Remove.
8543 (cris_unwind_cache, stack_item): New structs.
8544 (cris_frame_unwind, cris_frame_base): New variables.
8545 (push_stack_item, pop_stack_item)
8546 (cris_frame_unwind_cache, cris_frame_this_id)
8547 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
8548 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
8549 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
8550 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
8551 (cris_reg_struct_has_addr): New functions.
8552 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8553 (cris_frame_saved_pc, cris_saved_pc_after_call,
8554 (cris_store_struct_return, cris_frameless_function_invocation)
8555 (cris_pop_frame, cris_skip_prologue_main)
8556 (cris_abi_original_store_return_value)
8557 (cris_abi_v2_store_return_value)
8558 (cris_abi_original_extract_return_value)
8559 (cris_abi_v2_extract_return_value)
8560 (cris_abi_original_reg_struct_has_addr)
8561 (cris_abi_v2_reg_struct_has_addr)
8562 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
8563 (cris_push_return_address, cris_abi_update): Remove.
8564 (_initialize_cris_tdep): Remove ABI command.
8565 (cris_dump_tdep): Ditto.
8566 (cris_gdbarch_init): Remove ABI command.
8567 Set store_return_value, extract_return_value, push_dummy_code,
8568 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
8569 frame_unwind_append_sniffer, frame_base_set_default.
8570 Clear deprecated init_frame_pc, push_arguments, store_return_value,
8571 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
8572 sizeof_call_dummy_words, get_saved_register, push_return_address,
8573 pop_frame, store_struct_return, frame_init_saved_regs,
8574 init_extra_frame_info, frameless_function_invocation, frame_chain,
8575 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
8576 dummy_write_sp.
8577
8578 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8579
8580 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
8581 * valprint.c (print_hex_chars): Change from static to external.
8582 (print_char_chars): New function.
8583 * printcmd.c (print_scalar_formatted): For integer and enum types
8584 that are longer than LONGEST, perform processing via appropriate
8585 print_*_chars routines.
8586
8587 2004-02-26 Andrew Cagney <cagney@redhat.com>
8588
8589 * Makefile.in: Update dependencies.
8590 Changes from Ulrich Weigand,
8591 * s390-tdep.c: Include "dwarf2-frame.h".
8592 (s390_dwarf2_frame_init_reg): New function.
8593 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
8594 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
8595
8596 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8597
8598 * breakpoint.c (pending_break_support): New setting variable.
8599 (break_command_1): Account for pending_break_support setting
8600 when creating pending breakpoints.
8601 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
8602 (_initialize_breakpoint): Add "set breakpoint pending" and
8603 "show breakpoint pending" commands.
8604
8605 2004-02-26 Andrew Cagney <cagney@redhat.com>
8606
8607 Fix PR i18n/1570.
8608 * charset.c (backslashable, backslashed, represented): Remove 'e'
8609 from list of escaped characters, not part of ISO-C.
8610
8611 2004-02-25 J. Brobecker <brobecker@gnat.com>
8612
8613 From Peter Schauer <schauer@pdf.de>:
8614 * tui/tui.c: Move system header includes after local includes.
8615 Fixes a build failure on solaris systems.
8616
8617 2004-02-25 J. Brobecker <brobecker@gnat.com>
8618
8619 * configure.in: Refine the previous change.
8620 * configure: Regenerate.
8621
8622 2004-02-25 Mark Kettenis <kettenis@gnu.org>
8623
8624 * amd64-tdep.h: Renamed from x86-64-tdep.h.
8625 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
8626 "amd64-tdep.h" instead of "x86-64-tdep.h".
8627 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8628 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
8629 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
8630 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8631 and "x86-64-tdep.c".
8632 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
8633 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8634 and "x86-64-tdep.c".
8635 * amd64bsd-nat.c: Update copyright year.
8636 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8637 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
8638 "x86-64-tdep.h".
8639 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
8640 "x86-64-tdep.h".
8641 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
8642 "x86-64-tdep.h".
8643 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
8644 "x86-64-tdep.h".
8645 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
8646 "x86-64-tdep.h".
8647 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
8648 "x86-64-tdep.h".
8649 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
8650 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
8651 * Makefile.in (amd64_linux_tdep_h): Renamed from
8652 x86_64_linux_tdep_h.
8653 (amd64_tdep_h): Renamed from x86_64_tdep_h.
8654 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
8655 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
8656 (amd64obsd-tdep.o): Update dependencies.
8657 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
8658 dependencies.
8659 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
8660 dependencies.
8661 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
8662 amd64-linux-nat.c amd64-linux-tdep.c.
8663 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
8664 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
8665 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
8666 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
8667 amd64-tdep.o and amd64-linux-tdep.o.
8668 (TM_FILE): Set to tm-linux64.h.
8669 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
8670 (NAT_FILE): Set to nm-linux64.h.
8671 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
8672 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8673 amd64-tdep.o.
8674 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8675 amd64-tdep.o.
8676 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8677 amd64-tdep.o.
8678
8679 2004-02-25 Roland McGrath <roland@redhat.com>
8680
8681 * remote.c (remote_protocol_qPart_auxv): New variable.
8682 (init_all_packet_configs): Initialize it.
8683 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
8684 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
8685 (show_remote_cmd): Call it.
8686 (_initialize_remote): Initialize commands.
8687 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
8688 service TARGET_OBJECT_AUXV requests.
8689
8690 2004-02-25 J. Brobecker <brobecker@gnat.com>
8691
8692 * configure.in: Make sure that the wborder function is available.
8693 Otherwise, search for it in the cur_colr library.
8694 * configure: Regenerate.
8695
8696 2004-02-25 Andrew Cagney <cagney@redhat.com>
8697
8698 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
8699
8700 2004-02-25 Mark Kettenis <kettenis@gnu.org>
8701
8702 * config/i386/tm-x86-64linux.h: Tweak comments.
8703
8704 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
8705
8706 * MAINTAINERS: Add self to write-after-approval list.
8707
8708 2004-02-25 Andrew Cagney <cagney@redhat.com>
8709
8710 PR cli/1566. Problem found, and fix suggested by David Allan.
8711 * cli/cli-script.c (execute_control_command): Unconditionally
8712 install a cleanup. Default "ret" to "invalid_control". Use
8713 "break" instead of "return" to escape from the switch.
8714
8715 2004-02-24 J. Brobecker <brobecker@gnat.com>
8716
8717 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
8718 with the lines macro defined in term.h on AiX.
8719 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
8720 a collision with the label_width macro defined in term.h on AiX.
8721
8722 2004-02-23 David Mosberger <davidm@hpl.hp.com>
8723
8724 Committed by Kevin Buettner <kevinb@redhat.com>.
8725
8726 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
8727 * ia64-tdep.c (ia64_write_pc): Make it a global function.
8728 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
8729 instead of ia64_write_pc().
8730 * ia64-linux-tdep.c (regcache.h): Include.
8731 (ia64_linux_write_pc): New function.
8732
8733 2004-02-23 Roland McGrath <roland@redhat.com>
8734
8735 * auxv.c (info_auxv_command): Fix typos in error messages.
8736
8737 2004-02-23 Mark Kettenis <kettenis@gnu.org>
8738
8739 * x86-64-tdep.h: Tweak comment.
8740 (enum amd64_regnum): New.
8741 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
8742 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
8743 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
8744 (X86_64_XMM1_REGNUM): Removed.
8745 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
8746 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
8747 prototypes for renamed functions.
8748 * x86-64-tdep.c: Fix typo.
8749 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
8750 register numbers.
8751 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
8752 Use constants from `enum amd64_regnum' for register numbers.
8753 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
8754 (amd64_analyze_prologue, amd64_frame_cache,
8755 amd64_sigtramp_frame_cache): Use constants from `enum
8756 amd64_regnum' for register numbers.
8757 (amd64_supply_fpregset): Adjust for renamed functions.
8758 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
8759 `enum amd64_regnum' for register numbers.
8760 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
8761 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
8762 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
8763 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
8764 (amd64_linux_fill_gregset): Adjust for renamed macros.
8765 (fetch_core_registers): Adjust for renamed functions.
8766 (amd64_linux_init_abi): Adjust for renamed functions.
8767 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
8768 renamed functions.
8769 * amd64-nat.c: Adjust for renamed macros.
8770 * amd64bsd-nat.c (fetch_inferior_registers)
8771 (store_inferior_registers): Use constants from `enum amd64_regnum'
8772 for register numbers. Adjust for renamed variables.
8773 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
8774 renamed variables.
8775 (_initialize_amd64fbsd_nat): Use constants from `enum
8776 amd64_regnum' for register numbers.
8777 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
8778 `enum amd64_regnum' for register numbers.
8779 (amd64fbsd_init_abi): Adjust for renamed functions.
8780 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
8781 `enum amd64_regnum' for register numbers.
8782 (amd64nbsd_init_abi): Adjust for renamed functions.
8783 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
8784 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
8785 `enum amd64_regnum' for register numbers.
8786 (amd64obsd_init_abi): Adjust for renamed functions.
8787 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
8788
8789 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8790
8791 * breakpoint.c (print_one_breakpoint): Do not output spaces
8792 after printing <PENDING> for a pending breakpoint.
8793
8794 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8795
8796 * printcmd.c (print_scalar_formatted): Initialize val_long
8797 to remove compiler warning message.
8798
8799 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8800
8801 * defs.h (nquery, yquery): New prototypes.
8802 * breakpoint.c (break_command_1): Use new nquery interface.
8803 * utils.c (defaulted_query, nquery, yquery): New functions.
8804
8805 2004-02-23 Andrew Cagney <cagney@redhat.com>
8806
8807 * hppa-tdep.c (hppa_frame_align): New function.
8808 (hppa32_push_dummy_call): New function.
8809 (hppa64_push_dummy_call): New function.
8810 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
8811 disabled.
8812
8813 * infcall.c (legacy_push_dummy_code): Don't call deprecated
8814 FIX_CALL_DUMMY when push_dummy_call is available.
8815 (call_function_by_hand, push_dummy_code): Ditto.
8816
8817 2004-02-22 Andrew Cagney <cagney@redhat.com>
8818
8819 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
8820 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
8821 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
8822 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
8823 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
8824 call_dummy_location to ON_STACK.
8825
8826 2004-02-22 Mark Kettenis <kettenis@gnu.org>
8827
8828 * x86-64-linux-tdep.c: Tweak comment.
8829 (amd64_linux_supply_gregset): Renamed from
8830 x86_64_linux_supply_gresget.
8831 (amd64_linux_fill_gregset): Renamed from
8832 x86_64_linux_fill_gregset.
8833 (fetch_core_registers): Adjust for renamed functions.
8834 (amd64_core_fns): Renamed from x86_64_core_fns.
8835 (amd64_linux_sigtramp_start): Renamed from
8836 x86_64_linux_sigtramp_start.
8837 (amd64_linux_pc_in_sigtramp): Renamed from
8838 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
8839 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
8840 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
8841 (amd64_linux_sigcontext_addr): Renamed from
8842 x86_64_linux_sigcontext_addr.
8843 (amd64_linux_sc_reg_offset): Renamed from
8844 x86_64_linux_sc_reg_offset.
8845 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
8846 Adjust for renamed functions and variables.
8847 (_initialize_amd64_linux_tdep): Renamed from
8848 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
8849 variables.
8850 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
8851 Adjust for renamed functions.
8852
8853 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
8854 from x86_64_linux_gregset64_reg_offset.
8855 (amd64_linux_gregset32_reg_offset): Rename from
8856 x86_64_linux_gregset64_reg_offset.
8857 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
8858 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
8859 (amd64_linux_dr_set_control): Renamed from
8860 x86_64_linux_dr_set_control. Adjust for renamed functions.
8861 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
8862 Adjust for renamed functions.
8863 (amd64_linux_dr_reset_addr): Renamed from
8864 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
8865 (amd64_linux_dr_get_status): Renamed from
8866 x86_64_linux_dr_get_status. Adjust for renamed functions.
8867 (_initialize_amd64_linux_nat): Renamed from
8868 _initialize_x86_64_linux_nat. Adjust for renamed variables and
8869 functions.
8870 * config/i386/nm-x86-64linux.h: Update copyright year.
8871 Adjust for renamed functions.
8872
8873 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
8874 amd64fbsd_sigtramp_start.
8875 (amd64fbsd_sigtramp_end_addr): Renamed from
8876 amd64fbsd_sigtramp_end.
8877 (amd64fbsd_init_abi): Adjust for renamed variables.
8878 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
8879 variables.
8880 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
8881 amd64fbsd_sigtramp_start.
8882 (amd64fbsd_sigtramp_end_addr): Renamed from
8883 amd64fbsd_sigtramp_end.
8884
8885 2004-02-22 Andrew Cagney <cagney@redhat.com>
8886
8887 * hppa-tdep.c (hppa32_return_value): New function.
8888 (hppa64_return_value): New function.
8889 (hppa_gdbarch_init): Set return_value; keep disabled.
8890
8891 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
8892 struct-return and inferior function call methods.
8893
8894 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8895 "frame-base.h".
8896 (struct hppa_frame_cache): Define.
8897 (hppa_frame_cache, hppa_frame_this_id): New functions.
8898 (hppa_frame_prev_register): New function.
8899 (hppa_frame_unwind, hppa_frame_base): New variables.
8900 (hppa_frame_unwind_sniffer): New function.
8901 (hppa_frame_base_address, hppa_unwind_pc): New function.
8902 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
8903 sniffer, and frame base sniffer; keep disabled.
8904 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
8905 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
8906
8907 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
8908 to predicates for "seriously old code".
8909
8910 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
8911 runtime if(0).
8912
8913 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
8914 unsigned.
8915 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
8916
8917 * config/pa/tm-hppa.h: Update copyright.
8918 (DEPRECATED_INIT_FRAME_PC): Delete macro.
8919 (deprecated_init_frame_pc_default): Delete declaration.
8920 (hppa_frame_init_saved_regs): Delete declaration.
8921 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8922 * hppa-tdep.c: Include "arch-utils.h".
8923 (hppa_gdbarch_init): Set deprecated init_frame_pc
8924 and deprecated frame_init_saved_regs.
8925 (hppa_frame_init_saved_regs): Make static.
8926
8927 2004-02-22 Mark Kettenis <kettenis@gnu.org>
8928
8929 Remove old 386BSD support.
8930 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
8931 * configure.host: Remove i[34567]86-*-bsd*.
8932 * configure.tgt: Remove i[34567]86-*-bsd*.
8933 * i386b-nat.c: Removed.
8934 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
8935 (i386b-nat.o): Remove dependencies.
8936
8937 * config/i386/i386bsd.mh: Removed.
8938 * config/i386/i386bsd.mt: Removed.
8939 * config/i386/nm-i386bsd.h: Removed.
8940 * config/i386/tm-i386bsd.h: Removed.
8941 * config/i386/xm-i386bsd.h: Removed.
8942
8943 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
8944
8945 * amd64fbsd-tdep.c: Include "solib-svr4.h".
8946 (amd64fbsd_init_abi): Set link map offsets.
8947 * amd64nbsd-tdep.c: Include "slib-svr4.h".
8948 (amd64nbsd_init_abi): Set link map offsets.
8949 * amd64obsd-tdep.c: Include "solib-svr4.h".
8950 (amd64obsd_init_abi): Set link map offsets.
8951 * i386fbsd-tdep.c: Include "solib-svr4.h".
8952 (i386fbsd_init_abi): Set link map offsets.
8953 * i386nbsd-tdep.c: Include "solib-svr4.h".
8954 (i386nbsdelf_init_abi): Set link map offsets.
8955 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
8956 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
8957 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
8958 solib-legacy.o and core-aout.o. Reformat.
8959 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
8960 solib-svr4.o, solib-legacy.o. Reformat.
8961 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
8962 * config/i386/nbsdelf.mh: Reformat.
8963 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
8964 solib-svr4.o, solib-legacy.o and corelow.o.
8965 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
8966 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
8967 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
8968 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8969 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8970 (TM_FILE): Set to tm-fbsd.h.
8971 * config/i386/nbsd.mt (TDEPFILES): Reformat.
8972 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
8973 solib-svr4.o.
8974 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
8975 solib-svr4.o.
8976 (TM_FILE): Set to nm-nbsd.h.
8977 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
8978 Simplify shared library support. Don't include "elf/common.h".
8979 (SVR4_SHARED_LIBS): Don't define.
8980 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
8981 "solib.h".
8982 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
8983 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
8984 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
8985 Don't include "i386/tm-i386.h". Include "solib.h".
8986 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
8987 Don't include "i386/tm-i386.h".
8988 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
8989 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
8990 Include "i386/xm-i386.h".
8991 (HOST_LONG_DOUBLE_FORMAT): Remove.
8992
8993 Fix OpenBSD/i386 sigtramp recognition.
8994 * i386-tdep.h: Update copyright year.
8995 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
8996 (i386bsd_sigtramp_end): New prototypes.
8997 (i386fbsd_sigtramp_start_addr): Renamed from
8998 i386fbsd_sigtramp_start.
8999 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9000 (i386obsd_sigtramp_start_addr): Renamed from
9001 i386obsd_sigtramp_start.
9002 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9003 * i386bsd-tdep.c: Update copyright year.
9004 (i386bsd_pc_in_sigtramp): Make public.
9005 * i386fbsd-nat.c: Update copyright year.
9006 (_initialize_i386fbsd_nat): Adjust for renamed variables.
9007 * i386fbsd-tdep.c: Update copyright year.
9008 (i386fbsd_sigtramp_start_addr): Renamed from
9009 i386fbsd_sigtramp_start.
9010 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9011 (i386fbsdaout_init_abi): Adjust for renamed variables.
9012 * i386obsd-nat.c: Update copyright year.
9013 (_initialize_i386obsd_nat): Adjust for renamed variables.
9014 * i386obsd-tdep.c: Include "target.h".
9015 (i386obsd_page_size): New variable.
9016 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9017 (i386obsd_sigtramp_end): New functions.
9018 (i386obsd_sigtramp_start_addr): Renamed from
9019 i386obsd_sigtramp_start.
9020 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9021 (i386obsd_init_abi): Adjust for renamed variables. Set
9022 pc_in_sigtramp, sigtramp_start and sigtramp_end.
9023 * Makefile.in (i386obsd-tdep.o): Update dependencies.
9024
9025 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9026 trampoline change in OpenBSD kernel.
9027
9028 * amd64-nat.c: Update copyright year.
9029 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9030 architecture from REGCACHE.
9031
9032 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9033 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9034
9035 2004-02-21 Mark Kettenis <kettenis@gnu.org>
9036
9037 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9038 i[34567]86-*-openbsd3.[0-3].
9039 * config/i386/obsdaout.mh: New file.
9040
9041 * config/i386/obsd.mh (MH_FLAGS): Remove.
9042
9043 Fix PR build/1549.
9044 * i386obsd-tdep.c: Update copyright years. Include
9045 "solib-svr4.h".
9046 (i386obsd_init_abi): Don't set regset_from_core_section here.
9047 (i386obsd_aout_init_abi): New function. Set
9048 regset_from_core_section here.
9049 (i386obsd_elf_init_abi): New function.
9050 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9051 * Makefile.in (i386obsd-tdep.o): Update dependecies.
9052 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9053 (TM_FILE): Set to tm-nbsd.h.
9054
9055 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9056 solib-sunos.o.
9057
9058 * solib-svr4.h: Update copyright year.
9059 (svr4_ilp32_fetch_link_map_offsets)
9060 (svr4_lp64_fetch_link_map_offsets): New prototype.
9061 * solib-svr4.c: Update copyright year.
9062 (svr4_ilp32_fetch_link_map_offsets)
9063 (svr4_lp64_fetch_link_map_offsets): New function.
9064
9065 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
9066
9067 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9068 to the partial symbol table.
9069
9070 2004-02-20 J. brobecker <brobecker@gnat.com>
9071
9072 * PROBLEMS: Add description of problem documented under gdb/1560.
9073
9074 2004-02-20 Mark Kettenis <kettenis@gnu.org>
9075
9076 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
9077 comments.
9078 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9079 functions.
9080 (amd64obsd_init_abi): Reorder initializations. Use
9081 amd64obsd_r_reg_offset to initialize the general-purpose register
9082 set details. Set regset_from_core_section.
9083 (_initialize_amd64obsd_tdep): Rename from
9084 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
9085 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9086 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9087
9088 * NEWS (New native configurations): Mention OpenBSD/alpha.
9089 * configure.tgt: Add alpha*-*-openbsd*.
9090 * configure.host: Add alpha*-*-openbsd*.
9091 * alphanbsd-tdep.c: Update copyright year.
9092 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9093
9094 2004-02-20 Andrew Cagney <cagney@redhat.com>
9095
9096 Fix PR tdep/1372.
9097 * configure.tgt: Delete target "none-*-*".
9098 * configure.host: Delete host "none-*-*".
9099 * config/none/none.mh: Delete file.
9100 * config/none/none.mt: Delete file.
9101 * config/none/xm-none.h: Delete file.
9102 * config/none/tm-none.h: Delete file.
9103 * config/none/nm-none.h: Delete file.
9104
9105 2004-02-19 Fred Fish <fnf@redhat.com>
9106
9107 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
9108 cache->uses_fp prior to setting it.
9109
9110 2004-02-19 Fred Fish <fnf@redhat.com>
9111
9112 Fix for PR breakpoint/1558.
9113 * sh-tdep.c (IS_JSR): New macro.
9114 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
9115
9116 2004-02-19 Jim Blandy <jimb@redhat.com>
9117
9118 * findvar.c (value_from_register): Doc fix.
9119
9120 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
9121
9122 * printcmd.c (print_scalar_formatted): Do not check for sizeof
9123 type being greater than sizeof of host's LONGEST. Always use
9124 unpack_long() unless format 'f' chosen.
9125
9126 2004-02-19 Joel Brobecker <brobecker@gnat.com>
9127
9128 Committed by Elena Zannoni <ezannoni@redhat.com>
9129
9130 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
9131 contains a symbol wich is the best, non-exact match for the given
9132 pc. Update comments.
9133
9134 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
9135
9136 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
9137 macro, which was part of the now removed Mach 3 port.
9138 * utils.c (request_quit): Ditto.
9139
9140 2004-02-18 Mark Kettenis <kettenis@gnu.org>
9141
9142 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
9143 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
9144
9145 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9146
9147 Committed by Mark Kettenis <kettenis@gnu.org>.
9148
9149 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
9150 Define.
9151
9152 2004-02-18 Andrew Cagney <cagney@redhat.com>
9153
9154 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
9155 CONFIG_INSTALL and CONFIG_UNINSTALL.
9156 * configure: Re-generate.
9157 * interps.h (INTERP_TUI): Define.
9158 * Makefile.in: Update dependencies.
9159 (TUI): New macro.
9160 (tui-main.o): Specify dependencies.
9161 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
9162 * tui/tui-main.c: New file.
9163
9164 2004-02-18 Mark Kettenis <kettenis@gnu.org>
9165
9166 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
9167 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
9168 dependencies.
9169 * configure.host: Add x86_64-*-openbsd*.
9170 * configure.tgt: Add x86_64-*-openbsd*.
9171 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
9172
9173 * tui/tui.c: Don't include <malloc.h>.
9174
9175 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
9176 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
9177 amd64nbsd-tdep.c.
9178
9179 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
9180 static. Remove extraneous whitespace.
9181 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
9182 static.
9183
9184 2004-02-17 Jim Blandy <jimb@redhat.com>
9185
9186 * findvar.c (value_from_register): Doc fix.
9187
9188 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9189
9190 Committed by Jim Blandy <jimb@redhat.com>.
9191
9192 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
9193 CORE_ADDR as type for selectors. Correct types for GNU run time
9194 message lookup function to use double indirection.
9195 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
9196 * objc-lang.h (lookup_child_selector): Adapt prototype.
9197
9198 * s390-nat.c (SUBOFF): New macro.
9199 (supply_gregset, fill_gregset): Use it to handle debugging
9200 of 32-bit exectuables running under a 64-bit kernel.
9201 * s390-tdep.c: Include "solib-svr4.h".
9202 (s390_svr4_fetch_link_map_offset): New function.
9203 (s390x_svr_fetch_link_map_offset): Likewise.
9204 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
9205 * Makefile.in (s390-tdep.o): Update dependencies.
9206
9207 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
9208 "frame-unwind.h".
9209 (s390_readinstruction): Reformat. Use read_memory_nobpt.
9210 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
9211 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
9212 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
9213 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
9214 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
9215 S390_SIGNAL_FRAMESIZE,
9216 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
9217 (struct frame_extra_info): Remove.
9218 (s390_memset_extra_info): Remove.
9219 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
9220 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
9221 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
9222 (is_rse): Renamed to ...
9223 (is_rsy): ... this. Support long displacements.
9224 (is_rxe): Renamed to ...
9225 (is_rxy): ... this. Support long displacements.
9226 (compute_x_addr): Support long displacements.
9227 (struct s390_prologue_data): New data type.
9228 (s390_on_stack): Change API to use struct s390_prologue_data.
9229 (s390_store): Reimplement.
9230 (s390_load): New function.
9231 (s390_get_signal_frame_info): Remove.
9232 (s390_get_frame_info): Remove, replace by ...
9233 (s390_analyze_prolog): ... this new function.
9234 (s390_check_function_end): Remove.
9235 (s390_function_start): Remove.
9236 (s390_frameless_function_invokation): Remove.
9237 (s390_is_sigreturn): Remove.
9238 (s390_init_frame_pc_first): Remove.
9239 (s390_init_frame_extra_info): Remove.
9240 (s390_frame_init_saved_regs): Remove.
9241 (s390_frame_saved_pc_nofix): Remove.
9242 (s390_frame_saved_pc): Remove.
9243 (s390_frame_chain): Remove.
9244 (s390_fp_regnum, s390_read_fp): Remove.
9245 (s390_pop_frame_regular, s390_pop_frame): Remove.
9246 (s390_saved_pc_after_call): Remove.
9247 (s390_skip_prologue): Reimplement.
9248 (s390_in_function_epilogue_p): Support long displacements.
9249 (struct s390_unwind_cache): New data structure.
9250 (s390_frame_unwind_cache): New function.
9251 (s390_prologue_frame_unwind_cache): Likewise.
9252 (s390_backchain_frame_unwind_cache): Likewise.
9253 (s390_frame_this_id, s390_frame_prev_register): Likewise.
9254 (s390_frame_unwind): Define.
9255 (s390_frame_sniffer): New function.
9256 (struct s390_pltstub_unwind_cache): New data structure.
9257 (s390_pltstub_frame_unwind_cache): New function.
9258 (s390_pltstub_frame_this_id): Likewise.
9259 (s390_pltstub_frame_prev_register): Likewise.
9260 (s390_pltstub_frame_unwind): Define.
9261 (s390_pltstub_frame_sniffer): New function.
9262 (struct s390_sigtramp_unwind_cache): New data structure.
9263 (s390_sigtramp_frame_unwind_cache): New function.
9264 (s390_sigtramp_frame_this_id): Likewise.
9265 (s390_sigtramp_frame_prev_register): Likewise.
9266 (s390_sigtramp_frame_unwind): Define.
9267 (s390_sigtramp_frame_sniffer): New function.
9268 (s390_frame_base_address, s390_local_base_address): New functions.
9269 (s390_frame_base): Define.
9270 (s390_unwind_pc, s390_unwind_sp): New function.
9271 (s390_push_dummy_call): Use new frame base location.
9272 (s390_unwind_dummy_id): Likewise.
9273 (s390_gdbarch_init): Remove calls to:
9274 set_gdbarch_frameless_function_invocation,
9275 set_gdbarch_deprecated_init_frame_pc,
9276 set_gdbarch_deprecated_frame_chain,
9277 set_gdbarch_deprecated_frame_init_saved_regs,
9278 set_gdbarch_deprecated_pop_frame,
9279 set_gdbarch_deprecated_init_extra_frame_info,
9280 set_gdbarch_deprecated_init_frame_pc_first,
9281 set_gdbarch_deprecated_target_read_fp,
9282 set_gdbarch_deprecated_frame_saved_pc,
9283 set_gdbarch_deprecated_saved_pc_after_call,
9284 set_gdbarch_deprecated_fp_regnum.
9285 Add calls to:
9286 set_gdbarch_in_solib_call_trampoline,
9287 frame_unwind_append_sniffer,
9288 frame_base_set_default,
9289 set_gdbarch_unwind_pc,
9290 set_gdbarch_unwind_sp.
9291 * Makefile.in (s390-tdep.o): Update dependencies.
9292
9293 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
9294 (S390_STACK_FRAME_OVERHEAD): Remove.
9295 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
9296 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
9297 (s390_promote_integer_argument): Remove.
9298 (s390_cannot_extract_struct_value_address): Remove.
9299 (s390_use_struct_convention, s390_store_struct_return): Remove.
9300 (s390_extract_return_value, s390_store_return_value): Remove.
9301 (s390_return_value_convention, s390_return_value): New functions.
9302 (is_float_singleton): Handle typedefs.
9303 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
9304 Remove, replace by ...
9305 (s390_function_arg_pass_by_reference, s390_function_arg_float,
9306 s390_function_arg_integer): ... these new functions.
9307 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
9308 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
9309 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
9310 Fill in tdep->abi.
9311 Remove calls to:
9312 set_gdbarch_deprecated_store_struct_return,
9313 set_gdbarch_deprecated_extract_return_value,
9314 set_gdbarch_deprecated_store_return_value,
9315 set_gdbarch_use_struct_convention,
9316 set_gdbarch_extract_struct_value_address,
9317 set_gdbarch_deprecated_pc_in_call_dummy,
9318 set_gdbarch_deprecated_push_arguments,
9319 set_gdbarch_deprecated_save_dummy_frame_tos,
9320 set_gdbarch_deprecated_push_return_address,
9321 set_gdbarch_deprecated_sizeof_call_dummy_words,
9322 set_gdbarch_deprecated_call_dummy_words,
9323 set_gdbarch_deprecated_dummy_write_sp.
9324 Add calls to:
9325 set_gdbarch_push_dummy_call,
9326 set_gdbarch_unwind_dummy_id,
9327 set_gdbarch_return_value.
9328
9329 * config/s390/nm-linux.h: Update comments.
9330 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
9331 (STOPPED_BY_WATCHPOINT): Redefine.
9332 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
9333 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
9334 (s390_stopped_by_watchpoint): Likewise.
9335 (watch_area_cnt): Remove.
9336 * s390-nat.c: Update comments.
9337 (watch_area): Remove typedef.
9338 Global replace watch_area by struct watch_area.
9339 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
9340 (s390_stopped_by_watchpoint): Remove pid argument,
9341 use s390_inferior_tid. Add short-cut for the no watchpoint case.
9342 (s390_fix_watch_points): Remove pid argument,
9343 use s390_inferior_tid. Recompute area spanned by watchpoints.
9344 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
9345 argument. Reimplement.
9346
9347 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
9348 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
9349 (FETCH_INFERIOR_REGISTERS): Define.
9350 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
9351 core-regset.o.
9352 * config/s390/s390x.mt: Remove.
9353 * config/s390/tm-s390.h: Remove.
9354 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
9355 (TARGET_ELF64): Remove.
9356 (SKIP_TRAMPOLINE_CODE): Do not undefine.
9357 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
9358 s390*-*-* case; always set gdb_target to s390.
9359 * regformats/reg-s390.dat: Remove control registers.
9360 * regformats/reg-s390x.dat: Likewise.
9361 * s390-tdep.h: New file.
9362 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
9363 Include "inferior.h" and "s390-tdep.h".
9364 Remove private definition of offsetof.
9365 (s390_register_u_addr): Remove.
9366 (regmap_gregset, regmap_fpregset): Define.
9367 (supply_gregset, fill_gregset): Reimplement.
9368 (supply_fpregset, fill_fpregset): Likewise.
9369 (s390_inferior_tid): New function.
9370 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
9371 (fetch_inferior_registers, store_inferior_registers): Likewise.
9372 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
9373 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
9374 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
9375 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
9376 (struct gdbarch_tdep): Define.
9377 (struct s390_register_info): Define.
9378 (s390_register_info): New variable.
9379 (s390_register_name): Reimplement.
9380 (s390_register_type): New function.
9381 (s390_register_raw_size, s390x_register_raw_size): Remove.
9382 (s390_cannot_fetch_register): Remove.
9383 (s390_register_byte): Remove.
9384 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
9385 (s390_dwarf_regmap): New variable.
9386 (s390_dwarf_reg_to_regnum): New function.
9387 (s390_stab_reg_to_regnum): Remove.
9388 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
9389 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
9390 (s390_convert_register_p): Likewise.
9391 (s390_register_to_value, s390_value_to_register): Likewise.
9392 (s390_register_reggroup_p): Likewise.
9393 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
9394 s390_gregset, s390x_gregset, s390_fpregset): New variables.
9395 (s390_supply_regset, s390_regset_from_core_section): New functions.
9396 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
9397 (S390_FPR_SIZE): Likewise.
9398 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
9399 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
9400 (S390_NUM_GPRS): Move here from tm-s390.h.
9401 (S390_NUM_FPRS): Likewise.
9402 (s390_in_function_epilogue_p): New function.
9403 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
9404 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
9405 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
9406 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
9407 Replace S390_FP_REGNUM by S390_SP_REGNUM.
9408 Remove calls to:
9409 set_gdbarch_deprecated_max_register_raw_size,
9410 set_gdbarch_deprecated_max_register_virtual_size,
9411 set_gdbarch_deprecated_register_byte,
9412 set_gdbarch_cannot_fetch_register,
9413 set_gdbarch_cannot_store_register,
9414 set_gdbarch_deprecated_register_size,
9415 set_gdbarch_deprecated_register_raw_size,
9416 set_gdbarch_deprecated_register_virtual_size,
9417 set_gdbarch_deprecated_register_virtual_type,
9418 set_gdbarch_deprecated_register_bytes.
9419 Add calls to:
9420 set_gdbarch_num_pseudo_regs,
9421 set_gdbarch_register_type,
9422 set_gdbarch_convert_register_p,
9423 set_gdbarch_register_to_value,
9424 set_gdbarch_value_to_register,
9425 set_gdbarch_register_reggroup_p,
9426 set_gdbarch_regset_from_core_section,
9427 set_gdbarch_pseudo_register_read,
9428 set_gdbarch_pseudo_register_write,
9429 set_gdbarch_in_function_epilogue_p.
9430 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
9431 (s390_tdep_h): New variable.
9432
9433 2004-02-17 Jim Blandy <jimb@redhat.com>
9434
9435 * findvar.c (value_from_register): If the type has no length, just
9436 return an acceptable value --- don't report an internal error.
9437
9438 * stabsread.c (read_type): If we find any type numbers that are
9439 forward references, complain if the references aren't resolved by
9440 the time we're finished reading.
9441 (cleanup_undefined_types): Make error message more appropriate for
9442 a complaint.
9443
9444 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
9445
9446 * Makefile.in (defs_h): Remove dependency on progress_h.
9447 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
9448 progress.h.
9449 * main.c (captured_main): Delete use of START_PROGRESS and
9450 END_PROGRESS.
9451
9452 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
9453
9454 * objfiles.c (terminate_minimal_symbol_table): Add back
9455 initialization of MSYMBOL_TYPE.
9456
9457 2004-02-17 David Mosberger <davidm@hpl.hp.com>
9458
9459 Committed by Andrew Cagney.
9460 * Makefile.in (ia64_tdep_h): New macro.
9461 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
9462 (ia64-tdep.o): Likewise.
9463 * ia64-tdep.h: New file.
9464 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
9465 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
9466 (ia64_aix_sigcontext_register_address): Likewise.
9467 (ia64_linux_getunwind_table): Delete declaration.
9468 * ia64-linux-tdep.c: Likewise.
9469
9470 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
9471
9472 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
9473 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
9474 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
9475
9476 2004-02-17 Andrew Cagney <cagney@redhat.com>
9477
9478 * symtab.c (skip_prologue_using_sal): New function.
9479 * symtab.h (skip_prologue_using_sal): Declare.
9480 * frv-tdep.c: Include "symtab.h".
9481 (skip_prologue_using_sal): Delete function.
9482 * mips-tdep.c (skip_prologue_using_sal): Delete function.
9483 * rs6000-tdep.c (refine_prologue_limit): Mention
9484 skip_prologue_using_sal.
9485 * ia64-tdep.c (refine_prologue_limit): Ditto.
9486 * Makefile.in: Update dependencies.
9487
9488 2004-02-16 Andrew Cagney <cagney@redhat.com>
9489
9490 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
9491 START_INFERIOR_TRAPS_EXPECTED.
9492 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
9493 START_INFERIOR_TRAPS_EXPECTED.
9494 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
9495 Delete macro.
9496 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
9497 macro, moved to "nm-osf.h". Update copyright.
9498 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
9499 update copyright.
9500
9501 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
9502 and function replacing FRAMELESS_FUNCTION_INVOCATION.
9503 * blockframe.c (legacy_frameless_look_for_prologue): Rename
9504 frameless_look_for_prologue.
9505 * frame.h (legacy_frameless_look_for_prologue): Rename
9506 frameless_look_for_prologue.
9507 * gdbarch.h, gdbarch.c: Re-generate.
9508 * sh64-tdep.c (sh64_gdbarch_init): Update.
9509 * sh-tdep.c (sh_gdbarch_init): Update.
9510 * s390-tdep.c (s390_gdbarch_init): Update.
9511 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9512 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9513 * m68k-tdep.c (m68k_gdbarch_init): Update.
9514 (delta68_frame_args_address): Update.
9515 * m32r-tdep.c (m32r_gdbarch_init): Update.
9516 * hppa-tdep.c (hppa_gdbarch_init): Update.
9517 * h8300-tdep.c (h8300_gdbarch_init): Update.
9518 * frv-tdep.c (frv_gdbarch_init): Update.
9519 (frv_frameless_function_invocation): Update.
9520 * cris-tdep.c (cris_gdbarch_init): Update.
9521 (cris_frameless_function_invocation): Update.
9522 * avr-tdep.c (avr_gdbarch_init): Update.
9523 * arm-tdep.c (arm_gdbarch_init): Update.
9524 * stack.c (frame_info): Update, call predicate.
9525 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
9526 * frame.c (legacy_get_prev_frame): Update, call predicate..
9527 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
9528 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
9529 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
9530 invocation.
9531 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9532 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9533 * vax-tdep.c (vax_gdbarch_init): Ditto.
9534
9535 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
9536 function.
9537
9538 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
9539
9540 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
9541 initializations.
9542
9543 2004-02-16 Andrew Cagney <cagney@redhat.com>
9544
9545 * tui/tui-windata.c: Include "gdb_string.h".
9546 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
9547 * tui/tui-layout.c, tui/tui-command.c: Ditto.
9548 * Makefile.in: Update dependencies.
9549
9550 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
9551
9552 * Makefile.in (infrun.o): Add $(gdb_assert_h).
9553 * infrun.c: Include "gdb_assert.h".
9554 (singlestep_ptid, saved_singlestep_ptid)
9555 (stepping_past_singlestep_breakpoint): New variables.
9556 (resume): Set singlestep_ptid. Check for singlestep thread
9557 hop.
9558 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
9559 (handle_inferior_event): Handle singlestep thread hop.
9560
9561 2004-02-16 Andrew Cagney <cagney@redhat.com>
9562
9563 * dwarf2-frame.c (dwarf2_frame_ops): New function.
9564 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
9565 (dwarf2_frame_init_reg): Ditto.
9566
9567 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
9568 suggested by Joshua Neuheisel
9569
9570 * configure.in: Always check for curses, including pdcurses.
9571 Warn, instead of error, when no curses are found. Enable TUI when
9572 curses is available.
9573 * configure: Re-generate.
9574
9575 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
9576
9577 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
9578 sh_sh4_register_convert_to_virtual.
9579 (sh_register_convert_to_raw): Rename from
9580 sh_sh4_register_convert_to_raw.
9581 (sh_pseudo_register_read): Accomodate above name change.
9582 (sh_pseudo_register_write): Ditto.
9583
9584 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
9585
9586 * sh-tdep.c (sh_generic_register_name): Remove.
9587 (sh_gdbarch_init): Use sh_sh_register_name in default case.
9588
9589 2004-02-15 Andrew Cagney <cagney@redhat.com>
9590
9591 * configure.in (build_warnings): Add -Wunused-function.
9592 * configure: Re-generate.
9593
9594 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
9595 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
9596
9597 * procfs.c (procfs_init_inferior): Assume that
9598 START_INFERIOR_TRAPS_EXPECTED is defined.
9599 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
9600 * config/ns32k/tm-nbsd.h: Delete file,
9601 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
9602
9603 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
9604 * config/vax/tm-vax.h: Delete file.
9605
9606 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9607 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9608 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9609 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9610 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
9611 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9612 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
9613
9614 2004-02-15 Mark Kettenis <kettenis@gnu.org>
9615
9616 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
9617 * dwarf2-frame.c (dwarf2_frame_data): New variable.
9618 (struct dwarf2_frame_ops): New.
9619 (dwarf2_frame_default_init_reg): New function, based on
9620 dwarf2_frame_init_reg.
9621 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
9622 (dwarf2_frame_init_reg): Call architecture-specific function.
9623 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
9624 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
9625 instead of dwarf2_frame_data.
9626 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
9627 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
9628
9629 2004-02-15 Andrew Cagney <cagney@redhat.com>
9630
9631 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
9632 register_gdbarch_swap.
9633 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
9634 * f-lang.c (_initialize_f_language): Update, use
9635 DEPRECATED_REGISTER_GDBARCH_SWAP.
9636 * remote.c (_initialize_remote): Ditto.
9637 * regcache.c (_initialize_regcache): Ditto.
9638 * parse.c (_initialize_parse): Ditto.
9639 * infrun.c (_initialize_infrun): Ditto.
9640 * mi/mi-main.c (_initialize_mi_main): Ditto.
9641 * gdbtypes.c (_initialize_gdbtypes): Ditto.
9642
9643 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
9644 poking .cacheable directly.
9645 * symfile.c (symfile_bfd_open): Ditto.
9646
9647 * Makefile.in: Update all dependencies.
9648
9649 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
9650 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
9651 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
9652 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
9653 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
9654
9655 2004-02-14 Andrew Cagney <cagney@redhat.com>
9656
9657 * arch-utils.c (legacy_convert_register_p): Check
9658 DEPRECATED_REGISTER_CONVERTIBLE_P.
9659 * findvar.c (value_of_register): Ditto.
9660
9661 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
9662 * gdbarch.h, gdbarch.c: Re-generate.
9663 * arch-utils.c (deprecated_register_convertible_not): Delete.
9664 * arch-utils.h (deprecated_register_convertible_not): Delete.
9665 * mi/mi-main.c (get_register): Update. Update copyright.
9666 * infcmd.c (default_print_registers_info): Update.
9667
9668 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9669 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
9670 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
9671 * gdbarch.h, gdbarch.c: Re-generate.
9672 * frame.c (deprecated_get_next_frame_hack): Delete function.
9673 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
9674 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9675 Update.
9676 * infcall.c (call_function_by_hand): Update.
9677
9678 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
9679
9680 * symfile.c (init_entry_point_info, entry_point_address): Move
9681 from here...
9682 * objfiles.c (init_entry_point_info, entry_point_address):..to
9683 here.
9684 * symfile.h (init_entry_point_info, entry_point_address): Remove
9685 prototypes.
9686 * objfiles.h (init_entry_point_info, entry_point_address):Add
9687 prototypes.
9688 * cris-tdep.c: Remove include of symfile.h. Add include of
9689 objfiles.h.
9690 * infcall.c: Ditto.
9691 * mcore-tdep.c: Ditto.
9692 * mn10300-tdep.c: Ditto.
9693 * sh64-tdep.c: Ditto.
9694 * v850-tdep.c: Ditto.
9695 * arm-tdep.c: Remove include of symfile.h.
9696 * blockframe.c: Ditto.
9697 * coffread.c: Ditto.
9698 * dbxread.c: Ditto.
9699 * dwarf2read.c: Ditto.
9700 * dwarfread.c: Ditto.
9701 * frv-tdep.c: Ditto.
9702 * ia64-tdep.c: Ditto.
9703 * mdebugread.c: Ditto.
9704 * mipsread.c: Ditto.
9705 * rs6000-tdep.c: Ditto.
9706 * s390-tdep.c: Ditto.
9707 * sh-tdep.c: Ditto.
9708 * xstormy16-tdep.c: Ditto.
9709 * gdbarch.sh: Remove include of symfile.h.
9710 * gdbarch.c: Regenerate.
9711 * solib-irix.c (enable_break): Use entry_point_address().
9712 Add comment about include file.
9713 * xcoffread.c: Add comment about include file.
9714 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
9715 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
9716 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
9717 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9718 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
9719
9720 2004-02-13 Andrew Cagney <cagney@redhat.com>
9721
9722 * corelow.c (core_xfer_partial): Use "struct bfd_section".
9723 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
9724 copyright.
9725 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
9726
9727 2004-02-12 Fred Fish <fnf@redhat.com>
9728
9729 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
9730 set_gdbarch_store_return_value.
9731
9732 2004-02-12 Andrew Cagney <cagney@redhat.com>
9733
9734 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
9735 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
9736 (interrupt_query): Ditto.
9737 (ofunc): Delete unused variable.
9738 * cris-tdep.c (cris_abi): Delete unused function.
9739 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
9740 (cris_get_wide_opcode, cris_get_short_size): Ditto.
9741 (cris_get_asr_quick_shift_steps): Ditto.
9742 (cris_skip_prologue_frameless_p): Ditto.
9743 * arm-tdep.c (arm_push_return_address): Delete unused function.
9744 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
9745 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
9746 * s390-tdep.c (s390_function_start): Delete unused function.
9747
9748 2004-02-12 Andrew Cagney <cagney@redhat.com>
9749
9750 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
9751 gdbarch.h, gdbarch.c: Re-generate.
9752 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
9753 to generic_prologue_frameless_p.
9754 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
9755 * arch-utils.c (generic_prologue_frameless_p): Delete function.
9756
9757 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
9758
9759 * mips-linux-tdep.c: Include "frame.h".
9760 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
9761 (mips_linux_skip_resolver): New functions.
9762 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
9763 and set_gdbarch_in_solib_call_trampoline.
9764 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
9765 to after set_gdbarch_in_solib_return_trampoline. Only set the
9766 solib hooks to mips16 functions if the OS ABI is unknown.
9767 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
9768 including "config/tm-linux.h".
9769 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
9770 * Makefile.in (mips-linux-tdep.o): Update.
9771
9772 2004-02-11 David Carlton <carlton@kealia.com>
9773
9774 * linespec.c (decode_compound): Only look for a class symbol when
9775 considering all but the rightmost component.
9776
9777 2004-02-11 Andrew Cagney <cagney@redhat.com>
9778
9779 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
9780 abi code are are separatly grouped.
9781
9782 2004-02-11 Andrew Cagney <cagney@redhat.com>
9783
9784 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
9785 * gdbarch.h, gdbarch.c: Re-generate.
9786 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9787 * v850-tdep.c (v850_gdbarch_init): Update.
9788 * sh64-tdep.c (sh64_gdbarch_init): Update.
9789 * sh-tdep.c (sh_gdbarch_init): Update.
9790 * s390-tdep.c (s390_gdbarch_init): Update.
9791 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9792 * mips-tdep.c (mips_gdbarch_init): Update.
9793 * mcore-tdep.c (mcore_gdbarch_init): Update.
9794 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9795 * m32r-tdep.c (m32r_gdbarch_init): Update.
9796 * ia64-tdep.c (ia64_gdbarch_init): Update.
9797 * hppa-tdep.c (hppa_gdbarch_init): Update.
9798 * h8300-tdep.c (h8300_gdbarch_init): Update.
9799 * frv-tdep.c (frv_gdbarch_init): Update.
9800 * d10v-tdep.c (d10v_gdbarch_init): Update.
9801 * cris-tdep.c (cris_gdbarch_init): Update.
9802 * avr-tdep.c (avr_gdbarch_init): Update.
9803 * arm-tdep.c (arm_gdbarch_init): Update.
9804 * alpha-tdep.c (alpha_gdbarch_init): Update.
9805
9806 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
9807
9808 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
9809 comma.
9810 (sh_sh4al_dsp_register_name): Ditto.
9811
9812 2004-02-10 Andrew Cagney <cagney@redhat.com>
9813
9814 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
9815 (mips_init_frame_pc_first): Delete function.
9816 (mips_frame_saved_pc): Delete function.
9817 (mips_frame_chain): Delete function.
9818 (mips_init_extra_frame_info): Delete function.
9819 (mips_xfer_register): Delete unused variable "reg".
9820 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
9821 (mips_n32n64_return_value): Delete unused variable "reg".
9822 (mips_n32n64_return_value): Delete unused variable "pos".
9823 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
9824 (mips_o32_return_value): Delete unused variable "pos".
9825 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
9826 (mips_print_fp_register): Delete unused variable "namelen"
9827 (mips_print_fp_register): Delete unused variable "flt2"
9828 (get_frame_pointer): Delete function.
9829 (cached_proc_desc): Delete static variable.
9830 (mips_pop_frame): Delete function.
9831 (mips_find_saved_regs): Delete function.
9832 (mips_get_saved_register): Delete function.
9833 (mips_saved_pc_after_call): Delete function.
9834 (SIGFRAME_BASE): Delete macro.
9835 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
9836 (SIGFRAME_PC_OFF): Delete macro.
9837 (SIGFRAME_REGSAVE_OFF): Delete macro.
9838 (mips_dump_tdep): Do not print deleted macro definitions.
9839
9840 2004-02-10 Andrew Cagney <cagney@redhat.com>
9841
9842 * Makefile.in (SFILES): Remove explictly listed tui files.
9843 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
9844
9845 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
9846
9847 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
9848 to use paddr functions to format ia64 addresses and long values.
9849 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
9850 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
9851 (get_kernel_table, ia64_find_proc_info_x): Ditto.
9852 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
9853 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
9854
9855 2004-02-10 Andrew Cagney <cagney@redhat.com>
9856
9857 * defs.h: Do not include "tui.h".
9858 * gdb_curses.h: New file.
9859 * tui/tui-hooks.h: New file.
9860 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
9861 (tui_install_hooks, tui_remove_hooks): Delete declarations.
9862 (tui_initialize_io): Delete declaration.
9863 (tui_initialize_readline: Delete redundant declaration.
9864 (struct tui_point): Delete definition.
9865 * tui/tui-data.h (struct tui_point): Define.
9866 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
9867 * utils.c: Include "tui/tui.h".
9868 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
9869 * printcmd.c [TUI]: Include "tui/tui.h".
9870 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
9871 * tui/tui-command.c: Include "gdb_curses.h".
9872 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
9873 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
9874 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
9875 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
9876 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
9877 * Makefile.in: Update all dependencies.
9878 (tui_hooks_h, gdb_curses_h): Define.
9879 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
9880
9881 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
9882
9883 * objfiles.h (struct objfile): Remove unused fields auxf1 and
9884 auxf2. Add comments about some other rarely used fields.
9885
9886 2004-02-10 Andrew Cagney <cagney@redhat.com>
9887
9888 * Makefile.in (init.c): Fix script removing duplicates. Problem
9889 reported by Peter Schauer.
9890
9891 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
9892
9893 * bcache.c (bcache_xmalloc): Use obstack_init instead of
9894 obstack_specify_allocation.
9895 * objfiles.c (allocate_objfile): Ditto.
9896 * solib-sunos.c (solib_add_common_symbols)
9897 (allocate_rt_common_objfile): Ditto.
9898 * symfile.c (reread_symbols): Ditto.
9899 * gdb_obstack.h: Add comment.
9900
9901 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
9902
9903 * linespec.c (decode_line_1, locate_first_half)
9904 (decode_compound, lookup_prefix_sym): Update comments. Delete old
9905 commented out code.
9906
9907 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
9908
9909 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
9910 obstack_free.
9911
9912 2004-02-09 Andrew Cagney <cagney@redhat.com>
9913
9914 * blockframe.c (find_pc_partial_function): If find_pc_overlay
9915 fails, try find_pc_section. Fix PR c++/1267.
9916 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
9917 instead of find_pc_mapped_section.
9918 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
9919 not default to the section containing PC. Fix PR symtab/1519.
9920
9921 2004-02-09 Andrew Cagney <cagney@redhat.com>
9922
9923 * Makefile.in (mips-tdep.o): Update dependencies.
9924 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
9925 "trad-frame.h".
9926 (mips_unwind_pc): Return the pseudo PC register.
9927 (mips_unwind_dummy_id): New function.
9928 (mips16_fetch_instruction): New function.
9929 (mips32_fetch_instruction): New function.
9930 (struct mips_frame_cache): Define.
9931 (mips_mdebug_frame_cache): New function.
9932 (mips_mdebug_frame_this_id): New function.
9933 (mips_mdebug_frame_prev_register): New function.
9934 (mips_mdebug_frame_unwind): Define.
9935 (mips_mdebug_frame_sniffer): New function.
9936 (mips_mdebug_frame_base_address): New function.
9937 (mips_mdebug_frame_base): Define.
9938 (mips_mdebug_frame_base_sniffer): New function.
9939 (mips_gdbarch_init): Append unwind and base sniffers. Set
9940 unwind_dummy_id.
9941
9942 2004-02-08 Andrew Cagney <cagney@redhat.com>
9943
9944 * frame.c: Print both the register number and name.
9945
9946 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
9947 and a sed into a single sed. Make .c and .o patterns more robust.
9948 (OBS): Delete.
9949 (INIT_FILES): Replace OBS with COMMON_OBS.
9950 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
9951
9952 2004-02-08 Mark Kettenis <kettenis@gnu.org>
9953
9954 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
9955 the PT_WCOOKIE request.
9956
9957 2004-02-08 Andrew Cagney <cagney@redhat.com>
9958
9959 * mips-tdep.c (mips_unwind_pc): New function.
9960 (mips_gdbarch_init): Set mips_unwind_pc.
9961
9962 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
9963 (get_frame_id): Allow the UNKNOWN_FRAME.
9964 (frame_register_unwind, get_frame_type): Ditto.
9965
9966 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
9967 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
9968 unwind_dummy_id indicates a legacy frame.
9969
9970 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
9971 * configure: Re-generate.
9972
9973 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
9974 methods.
9975
9976 2004-02-08 Andrew Cagney <cagney@redhat.com>
9977
9978 * configure.in (CONFIG_ALL): Set to Makefile target, and not
9979 makefile macro.
9980 * configure: Re-generate.
9981 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
9982 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
9983 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
9984 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
9985 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
9986 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
9987 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
9988 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
9989 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
9990 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
9991
9992 2004-02-07 Andrew Cagney <cagney@redhat.com>
9993
9994 * Makefile.in: Update all dependencies.
9995
9996 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
9997 * configure: Re-generate.
9998 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
9999 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10000 (COMMON_OBS): Add "main.o" and "annotate.o".
10001 (ANNOTATE_OBS): Delete.
10002 (OBS): Remove ANNOTATE_OBS.
10003 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10004 CONFIG_INITS.
10005 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10006 against CONFIG_OBS and "main.o".
10007 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10008 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10009
10010 * tui/tui-command.c: Include "gdb_string.h", delete register
10011 attribute, use ISO-C function signatures.
10012 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10013 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10014 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10015 * tui/tui.c: Ditto.
10016
10017 * tui/tui-command.c: Change variable and function names to lower
10018 case.
10019 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10020 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10021 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10022 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10023 * tui/tui-winsource.c, tui/tui.c: Ditto.
10024
10025 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10026
10027 * buildsym.c (free_pending_blocks, finish_block)
10028 (record_pending_block, make_blockvector, end_symtab): Replace
10029 symbol_obstack with objfile_obstack.
10030 * coffread.c (process_coff_symbol, coff_read_struct_type)
10031 (coff_read_enum_type): Ditto.
10032 * cp-namespace.c (initialize_namespace_symtab)
10033 (check_one_possible_namespace_symbol): Ditto.
10034 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
10035 (dwarf2_symbol_mark_computed): Ditto.
10036 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10037 * elfread.c (elf_symtab_read): Ditto.
10038 * hpread.c (hpread_symfile_init, hpread_symfile_init)
10039 (hpread_read_enum_type, hpread_read_function_type)
10040 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10041 Ditto.
10042 * jv-lang.c (get_java_class_symtab, add_class_symbol)
10043 (java_link_class_type): Ditto.
10044 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
10045 (new_symbol): Ditto.
10046 * minsyms.c (install_minimal_symbols): Ditto.
10047 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10048 (terminate_minimal_symbol_table): Replace symbol_obstack with
10049 objfile_obstack.
10050 (free_objfile): Remove freeing of symbol_obstack.
10051 * objfiles.h: Remove symbol_obstack field.
10052 * pa64solib.c (add_to_solist): Replace symbol_obstack with
10053 objfile_obstack.
10054 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10055 symbol_obstack.
10056 (solib_add_common_symbols): Replace symbol_obstack with
10057 objfile_obstack.
10058 * somsolib.c (som_solib_add): Ditto.
10059 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10060 (common_block_start, common_block_end): Ditto.
10061 * symfile.c (reread_symbols): Remove freeing and init of
10062 symbol_obstack.
10063 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10064 * symfile.h: Update comment.
10065 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10066 stats printing.
10067 * symtab.c (symbol_set_names): Replace symbol_obstack with
10068 objfile_obstack.
10069 * symtab.h (struct general_symbol_info, struct minimal_symbol):
10070 Update comments.
10071 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10072 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10073 objfile_obstack.
10074
10075 2004-02-07 Andrew Cagney <cagney@redhat.com>
10076
10077 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10078 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
10079 fields and variables.
10080 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10081 (m_beInvisible): Delete macro.
10082 * tui/tui-data.h: Fix case case fields and variables.
10083 (m_genWinPtrIsNull): Delete macro.
10084 (tui_win_list): Rename winList.
10085 (TUI_SRC_WIN): Rename srcWin.
10086 (TUI_DISASM_WIN): Rename disassemWin.
10087 (TUI_DATA_WIN): Rename dataWin.
10088 (TUI_CMD_WIN): Rename cmdWin.
10089 (m_genWinPtrNotNull): Delete macro.
10090 (m_winPtrIsNull): Delete macro.
10091 (m_winPtrNotNull): Delete macro.
10092 (tui_win_is_source_type): Replace m_winIsSourceType
10093 (tui_win_is_auxillary): Replace m_winIsAuzillary.
10094 (tui_win_has_locator): Replace m_hasLocator.
10095 (tui_set_win_highlight): Replace m_setWinHighlightOn and
10096 m_setWinHighlightOff.
10097 * tui/tui-data.c: Update references.
10098 (tui_win_is_source_type, tui_set_win_highlight): New functions.
10099 (tui_win_has_locator, tui_win_is_auxillary): New functions.
10100 * tui/tui-command.c, tui/tui-disasm.c: Update references.
10101 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10102 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10103 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10104 * tui/tui-winsource.c, tui/tui.c: Ditto.
10105
10106 2004-02-07 Mark Kettenis <kettenis@gnu.org>
10107
10108 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
10109 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
10110 StackGhost.
10111
10112 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
10113 variable `i6' to `i7'.
10114 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10115
10116 2004-02-07 Andrew Cagney <cagney@redhat.com>
10117
10118 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
10119 (TuiPoint, TuiPointPtr): Ditto.
10120 (TuiStatus, TuiStatusPtr): Ditto.
10121 (TuiWinType, TuiWinTypePtr): Ditto.
10122 (struct tui_point): Rename _TuiPoint.
10123 (tui_get_low_disassembly_address): Rename
10124 tuiGetLowDisassemblyAddress.
10125 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
10126 (tuiFree): Delete declaration.
10127 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
10128 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
10129 * tui/tui.c (tuiFree): Delete function.
10130 * cli/cli-cmds.c (disassemble_command): Update references.
10131 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
10132 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10133 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
10134 * tui/tui-winsource.c: Ditto.
10135
10136 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10137
10138 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
10139 coffstab_build_psymtabs, elfstab_build_psymtabs)
10140 (stabsect_build_psymtabs): Replace psymbol_obstack with
10141 objfile_obstack.
10142 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
10143 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
10144 Ditto.
10145 * dwarfread.c (scan_compilation_units): Ditto.
10146 * elfread.c (elfstab_offset_sections): Ditto.
10147 * hppa-tdep.c (read_unwind_info): Ditto.
10148 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
10149 (hpread_end_psymtab): Ditto.
10150 * mdebugread.c (mdebug_build_psymtabs, add_pending)
10151 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
10152 Ditto.
10153 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
10154 * objfiles.c (add_to_objfile_sections)
10155 (build_objfile_section_table): Ditto.
10156 (allocate_objfile): Remove init of psymbol_obstack.
10157 (free_objfile): Remove freeing of psymbol_obstack.
10158 * objfiles.h (struct objfile): Remove field
10159 psymbol_obstack. Update comments.
10160 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
10161 psymbol_obstack with objfile_obstack.
10162 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10163 psymbol_obstack.
10164 * somread.c (som_symfile_offsets, init_import_symbols)
10165 (init_export_symbols): Replace psymbol_obstack with
10166 objfile_obstack.
10167 * somsolib.c (som_solib_add_solib_objfile): Ditto.
10168 * symfile.c (default_symfile_offsets, syms_from_objfile)
10169 (reread_symbols): Remove freeing and init of psymbol_obstack.
10170 (cashier_psymtab): Update comment.
10171 * symmisc.c (print_objfile_statistics): Don't report stats for
10172 psymbol obstack.
10173 * symtab.h (struct general_symbol_info, struct partial_symtab):
10174 Update comments.
10175 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
10176 (xcoff_symfile_offsets): Replace psymbol_obstack with
10177 objfile_obstack.
10178
10179 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10180
10181 * objfiles.h (struct objfile): Add objfile_obstack field.
10182 Remove type_obstack field.
10183
10184 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
10185 read_structure_scope read_enumeration, new_symbol): Replace
10186 type_obstack with objfile_obstack.
10187 * dwarfread.c (struct_type, enum_type): Ditto.
10188 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
10189 (lookup_fundamental_type): Ditto.
10190 * gdbtypes.h (TYPE_ALLOC): Ditto.
10191 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
10192 (hpread_read_doc_function_type, hpread_read_struct_type)
10193 (fix_static_member_physnames, hpread_read_array_type)
10194 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
10195 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
10196 (java_link_class_type): Ditto.
10197 * mdebugread.c (parse_type): Ditto.
10198 * objfiles.c (allocate_objfile, free_objfile): Ditto.
10199 * solib-sunos.c (solib_add_common_symbols): Ditto.
10200 * stabsread.c (define_symbol, read_type, read_member_functions,
10201 read_cpp_abbrev, read_one_struct_field): Ditto.
10202 * symfile.c (reread_symbols): Ditto.
10203 * symmisc.c (print_objfile_statistics): Ditto.
10204
10205 2004-02-07 Andrew Cagney <cagney@redhat.com>
10206
10207 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
10208 (tui_exec_info_content): Rename TuiExecInfoContent.
10209 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
10210 (TuiWinInfo, TuiWinInfoPtr): Ditto.
10211 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
10212 (TuiList, TuiListPtr): Ditto.
10213 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
10214 (TuiDataType, TuiDataTypePtr): Ditto.
10215 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
10216 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
10217 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
10218 (TuiSourceElement, TuiSourceElementPtr): Ditto.
10219 (TuiDataElement, TuiDataElementPtr): Ditto.
10220 (TuiWinElement, TuiWinElementPtr): Ditto.
10221 (TuiDataInfo, TuiDataInfoPtr): Ditto.
10222 (TuiCommandElement, TuiCommandElementPtr): Ditto.
10223 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
10224 (TuiWhichElement, TuiWhichElementPtr): Ditto.
10225 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
10226 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
10227 * tui/tui-command.c, tui/tui-data.c: Update references.
10228 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
10229 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10230 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10231 * tui/tui-winsource.c, tui/tui.c: Ditto.
10232
10233 2004-02-07 Mark Kettenis <kettenis@gnu.org>
10234
10235 * dwarf2-frame.h: Update copyright.
10236 (enum dwarf2_frame_reg_rule): New.
10237 (struct dwarf2_frame_state_reg): New.
10238 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
10239 * dwarf2-frame.c: Update copyright.
10240 (enum dwarf2_reg_rule): Remove.
10241 (struct dwarf2_frame_state): Remove defenition of `struct
10242 dwarf2_frame_state_reg'.
10243 (read_reg): Call get_frame_arch to get the architecture instead of
10244 using CURRENT_GDBARCH.
10245 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
10246 DWARF2_FRAME_.
10247 (dwarf2_frame_init_reg): New function.
10248 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
10249 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
10250 initialize the register state. Prefix old `enum dwarf2_reg_rule'
10251 tags with DWARF2_FRAME_.
10252 (dwarf2_frame_prev_register): Call get_frame_arch to get the
10253 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
10254 dwarf2_reg_rule' tags with DWARF2_FRAME_.
10255
10256 2004-02-06 Andrew Cagney <cagney@redhat.com>
10257
10258 * tui/tui-data.h (struct tui_list): Rename _TuiList.
10259 (enum tui_data_type): Rename _TuiDataType.
10260 (struct tui_layout_def): Rename _TuiLayoutDef.
10261 (struct tui_source_element): Rename _TuiSourceElement.
10262 (struct tui_data_element): Rename _TuiDataElement.
10263 (struct tui_command_element): Rename _TuiCommandElement.
10264 (struct tui_locator_element): Rename _TuiLocatorElement.
10265 (union tui_which_element): Define.
10266 (struct tui_win_element): Rename _TuiWinElement.
10267 (struct tui_data_info): Rename _TuiDataInfo.
10268 (struct tui_source_info): Rename _TuiSourceInfo.
10269 (struct tui_command_info): Rename _TuiCommandInfo.
10270 (tui_initialize_static_data): Rename initializeStaticData.
10271 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
10272 (tui_alloc_win_info): Rename allocWinInfo.
10273 (tui_init_generic_part): Rename initGenericPart.
10274 (tui_init_win_info): Rename initWinInfo.
10275 (tui_alloc_content): Rename allocContent.
10276 (tui_add_content_elements): Rename addContentElements.
10277 (tui_init_content_element): Rename initContentElement.
10278 (tui_free_window): Rename freeWindow.
10279 (tui_free_win_content): Rename freeWinContent.
10280 (tui_free_data_content): Rename freeDataContent.
10281 (tui_free_all_source_wins_content): Rename
10282 freeAllSourceWinsContent.
10283 (tui_del_window): Rename tuiDelWindow.
10284 (tui_del_data_windows): Rename tuiDelDataWindows.
10285 (tui_partial_win_by_name): Rename partialWinByName.
10286 (tui_win_name): Rename winName.
10287 (tui_current_layout): Rename currentLayout.
10288 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
10289 (tui_term_height): Rename termHeight.
10290 (tui_set_term_height_to): Rename setTermHeightTo.
10291 (tui_term_width): Rename termWidth.
10292 (tui_set_term_width_to): Rename setTermWidthTo.
10293 (tui_set_gen_win_origin): Rename setGenWinOrigin.
10294 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
10295 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
10296 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
10297 (tui_source_windows): Rename sourceWindows.
10298 (tui_clear_source_windows): Rename clearSourceWindows.
10299 (tui_clear_source_windows_detail): Rename
10300 clearSourceWindowsDetail.
10301 (tui_clear_win_detail): Rename clearWinDetail.
10302 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
10303 (tui_default_tab_len): Rename tuiDefaultTabLen.
10304 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
10305 (tui_win_with_focus): Rename tuiWinWithFocus.
10306 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
10307 (tui_layout_def): Rename tuiLayoutDef.
10308 (tui_win_resized): Rename tuiWinResized.
10309 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
10310 (tui_next_win): Rename tuiNextWin.
10311 (tui_prev_win): Rename tuiPrevWin.
10312 (tui_add_to_source_windows): Rename addToSourceWindows.
10313 * tui/tui-winsource.c, tui/tui-win.c: Update references.
10314 * tui/tui-layout.c, tui/tui-source.c: Ditto.
10315 * tui/tui-stack.c, tui/tui-io.c: Ditto.
10316 * tui/tui.c, tui/tui-data.c: Ditto.
10317 * tui/tui-interp.c, tui/tui-data.c: Ditto.
10318 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
10319
10320 * tui/tui-source.h: Update copyright. Include "tui-data.h".
10321 (struct symtab): Declare.
10322 (tui_set_source_content): Rename tuiSetSourceContent.
10323 (tui_show_symtab_source): Rename tuiShowSource.
10324 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
10325 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
10326 * tui/tui-source.c: Update copyright. Update references.
10327 * tui/tui-win.c, tui/tui-winsource.c: Update references.
10328 * tui/tui-stack.c: Update references.
10329
10330 * tui/tui-win.h: Update copyright. Include "tui-data.h".
10331 (struct tui_win_info): Declare.
10332 (tui_scroll_forward): Rename tuiScrollForward.
10333 (tui_scroll_backward): Rename tuiScrollBackward.
10334 (tui_scroll_left): Rename tuiScrollLeft.
10335 (tui_scroll_right): Rename tuiScrollRight.
10336 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
10337 (tui_resize_all): Rename tuiResizeAll.
10338 (tui_refresh_all_win): Rename tuiRefreshAll.
10339 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
10340 * tui/tui-layout.c, * tui/tui-io.c: Update references.
10341 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
10342 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
10343
10344 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
10345 (tui_erase_data_content): Rename tuiEraseDataContent.
10346 (tui_display_all_data): Rename tuiDisplayAllData.
10347 (tui_check_data_values): Rename tuiCheckDataValues.
10348 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
10349 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
10350 (tui_first_data_element_no_in_line): Rename
10351 tuiFirstDataElementNoInLine.
10352 (tui_delete_data_content_windows): Rename
10353 tuiDeleteDataContentWindows.
10354 (tui_refresh_data_win): Rename tuiRefreshDataWin.
10355 (tui_display_data_from): Rename tuiDisplayDataFrom.
10356 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
10357 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
10358 * tui/tui-win.c, tui/tui-regs.c: Update references.
10359 * tui/tui-layout.c, tui/tui.c: Update references.
10360
10361 * tui/tui-wingeneral.h: Update copyright.
10362 (m_allBeVisible): Delete macro.
10363 (m_allBeInvisible): Delete macro.
10364 (struct tui_gen_win_info): Declare.
10365 (struct tui_win_info): Declare.
10366 (tui_unhighlight_win): Rename unhighlightWin.
10367 (tui_make_visible, tui_make_invisible): Replace makeVisible.
10368 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
10369 (tui_make_window): Rename makeWindow.
10370 (tui_copy_win): Rename copyWin.
10371 (tui_box_win): Rename boxWin.
10372 (tui_highlight_win): Rename highlightWin.
10373 (tui_check_and_display_highlight_if_needed): Rename
10374 checkAndDisplayHighlightIfNeeded.
10375 (tui_refresh_all): Rename refreshAll.
10376 (tui_delete_win): Rename tuiDelwin.
10377 (tui_refresh_win): Rename tuiRefreshWin.
10378 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
10379 (tui_make_visible, tui_make_invisible): New functions.
10380 (tui_make_all_visible, tui_make_all_invisible): New functions.
10381 (make_all_visible): Rename makeAllVisible.
10382 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
10383 * tui/tui-data.c, tui/tui-winsource.c: Update references.
10384 * tui/tui-windata.c, tui/tui-win.c: Update references.
10385 * tui/tui-regs.c, tui/tui-layout.c: Update references.
10386 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
10387
10388 2004-02-06 Mark Kettenis <kettenis@gnu.org>
10389
10390 * proc-api.c (write_with_trace): Initialize local variable to
10391 silence compiler warning.
10392
10393 2004-02-06 Andrew Cagney <cagney@redhat.com>
10394
10395 * tui/tui-source.h: Do not include "defs.h".
10396 (struct tui_win_info): Declare.
10397 (tui_set_source_content_nil): Declare.
10398 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
10399 (union tui_line_or_address): Rename _TuiLineOrAddress.
10400 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
10401 (tui_update_source_window): Rename tuiUpdateSourceWindow.
10402 (tui_update_source_window_as_is): Rename
10403 tuiUpdateSourceWindowAsIs.
10404 (tui_update_source_windows_with_addr): Rename
10405 tuiUpdateSourceWindowsWithAddr.
10406 (tui_update_source_windows_with_line): Rename
10407 tuiUpdateSourceWindowsWithLine.
10408 (tui_clear_source_content): Rename tuiClearSourceContent.
10409 (tui_erase_source_content): Rename tuiEraseSourceContent.
10410 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
10411 (tui_show_source_content): Rename tuiShowSourceContent.
10412 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
10413 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
10414 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
10415 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
10416 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
10417 (tui_update_exec_info): Rename tuiUpdateExecInfo.
10418 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
10419 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
10420 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
10421 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
10422 (struct tui_win_info): Declare.
10423 * tui/tui-stack.c: Update references.
10424 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
10425 * tui/tui-win.c, tui/tui-source.c: Ditto.
10426 * tui/tui.c, tui/tui-disasm.c: Ditto.
10427
10428 2004-02-06 Mark Kettenis <kettenis@gnu.org>
10429
10430 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
10431 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
10432
10433 2004-02-05 Mark Kettenis <kettenis@gnu.org>
10434
10435 * infrun.c (handle_inferior_event): Allow for breakpoint
10436 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
10437 and SIGEMT. Update comments.
10438 * NEWS (Revised SPARC target): Mention support for non-executable
10439 stack.
10440
10441 2004-02-04 Mark Kettenis <kettenis@gnu.org>
10442
10443 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
10444 * inftarg.c: Update copyright year.
10445 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
10446 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
10447 (sparc_xfer_wcookie): New function.
10448 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10449 * Makefile.in (sparc-nat.o): Update dependencies.
10450 * config/sparc/nm-nbsd.h: Include "target.h".
10451 (NATIVE_XFER_WCOOKIE): New define.
10452 (sparc_xfer_wcookie): New prototype.
10453
10454 2004-02-04 Andrew Cagney <cagney@redhat.com>
10455
10456 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
10457 SYSCALL_TRAP function.
10458 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
10459
10460 2004-02-04 Andrew Cagney <cagney@redhat.com>
10461 Daniel Jacobowitz <drow@mvista.com>
10462
10463 * objfiles.h: Delete comments refering to inside_entry_func and
10464 DEPRECATED_FRAME_CHAIN_VALID.
10465 * defs.h (inside_entry_func): Update prototype..
10466 * blockframe.c (inside_entry_func): Rename to
10467 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
10468 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
10469
10470 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
10471
10472 * breakpoint.c (struct captured_parse_breakpoint_args): Move
10473 outside of #ifdef SOLIB_ADD region.
10474 (do_restore_lang_radix_cleanup): Ditto.
10475 (resolve_pending_breakpoint): Ditto.
10476
10477 2004-02-03 Andrew Cagney <cagney@redhat.com>
10478
10479 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
10480 (process_note_abi_tag_sections): Delete unused function.
10481 (ia64_read_fp): Delete unused function.
10482 (gdbarch_extract_struct_value_address): Delete declaration.
10483
10484 2004-02-02 Andrew Cagney <cagney@redhat.com>
10485
10486 * vax-tdep.c (vax_frame_chain): Delete call to
10487 deprecated_inside_entry_file.
10488 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
10489
10490 2004-02-02 Mark Kettenis <kettenis@gnu.org>
10491
10492 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
10493 column that's "empty" or "same value" when eliminating REG_RA
10494 rules.
10495
10496 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10497
10498 * NEWS: Add information about new pending breakpoint support.
10499
10500 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10501
10502 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
10503 and pending fields for pending breakpoint support.
10504 * breakpoint.c (breakpoint_enabled): Add check for not pending.
10505 (condition_command): Only parse condition if not a pending
10506 breakpoint.
10507 (print_one_breakpoint): Add support for pending breakpoints.
10508 (describe_other_breakpoints): Add checks to verify we are not
10509 dealing with pending breakpoints.
10510 (check_duplicates): Don't check pending breakpoints.
10511 (set_raw_breakpoint): Initialize pending flag.
10512 (do_restore_lang_radix_cleanup): New cleanup routine.
10513 (resolve_pending_breakpoint): New function.
10514 (re_enable_breakpoints_in_shlibs): Try and resolve any
10515 pending breakpoints via resolve_pending_breakpoint.
10516 (mention): Add pending breakpoint support.
10517 (parse_breakpoint_sals): Add new parameter to pass to
10518 decode_line_1 to indicate silent errors when files or functions
10519 are not found. Change all callers.
10520 (do_captured_parse_breakpoint): New function.
10521 (break_command_1): Change prototype to return an rc value and to
10522 take an optional pending breakpoint pointer. Support creating
10523 a pending breakpoint if a "not found" form of error occurs when
10524 parsing the breakpoint. Also support resolving an existing pending
10525 breakpoint and be silent if the resolution fails.
10526 (create_breakpoints): Change prototype to take pending breakpoint
10527 pointer. When resolving a pending breakpoint, use the new pointer
10528 to provide a conditional or commands added by the end-user.
10529 (delete_breakpoint): Add appropriate check for pending.
10530 (breakpoint_re_set_one): Ditto.
10531 (do_enable_breakpoint): Ditto.
10532
10533 2004-02-02 David Carlton <carlton@kealia.com>
10534
10535 * valops.c (enum oload_classification): New.
10536 (find_overload_match): Break implementation into separate
10537 functions; delete #if 0'd code; look for symbols within
10538 namespaces.
10539 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
10540 (find_oload_champ,oload_method_static,classify_oload_match): New.
10541 * cp-support.h: Add declaration for cp_func_name; update
10542 declaration for make_symbol_overload_list.
10543 * cp-support.c (cp_func_name): New.
10544 (overload_list_add_symbol): Fix comment, use
10545 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
10546 (make_symbol_overload_list): Take a function name and a namespace
10547 instead of a symbol; change implementation.
10548 (make_symbol_overload_list_using): New.
10549 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
10550
10551 2004-02-02 Fred Fish <fnf@redhat.com>
10552
10553 * main.c (gdb_stdtarg): Move definition to group with other
10554 gdb_stdtarg definitions and update copyright years.
10555 * remote-sim.c (gdb_os_write_stderr): Write output to
10556 gdb_stdtargerr stream instead of gdb_stdtarg stream.
10557 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
10558 gdb_stderr stream and update copyright years.
10559
10560 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10561
10562 * Makefile.in (mips-linux-nat.o): Update dependencies.
10563 * mips-linux-nat.c: Include mips-tdep.h.
10564
10565 2004-02-01 Roland McGrath <roland@redhat.com>
10566
10567 * sol-thread.c (sol_thread_xfer_partial): New function.
10568 (init_sol_thread_ops): Use that for to_xfer_partial hook.
10569 (init_sol_core_ops): Likewise.
10570
10571 * procfs.c (procfs_xfer_partial): New function.
10572 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
10573 * Makefile.in (procfs.o): Add $(auxv_h) dep.
10574
10575 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
10576 procfs_xfer_auxv function.
10577
10578 * procfs.c (procfs_make_note_section): If we can read
10579 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
10580 * linux-proc.c (linux_make_note_section): Likewise.
10581
10582 * auxv.h: New file.
10583 * auxv.c: New file.
10584 * Makefile.in (auxv_h): New variable.
10585 (COMMON_OBS): Add auxv.o here.
10586 (auxv.o): New target.
10587
10588 * corelow.c (core_xfer_partial): New function.
10589 (init_core_ops): Use it for core_ops.to_xfer_partial.
10590
10591 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
10592 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
10593 macro if that is defined.
10594
10595 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10596
10597 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
10598 and check the specified thread for each breakpoint.
10599 * breakpoint.h (bpstat_stop_status): Update prototype.
10600 * infrun.c (handle_inferior_event): Update calls to
10601 bpstat_stop_status.
10602
10603 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10604
10605 * Makefile.in (cli-cmds.o): Add $(readline_h).
10606
10607 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10608
10609 * cli/cli-cmds.c: Include readline.h.
10610 (complete_command): Pass the start of the last word to
10611 complete_line.
10612
10613 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10614
10615 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
10616 argument, and change first argument to a CORE_ADDR.
10617 * breakpoint.h (bpstat_stop_status): Update prototype.
10618 * infrun.c (adjust_pc_after_break): Add a new comment.
10619 (handle_inferior_event): Update calls to bpstat_stop_status.
10620
10621 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10622
10623 * breakpoint.h: Update copyright years.
10624
10625 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10626
10627 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
10628 (bpstat_stop_status): Don't decrement PC.
10629 * breakpoint.h (software_breakpoint_inserted_here_p): Add
10630 prototype.
10631 * infrun.c (adjust_pc_after_break): New function.
10632 (handle_inferior_event): Call it, early. Remove later references
10633 to DECR_PC_AFTER_BREAK.
10634 (normal_stop): Add commentary.
10635
10636 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10637
10638 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
10639 2004-01-27 double-free fix.
10640
10641 2004-01-31 Mark Kettenis <kettenis@gnu.org>
10642
10643 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10644 (sparc32_frame_prev_register): Handle StackGhost.
10645 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10646
10647 2004-01-29 Roland McGrath <roland@redhat.com>
10648
10649 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
10650 * configure: Regenerated.
10651
10652 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
10653 * Makefile.in (procfs.o): Add dep.
10654
10655 2004-01-28 Andrew Cagney <cagney@redhat.com>
10656
10657 * tui/tui-stack.h: Update copyright.
10658 (struct frame_info): Add opaque declaration.
10659 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
10660 (tui_show_locator_content): Rename tuiShowLocatorContent.
10661 (tui_show_frame_info): Rename tuiShowFrameInfo.
10662 * tui/tui-stack.c: Update copyright. Update references.
10663 * tui/tui-winsource.c: Update references.
10664 * tui/tui-win.c: Update references.
10665 * tui/tui-layout.c: Update references.
10666 * tui/tui-hooks.c: Update copyright, update references.
10667 * tui/tui.c: Update copyright, update references.
10668 * tui/tui-disasm.c: Update references.
10669
10670 2004-01-28 David Carlton <carlton@kealia.com>
10671
10672 * dwarf2read.c (add_partial_structure): Use demangled name if
10673 namespace equals "".
10674
10675 2004-01-27 Jim Blandy <jimb@redhat.com>
10676
10677 Clean up misapplied patch:
10678 * dwarf2read.c (determine_prefix): Change one of the two forward
10679 declarations for 'determine_prefix_aux' to a declaration for this.
10680 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
10681 argument to 'die_specification'.
10682
10683 * dwarf2read.c (read_func_scope): Re-indent comment.
10684
10685 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
10686
10687 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
10688 b->exp to NULL after freeing so that error during re-parsing or
10689 evaluation of expressions associated with breakpoint don't
10690 eventually lead to re-freeing of storage.
10691 Committed by Andrew Cagney.
10692
10693 2004-01-27 Andrew Cagney <cagney@redhat.com>
10694
10695 * source.c (ambiguous_line_spec): Delete undefined declaration.
10696 * m32r-rom.c (m32r_set_board_address): Delete unused function.
10697 (m32r_set_server_address, m32r_set_download_path): Ditto.
10698 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
10699
10700 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
10701
10702 * dwarf2read.c: Update calls to changed and renamed functions, and
10703 references to moved variables.
10704
10705 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
10706 language, language_defn, list_in_scope, and ftypes members.
10707 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
10708 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
10709 (baseaddr): Remove globals.
10710
10711 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
10712 (set_cu_language, die_is_declaration, die_specification)
10713 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
10714 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
10715 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
10716 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
10717
10718 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
10719 cu.list_in_scope. Don't initialize cu_header_offset.
10720 (add_partial_symbol): Add local baseaddr.
10721 (psymtab_to_symtab_1): Add local baseaddr. Use
10722 objfile->section_offsets for consistency. Don't initialize
10723 cu_header_offset; do initialize cu.header.offset and
10724 cu.list_in_scope.
10725 (read_file_scope, read_func_scope, read_lexical_block_scope)
10726 (dwarf_decode_lines, new_symbol): Add local baseaddr.
10727
10728 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
10729
10730 * PROBLEMS: Add gdb/1516.
10731
10732 2003-12-29 Robert Millan <robertmh@gnu.org>
10733
10734 Patch committed by Andrw Cagney.
10735 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
10736 * configure.tgt: Match knetbsd*-gnu.
10737
10738 2004-01-26 Andrew Cagney <cagney@redhat.com>
10739
10740 * breakpoint.c (catch_command_1): Delete #ifdef code.
10741 (catch_fork_command_1): Delete #ifdef wrapper.
10742 (catch_exec_command_1): Ditto.
10743 (catch_load_command_1): Ditto.
10744 (catch_unload_command_1): Ditto.
10745
10746 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
10747 (catch_breakpoint): Delete #if0ed function.
10748 (disable_catch_breakpoint): Ditto.
10749 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
10750 (disable_catch, enable_catch, delete_catch): Ditto.
10751
10752 2004-01-26 Andrew Cagney <cagney@redhat.com>
10753
10754 * remote.c (echo_check, quit_flag): Delete variables.
10755 (cisco_kernel_mode): Delete variable.
10756 (minitelnet_return, tty_input, escape_count): Delete variables.
10757 (remote_cisco_mode): Delete variable.
10758 (remote_cisco_open, remote_cisco_close): Delete function.
10759 (remote_cisco_mourn, remote_cisco_wait): Delete function.
10760 (init_remote_cisco_ops): Delete function.
10761 (_initialize_remote): Do not install "remote cisco" code.
10762 (read_frame): Delete cisco specific code.
10763 (remote_info_process): Delete function.
10764 (remote_wait): Delete cisco specific code.
10765 (remote_cisco_section_offsets): Delete function.
10766 (remote_cisco_objfile_relocate): Delete function.
10767 (remote_async_wait): Delete cisco specific code.
10768 (minitelnet, readtty, readsocket): Delete function.
10769
10770 2004-01-26 Andrew Cagney <cagney@redhat.com>
10771
10772 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
10773 comments mentioning extract_returned_value_address.
10774 * infcmd.c (print_return_value): Update. Add comments on
10775 extract_returned_value_address.
10776 * stack.c (return_command): Add comments on
10777 extract_returned_value_address.
10778 * values.c: Update comment.
10779 * m32r-tdep.c: Update comment.
10780 * sparc-tdep.c: Update comment.
10781 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
10782 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10783 * sh64-tdep.c (sh64_gdbarch_init): Update.
10784 * sh-tdep.c (sh_gdbarch_init): Update.
10785 * s390-tdep.c (s390_gdbarch_init): Update.
10786 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10787 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10788 * m68k-tdep.c (m68k_gdbarch_init): Update.
10789 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10790 * m32r-tdep.c (m32r_gdbarch_init): Update.
10791 * ia64-tdep.c (ia64_gdbarch_init): Update.
10792 * h8300-tdep.c (h8300_gdbarch_init): Update.
10793 * frv-tdep.c (frv_gdbarch_init): Update.
10794 * arm-tdep.c (arm_gdbarch_init): Update.
10795 * alpha-tdep.c (alpha_gdbarch_init): Update.
10796
10797 2004-01-26 Andrew Cagney <cagney@redhat.com>
10798
10799 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
10800 SYMBOL_LOCATION_FUNCS
10801 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
10802 "struct symbol_ops".
10803 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
10804 type to "struct symbol_ops".
10805 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
10806 (struct symbol): Replace ".aux_value.loc.funcs" and
10807 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
10808 (SYMBOL_OBJFILE): Delete macro.
10809 (SYMBOL_LOCATION_FUNCS): Delete macro.
10810 (SYMBOL_LOCATION_BATON): Update.
10811 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
10812 intead of SYMBOL_LOCATION_FUNCS.
10813 * ax-gdb.c (gen_var_ref): Ditto.
10814 * printcmd.c (address_info): Ditto.
10815 * findvar.c (read_var_value): Ditto.
10816 (symbol_read_needs_frame): Ditto.
10817
10818 2004-01-26 Andrew Cagney <cagney@redhat.com>
10819
10820 * dwarf2read.c (read_func_scope): Document frame-base hack.
10821
10822 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10823
10824 * infcmd.c (print_return_value): Plug memory leak; delete
10825 ui_stream object. Rename argument `structure_return' to
10826 `struct_return'.
10827
10828 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10829
10830 * infcmd.c (print_return_value): Wrap long lines.
10831 (finish_command_continuation, finish_command): Remove unused
10832 variable `funcaddr'. Fix some coding-standards problems.
10833
10834 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
10835 SECT_SIZE is large enough, not whether it's exactly the right size.
10836 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
10837 TDEP->fpregset to zero.
10838
10839 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
10840 floating-point registers for traditional NetBSD core files.
10841 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
10842 TDEP->sizeof_fpregset here.
10843
10844 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10845
10846 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
10847 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
10848 function with code split out from
10849 sparc32nbsd_sigcontext_frame_cache.
10850 (sparc32nbsd_sigcontext_frame_cache): Use
10851 sparc32nbsd_sigcontext_saved_regs.
10852 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
10853 OpenBSD.
10854 * sparcobsd-tdep.c: New file.
10855 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
10856 (sparcobsd-tdep.o): New dependency.
10857 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
10858 * config/sparc/obsd.mt: New file.
10859
10860 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
10861 TDEP->fpregset to be initialized to enable core file register
10862 sets.
10863
10864 2004-01-24 Mark Kettenis <kettenis@gnu.org>
10865
10866 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
10867 Add opaque declarations.
10868 (sparc64nbsd_sigcontext_saved_regs): New prototype.
10869 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
10870 function with code split out from
10871 sparc64nbsd_sigcontext_frame_cache.
10872 (sparc64nbsd_sigcontext_frame_cache): Use
10873 sparc64nbsd_sigcontext_saved_regs.
10874 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
10875 OpenBSD.
10876 * sparc64obsd-tdep.c: New file.
10877 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
10878 (sparc64obsd-tdep.o): New dependency.
10879 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
10880 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
10881 * config/sparc/obsd64.mt: New file.
10882
10883 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
10884 read the instruction at PC.
10885
10886 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
10887 value of GDB_OSABI_DEFAULT.
10888 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
10889 instead of GDB_OSABI_NETBSD_AOUT.
10890
10891 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
10892
10893 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
10894 copyright.
10895
10896 2004-01-23 Andrew Cagney <cagney@redhat.com>
10897
10898 * printcmd.c (display_command): Replace tui_set_display call with
10899 tui_set_layout_for_display_command.
10900 * tui/tui.h (enum tui_win_type): Define.
10901 (tui_set_layout): Delete declaration.
10902 (tui_set_layout_for_display_command): Rename set_tui_layout.
10903 * tui/tui-data.h (enum tui_layout_type): Define.
10904 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
10905 "tui.h".
10906 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
10907 (tui_default_win_height): Rename tuiDefaultWinHeight.
10908 (tui_default_win_viewport_height): Rename
10909 tuiDefaultWinViewportHeight.
10910 (tui_set_layout): RenametuiSetLayout.
10911 * tui/tui-layout.c: Update references.
10912 * tui/tui.c: Update references.
10913 * tui/tui-disasm.c: Update references.
10914
10915 2004-01-23 David Carlton <carlton@kealia.com>
10916
10917 Partial workaround for PR c++/1511:
10918 * cp-namespace.c: Include frame.h.
10919 (cp_lookup_transparent_type): New
10920 (cp_lookup_transparent_type_loop): New.
10921 * cp-support.h: Declare cp_lookup_transparent_type.
10922 * symtab.c (basic_lookup_transparent_type): Renamed from
10923 lookup_transparent_type.
10924 (lookup_transparent_type): Replace old body by a call to
10925 current_language->la_lookup_transparent_type.
10926 * symtab.h: Update copyright. Declare
10927 basic_lookup_transparent_type.
10928 * language.h: Update copyright.
10929 (struct language_defn): Add la_lookup_transparent_type.
10930 * language.c: Update copyright.
10931 (unknown_language_defn): Add basic_lookup_transparent_type.
10932 (auto_language_defn): Add basic_lookup_transparent_type.
10933 (local_language_defn): Add basic_lookup_transparent_type.
10934 * ada-lang.c: Update copyright.
10935 (ada_language_defn): Add basic_lookup_transparent_type.
10936 * c-lang.c: Update copyright.
10937 (c_language_defn): Add basic_lookup_transparent_type.
10938 (cplus_language_defn): Add basic_lookup_transparent_type.
10939 (asm_language_defn): Add basic_lookup_transparent_type.
10940 (minimal_language_defn): Add basic_lookup_transparent_type.
10941 * f-lang.c: Update copyright.
10942 (f_language_defn): Add basic_lookup_transparent_type.
10943 * jv-lang.c: Update copyright.
10944 (java_language_defn): Add basic_lookup_transparent_type.
10945 * m2-lang.c: Update copyright.
10946 (m2_language_defn): Add basic_lookup_transparent_type.
10947 * objc-lang.c: Update copyright.
10948 (objc_language_defn): Add basic_lookup_transparent_type.
10949 * p-lang.c: Update copyright.
10950 (p_language_defn): Add basic_lookup_transparent_type.
10951 * scm-lang.c: Update copyright.
10952 (scm_language_defn): Add basic_lookup_transparent_type.
10953 * Makefile.in (cp-namespace.o): Depend on frame.h.
10954
10955 2004-01-23 David Carlton <carlton@kealia.com>
10956
10957 Patch for PR c++/1520:
10958 * dwarf2read.c (read_func_scope): Set processing_current_prefix
10959 properly if we have a specification die.
10960 (determine_prefix_aux): Rename from determine_prefix.
10961 (determine_prefix): Like the old determine_prefix, but never
10962 returns NULL.
10963
10964 2004-01-23 Theodore A. Roth <troth@openavr.org>
10965
10966 * avr-tdep.c: Update copyright.
10967 (avr_iaddr_p): Delete unused function.
10968 (avr_saddr_p): Delete unused function.
10969
10970 2004-01-23 David Carlton <carlton@kealia.com>
10971
10972 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
10973 Fix for PR symtab/1534.
10974
10975 2004-01-23 Mark Kettenis <kettenis@gnu.org>
10976
10977 * NEWS (New native configurations): Mention OpenBSD/sparc and
10978 OpenBSD/sparc64.
10979 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
10980 * configure.host: Likewise.
10981 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
10982 handler for OpenBSD.
10983 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
10984
10985 2004-01-22 Mark Kettenis <kettenis@gnu.org>
10986
10987 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
10988 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
10989
10990 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
10991 * cli/cli-cmds.c (shell_escape): Likewise.
10992
10993 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
10994 OpenBSD .note.openbsd.ident sections.
10995
10996 2004-01-22 David Carlton <carlton@kealia.com>
10997
10998 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
10999 get_scope_pc_bounds.
11000 (read_file_scope): Ditto.
11001 (get_scope_pc_bounds): New function, produced by extracting code
11002 from the above two functions, consolidating it, and adding support
11003 for DW_TAG_namespace.
11004
11005 2004-01-22 Mark Kettenis <kettenis@gnu.org>
11006
11007 * osabi.c (MAX_NOTESZ): New define.
11008 (check_note): New function.
11009 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11010 check_note.
11011
11012 2004-01-21 Roland McGrath <roland@redhat.com>
11013
11014 * MAINTAINERS (write after approval): Add myself.
11015
11016 2004-01-21 Eli Zaretskii <eliz@gnu.org>
11017
11018 * utils.c (init_page_info): Move declarations of `rows' and
11019 `cols' before the __GO32__-specific code. Move the closing brace
11020 outside the #ifdef __GO32__..#endif block.
11021 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11022
11023 2004-01-21 Paul Brook <paul@codesourcery.com>
11024
11025 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11026 BPSTAT_WHAT_CHECK_SHLIBS.
11027
11028 2004-01-21 Paul Brook <paul@codesourcery.com>
11029
11030 * MAINTAINERS: Add myself to write-after-approval.
11031
11032 2004-01-20 Andrew Cagney <cagney@redhat.com>
11033
11034 * ax-gdb.c (print_axs_value): Delete unused function.
11035 * jv-lang.c (java_lookup_type): Delete unused function.
11036 * cli/cli-dump.c (dump_filetype): Delete unused function.
11037 * remote-mips.c (remote_mips_insert_hw_breakpoint)
11038 (remote_mips_remove_hw_breakpoint): Delete unused functions.
11039 (mips_getstring): Delete unused function.
11040 (pmon_insert_breakpoint): Delete #if0ed function.
11041 (PMON_MAX_BP): Delete #if0ed MACRO.
11042 (mips_pmon_bp_info): Delete #if0ed variable.
11043 (pmon_remove_breakpoint): Delete #if0ed function.
11044 * monitor.c (monitor_write_even_block): Delete unused function.
11045 (monitor_write_memory_block): Delete #if0ed code.
11046 * dink32-rom.c (dink32_load): Delete unused function.
11047 (_initialize_dink32_rom): Delete #if0ed code.
11048 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11049
11050 * tui/tui-command.c: Update references.
11051 * tui/tui-io.c: Update references.
11052 * tui/tui-command.h: Update copyright.
11053 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11054
11055 * source.c (ambiguous_line_spec): Delete never-defined function.
11056 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11057 * gdbtypes.c (add_name, add_mangled_type): Ditto.
11058 * cli/cli-cmds.c (validate_comname): Ditto.
11059
11060 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
11061 "tui-data.h".
11062 (tui_set_disassem_content): Rename tuiSetDisassemContent.
11063 (tui_show_disassem): Rename tuiShowDisassem.
11064 (tui_show_disassem_and_update_source): Rename
11065 tuiVerticalDisassemScroll.
11066 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11067 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11068 * tui/tui.h: Update copyright.
11069 (enum tui_status): Define.
11070 * tui/tui-data.h (enum tui_scroll_direction): Define.
11071 * tui/tui-disasm.c: Update copyright. Update references.
11072 * tui/tui-winsource.c: Update copyright. Update references.
11073 * tui/tui-win.c: Update references.
11074 * tui/tui-layout.c: Update references.
11075
11076 2004-01-20 Andrew Cagney <cagney@redhat.com>
11077
11078 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11079 sym2 to start of block.
11080
11081 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
11082
11083 * MAINTAINERS: Delete mmalloc.
11084 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11085 * NEWS: Mention removal of --with-malloc.
11086 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11087 * config.in: Regenerate.
11088 * configure: Regenerate.
11089 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11090 USE_MMALLOC, MMCHECK_FORCE.
11091 * gdbinit.in: Remove mmalloc.
11092 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11093 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11094 * config/i386/go32.mh: Likewise.
11095 * config/i386/interix.mh: Likewise.
11096 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11097
11098 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
11099
11100 * linespec.c (decode_variable, symtab_from_filename): Call
11101 error_silent with error message instead of throwing an exception
11102 directly.
11103 * defs.h (error_silent, error_output_message): Add prototypes.
11104 (catch_exceptions_with_msg): Ditto.
11105 * utils.c (error_silent, error_output_message): New functions.
11106 * top.c (catch_exceptions_with_msg): New function.
11107
11108 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
11109
11110 * mi/mi-cmds.h (enum print_values): Add definition.
11111
11112 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
11113 type and value for simple data types and just the name and type
11114 for complex ones, if required.
11115
11116 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
11117 children, if required.
11118
11119 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11120
11121 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
11122 unused declarations.
11123
11124 2004-01-19 Andrew Cagney <cagney@redhat.com>
11125
11126 * top.h (mapped_symbol_files): Delete declaration.
11127 * main.c (captured_main): Delete option "m" and "mapped".
11128 * objfiles.c (mapped_symbol_files): Delete variable.
11129 * symfile.c (symbol_file_command): Delete mmap code.
11130 (symbol_file_add_with_addrs_or_offsets): Ditto.
11131 (add_symbol_file_command, reread_separate_symbols): Ditto.
11132 * objfiles.h (OBJF_MAPPED): Delete.
11133 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
11134 (free_objfile) [USE_MMALLOC]: Ditto.
11135 (open_existing_mapped_file): Delete function.
11136 (open_mapped_file): Delete function.
11137 (map_to_file): Delete function.
11138
11139 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11140
11141 * infrun.c (step_into_function): Account for possible breakpoint
11142 adjustment when computing ``stop_func_start''.
11143
11144 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11145
11146 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
11147 the region size against the size of a pointer, not the size of
11148 a register as given by DEPRECATED_REGISTER_SIZE.
11149
11150 2004-01-19 Andrew Cagney <cagney@redhat.com>
11151
11152 * tui/tui-regs.h: Include "tui-data.h".
11153 (tuiFirstRegElementNoInLine): Delete declaration.
11154 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
11155 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
11156 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
11157 (tui_calculate_regs_column_count): Rename
11158 tuiCalculateRegsColumnCount.
11159 (tui_check_register_values): Rename tuiCheckRegisterValues.
11160 (tui_show_registers): Rename tuiShowRegisters.
11161 (tui_display_registers_from_line): Rename
11162 tuiDisplayRegistersFromLine.
11163 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
11164 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
11165 (tui_first_reg_element_no_inline): Rename
11166 tuiFirstRegElementNoInLine.
11167 * tui/tui-data.h: Update copyright.
11168 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
11169 * tui/tui-windata.c: Update copyright, update references.
11170 * tui/tui-regs.c: Update copyright, update references.
11171 * tui/tui-win.c: Update copyright, update references.
11172 * tui/tui-layout.c: Update copyright, update references.
11173
11174 2004-01-18 Andrew Cagney <cagney@redhat.com>
11175
11176 * tui/tui-io.c: Update copyright.
11177 (key_is_end_sequence, key_is_backspace): New functions.
11178 (key_is_command_char, key_is_start_sequence): New function.
11179 (tui_getc): Update references.
11180 * tui/tui-io.h: Update copyright.
11181 (m_tuiStartNewLine): Delete macro.
11182 (m_isBackspace, m_isDeleteChar): Delete macros.
11183 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
11184 (m_isNextPage, m_isPrevPage): Delete macros.
11185 (m_isLeftArrow, m_isRightArrow): Delete macros.
11186 (m_isXdbStyleCommandChar): Delete macro.
11187 (key_is_start_sequence): Declare, replace m_isStartSequence.
11188 (key_is_end_sequence): Declare, replace m_isEndSequence.
11189 (key_is_backspace): Declare ,replace m_isBackspace.
11190 (key_is_command_char): Declare, replace m_isCommandChar.
11191 * tui/tui-command.c: Update copyright.
11192 (tuiDispatchCtrlChar): Update references.
11193
11194 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
11195 tuiSourceWin.h.
11196
11197 * tui/tui-command.c: Rename tui/tuiCommand.c.
11198 * tui/tui-command.h: Rename tui/tuiCommand.h.
11199 * tui/tui-data.c: Rename tui/tuiData.c.
11200 * tui/tui-data.h: Rename tui/tuiData.h.
11201 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
11202 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
11203 * tui/tui-io.c: Rename tui/tuiIO.c.
11204 * tui/tui-io.h: Rename tui/tuiIO.h.
11205 * tui/tui-layout.c: Rename tui/tuiLayout.c.
11206 * tui/tui-layout.h: Rename tui/tuiLayout.h.
11207 * tui/tui-regs.c: Rename tui/tuiRegs.c.
11208 * tui/tui-regs.h: Rename tui/tuiRegs.h.
11209 * tui/tui-source.c: Rename tui/tuiSource.c.
11210 * tui/tui-source.h: Rename tui/tuiSource.h.
11211 * tui/tui-stack.c: Rename tui/tuiStack.c.
11212 * tui/tui-stack.h: Rename tui/tuiStack.h.
11213 * tui/tui-win.c: Rename tui/tuiWin.c.
11214 * tui/tui-win.h: Rename tui/tuiWin.h.
11215 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
11216 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
11217 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
11218 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
11219 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
11220 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
11221 * tui/tui-file.c: Update includes.
11222 * tui/tui-hooks.c: Update includes.
11223 * tui/tui-interp.c: Update includes.
11224 * tui/tui.c: Update includes.
11225 * Makefile.in: Update all tui/ dependencies.
11226 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
11227
11228 * Makefile.in: Update copyright. Update dependencies.
11229
11230 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
11231 problem.
11232
11233 2004-01-18 Andrew Cagney <cagney@redhat.com>
11234
11235 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
11236 instead of register_gdbarch_init.
11237
11238 * remote-sds.c (tohex): Delete unused function. Update copyright.
11239 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
11240 * v850-tdep.c (v850_register_virtual_size): Ditto.
11241 * target.c (normal_target_post_startup_inferior): Ditto.
11242 * source.c (ambiguous_line_spec): Ditto.
11243 * remote.c (adapt_remote_get_threadinfo): Ditto.
11244 * mi/mi-out.c (out_field_fmt): Ditto.
11245 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
11246 (output_control_change_notification): Ditto.
11247 * m68k-tdep.c (m68k_register_byte): Ditto.
11248 (m68k_remote_breakpoint_from_pc): Ditto.
11249 * ui-out.c (init_ui_out_state): Delete unused declaration.
11250 * stabsread.c (search_value): Ditto.
11251 * mi/mi-cmd-env.c (env_cli_command): Ditto.
11252 * maint.c (print_section_table): Ditto.
11253 * infrun.c (set_follow_fork_mode_command): Ditto.
11254
11255 2004-01-18 Mark Kettenis <kettenis@gnu.org>
11256
11257 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
11258 DW_CFA_def_cfa_exporession. Add support for
11259 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
11260 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
11261
11262 2004-01-18 Andrew Cagney <cagney@redhat.com>
11263
11264 * ocd.c: Update copyright.
11265 (bdm_read_register_command): Delete unused function.
11266 (_initialize_remote_ocd): Delete commented out reference.
11267 (get_quoted_char, reset_packet): Delete #if0ed function.
11268 (output_packet, put_quoted_char): Delete #if0ed function.
11269 (stu_put_packet, stu_get_packet): Delete #if0ed function.
11270 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
11271 (BDM_BREAKPOINT): Delete #if0ed macro.
11272 (remote_timeout): Delete #if0ed variable.
11273
11274 2004-01-18 Mark Kettenis <kettenis@gnu.org>
11275
11276 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
11277 (core-sol2.o): Remove dependency.
11278 * core-sol2.c: Remove file.
11279
11280 2004-01-17 Andrew Cagney <cagney@redhat.com>
11281
11282 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
11283 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
11284 enums.
11285
11286 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11287
11288 * remote.c: Update copyright years.
11289
11290 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11291
11292 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
11293
11294 2004-01-17 Andrew Cagney <cagney@redhat.com>
11295
11296 * mdebugread.c: Update copyright.
11297 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
11298 (parse_type, parse_procedure): Ditto.
11299 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
11300
11301 * cris-tdep.c (cris_store_struct_return): Put back accidently
11302 deleted function.
11303
11304 * gdbarch.sh: Update copyright year.
11305 * gdbarch.h, gdbarch.c: Re-generate.
11306
11307 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11308
11309 Suggested by George Anzinger.
11310 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
11311 correct stack offset. Include unknown opcode numbers in the error
11312 message.
11313
11314 2004-01-17 Andrew Cagney <cagney@redhat.com>
11315
11316 * x86-64-tdep.c (x86_64_init_abi): No need to clear
11317 extract_struct_value_address, i386 does not set it.
11318 * sparc64-tdep.c (sparc64_init_abi): Do not set
11319 extract_struct_value_address, never called.
11320 (sparc64_extract_struct_value_address): Delete function.
11321 * m68hc11-tdep.c: Update copyright.
11322 (m68hc11_gdbarch_init): Delete redundant assignment of
11323 extract_struct_value_address.
11324 * i386-tdep.c: Update copyright.
11325 (i386_gdbarch_init): Do not set extract_struct_value_address,
11326 never called.
11327 (i386_extract_struct_value_address): Delete function.
11328 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
11329 extract_struct_value_address, never called.
11330 (sparc32_extract_struct_value_address): #if 0 function. Add
11331 comments explaining its future.
11332
11333 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11334
11335 * arm-tdep.c (arm_write_pc): New function.
11336 (arm_gdbarch_init): Call set_gdbarch_write_pc.
11337
11338 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11339
11340 * breakpoint.c (must_shift_inst_regs): Delete.
11341 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
11342 and SHIFT_INST_REGS.
11343 * infcmd.c (step_1, step_1_continuation): Delete references to
11344 SHIFT_INST_REGS.
11345 * infrun.c (keep_going): Likewise.
11346 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
11347 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
11348
11349 2004-01-17 Andrew Cagney <cagney@redhat.com>
11350
11351 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11352 * gdbarch.h, gdbarch.c: Re-generate.
11353 * infcmd.c (print_return_value): Delete reference to
11354 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
11355
11356 * cris-tdep.c (cris_gdbarch_init): Do not set
11357 deprecated_extract_struct_value_address.
11358
11359 * xstormy16-tdep.c: Update copyright.
11360 (xstormy16_extract_struct_value_address): Update to current
11361 extract struct value address interface.
11362 (xstormy16_gdbarch_init): Set extract_struct_value_address.
11363 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
11364 current extract struct value address interface.
11365 (sh64_gdbarch_init): Set extract_struct_value_address.
11366
11367 * cris-tdep.c: Update copyright.
11368 (cris_extract_struct_value_address): Delete function.
11369 (struct_return_address): Delete variable.
11370 (cris_store_struct_return): Do not set struct_return_address.
11371
11372 * mcore-tdep.c: Update copyright.
11373 (mcore_extract_struct_value_address): Delete function. Update
11374 comments.
11375 (mcore_gdbarch_init): Update.
11376 * mn10300-tdep.c: Update copyright.
11377 (mn10300_extract_struct_value_address): Delete function.
11378 (mn10300_gdbarch_init): Update.
11379 * v850-tdep.c: Update copyright.
11380 (v850_extract_struct_value_address): Delete.
11381 (v850_gdbarch_init): Update.
11382 * ns32k-tdep.c: Update copyright.
11383 (ns32k_extract_struct_value_address): Delete.
11384 (ns32k_gdbarch_init): Update.
11385 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
11386 (hppa_gdbarch_init): Update.
11387 * vax-tdep.c: Update copyright.
11388 (vax_extract_struct_value_address): Delete.
11389 (vax_gdbarch_init): Update.
11390
11391 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
11392 * gdbarch.h, gdbarch.c: Re-generate.
11393 * procfs.c (procfs_fetch_registers): Delete reference to
11394 DEPRECATED_NPC_REGNUM.
11395 (procfs_store_registers): Ditto.
11396 * regcache.c (generic_target_write_pc): Simplify.
11397 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
11398
11399 * core-sol2.c (fetch_core_registers): Replace
11400 DEPRECATED_NPC_REGNUM with equivalent tdep value.
11401
11402 * hppa-tdep.c: Update copyright year.
11403 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
11404 NPC_REGNUM.
11405 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
11406
11407 * mips-tdep.c (mips_write_pc): New function.
11408 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
11409 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
11410 (mips_find_saved_regs, mips_software_single_step: Ditto.
11411 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
11412 mips_init_extra_frame_info, mips_pop_frame): Ditto.
11413
11414 2004-01-17 Andrew Cagney <cagney@redhat.com>
11415
11416 * mips-tdep.c: Re-indent. Group functions by ABI.
11417
11418 2004-01-17 Andrew Cagney <cagney@redhat.com>
11419
11420 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
11421 * gdbarch.c: Re-generate.
11422 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11423 DECR_PC_AFTER_BREAK to zero.
11424 * vax-tdep.c (vax_gdbarch_init): Ditto.
11425 * v850-tdep.c (v850_gdbarch_init): Ditto.
11426 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11427 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11428 * sh-tdep.c (sh_gdbarch_init): Ditto.
11429 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11430 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11431 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11432 * mips-tdep.c (mips_gdbarch_init): Ditto.
11433 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11434 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11435 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11436 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11437 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11438 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11439 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11440 * frv-tdep.c (frv_gdbarch_init): Ditto.
11441 * cris-tdep.c (cris_gdbarch_init): Ditto.
11442 * avr-tdep.c (avr_gdbarch_init): Ditto.
11443 * arm-tdep.c (arm_gdbarch_init): Ditto.
11444 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
11445
11446 2004-01-17 J. Brobecker <brobecker@gnat.com>
11447
11448 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
11449 Delete, no longer used.
11450 (read_subrange_type): New function, mostly extracted from
11451 read_array_type().
11452 (read_array_type): Replace extracted code by call to
11453 read_subrange_type().
11454 (dwarf2_get_attr_constant_value): New function.
11455 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
11456 (add_partial_symbol): Likewise.
11457 (process_die): Likewise.
11458 (new_symbol): Likewise.
11459 (read_type_die): Likewise.
11460
11461 2004-01-16 Andrew Cagney <cagney@redhat.com>
11462
11463 * symfile.c: Update copyright year.
11464 (compare_symbols): Delete unused function.
11465 * stabsread.c: Update copyright year.
11466 (lrs_general_complaint): Delete unused function.
11467 (ref_search_value): Ditto.
11468 (get_substring): Delete declaration.
11469 * sh64-tdep.c: Update copyright year.
11470 (sh64_get_gdb_regnum): Delete unused function.
11471 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
11472 Delete unused function.
11473
11474 2004-01-17 Mark Kettenis <kettenis@gnu.org>
11475
11476 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
11477 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
11478
11479 2004-01-16 Andrew Cagney <cagney@redhat.com>
11480
11481 Changes from Peter Schauer.
11482 * rs6000-tdep.c: Update copyright year.
11483 (rs6000_push_dummy_call): Update the stack pointer before
11484 accessing the corresponding stack region.
11485 * rs6000-nat.c: Update copyright year.
11486 (set_host_arch): Set "info.abfd" to "exec_bfd".
11487
11488 2004-01-15 Mark Kettenis <kettenis@gnu.org>
11489
11490 * blockframe.c: Update copyright year.
11491 (inside_entry_func): Don't treat a zero PC specially.
11492
11493 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
11494
11495 * gcore.c (gcore_copy_callback): Use paddr_d to print size
11496 variable.
11497 (gcore_create_callback): Ditto. Skip any memory segment that has
11498 no permissions set.
11499
11500 2004-01-14 David Carlton <carlton@kealia.com>
11501
11502 Change symbols for C++ nested types to contain the fully qualified
11503 name, if possible. (At least in the DWARF-2 case.) Partial fix
11504 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
11505 c++/895.
11506 * c-exp.y (qualified_type): Handle types nested within classes.
11507 * cp-namespace.c: Update comments.
11508 (cp_set_block_scope): Delete #if 0.
11509 (cp_lookup_nested_type): Handle types nested within classes.
11510 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
11511 when appropriate.
11512 (add_partial_symbol): Add the name of the enclosing namespace to
11513 types.
11514 (pdi_needs_namespace): New.
11515 (add_partial_namespace): Tweak comment.
11516 (add_partial_structure): New.
11517 (psymtab_to_symtab_1): Initialize processing_current_prefix
11518 here...
11519 (process_die): instead of here.
11520 (read_structure_scope): Try to figure out the name of the class or
11521 namespace that the structure might be defined within.
11522 (read_enumeration): Generate fully-qualified names, if possible.
11523 (read_namespace): Don't set name to NULL.
11524 (die_specification): New.
11525 (new_symbol): Generate fully-qualified names for types.
11526 (read_type_die): Determine appropriate prefix.
11527 (determine_prefix): New.
11528 (typename_concat): New.
11529 (class_name): New.
11530 * valops.c (value_aggregate_elt): Pass NOSIDE to
11531 value_struct_elt_for_reference.
11532 (value_struct_elt_for_reference): Make static, add NOSIDE
11533 parameter, call value_maybe_namespace_elt as a last resort.
11534 (value_namespace_elt): Break out code into
11535 value_maybe_namespace_elt.
11536 (value_maybe_namespace_elt): New.
11537
11538 2004-01-12 Andrew Cagney <cagney@redhat.com>
11539
11540 * mips-tdep.c (mips_convert_register_p): Handle both raw and
11541 cooked floating-point registers.
11542 (mips_gdbarch_init): Set convert_register_p, register_to_value,
11543 and value_to_register.
11544
11545 2004-01-13 Andrew Cagney <cagney@redhat.com>
11546
11547 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
11548 * gdbarch.c: Re-generate.
11549 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11550 FUNCTION_START_OFFSET.
11551 * v850-tdep.c (v850_gdbarch_init): Ditto.
11552 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11553 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11554 * sh-tdep.c (sh_gdbarch_init): Ditto.
11555 * s390-tdep.c (s390_gdbarch_init): Ditto.
11556 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11557 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11558 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11559 * mips-tdep.c (mips_gdbarch_init): Ditto.
11560 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11561 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11562 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11563 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11564 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11565 * i386-tdep.c (i386_gdbarch_init): Ditto.
11566 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11567 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11568 * frv-tdep.c (frv_gdbarch_init): Ditto.
11569 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11570 * cris-tdep.c (cris_gdbarch_init): Ditto.
11571 * avr-tdep.c (avr_gdbarch_init): Ditto.
11572 * arm-tdep.c (arm_gdbarch_init): Ditto.
11573 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11574
11575 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
11576
11577 * infrun.c (follow_fork_mode_ask): Remove.
11578 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
11579 (follow_fork): Simplify and remove internal error for
11580 follow_fork_mode_ask.
11581 (_initialize_infrun): Update "set follow-fork-mode" help text.
11582
11583 2004-01-13 Andrew Cagney <cagney@redhat.com>
11584
11585 * configure.in: Update copyright year.
11586 (build_warnings): Add -Wunused-label.
11587 * configure: Re-generate.
11588
11589 2004-01-12 Andrew Cagney <cagney@redhat.com>
11590
11591 * exec.h (exec_ops): Make "extern".
11592
11593 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
11594 the function is void.
11595 (mips_pseudo_register_write): Ditto.
11596
11597 2004-01-12 Andrew Cagney <cagney@redhat.com>
11598
11599 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
11600 call. Never defined.
11601 * sparc-tdep.h (struct frame_info): Add opaque declaration.
11602 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
11603 (struct sparc_gregset, struct regcache): Ditto.
11604 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
11605
11606 2004-01-12 Andrew Cagney <cagney@redhat.com>
11607
11608 * mi/ChangeLog: Delete file. Renamed to ...
11609 * mi/ChangeLog-1999-2003: New file.
11610 * tui/ChangeLog: Delete file. Renamed to ...
11611 * tui/ChangeLog-1998-2003: New file.
11612
11613 2004-01-11 Mark Kettenis <kettenis@gnu.org>
11614
11615 * sparc64nbsd-tdep.c: Include "regset.h".
11616 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
11617 Remove variables.
11618 (fetch_core_registers): Remove function.
11619 (sparc64nbsd_core_fns): Remove variable.
11620 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
11621 functions.
11622 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
11623 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11624 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
11625
11626 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
11627 sparc_extract_struct_value_address.
11628 (sparc32_gdbarch_init): Set extract_struct_value_address.
11629 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
11630 function.
11631 (sparc64_init_abi): Set extract_struct_value_address. Don't set
11632 return_value_on_stack.
11633
11634 * NEWS: Mention that %cs and %ss have been added to the AMD64
11635 configurations
11636
11637 * frame.c: Update copyright year.
11638 (get_prev_frame): Improve comment.
11639
11640 * sparc64fbsd-tdep.c: Include "regset.h".
11641 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11642 Remove variables.
11643 (fetch_core_registers): Remove function.
11644 (sparc64fbsd_core_fns): Remove variable.
11645 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
11646 functions.
11647 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
11648 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11649 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
11650
11651 * sparcnbsd-tdep.c: Include "regset.h".
11652 (fetch_core_registers): Remove function.
11653 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
11654 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
11655 functions.
11656 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
11657 TDEP->fpregset.
11658 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
11659
11660 * sparc-tdep.h (struct regset): Provide opaque declaration.
11661 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
11662 fpregset and sizeof_fpregset members.
11663 * sparc-tdep.c (struct regset): Provide opaque declaration.
11664 (sparc_regset_from_core_section): New function.
11665 (sparc32_gdbarch_init): Initialize TDEP->gregset,
11666 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
11667 Set regset_from_core_section when appropriate.
11668
11669 2004-01-10 Mark Kettenis <kettenis@gnu.org>
11670
11671 * x86-64-tdep.c (amd64_non_pod_p): New function.
11672 (amd64_classify_aggregate): Return class memory for non-POD
11673 C++ structure types.
11674
11675 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
11676 argument. Use it to reserve a register if necessary.
11677 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
11678 amd64_push_arguments.
11679
11680 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
11681
11682 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
11683 register numbers in comments.
11684 * x86-64-tdep.h: Update copyright year.
11685 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
11686 Adjust for addition of %cs and %ss.
11687 * amd64fbsd-nat.c: Update copyright year.
11688 (reg_offset): Add register offsets for %cs and %ss.
11689 * amd64fbsd-tdep.c: Update copyright year.
11690 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
11691 (amd64fbsd_sc_reg_offset): Likewise.
11692 * x86-64-linux-nat.c: Update copyright year.
11693 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
11694 and %ss.
11695 * amd64nbsd-nat.c: Update copyright year.
11696 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
11697 * amd64nbsd-tdep.c: Update copyright year.
11698 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
11699 * x86-64-linux-tdep.c: Update copyright year.
11700 (user_to_gdb_regmap): Add mapping for %cs and %ss.
11701 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
11702 * regformats/reg-x86-64.dat: Add %cs and %ss.
11703
11704 * blockframe.c (inside_entry_func): Reformat. Introduce new local
11705 variables to prevent long lines. Update comments to reflect
11706 reality.
11707
11708 2004-01-09 David Carlton <carlton@kealia.com>
11709
11710 Checked in by Elena Zannoni <ezannoni@redhat.com>.
11711 * dwarf2read.c (read_namespace): Pull out name-generating code
11712 into namespace_name. Rename previous_namespace to previous_prefix
11713 and processing_current_namespace to processing_current_prefix..
11714 (namespace_name): New function.
11715 (add_partial_symbol): Substitute uses of pdi->name with
11716 actual_name.
11717 * cp-support.h: Rename processing_current_namespace to
11718 processing_current_prefix.
11719 Update copyright year.
11720 * cp-namespace.c: Rename processing_current_namespace to
11721 processing_current_prefix.
11722 Update copyright year.
11723
11724 2004-01-09 Andrew Cagney <cagney@redhat.com>
11725
11726 * jv-valprint.c, ser-unix.c: Add missing copyright years.
11727
11728 2004-01-09 Mark Kettenis <kettenis@gnu.org>
11729
11730 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
11731 complaining.
11732 (process_one_symbol): Deal with N_PATCH stabs.
11733
11734 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
11735
11736 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
11737 ifdeffed code.
11738 Update copyright year.
11739
11740 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11741
11742 * config/pa/tm-hppa.h: Update extern declarations for
11743 hppa32_hpux_frame_saved_pc_in_sigtramp,
11744 hppa32_hpux_frame_base_before_sigtramp, and
11745 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
11746
11747 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11748
11749 * config/pa/tm-hppah.h: Update copyright years.
11750
11751 2004-01-08 Andrew Cagney <cagney@redhat.com>
11752
11753 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
11754 (mips_o32_reg_struct_has_addr): Delete function.
11755 (mips_gdbarch_init): Update.
11756 (mips_extract_struct_value_address): Delete function.
11757
11758 2004-01-08 David Mosberger <davidm@hpl.hp.com>
11759
11760 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
11761 reality.
11762
11763 2004-01-07 Andrew Cagney <cagney@redhat.com>
11764
11765 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
11766 architecture's elf flags (when available).
11767
11768 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
11769 FPU to the start, check the MIPS FPU when looking for an old
11770 architecture.
11771 (set_mipsfpu_single_command): Update the architecture.
11772 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
11773
11774 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
11775 (mips_mask_address_p): Add "tdep" parameter.
11776 (show_mask_address, mips_addr_bits_remove): Update.
11777 (mips_dump_tdep): Update.
11778 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
11779 (MIPS_STACK_ARGSIZE): Delete macro.
11780 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
11781 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
11782 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
11783 (mips_dump_tdep): Update.
11784 (MIPS_SAVED_REGSIZE): Delete macro.
11785 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
11786 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
11787 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
11788 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
11789 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
11790 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
11791 (mips_pop_frame, return_value_location): Update.
11792 (mips_n32n64_return_value, mips_dump_tdep): Update.
11793
11794 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
11795 MIPS ABI.
11796
11797 * mips-tdep.c: Update copyright.
11798 (mips_gdbarch_init): Merge two code blocks handling the register
11799 name and number layout.
11800
11801 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
11802
11803 * tracepoint.c (validate_actionline): Fix segv at EOF
11804
11805 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
11806
11807 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
11808 properly for static fields.
11809
11810 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
11811 Jason Molenda <jmolenda@apple.com>
11812
11813 * disasm.c: Update copyright to include 2004.
11814 (do_mixed_source_and_assembly): For uiout asm list
11815 and tuple cleanups, initialize to null_cleanup instead of
11816 NULL and do so prior to loop. Only reset when we close off
11817 the tuple/list. Move check for whether to close off the
11818 asm tuple/list to after dump_insns call where it will be run
11819 on each loop iteration.
11820
11821 2004-01-05 Andrew Cagney <cagney@redhat.com>
11822
11823 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
11824 should be a switch case and not a label.
11825 * mips-tdep.c (mips32_next_pc): Delete unused labels
11826 "greater_equal_branch" and "less_zero_branch".
11827 * jv-valprint.c (java_print_value_fields): Delete unused label
11828 "flush_it".
11829
11830 * target.c (unpush_target): Only close a target that is in the
11831 target stack.
11832
11833 2004-01-05 Mark Kettenis <kettenis@gnu.org>
11834
11835 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
11836 address from [sp + 64] instead of %o2.
11837
11838 * frame.c (get_prev_frame): Don't try to unwind the PC. This
11839 fixes PR backtrace/1476.
11840
11841 2004-01-05 Andrew Cagney <cagney@redhat.com>
11842
11843 * libunwind-frame.h (struct frame_id): Add opaque declaration,
11844 move to start of file.
11845 * i386-tdep.h (struct regcache): Add opaque declaration.
11846 * config/ia64/nm-linux.h (struct target_ops): Add opaque
11847 declaration.
11848 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
11849 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
11850 * win32-nat.c (fake_create_process): Use ISO C style definition.
11851 * stabsread.c (define_symbol): Delete #ifndef
11852 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
11853 stabs_argument_has_addr call, macro never defined.
11854
11855 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
11856
11857 * op50-rom.c: Delete.
11858 * w89k-rom.c: Delete.
11859 * Makefile.in: Remove references.
11860
11861 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11862
11863 * x86-64-tdep.c: Update copyright year.
11864 (struct amd64_register_info): Rename from x86_64_register_info.
11865 (amd64_register_info): Rename from x86_64_register_info.
11866 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
11867 (amd64_register_name): Rename from x86_64_register_name.
11868 (amd64_register_type): Rename from x86_64_register_type.
11869 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
11870 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
11871 (amd64_dwarf_reg_to_regnum): Rename from
11872 x86_64_dwarf_reg_to_regnum.
11873 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
11874 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
11875 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
11876 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
11877 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
11878 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
11879 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
11880 (amd64_frame_cache): Rename from x86_64_frame_cache.
11881 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
11882 (amd64_frame_prev_register): Rename from
11883 x86_64_frame_prev_register.
11884 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
11885 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
11886 (amd64_sigtramp_frame_cache): Rename from
11887 x86_64_sigtramp_frame_cache.
11888 (amd64_sigtramp_frame_prev_register): Rename from
11889 x86_64_sigtramp_frame_prev_register.
11890 (amd64_sigtramp_frame_unwind): Rename from
11891 x86_64_sigtramp_frame_unwind.
11892 (amd64_sigtramp_frame_sniffer): Rename from
11893 x86_64_sigtramp_frame_sniffer.
11894 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
11895 (amd64_frame_base): Rename from x86_64_frame_base.
11896 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
11897 (amd64_frame_align): Rename from x86_64_frame_align.
11898 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
11899 (amd64_regset_from_core_section): Rename from
11900 x86_64_regset_from_core_section.
11901 (x86_64_init_abi): Update comments.
11902
11903 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
11904
11905 * MAINTAINERS (write after approval): Add myself.
11906
11907 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11908
11909 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
11910 `float' arguments.
11911
11912 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11913
11914 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
11915 such that it mentions a specific version of GCC that exhibits this
11916 bug.
11917
11918 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11919
11920 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
11921 structure that has a single `float' member, store it in %f1 in
11922 addition to %f0.
11923
11924 * sparc-sol2-nat.c: Add missing '\'.
11925
11926 * sparc-tdep.c (sparc32_return_value): New function.
11927 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
11928 Remove functions.
11929 (sparc32_gdbarch_init): Set return_value, don't set
11930 extract_return_value, store_return_value, use_struct_convention
11931 and return_value_on_stack.
11932
11933 * sparc-sol2-nat.c: Add missing ')'.
11934
11935 2004-01-03 J. Brobecker <brobecker@gnat.com>
11936
11937 * infrun.c (handle_step_into_function): New function.
11938 (handle_inferior_event): Extract out some code into the new
11939 function above.
11940
11941 2004-01-03 J. Brobecker <brobecker@gnat.com>
11942
11943 * infrun.c (handle_inferior_event): Move the declaration of
11944 real_stop_pc inside the if blocks where it is used.
11945
11946 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11947
11948 * sparc64-tdep.c (sparc64_16_byte_align_p)
11949 (sparc64_store_floating_fields, sparc64_store_floating_fields):
11950 Use check_typedef to get subtypes of structures and unions.
11951 (sparc64_store_return_value): Fix calculation of the appropriate
11952 offset into VALBUF when storing a structure or union.
11953 (sparc64_return_value): New function.
11954 (sparc64_use_struct_convention): Remove function.
11955 (sparc64_init_abi): Set return_value, don't set
11956 extract_return_value, store_return_value and
11957 use_struct_convention.
11958
11959 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
11960
11961 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
11962 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
11963 gdb/config/alpha/xm-alphaosf.h,
11964 gdb/config/powerpc/tm-ppcle-eabi.h,
11965 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
11966 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
11967 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
11968 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
11969 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
11970 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
11971 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
11972 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
11973 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
11974 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
11975 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
11976 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
11977 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
11978 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
11979 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
11980 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
11981 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
11982 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
11983 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
11984 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
11985 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
11986 Remove lines for .cvsignore files.
11987
11988 2004-01-03 J. Brobecker <brobecker@gnat.com>
11989
11990 * infrun.c: Back out the previous change.
11991
11992 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11993
11994 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
11995 sparc-*-sunos4* to the list of REMOVED configurations.
11996
11997 * configure.tgt: Add back sparc-*-vxworks*.
11998 * remote-vxsparc.c: Remove all includes except for "defs.h",
11999 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12000 Include "sparc-tdep.h".
12001 (SPARC_R_G1): New define.
12002 (vxsparc_gregset): New variable.
12003 (ext_format_sparc): Remove extern declaration.
12004 (vx_read_register): Rewrite to use sparc32_supply_gregset and
12005 sparc32_supply_fpregset.
12006 (vx_write_register): Rewrite to use sparc32_collect_gregset,
12007 sparc_collect_rwindow and sparc32_collect_fpregset.
12008 * config/sparc/tm-vxworks.h: New file, based on recently removed
12009 tm-vxsparc.h.
12010 * config/sparc/vxworks.mt: New file, based on recently removed
12011 vxworks.mt.
12012
12013 2004-01-03 J. Brobecker <brobecker@gnat.com>
12014
12015 * infrun.c (handle_step_into_function): New function.
12016 (handle_inferior_event): Extract out some code into the new
12017 function above.
12018
12019 2004-01-02 Mark Kettenis <kettenis@gnu.org>
12020
12021 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12022 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12023 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12024 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12025 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12026 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12027 (sparc_nat_h): New variable.
12028 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12029 (tm-sun4os4.h): Remove dependency.
12030 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12031 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12032 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12033 sparc-tdep.o): Update dependencies.
12034 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12035 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12036 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12037 dependencies.
12038 * configure.host: Remove existing sparc-*-lynxos*,
12039 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12040 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12041 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
12042 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12043 triplets.
12044 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12045 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12046 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12047 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
12048 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12049 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12050 sparc64-*-solaris2* and sparc64-*-* triplets.
12051 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
12052 "symtab.h" and "objfiles.h".
12053 (BIAS): Remove define.
12054 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12055 (X_DISP19): Remove macros.
12056 (sparc_fetch_instruction): Remove function.
12057 (struct gdbarch_tdep): Remove definition.
12058 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12059 (sparc_breakpoint_from_pc): Remove function.
12060 (struct sparc64_frame_cache): Remove definition.
12061 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12062 sparc64_unwind_pc): Remove functions.
12063 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12064 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
12065 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
12066 (sparc64_frame_cache): Change return type to `struct
12067 sparc_frame_cache *'. Simply call sparc_frame_cache.
12068 (sparc64_frame_this_id, sparc64_frame_prev_register,
12069 sparc64_frame_base_address): Use `struct sparc_frame_cache'
12070 instead of `struct sparc64_frame_cache.
12071 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12072 sparc_analyze_control_transfer, sparc_software_single_step,
12073 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12074 _initialize_sparc64_tdep): Remove functions.
12075 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12076 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12077 macros.
12078 (sparc64_supply_gregset, sparc64_collect_gregset,
12079 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12080 (sparc64_init_abi): New function.
12081 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
12082 inclusion guard. Include "sparc-tdep.h".
12083 (BIAS): Define.
12084 (r_tstate_offset, r_fprs_offset): New defines.
12085 (enum sparc_regnum): Remove defenition.
12086 (enum sparc64_regnum): Reformat.
12087 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12088 (sparc64_init_abi, sparc64_supply_gregset,
12089 sparc64_collect_gregset, sparc64_supply_fpregset,
12090 sparc64_collect_fpregset): New prototypes.
12091 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12092 Add extern declarations.
12093 (sparc64_sol2_init_abi): New prototype.
12094 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12095 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12096 prototypes.
12097 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12098 "sparnbsd-nat.h".
12099 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12100 functions.
12101 (_initialize_sparc64fbsd_nat): Remove initialization of
12102 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12103 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
12104 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
12105 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
12106 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
12107 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
12108 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
12109 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
12110 (sparc64fbsd_r_y_offset): Remove variables.
12111 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12112 Make static and const.
12113 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12114 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12115 functions.
12116 (sparc64fbsd_gregset): New variable.
12117 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
12118 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
12119 and sparc64_supply_fpregset.
12120 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
12121 (sparc64fbsd_sigtramp_frame_this_id)
12122 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
12123 (sparc64fbsd_sigtramp_frame_unwind): New variable.
12124 (sparc64fbsd_sigtramp_frame_sniffer): New function.
12125 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
12126 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
12127 * sparcnbsd-tdep.c: Update copyright year. Include
12128 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
12129 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
12130 "value.h" and "sparcnbsd-tdep.h".
12131 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
12132 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
12133 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
12134 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
12135 defines.
12136 (sparcnbsd_gregset): New variable.
12137 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
12138 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
12139 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
12140 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
12141 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
12142 variables.
12143 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
12144 (sparc32nbsd_sigcontext_frame_this_id)
12145 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
12146 (sparc32nbsd_sigcontext_frame_unwind): New variable.
12147 (sparc32nbsd_sigtramp_frame_sniffer): New function.
12148 (sparcnbsd_get_longjmp_target_32,
12149 sparcnbsd_get_longjmp_target_64): Remove functions.
12150 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
12151 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
12152 sparcnbsd_init_elf): Remove.
12153 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
12154 (sparcnbsd_elf_init_abi): New functions.
12155 (_initialize_sparcnbsd_tdep): New prototype.
12156 (_initialize_sparnbsd_tdep): Update.
12157 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
12158 corelow.o. Add sparc64-nat.o and sparc-nat.o.
12159 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
12160 * config/sparc/linux.mh: Update comment.
12161 (XM_FILE, HOST_IPC): Remove variables.
12162 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
12163 sparc-linux-nat.o.
12164 * config/sparc/linux.mt: Update comment.
12165 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
12166 * config/sparc/nbsd.mt: Reformat.
12167 * config/sparc/nbsd64.mh: Update comment.
12168 (NATDEPFILES): Add sparc-nat.o.
12169 * config/sparc/nbsd64.mt: Update comment.
12170 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
12171 (TM_FILE): Set to tm-nbsd.h.
12172 * config/sparc/nbsdelf.mh: Update comment.
12173 (NATDEPFILES): Add sparc-nat.o.
12174 (XM_FILE): Delete.
12175 * config/sparc/nbsdaout.mh: Update comment.
12176 (NATDEPFILES): Add sparc-nat.o
12177 (XM_FILE): Delete.
12178 * config/sparc/nm-linux.h: Update copyright year. Don't include
12179 "config/nm-svr4.h" and "solib.h". Add protection against multiple
12180 inclusion.
12181 (KERNEL_U_SIZE): Remove define.
12182 (kernel_u_size): Remove prototype.
12183 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
12184 * config/sparc/nm-nbsd.h: Update copyright. Don't include
12185 "regcache.h".
12186 (CHILD_PREPARE_TO_STORE): Remove define.
12187 * config/sparc/nm-nbsdaout.h: Tweak some comments.
12188 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
12189 sparcnbsd-nat.c: Rewrite files.
12190 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
12191 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
12192 sparcnbsd-tdep.h: Remove files.
12193 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
12194 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
12195 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
12196 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
12197 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
12198 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
12199 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
12200 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
12201 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
12202 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
12203 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
12204 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
12205 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
12206 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
12207 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
12208 * config/sparc/linux64.mh, config/sparc/linux64.mt,
12209 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
12210 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
12211 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
12212
12213 2004-01-02 Andrew Cagney <cagney@redhat.com>
12214
12215 From 2003-12-18 Kazuhiro Inaoka:
12216 * configure.host: Add m32r-linux target.
12217
12218 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
12219
12220 * top.c (print_gdb_version): Update year to 2004.
12221
12222 2004-01-02 Mark Mitchell <mark@codesourcery.com>
12223
12224 * MAINTAINERS: Add myself to the write-after-approval category.
12225
12226 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
12227
12228 From Bernardo Innocenti <bernie@develer.com>:
12229 * configure.tgt: Add uClinux target.
12230
12231 2004-01-02 Andrew Cagney <cagney@redhat.com>
12232
12233 * utils.c (do_my_cleanups): Make static, add forward declaration.
12234 * defs.h (do_my_cleanups): Delete declaration.
12235
12236 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
12237
12238 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
12239 bfd/ChangeLog-0203.
12240
12241 2004-01-02 Mark Kettenis <kettenis@gnu.org>
12242
12243 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
12244 in <machine/reg.h>.
12245 * configure, config.in: Regenerate.
12246
12247 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
12248 tui/ChangeLog-1998-2003.
12249 \f
12250 Local Variables:
12251 mode: change-log
12252 left-margin: 8
12253 fill-column: 74
12254 version-control: never
12255 End:
This page took 0.266382 seconds and 5 git commands to generate.