* gdb.base/sigstep.exp: Avoid comments withing gdb_test_multiple
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b6fcb393
CV
12004-09-23 Corinna Vinschen <vinschen@redhat.com>
2
3 * MAINTAINERS: Remove "broken" from XStormy16 entry.
4 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
5 (struct gdbarch_tdep): Remove.
6 (struct xstormy16_frame_cache): New frame cache structure.
7 (xstormy16_register_byte, xstormy16_register_raw_size)
8 (xstormy16_reg_virtual_type, xstormy16_register_type)
9 (xstormy16_push_arguments, xstormy16_push_return_address)
10 (xstormy16_pop_frame, xstormy16_store_struct_return)
11 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
12 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
13 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
14 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
15 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
16 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
17 (xstormy16_use_struct_convention): Drop gcc_p parameter.
18 (xstormy16_extract_return_value, xstormy16_store_return_value):
19 Regcachify. Drop useless struct convention handling.
20 (xstormy16_register_type, xstormy16_return_value)
21 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
22 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
23 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
24 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
25 (xstormy16_unwind_sp, xstormy16_unwind_pc)
26 (xstormy16_unwind_dummy_id) : New functions.
27 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
28 of xstormy16_scan_prologue.
29 (xstormy16_frame_unwind): New frame_unwind structure.
30 (xstormy16_frame_base): New frame_base structure.
31 (xstormy16_gdbarch_init): Accomodate all of the above changes.
32 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
33
1285b746
MK
342004-09-22 Mark Kettenis <kettenis@gnu.org>
35
36 * language.c (language_gdbarch_post_init): Fix off-by one error.
37
1c379e20
DJ
382004-09-21 Daniel Jacobowitz <dan@debian.org>
39
40 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
41 (struct dwarf2_offset_and_type): New.
42 (set_die_type, reset_die_and_siblings_types, get_die_type)
43 (offset_and_type_hash, offset_and_type_eq): New functions.
44 (read_structure_type, read_enumeration_type, read_array_type)
45 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
46 (read_tag_reference_type, read_tag_const_type)
47 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
48 (read_typedef, read_base_type, read_subrange_type): Use
49 set_die_type.
50
ae038cb0
DJ
512004-09-20 Daniel Jacobowitz <dan@debian.org>
52
53 * Makefile.in (dwarf2read.o): Update dependencies.
54 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
55 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
56 and read_in_chain.
57 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
58 mark, and has_form_ref_addr.
59 (struct dwarf2_per_cu_data): New.
60 (dwarf2_max_cache_age): New.
61 (dwarf2_build_psymtabs_hard): Free cached compilation units
62 after loading. Create and manage the list of compilation units.
63 Remove unnecessary NULL initialization. Fix indentation.
64 (psymtab_to_symtab_1): Initialize all of CU.
65 (dwarf2_read_abbrevs): Set has_form_ref_addr.
66 (find_partial_die): Use dwarf2_find_containing_comp_unit
67 and load_comp_unit.
68 (free_stack_comp_unit): Update comments. Clear the per-cu
69 pointer. Handle aging.
70 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
71 (age_cached_comp_units, free_one_cached_comp_unit)
72 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
73 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
74 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
75 (show_dwarf2_cmd): New.
76 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
77 and "maint show dwarf2 max-cache-age".
78 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
79 externs.
80 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
81 global.
82
987504bb
JJ
832004-09-20 Jeff Johnston <jjohnstn@redhat.com>
84
85 * dwarf2read.c (typename_concat): Change prototype to accept obstack
86 and dwarf2_cu struct pointer as arguments. Change function to use
87 obstack if provided and use dwarf2_cu to determine language-specific
88 separator.
89 (partial_die_parent_scope): Change comment to include java. Use
90 new version of typename_concat instead of obconcat.
91 (partial_die_full_name): Use typename_concat.
92 (read_namespace): Ditto.
93 (read_enumeration_type): Use typename_concat instead of obconcat.
94 (new_symbol): Ditto.
95 (add_partial_symbol): Enhance tests for C++ to also test for Java.
96 (guess_structure_name): Ditto.
97 (read_subroutine_type): Ditto.
98 (read_structure_type): Ditto.
99 (is_vtable_name): Add Java support.
100 (determine_class_name): Switch to new typename_concat call.
101 (determine_prefix): Switch to new typename_concat call.
102 * jv-exp.y (FuncStart): New pattern.
103 (MethodInvocation): Add support for simple function calls. Change
104 warning message for other forms of inferior call currently not
105 supported.
106 * valarith.c (value_subscript): Treat an array with upper-bound
107 of -1 as unknown size.
108
d9c8471e
DJ
1092004-09-20 Daniel Jacobowitz <dan@debian.org>
110
111 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
112 (lookup_partial_symtab): Use symtab_to_fullname.
113
d73f140a
JB
1142004-09-19 Jim Blandy <jimb@redhat.com>
115
116 * minsyms.c (lookup_minimal_symbol): Doc fix.
117
adbef1f0
AC
1182004-09-20 Andrew Cagney <cagney@gnu.org>
119
120 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
121 CHILD_RESUME.
122 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
123 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
124 KILL_INFERIOR.
125 * infptrace.c: Update.
126
d092d1a2
DJ
1272004-09-19 Daniel Jacobowitz <dan@debian.org>
128
129 * symtab.c (output_source_filename): Mark first argument as const.
130 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
131 for "info sources" output.
132
86d9e1d7
MK
1332004-09-20 Mark Kettenis <kettenis@gnu.org>
134
135 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
136 <machine/vmparam.h>.
137 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
138 (register_u_addr): Remove prototype.
139
9a6c8ef4
MK
1402004-09-19 Mark Kettenis <kettenis@gnu.org>
141
9692934b
MK
142 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
143 (i386bsd_fetch_inferior_registers): Rename from
144 fetch_inferior_registers. Make static.
145 (i386bsd_store_inferior_registers): Rename from
146 store_inferior_registers. Make static.
147 (i386bsd_target): New function.
148 * i386bsd-nat.h: New file.
149 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
150 "i386bsd-nat.h".
151 (i386fbsd_resume): Rename from child_resume. Make static.
152 (_initialize_i386fbsd_nat): Construct and add target vector.
153 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
154 (_initialize_i386nbsd_nat): Construct and add target vector.
155 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
156 Remove defines.
157 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
158 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
159 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
160 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
161 (LOADLIBES): New variable.
162 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
163 inf-ptrace.o. Remove inftarg.o.
164 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
165 inf-ptrace.o. Remove inftarg.o.
166 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
167 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
168 (LOADLIBES): New variable.
169 * Makefile.in (i386bsd_nat_h): New variable.
170 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
171 dependencies.
172
3510d1f2
MK
173 * sparc64nbsd-tdep.c: Include "objfiles.h".
174 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
175 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
176 svr4_lp64_fetch_link_map_offsets.
177 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
178 "nbsd-tdep.h".
179 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
180 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
181 svr4_lp64_fetch_link_map_offsets.
182 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
183 dependencies.
184
578c1c03
MK
185 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
186 * fbsd-nat.h: New file.
187 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
188 (fbsd_nat_h): New variable.
189 (fbsd-nat.o): New dependency.
190
7a7b73b7
MK
191 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
192 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
193
9a6c8ef4
MK
194 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
195 comment.
196
72d5681a
PH
1972004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
198
199 * ada-exp.y (type_int): New function to add layer of abstraction
200 around references to expression types.
201 (type_long): Ditto.
202 (type_long_long): Ditto.
203 (type_float): Ditto.
204 (type_double): Ditto.
205 (type_long_double): Ditto.
206 (type_char): Ditto.
207 (type_system_address): Ditto.
208 (simple_exp): Use type_* functions in place of builtin_*
209 variables.
210 (exp): Ditto.
211 (write_var_from_name): Ditto.
212 (write_object_renaming): Ditto.
213 * ada-lang.c (ada_create_fundamental_type): Remove redundant
214 declaration.
215 (build_ada_types): Remove, replacing with...
216 (ada_language_arch_info): New function to initialize primitive
217 type vector in language_arch_info.
218 (ada_array_length): Remove use of builtin_type_ada_int.
219 (value_pos_atr): Ditto.
220 (ada_evaluate_subexp): Ditto.
221 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
222 builtin_type_ada_long_long, builtin_type_ada_char,
223 builtin_type_ada_float, builtin_type_ada_double,
224 builtin_type_ada_long_double, builtin_type_ada_natural,
225 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
226 (ada_builtin_types): Remove.
227 (ada_language_defn): Remove entries for la_builtin_type_vector and
228 string_char_type and use ada_language_arch_info.
229 (_initialize_ada_language): Do type-vector initialization along
230 the lines of c-lang.c.
231 (ada_create_fundamental_type): Break up line.
232 (ada_dump_symtab): Remove unused function.
233 (enum ada_primitive_types): Define.
234 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
235 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
236 builtin_type_ada_float, builtin_type_ada_double,
237 builtin_type_ada_long_double, builtin_type_ada_natural,
238 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
239 * ada-lex.l: Use type_* functions in place of builtin_* variables.
240 (processInt): Ditto.
241 (processReal): Ditto.
242 (name_lookup): Ditto.
243 * ada-typeprint.c (print_range): Use builtin_type_int, not
244 builtin_type_ada_int.
245
4f0be353
MK
2462004-09-18 Mark Kettenis <kettenis@gnu.org>
247
30b0e2d8
MK
248 * i386-tdep.c (i386_register_name): Rename regno to regnum.
249
4f0be353
MK
250 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
251 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
252 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
253 * configure.in: Improve checks for curses library by checking for
254 mvwaddstr instead of initscr. Drop HP curses in favour of
255 standard curses on HP-UX.
256 * configure: Regenerated.
257
72d5681a 2582004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
259
260 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
261 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
262 Minor formatting changes.
263 (empty_array): Slight rewrite for formatting.
264 (emit_char,parse,ada_language_defn,build_ada_types,
265 ada_is_exception_sym, _initialize_ada_language): Move
266 definitions around.
267 (ada_dump_symtab): Remove unused definition.
268 (ada_maybe_exception_partial_symbol): Remove unused definition.
269
1c8c7407
AC
2702004-09-16 Andrew Cagney <cagney@gnu.org>
271
7681f339
AC
272 * inf-child.c: Include "gdb_string.h".
273 (inf_child_core_file_to_sym_file): Delete.
274 (inf_child_target): Set to_fetch_registers and to_store_registers.
275 * inf-ptrace.c: Include "gdb_string.h".
276 * Makefile.in: Update all dependencies.
277
1c8c7407
AC
278 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
279 problem.
280
65596487
JB
2812004-09-14 Joel Brobecker <brobecker@gnat.com>
282
283 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
284 call to heuristic_proc_desc. Remove code that became redundant
285 as a consequence.
286 (read_next_frame_reg): Remove special case for SP_REGNUM.
287 (set_reg_offset): Fix small typo.
288 (reset_saved_regs): New procedure.
289 (mips32_heuristic_proc_desc): No longer compute a fake
290 procedure descriptor. Compute the full frame cache instead.
291 Some minor comment reformatting.
292
95575b2e
AC
2932004-09-14 Andrew Cagney <cagney@gnu.org>
294
f200c492
AC
295 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
296 maintainer.
297
95575b2e
AC
298 * thread-db.c (thread_db_new_objfile): Assume that there is a
299 child process.
300
69657671
JB
3012004-09-13 Jim Blandy <jimb@redhat.com>
302
303 * valops.c (value_assign): Move 'buffer' to the enclosing block,
304 so that its storage isn't referenced after its lifetime ends.
305
6c4182dd
JB
306 * valops.c (value_assign): 'use_buffer' is initialized to zero,
307 and never assigned to. Delete it, and the 'if (use_buffer)'
308 clauses. Delete 'raw_buffer', since it is now unused.
309
ee31a58d
AC
3102004-09-13 Andrew Cagney <cagney@gnu.org>
311
2c0fc042
AC
312 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
313 * configure: Re-generate.
314 * nlm/Makefile.in (TAGS): Update.
315 * Makefile.in (TAGS): Update.
316 * config/vax/nbsd.mt (TM_FILE): Update.
317 * config/sparc/vxworks.mt (TM_FILE): Update.
318 * config/sparc/sol2.mt (TM_FILE): Update.
319 * config/sparc/sol2-64.mt (TM_FILE): Update.
320 * config/sparc/obsd64.mt (TM_FILE): Update.
321 * config/sparc/obsd.mt (TM_FILE): Update.
322 * config/sparc/nbsd64.mt (TM_FILE): Update.
323 * config/sparc/nbsd.mt (TM_FILE): Update.
324 * config/sparc/linux64.mt (TM_FILE): Update.
325 * config/sparc/linux.mt (TM_FILE): Update.
326 * config/sparc/fbsd.mt (TM_FILE): Update.
327 * config/sh/wince.mt (TM_FILE): Update.
328 * config/sh/nbsd.mt (TM_FILE): Update.
329 * config/sh/linux.mt (TM_FILE): Update.
330 * config/sh/embed.mt (TM_FILE): Update.
331 * config/s390/s390.mt (TM_FILE): Update.
332 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
333 * config/rs6000/rs6000.mt (TM_FILE): Update.
334 * config/rs6000/aix4.mt (TM_FILE): Update.
335 * config/powerpc/vxworks.mt (TM_FILE): Update.
336 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
337 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
338 * config/powerpc/obsd.mt (TM_FILE): Update.
339 * config/powerpc/nbsd.mt (TM_FILE): Update.
340 * config/powerpc/linux.mt (TM_FILE): Update.
341 * config/powerpc/aix.mt (TM_FILE): Update.
342 * config/pa/obsd.mt (TM_FILE): Update.
343 * config/pa/linux.mt (TM_FILE): Update.
344 * config/pa/hppahpux.mt (TM_FILE): Update.
345 * config/pa/hppa64.mt (TM_FILE): Update.
346 * config/pa/hppa.mt (TM_FILE): Update.
347 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
348 * config/mips/wince.mt (TM_FILE): Update.
349 * config/mips/vxmips.mt (TM_FILE): Update.
350 * config/mips/nbsd.mt (TM_FILE): Update.
351 * config/mips/linux.mt (TM_FILE): Update.
352 * config/mips/irix6.mt (TM_FILE): Update.
353 * config/mips/irix5.mt (TM_FILE): Update.
354 * config/mips/embed.mt (TM_FILE): Update.
355 * config/m68k/vxworks68.mt (TM_FILE): Update.
356 * config/m68k/st2000.mt (TM_FILE): Update.
357 * config/m68k/os68k.mt (TM_FILE): Update.
358 * config/m68k/obsd.mt (TM_FILE): Update.
359 * config/m68k/nbsd.mt (TM_FILE): Update.
360 * config/m68k/monitor.mt (TM_FILE): Update.
361 * config/m68k/linux.mt (TM_FILE): Update.
362 * config/m68k/cisco.mt (TM_FILE): Update.
363 * config/ia64/linux.mt (TM_FILE): Update.
364 * config/ia64/aix.mt (TM_FILE): Update.
365 * config/ia64/ia64.mt (TM_FILE): Update.
366 * config/i386/vxworks.mt (TM_FILE): Update.
367 * config/i386/obsd64.mt (TM_FILE): Update.
368 * config/i386/obsd.mt (TM_FILE): Update.
369 * config/i386/nto.mt (TM_FILE): Update.
370 * config/i386/nbsd64.mt (TM_FILE): Update.
371 * config/i386/nbsd.mt (TM_FILE): Update.
372 * config/i386/linux64.mt (TM_FILE): Update.
373 * config/i386/linux.mt (TM_FILE): Update.
374 * config/i386/i386sol2.mt (TM_FILE): Update.
375 * config/i386/i386lynx.mt (TM_FILE): Update.
376 * config/i386/fbsd64.mt (TM_FILE): Update.
377 * config/i386/fbsd.mt (TM_FILE): Update.
378 * config/i386/cygwin.mt (TM_FILE): Update.
379 * config/h8300/h8300.mt (TM_FILE): Update.
380 * config/frv/frv.mt (TM_FILE): Update.
381 * config/cris/cris.mt (TM_FILE): Update.
382 * config/arm/wince.mt (TM_FILE): Update.
383 * config/arm/nbsd.mt (TM_FILE): Update.
384 * config/arm/linux.mt (TM_FILE): Update.
385 * config/arm/embed.mt (TM_FILE): Update.
386 * config/alpha/nbsd.mt (TM_FILE): Update.
387 * config/alpha/fbsd.mt (TM_FILE): Update.
388 * config/alpha/alpha.mt (TM_FILE): Update.
389 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
390 * config/alpha/alpha-linux.mt (TM_FILE): Update.
391
362646f5
AC
392 Eliminate event_loop_p, always has the value 1.
393 * defs.h (event_loop_p): Delete macro.
394 * breakpoint.c (until_break_command): Simplify.
395 * utils.c (prompt_for_continue): Simplify.
396 * tracepoint.c (read_actions): Simplify.
397 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
398 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
399 (set_prompt, init_main): Simplify.
400 (init_signals, disconnect): Delete, unused.
401 * remote.c (remote_async_resume)
402 (extended_remote_async_create_inferior): Simplify.
403 * mi/mi-interp.c (mi_input): Delete, unused.
404 (mi_interpreter_resume, mi_command_loop): Simplify.
405 * interps.c (current_interp_command_loop): Simplify.
406 * infrun.c (proceed): Simplify.
407 * infcmd.c (run_command, continue_command, step_1, jump_command)
408 (until_command, advance_command, finish_command)
409 (interrupt_target_command): Simplify.
410 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
411
ee31a58d
AC
412 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
413 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
414 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
415 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
416 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
417 * mips-tdep.c (mips_dump_tdep): Do not print same.
418
b7ffc4a8
AC
4192004-09-12 Andrew Cagney <cagney@gnu.org>
420
2bfb72ee
AC
421 * valprint.c (print_longest): Use fputs_filtered. Make "val"
422 const.
423 * Makefile.in (valprint.o): Delete explict rule.
424
4f17c3c1
AC
425 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
426 reported by Dave Anderson.
427
f810308b
AC
428 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
429
b7ffc4a8
AC
430 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
431
28b41c52
AC
4322004-09-12 Salvador E. Tropea <set@users.sf.net>
433 Andrew Cagney <cagney@gnu.org>
434
435 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
436 (mi_cmd_data_list_register_values)
437 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
438 the register number computation.
439
5bf970f9
AC
4402004-09-12 Andrew Cagney <cagney@gnu.org>
441
442 * ppcnbsd-nat.c: Include "inf-ptrace.h".
443 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
444 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
445 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
446 target.
447 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
448 inf-ptrace.o and inf-child.o.
449 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
450 * Makefile.in: Update dependencies.
451
0759e0bf
AC
4522004-09-11 Andrew Cagney <cagney@gnu.org>
453
454 * language.c (hex_string, hex_string_custom): Move from here ...
455 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
456 (CELLSIZE): Increase to 50.
457 * language.h (hex_string, hex_string_custom): Move from here ...
458 * defs.h: ... to here.
459 * Makefile.in: Update all dependencies.
460
bb599908
PH
4612004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
462
463 * language.c (local_hex_format_custom): Remove.
464 (local_hex_string): Rename to hex_string, use C format, and move to
465 utils.c
466 (local_hex_string_custom): Rename to hex_string_custom and change
467 interface. Now uses C format. Move to utils.c
468 (local_octal_format_custom): Remove.
469 (local_decimal_format_custom): Remove.
470 (unknown_language_defn): Remove language-specific number
471 formatting entries.
472 (auto_language_defn): Ditto.
473 (local_language_defn): Ditto.
474 * language.h (struct language_format_info): Delete declaration.
475 (struct language_defn): Remove language_format_info fields
476 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
477 (local_binary_format): Remove macro.
478 (local_binary_format_prefix): Remove macro.
479 (local_binary_format_specifier): Remove macro.
480 (local_binary_format_suffix): Remove macro.
481 (local_octal_format): Remove macro.
482 (local_octal_format_prefix): Remove macro.
483 (local_octal_format_specifier): Remove macro.
484 (local_octal_format_suffix): Remove macro.
485 (local_decimal_format): Remove macro.
486 (local_decimal_format_prefix): Remove macro.
487 (local_decimal_format_specifier): Remove macro.
488 (local_decimal_format_suffix): Remove macro.
489 (local_hex_format): Remove macro.
490 (local_hex_format_prefix): Remove macro.
491 (local_hex_format_specifier): Remove macro.
492 (local_hex_format_suffix): Remove macro.
493 (local_decimal_format_custom): Remove.
494 (local_octal_format_custom): Remove.
495 (local_hex_format_custom): Remove.
496 (local_hex_string): Rename to hex_string and move to defs.h.
497 (local_hex_string_custom): Rename to hex_string_custom, change
498 interface, and move to defs.h.
499 * utils.c: (int_string): New function.
500 (hex_string): New function (from language.c).
501 (hex_string_custom): New function (from language.c).
502 (octal2str): New function.
503 (decimal2str): Add width parameter.
504 (paddr_u): Use new decimal2str interface.
505 (paddr_d): Ditto.
506 * defs.h (hex_string): Declare.
507 (hex_string_custom): Declare.
508 (int_string): Declare.
509 * printcmd.c (print_scalar_formatted): Remove localized binary
510 formatting.
511 * valprint.c (print_longest): Use int_string.
512 (print_floating): Use C hex format.
513 (print_hex_chars): Ditto.
514 (print_binary_chars): Remove language-specific formatting.
515 (print_octal_chars): Use C octal format.
516 (print_decimal_chars): Delocalize format.
517 (print_decimal): Remove.
518 * ada-lang.c (ada_language_defn): Remove language-specific number
519 formatting entries.
520 * p-lang.c (pascal_language_defn): Ditto.
521 * c-lang.c (c_language_defn): Ditto.
522 (cplus_language_defn): Ditto.
523 (asm_language_defn): Ditto.
524 (minimal_language_defn): Ditto.
525 * f-lang.c (f_language_defn): Ditto.
526 * jv-lang.c (java_language_defn): Ditto.
527 * m2-lang.c (m2_language_defn): Ditto.
528 * scm-lang.c (scm_language_defn): Ditto.
529 * objc-lang.c (objc_language_defn): Ditto.
530 * memattr.c (mem_info_command): Use renamed hex_string_custom with
531 new interface.
532 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
533 * ui-out.c (ui_out_field_core_addr): Ditto.
534 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
535 * exec.c (print_section_info): Ditto.
536 * i387-tdep.c (print_i387_status_word): Ditto.
537 (print_i387_control_word): Ditto.
538 (i387_print_float_info): Ditto.
539 * maint.c (maint_print_section_info): Ditto.
540 * solib.c (info_sharedlibrary_command): Ditto.
541 * somsolib.c (som_sharedlibrary_info_command): Ditto.
542 * symtab.c (print_msymbol_info): Ditto.
543 * tracepoint.c (tracepoints_info): Ditto.
544 * solib-frv.c (lm_base): Ditto.
545 (frv_current_sos): Ditto.
546 (enable_break2): Ditto.
547 (enable_break): Ditto.
548 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
549 (process_one_symbol): Ditto.
550 * infcmd.c (program_info): Ditto.
551 * mdebugread.c (parse_partial_symbols): Ditto.
552 * symfile.c (add_symbol_file_command): Ditto.
553 * cli/cli-cmds.c (edit_command): Ditto.
554 (list_command): Ditto.
555 * infcall.c (call_function_by_hand): Ditto.
556 * remote-vx.c (vx_run_files_info): Ditto.
557 (vx_wait): Ditto.
558 (vx_attach): Ditto.
559 (vx_detach): Ditto.
560 (vx_kill): Ditto.
561 * aix-thread.c (pdc_symbol_addrs): Ditto.
562 (pdc_read_regs): Ditto.
563 (pdc_write_regs): Ditto.
564 (pdc_read_data): Ditto.
565 (pdc_write_data): Ditto.
566 * d10v-tdep.c (display_trace): Ditto.
567 * rs6000-nat.c (find_toc_address): Ditto.
568 * aix-thread.c: Don't include language.h.
569 * buildsym.c: Ditto.
570 * dbxread.c: Ditto.
571 * mdebugread.c: Ditto.
572 * rs6000-nat.c: Ditto.
573 * buildsym.c (make_blockvector): Use renamed hex_string.
574
33f2d567
JM
5752004-09-10 Jason Molenda (jmolenda@apple.com)
576
577 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
578 chars after 'if' or 'while' commands in user-defined commands.
579
7b90c3f9
JB
5802004-09-08 Jim Blandy <jimb@redhat.com>
581
582 Fix bug reported and analyzed by Olivier Crete:
583 * symfile.c (copy_section_addr_info): New function.
584 (symbol_file_add_with_addrs_or_offsets): Use it to save the
585 original set of address arguments, instead of handwritten code
586 that uses one length to allocate and a different length to
587 initialize. Use make_cleanup_free_section_addr_info.
588 * symfile.h (copy_section_addr_info): New declaration.
589 * utils.c: #include "symfile.h".
590 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
591 New functions.
592 * defs.h (make_cleanup_free_section_addr_info): New declaration.
593 * Makefile.in (utils.o): Update dependencies.
594
b26a6851
AC
5952004-09-08 Andrew Cagney <cagney@gnu.org>
596
597 * thread-db.c (keep_thread_db): Delete.
598 (thread_db_new_objfile, thread_db_create_inferior)
599 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
600
be24b061
MK
6012004-09-08 Mark Kettenis <kettenis@gnu.org>
602
f6792ef4
MK
603 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
604 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
605 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
606 (i386_frameless_signal_p): Remove prototype.
607 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
608 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
609 I386_SSE_NUM_REGS.
610 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
611 instead of FP0_REGNUM.
612 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
613 of FP0_REGNUM and FPC_REGNUM.
614
eeefdaa7
MK
615 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
616 (sunos_solib_create_inferior_hook): Don't call
617 sunos_relocate_main_executable.
618
be24b061
MK
619 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
620 solib_svr4_fetch_link_map_offsets to
621 svr4_ilp32_fetch_link_map_offsets.
622 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
623 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
624 svr4_ilp32_fetch_link_map_offsets.
625 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
626
7c679d16
JB
6272004-09-07 Jim Blandy <jimb@redhat.com>
628
629 * frame.h (frame_register): Doc fix.
630
1f04aa62
AC
6312004-09-07 Andrew Cagney <cagney@gnu.org>
632
633 * vx-share/wait.h: Delete #ifdef USG.
634 * utils.c (request_quit): Ditto.
635 * tui/tui.c (tui_reset): Ditto.
636 * remote.c: Ditto.
637 * remote-sds.c: Ditto.
638 * remote-rdi.c: Ditto.
639 * mdebugread.c: Ditto.
640 * m68klinux-nat.c: Ditto.
641 * infttrace.c: Ditto.
642 * infptrace.c: Ditto.
643 * i386v-nat.c: Ditto.
644 * exec.c: Ditto.
645 * dbxread.c: Ditto.
646 * core-aout.c: Ditto.
647
90edbfbc
JB
6482004-09-05 Joel Brobecker <brobecker@gnat.com>
649
650 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
651 heuristic_proc_desc.
652 (mips_insn32_frame_cache): Likewise.
653
01f4bf2b
JB
6542004-09-04 Joel Brobecker <brobecker@gnat.com>
655
656 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
657 left behind by error.
658
8511a048
JB
6592004-09-04 Joel Brobecker <brobecker@gnat.com>
660
661 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
662 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
663
649dfe9f
JB
6642004-09-04 Joel Brobecker <brobecker@gnat.com>
665
666 * config/rs6000/xm-aix4.h: Remove this file.
667 * config/rs6000/aix4.mh (XM_FILE): Delete.
668
6e50f889
JB
6692004-09-04 Joel Brobecker <brobecker@gnat.com>
670
671 * config/rs6000/xm-rs6000.h: Remove this file.
672 * config/rs6000/rs6000.mh (XM_FILE): Remove.
673
b8c4aece
AC
6742004-09-03 Andrew Cagney <cagney@gnu.org>
675
fb603883
AC
676 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
677 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
678 only use.
679
c9343fd1
AC
680 * mips-tdep.c (temp_saved_regs): Delete.
681 (set_reg_offset): Replace saved_regs parameter with this_cache.
682 (heuristic_proc_desc, mips16_heuristic_proc_desc)
683 (mips32_heuristic_proc_desc): Add this_cache parameter.
684 (mips_insn32_frame_cache, mips_insn16_frame_cache)
685 (after_prologue): Pass a NULL this_cache.
686
9733cfe1
AC
687 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
688 non-kernel trap prologues.
689
0d5febcc
AC
690 * mips-tdep.c (find_proc_desc): Delete function.
691 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
692 simplify.
693 (mips_insn16_frame_cache): Replace find_proc_desc with code from
694 mips_insn32_frame_cache.
695
9733cfe1 696 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
697 Simplify as NEXT_FRAME is NULL.
698 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
699
177f84a3
AC
700 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
701 local variable.
702 (mips_skip_prologue): Update.
703
465f7520
AC
704 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
705 "cur_frame" parameter.
177f84a3
AC
706 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
707 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 708
e38b8658
AC
709 * config/vax/nm-obsd.h: Delete file.
710 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
711 * config/vax/nm-nbsd.h: Delete file.
712 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
713 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
714 * config/sh/nm-nbsd.h: Delete file.
715 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
716 * config/rs6000/nm-rs6000ly.h: Delete file.
717 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
718 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
719 * config/powerpc/nm-obsd.h: Delete file.
720 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
721 * config/powerpc/nm-nbsd.h: Delete file.
722 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
723 * config/pa/nm-obsd.h: Delete file.
724 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
725 * config/mips/nm-nbsd.h: Delete file.
726 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
727 * config/m88k/nm-obsd.h: Delete file.
728 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
729 * config/m68k/nm-nbsd.h: Delete file.
730 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
731 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
732 * config/i386/nm-nbsd.h: Delete file.
733 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
734 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
735 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
736 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
737 * config/i386/nm-i386lynx.h: Delete file.
738 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
739 * config/arm/nm-nbsd.h: Delete file.
740 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
741 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
742
be1ed680
AC
743 * config/i386/tm-fbsd.h: Delete file.
744 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
745 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
746
4b392b26
AC
747 * config/rs6000/tm-rs6000-aix4.h: Delete file.
748 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
749 * config/rs6000/aix4.mt (TM_FILE): Set to
750 config/rs6000/tm-rs6000.h.
751 * config/powerpc/tm-ppc-aix.h: Delete file.
752 * config/powerpc/aix.mt (TM_FILE): Set to
753 config/rs6000/tm-rs6000.h.
754 * config/m68k/tm-linux.h: Delete file.
755 * config/m68k/linux.mt (TM_FILE): Set to solib.h
756 * config/i386/tm-linux64.h: Delete file.
757 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
758 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
759
f3219c75
AC
760 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
761 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
762 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
763 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
764 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
765 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
766 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
767 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
768 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
769
b8c4aece
AC
770 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
771 gdb_host_cpu.
772
8ac2e020
JB
7732004-09-02 Joel Brobecker <brobecker@gnat.com>
774
775 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
776 Minor reformatting. Some code factoring.
777
c185a355
AC
7782004-09-02 Andrew Cagney <cagney@gnu.org>
779
63f22f0d
AC
780 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
781 * config/vax/tm-nbsd.h: Delete file.
782 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
783 * config/sparc/tm-vxworks.h: Delete file.
784 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
785 * config/sparc/tm-nbsd.h: Delete file.
786 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
787 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
788 * config/sparc/tm-linux.h: Delete file.
789 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
790 * config/s390/tm-linux.h: Delete file.
791 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
792 * config/pa/tm-bsd.h: Delete file.
793 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
794 * config/m68k/tm-obsd.h: Delete file.
795 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
796 * config/m68k/tm-nbsd.h: Delete file.
797 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
798 * config/i386/tm-vxworks.h: Delete file.
799 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
800 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
801 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
802 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
803 * config/i386/tm-nbsd.h: Delete file.
804 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
805 * config/i386/tm-i386lynx.h: Delete file.
806 * config/cris/cris.mt (TM_FILE): Set to solib.h.
807 * config/cris/tm-cris.h: Delete file.
808
0f475e27
AC
809 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
810 * configure: Re-generate.
811 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
812 * config/arm/tm-nbsd.h: Delete file.
813
458ed000
AC
814 * config/powerpc/tm-ppcle-sim.h: Delete.
815 * config/powerpc/tm-ppcle-eabi.h: Delete.
816 * config/powerpc/tm-nbsd.h: Delete.
817 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
818 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
819 tm-ppcle-eabi.h.
820
f14375f3
AC
821 * config/i386/nto.mh (NAT_FILE): Delete.
822 * config/i386/nm-nto.h: Delete.
823
c34d127c
AC
824 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
825 * config/m68k/tm-os68k.h: Ditto.
826 * config/m68k/tm-monitor.h: Ditto.
827 * config/m68k/tm-cisco.h: Ditto.
828 * config/m68k/st2000.mt (TM_FILE): Delete.
829 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
830 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
831 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
832 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
833
f7f0fe03
AC
834 * config/m68k/tm-st2000.h: Delete.
835 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
836 * config/sparc/fbsd.mt (TM_FILE): Delete.
837 * config/sparc/tm-fbsd.h: Delete.
838
a2558533
AC
839 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
840 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
841 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
842
b78960be
AC
843 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
844 GDB_TM_FILE and GDB_XM_FILE.
845 * gdbarch.c: Re-generate.
846 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
847 quotes in macro definition.
848 * configure.in: Re-generate.
849
4d60522e
AC
850 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
851 validating architecture methods.
852 * gdbarch.c: Re-generate.
853
5010d38b
AC
854 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
855 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
856 GDB_MULTI_ARCH_PARTIAL.
857 * gdbarch.h: Re-generate.
858
c185a355
AC
859 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
860 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
861 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
862 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
863 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
864 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
865 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
866 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
867 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
868 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
869 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
870 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
871
14aaa6ab
AC
8722004-09-01 Andrew Cagney <cagney@gnu.org>
873
874 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
875 and main_func_highpc.
876 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
877 * objfiles.c (init_entry_point_info, objfile_relocate): Update
878 * nlmread.c (nlm_symfile_read): Update.
879
a343eb3c
JB
8802004-09-01 Joel Brobecker <brobecker@gnat.com>
881
882 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
883 (mips_insn32_frame_cache): Inline call to find_proc_desc.
884 (find_proc_desc): Remove dead code.
885
4fbbbd07
JB
8862004-09-01 Joel Brobecker <brobecker@gnat.com>
887
888 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
889
84acb35a
JJ
8902004-09-01 Jeff Johnston <jjohnstn@redhat.com>
891
892 * observer.sh: Add struct so_list declaration.
893 * Makefile.in: Add dependencies on observer.h for solib.c and
894 breakpoint.c.
895 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
896 function.
897 (_initialize_breakpoint): Register
898 disable_breakpoints_in_unloaded_shlib as an observer of the
899 "solib unloaded" observation event.
900 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
901 call decode_line_1 so unfound breakpoint errors are silent.
902 * solib.c (update_solib_list): When a solib is discovered to have
903 been unloaded by the program, notify all observers of the
904 "solib unloaded" observation event.
905
c8cd9f6c
AC
9062004-09-01 Andrew Cagney <cagney@gnu.org>
907
908 * frame.c: Include "objfiles.h".
909 (inside_main_func): New function.
910 (get_prev_frame): Use new inside_main_func.
911 * Makefile.in (frame.o): Update dependencies.
912 * defs.h (inside_main_func): Delete declaration.
913 * blockframe.c (inside_main_func): Delete function.
914
1168df01
JB
9152004-08-31 Jim Blandy <jimb@redhat.com>
916
917 * dwarf2read.c (is_vtable_name): New function, based on logic from
918 read_structure_type, but passing the correct length to strncmp,
919 and using 'sizeof' instead of 'strlen'.
920 (read_structure_type): Call it.
921
f14f9744
JB
9222004-08-31 Joel Brobecker <brobecker@gnat.com>
923
924 * config/powerpc/aix.mh: Add comment.
925
386d4518
PG
9262004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
927
928 * MAINTAINERS: Add self to Write-After-Approval.
929
7d97d5e2
MI
9302004-08-30 Manoj Iyer <manjo@austin.ibm.com>
931
932 * MAINTAINERS: Add self to Write-After-Approval.
933
68f53502
AC
9342004-08-30 Andrew Cagney <cagney@gnu.org>
935
936 Fix PR breakpoints/1757.
937 * infrun.c (struct execution_control_state): Replace
938 remove_breakpoints_on_following_step with
939 step_after_step_resume_breakpoint.
940 (init_execution_control_state): Update.
941 (handle_inferior_event): For signals, when stepping off a
942 breakpoint, set step_after_step_resume_breakpoint. When
943 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
944 (keep_going): Delete code handling
945 remove_breakpoints_on_following_step.
946
7ca2d3a3
DL
9472004-08-29 David Lecomber <david@streamline-computing.com>
948
949 Fix PR gdb/648
950 * language.h (enum array_ordering): New enum.
951 * language.h (struct language_defn): New la_array_ordering
952 attribute.
953 * language.c (unknown_language_defn, auto_language_defn)
954 (local_language_defn): Ditto.
955 * ada-lang.c (ada_language_defn): Ditto.
956 * c-lang.c (c_language_defn, cplus_language_defn)
957 (asm_language_defn, minimal_language_defn): Ditto.
958 * f-lang.c (f_language_defn): Ditto.
959 * jv-lang.c (java_language_defn): Ditto.
960 * m2-lang.c (f_language_defn): Ditto.
961 * objc-lang.c (objc_language_defn): Ditto.
962 * p-lang.c (pascal_language_defn): Ditto.
963 * scm-lang.c (scm_language_defn): Ditto.
964 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
965 oriented large to small in type structure.
966 * dwarf2read.c (read_array_order): New function.
967 (read_array_type): Use read_array_order to check row/column
968 major ordering.
969
e354df01
NW
9702004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
971
972 * target.c (target_resize_to_sections): Check
973 current_target.to_sections for an old value when updating.
974
9185ddce
JB
9752004-08-27 Joel Brobecker <brobecker@gnat.com>
976
977 * procfs.c (dbx_link_bpt_addr): New static global variable.
978 (dbx_link_shadow_contents): New static global variable.
979 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
980 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
981 if we just hit it.
982 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
983 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
984 from run to run.
985 (procfs_create_inferior): Remove syssgi syscall-exit notifications
986 after the inferior has been forked.
987 (remove_dbx_link_breakpoint): New function.
988 (dbx_link_addr): New function.
989 (insert_dbx_link_bpt_in_file): New function.
990 (insert_dbx_link_bpt_in_region): New function.
991 (insert_dbx_link_breakpoint): New function.
992 (proc_trace_syscalls_1): New function, extracted from
993 proc_trace_syscalls.
994 (proc_trace_syscalls): Replace extract code by call to
995 proc_trace_syscalls_1.
996 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
997 is no longer valid.
998
e6742ace
JB
9992004-08-25 Jim Blandy <jimb@redhat.com>
1000
1001 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1002
8fb3e588
AC
10032004-08-25 Andrew Cagney <cagney@gnu.org>
1004
629a41ee
AC
1005 * infrun.c (struct execution_control_state): Delete field
1006 "stepping_through_sigtramp".
1007 (init_execution_control_state): Do not set same.
1008 (context_switch): Do not pass same to save_infrun_state and
1009 load_infrun_state.
1010 * gdbthread.h (struct thread_info): Delete field
1011 stepping_through_sigtramp.
1012 (save_infrun_state, load_infrun_state): Delete parameter
1013 stepping_through_sigtramp.
1014 * thread.c (load_infrun_state, save_infrun_state): Update.
1015
8fb3e588
AC
1016 * infrun.c: Re-indent. Move expression operators to the beginning
1017 of the line. Remove long disabled #if 0 code.
1018
49c54768
AC
10192004-08-24 Andrew Cagney <cagney@gnu.org>
1020
1021 * doublest.h (floatformat_ieee_quad): Rename
1022 floatformat_ia64_quad.
1023 * doublest.c (floatformat_ieee_quad): Rename
1024 floatformat_ia64_quad.
1025 (_initialize_doublest): Update.
1026
5ca2e327
JB
10272004-08-24 Jim Blandy <jimb@redhat.com>
1028
87808bd6
JB
1029 * dwarf2expr.h (struct dwarf_expr_context): New members
1030 'num_pieces' and 'pieces', for returning the result of an
1031 expression that uses DW_OP_piece.
1032 (struct dwarf_expr_piece): New struct type.
1033 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
1034 pieces.
1035 (free_dwarf_expr_context): Free pieces, if any.
1036 (add_piece): New function.
1037 (execute_stack_op): Implement DW_OP_piece.
1038 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1039 expression is a list of pieces, print an error message.
1040 (dwarf2_loc_desc_needs_frame): If the expression yields
1041 pieces, and any piece is in a register, then we need a frame.
1042
5ca2e327
JB
1043 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1044 the stack until we've decided what sort of result the evaluation
1045 has produced. Use separate variables, with more specific names.
1046
2afeb6b8
RE
10472004-08-23 Richard Earnshaw <rearnsha@arm.com>
1048
1049 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1050 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1051 (arm_netbsd_init_abi_common): Register them.
1052
5885ab49
MK
10532004-08-22 Mark Kettenis <kettenis@gnu.org>
1054
fda820a6
MK
1055 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1056
1c5bf419
MK
1057 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1058 safe_frame_unwind_memory instead of target_read_memory.
1059
8cbba7c8
MK
1060 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1061 Reorder includes.
1062 (fetch_register, store_register): Remove prototypes.
1063 (child_resume): Reorganize code and comments such that it is
1064 grouped a bit more logically.
1065 (attach): Explicitly compare errno against 0.
1066 (detach): Likewise. Use perror_with_name instead of
1067 print_sys_errmsg.
1068 * Makefile.in (infptrace.o): Update dependencies.
1069
c5fa4245
MK
1070 * ia64-linux-nat.c: Update copyright year.
1071 (fetch_debug_register, store_debug_register)
1072 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1073 PTRACE_TYPE_ARG3.
1074 * config/ia64/nm-linux.h: Update copyright year.
1075 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1076
387c058c
MK
1077 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1078 from CORE_ADDR to struct frame_info *. Use
1079 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1080 (amd64_linux_sigtramp_p): Adjust for changed signature of
1081 and64_linux_sigtramp_start
1082
277215a6
MK
1083 * gdb_ptrace.h: GNU/Linux.
1084
25f6178e
MK
1085 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1086 Remove defines.
1087
652fc137
MK
1088 * infptrace.c: Include "gdb_assert.h".
1089 (PTRACE_XFER_TYPE): Remove define.
1090 (offsetof): Only define if U_REGS_OFFSET isn't defined.
1091 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1092 Tweak comment.
1093 (fetch_inferior_registers, store_inferior_registers): Remove
1094 redundant culry braces. Tweak comment. s/regno/regnum.
1095 * Makefile.in (infptrace.o): Update dependencies.
1096
5885ab49
MK
1097 * configure.in: Change test for return type of ptrace to default
1098 to `long' instead of `int'.
1099 * configure: Regenerate.
1100
11003ae3
MK
11012004-08-21 Mark Kettenis <kettenis@gnu.org>
1102
6b95110c
MK
1103 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1104
bcb3dc3d
MK
1105 * configure.in: Check for ttrace function.
1106 * configure, config.in: Regenerate.
1107
11003ae3
MK
1108 * gdb_ptrace.h: New file.
1109 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1110 <sys/ptrace.h>.
1111 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1112 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1113 (attach): Don't define PT_ATTACH.
1114 (detach): Don't define PT_DETACH.
1115 * Makefile.in (gdb_ptrace_h): New variable.
1116 (infptrace.o): Update dependencies.
1117
f8707cac
MK
11182004-08-16 Mark Kettenis <kettenis@gnu.org>
1119
1120 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1121 instead of `int' if not already defined.
1122 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1123 PTRACE_TYPE_ARG3.
1124 * infptrace.c (call_ptrace): Revert change that replaced
1125 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1126
655c5466
MK
11272004-08-15 Mark Kettenis <kettenis@gnu.org>
1128
156e5ba7
MK
1129 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1130 Remove defines.
1131
de9a9e51
MK
1132 * linux-nat.c (kill_inferior): Add missing third and fourth
1133 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
1134
88800403
MK
1135 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1136 PTRACE_TYPE_RET.
1137
849a1d7c
MK
1138 * proc-why.c (proc_prettyfprint_why): Fix format string.
1139
61ad16d1
MK
1140 * solib-osf.c (osf_current_sos): Remove unsused label.
1141
a6ed5501
MK
1142 * configure.in: Add <ncurses/ncurses.h> to the list of possible
1143 curses headers.
1144 * configure, config.in: Regenerate.
1145 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
1146 <ncurses/ncurses.h>.
1147
016ddeca
MK
1148 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
1149 * config/nm-nbsd.h: Update copyright year.
1150 (PTRACE_ARG3_TYPE): Remove define.
1151
49ec097f
MK
1152 * sparc-nat.c (fetch_inferior_registers)
1153 (store_inferior_registers, sparc_xfer_wcookie):
1154 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1155
9f8e0089
MK
1156 * alphabsd-nat.c (fetch_inferior_registers):
1157 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1158 PTRACE_TYPE_ARG3.
1159 * amd64bsd-nat.c (fetch_inferior_registers)
1160 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1161 PTRACE_TYPE_ARG3.
1162 * armnbsd-nat.c: Update copyright year.
1163 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
1164 (store_register, store_regs, store_fp_register, store_fp_regs):
1165 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1166 * hppabsd-nat.c (fetch_inferior_registers)
1167 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1168 PTRACE_TYPE_ARG3.
1169 * i386bsd-nat.c (fetch_inferior_registers)
1170 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
1171 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1172 * m68kbsd-nat.c (fetch_inferior_registers)
1173 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1174 PTRACE_TYPE_ARG3.
1175 * m88kbsd-nat.c (fetch_inferior_registers)
1176 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1177 PTRACE_TYPE_ARG3.
1178 * mipsnbsd-nat.c: Update copyright year.
1179 (fetch_inferior_registers, store_inferior_registers):
1180 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1181 * ns32knbsd-nat.c: Update copyright year.
1182 (fetch_inferior_registers, store_inferior_registers):
1183 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1184 * ppcnbsd-nat.c (fetch_inferior_registers):
1185 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1186 PTRACE_TYPE_ARG3.
1187 * ppcobsd-nat.c (fetch_inferior_registers):
1188 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1189 PTRACE_TYPE_ARG3.
1190 * shnbsd-nat.c: Update copyright year.
1191 (fetch_inferior_registers, store_inferior_registers):
1192 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1193 * vaxbsd-nat.c (fetch_inferior_registers)
1194 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1195 PTRACE_TYPE_ARG3.
1196
655c5466
MK
1197 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
1198 PTRACE_TYPE_ARG3.
1199 * infptrace.c (call_ptrace, child_resume, attach, detach)
1200 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
1201 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1202 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
1203 PTRACE_TYPE_ARG3.
1204
c40d0d10
MK
12052004-08-14 Mark Kettenis <kettenis@gnu.org>
1206
5cb0ff31
MK
1207 * defs.h: Remove out-of-date comment.
1208 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
1209 [!GETENV_PROVIDED] (getenv): Remove prototype.
1210
5f0f34cb
MK
1211 * standalone.c: Remove file.
1212 * Makefile.in (standalone.o): Remove dependency.
1213
7532965f
MK
1214 * i386-linux-nat.c (dummy_sse_values): Remove function and
1215 prototype.
1216 (i386_linux_dr_get): Fix typo in comment.
1217 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
1218
1bdc6c53
MK
1219 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
1220
c40d0d10
MK
1221 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1222 from declaration.
1223 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1224 from definition.
1225
64218d3e
MK
12262004-08-13 Mark Kettenis <kettenis@gnu.org>
1227
1228 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
1229 parenthesis in definition.
1230 * configure: Regenerated.
1231
926c94e7
MC
12322004-08-12 Michael Chastain <mec.gnu@mindspring.com>
1233
1234 * PROBLEMS: Mention build/1411.
1235
69489883
NN
12362004-08-09 Robert Millan <robertmh@gnu.org>
1237
1238 Committed by Nathanael Nerode.
1239 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
1240 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
1241
ebb7c577
AC
12422004-08-12 Andrew Cagney <cagney@gnu.org>
1243
1244 * NEWS: Mention fixes in GDB 6.2.1.
1245 * PROBLEMS: Remove mention of mips-irix.
1246
232d697c
JB
12472004-08-11 Joel Brobecker <brobecker@gnat.com>
1248
1249 * config/powerpc/xm-aix.h: Delete.
1250 * config/powerpc/aix.mh (MH_FILE): Remove.
1251 * config/powerpc/aix432.mh (MH_FILE): Remove.
1252
72f4e82b
JB
12532004-08-11 Joel Brobecker <brobecker@gnat.com>
1254
1255 * config/powerpc/aix.mh: Remove obsolete comment.
1256 * config/powerpc/aix432.mh: Likewise.
1257
0687ccb2
JB
12582004-08-11 Joel Brobecker <brobecker@gnat.com>
1259
1260 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
1261
dbf3ada7
JB
12622004-08-11 Joel Brobecker <brobecker@gnat.com>
1263
e08e1886
JB
1264 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
1265 this file is now empty.
1266 * config/xm-aix4.h: Remove, this file is no longer included
1267 anywhere.
1268
12692004-08-11 Joel Brobecker <brobecker@gnat.com>
1270
1271 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
1272 that file is now empty.
dbf3ada7
JB
1273 (termdef): Remove prototype, function no longer used.
1274
4c525ef6
JB
12752004-08-11 Joel Brobecker <brobecker@gnat.com>
1276
1277 * doc/gdbint.texinfo (Host Definition): Remove documentation
1278 for USE_O_NOCTTY, no longer used.
1279 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
1280 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
1281
82e0b968
JB
12822004-08-11 Joel Brobecker <brobecker@gnat.com>
1283
1284 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
1285 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
1286 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
1287
f2acbe1c
MK
12882004-08-11 Mark Kettenis <kettenis@gnu.org>
1289
daa98270
MK
1290 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
1291 instead of FIVE_ARG_PTRACE.
1292
f2acbe1c
MK
1293 * inflow.c (O_NOCTTY): Define to zero if not already defined.
1294 (new_tty): Use O_NOCTTY unconditionally.
1295
cc377e6b
MK
12962004-08-10 Mark Kettenis <kettenis@gnu.org>
1297
1298 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
1299 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
1300 fflush on stdout.
1301
3bcc18fa
JB
13022004-08-10 Joel Brobecker <brobecker@gnat.com>
1303
1304 * xcoff_symfile_finish: Replace last call to xmfree by call
1305 to xfree.
1306
7936743b
AC
13072004-08-10 Andrew Cagney <cagney@gnu.org>
1308
cc503c8a
AC
1309 * main.c (captured_main): Delete call to init_malloc.
1310 * defs.h (init_malloc): Delete declaration.
1311 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
1312 (init_malloc): Delete functions.
1313
2dc74dc1
AC
1314 * defs.h (xmfree): Delete.
1315 * utils.c (xmfree): Delete function.
1316 (xfree): Inline calls to xmfree and mfree.
1317 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
1318 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
1319 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
1320 * somread.c (som_symfile_finish): Ditto.
1321 * objfiles.c (allocate_objfile, free_objfile):
1322 * nlmread.c (nlm_symfile_finish): Ditto.
1323 * hpread.c (hpread_symfile_finish): Ditto.
1324 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
1325 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
1326 * coffread.c (coff_symfile_finish): Ditto.
1327
aa2ee5f6
AC
1328 * defs.h (xmcalloc): Delete declaration.
1329 * utils.c (xmcalloc): Delete.
1330 (xcalloc): Inline calls to xmcalloc and mcalloc.
1331 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
1332 xcalloc and xfree.
1333 * symtab.c (create_demangled_names_hash): Ditto.
1334
0efffb96
AC
1335 * defs.h (xmrealloc): Delete.
1336 * utils.c (xmrealloc): Delete.
1337 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
1338 * symmisc.c (extend_psymbol_list): Use xrealloc.
1339 * source.c (find_source_lines): Ditto.
1340 * hpread.c (hpread_lookup_type): Ditto.
1341 * dbxread.c (add_bincl_to_list): Ditto.
1342
7936743b
AC
1343 * utils.c (xmmalloc): Delete.
1344 (xmalloc): Inline xmmalloc and mmalloc calls.
1345 (msavestring): Use xmalloc.
1346 * defs.h (xmmalloc): Delete declaration.
1347 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
1348 xmmalloc.
1349 * symmisc.c (extend_psymbol_list): Ditto.
1350 * symfile.c (init_psymbol_list): Ditto.
1351 * source.c (find_source_lines): Ditto.
1352 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
1353 * elfread.c (elf_symtab_read): Ditto.
1354 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
1355 * coffread.c (coff_symfile_init): Ditto.
1356
252ab814
DC
13572004-08-10 David Carlton <carlton@bactrian.org>
1358
1359 * MAINTAINERS: Remove David Carlton from c++ testsuite
1360 maintainers.
1361
8f5ba92b
JG
13622004-08-10 Jerome Guitton <guitton@gnat.com>
1363
1364 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
1365 print a line feed before the prompt.
1366
21749010
MK
13672004-08-10 Mark Kettenis <kettenis@gnu.org>
1368
1369 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
1370
1f011ce2
JB
13712004-08-09 Joel Brobecker <brobecker@gnat.com>
1372
1373 General cleanup of the AIX xm include file:
1374 * config/xm-aix4.h (fd_set): Remove undefine.
1375 Remove include of <sys/select.h>.
1376 (HAVE_TERMIO): Remove define.
1377 (USG): Likewise.
1378 (NULL): Remove redefine.
1379 (alloca): Remove #pragma.
1380 (vfork): Remove define.
1381 (termdef): Remove.
1382 (SIGWINCH_HANDLER): Remove.
1383 (SIGWINCH_HANDLER_BODY): Remove.
1384
cf4e7692
MK
13852004-08-09 Mark Kettenis <kettenis@gnu.org>
1386
1387 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
1388 GDB_OSABI_OPENBSD_ELF.
1389
ac5754fa
MK
13902004-08-07 Robert Millan <robertmh@gnu.org>
1391
1392 * bsd-kvm.c: Check for nlist.h before including it.
1393
086ec9eb
MK
13942004-08-09 Mark Kettenis <kettenis@gnu.org>
1395
bbe06c74
MK
1396 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
1397 sigcontext' offset consistency checks for ancient BSD.
1398
3aa7b3b3
MK
1399 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
1400
086ec9eb
MK
1401 * configure.in: Check for <sys/types.h>. Check return and
1402 argument types of ptrace.
1403 * configure, config.in: Regenerate.
1404
09991fa0
JB
14052004-08-09 Jim Blandy <jimb@redhat.com>
1406
1407 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
1408 rs6000_register_sim_regno): Doc fixes.
1409
fed7ba43
JB
14102004-08-08 Joel Brobecker <brobecker@gnat.com>
1411
1412 * mips-tdep.c: Include "floatformat.h".
1413 (n32n64_floatformat_always_valid): New function.
1414 (floatformat_n32n64_long_double_big): New constant.
1415 (mips_gdbarch_init): Set size and format of long double
1416 for N32 and N64 ABIs.
1417 * Makefile.in (mips-tdep.o): Update dependencies.
1418
456fcf94
AC
14192004-08-08 Andrew Cagney <cagney@gnu.org>
1420
2f9b146e
AC
1421 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
1422 print. Improve script's error messages.
1423 * gdbarch.h: Re-generate.
1424
456fcf94
AC
1425 * gdbarch.sh (pformat): New function.
1426 (float_format, double_format, long_double_format): List with bit
1427 members. Use pformat when printing.
1428 * gdbarch.c, gdbarch.h: Re-generate.
1429
69e9e646
NW
14302004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
1431
1432 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
1433 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
1434 (ppcnbsd_supply_pcb): New function.
1435 (_initialize_ppcnbsd_nat): New prototype and function.
1436 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1437 (LOADLIBES): New variable.
1438 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
1439
5ef2d0aa
AC
14402004-08-08 Andrew Cagney <cagney@gnu.org>
1441
1442 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
1443 (builtin_type_ieee_double, builtin_type_ia64_quad)
1444 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
1445 BE/LE floating-point types.
1446 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
1447 (builtin_type_ieee_double, builtin_type_ia64_quad)
1448 (builtin_type_ia64_spill): Declare.
1449 * doublest.c (_initialize_doublest, floatformat_ieee_single)
1450 (floatformat_ieee_double, floatformat_arm_ext)
1451 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
1452 of LE/BE floatformats.
1453 * doublest.h: (struct floatformat, floatformat_ieee_single)
1454 (floatformat_ieee_double, floatformat_arm_ext)
1455 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
1456
5c7f2947
MK
14572004-08-08 Mark Kettenis <kettenis@gnu.org>
1458
ecac404d
MK
1459 * i386gnu-nat.c (gnu_store_registers): Fix typo.
1460
9b8607ce
MK
1461 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
1462 instead of regcache_raw_supply when storing the registers.
1463
f6052080
MK
1464 * i386gnu-nat.c: Update copyright year.
1465 (gnu_store_registers): Don't use deprecated_registers and
1466 deprecated_registers_valid. Use regcache_valid_p and
1467 regcache_raw_supply instead.
1468
17777823
MK
1469 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
1470 frame_pc_unwind.
1471
5240ceac
MK
1472 * procfs.c (procfs_pid_to_str): Remove redundant and unused
1473 variables. Incapitalized "process".
1474
5c7f2947
MK
1475 * configure.in: Add cursesX to the list of possible curses libs.
1476 Add cursesX.h to the list of possible curses headers.
1477 * configure, config.in: Regenerate.
1478
da7d81e3
NW
14792004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1480
1481 * configure.in: Test for struct lwp in <sys/lwp.h>.
1482 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
1483 the offset of l_addr in struct lwp.
1484
7f245d65
NW
14852004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1486
1487 * bsd-kvm.c: Include "gdbcore.h"
1488 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
1489
47b3f456
AC
14902004-08-07 Andrew Cagney <cagney@gnu.org>
1491
70bd8e24
AC
1492 * gdbtypes.c (build_flt, build_complex): New functions.
1493 (gdbtypes_post_init): Use.
1494
9b0dea39
AC
1495 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
1496
5cf7abac
AC
1497 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
1498 through to builtin_type_uint128.
1499
64d2b26d
AC
1500 * c-exp.y: Use builtin_type function to obtain builtin types.
1501
7ad6570d
AC
1502 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
1503 builtin_uint128.
1504 * gdbtypes.c (gdbtypes_post_init): Update.
1505 (build_gdbtypes): Move initialization of builtin_type_int0
1506 through to builtin_type_uint128 from here ...
1507 (_initialize_gdbtypes): ... to here.
1508 * d10v-tdep.c (d10v_register_type): Update.
1509
47b3f456
AC
1510 * doublest.c: Update copyright.
1511 (floatformat_from_length): Call error when floatformat is NULL.
1512 (extract_floating_by_length): Remove NULL fmt check.
1513 (store_floating_by_length): Ditto.
1514
0a8146bf
AC
15152004-08-07 Andrew Cagney <cagney@gnu.org>
1516
1517 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
1518 that the register is valid.
1519
c0ccb908
MK
15202004-08-05 Mark Kettenis <kettenis@chello.nl>
1521
8e6bed05
MK
1522 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1523 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
1524 struct frame_info *. Use safe_frame_unwind_memory instead of
1525 deprecated_read_memory_nobpt.
1526 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
1527 changed signature of i386_linux_sigtramp_start and
1528 i386_linux_rt_sigtramp_start.
1529
24f9f5e3
MK
1530 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
1531 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
1532 instead of deprecated_read_memory_nobpt.
1533 (i386nbsd_sigtramp_p): Adjust for changed signature of
1534 i386nbsd_sigtramp_offset.
1535
c822af0c
MK
1536 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
1537 safe_frame_unwind_memory instead of target_read_memory.
1538
c0ccb908
MK
1539 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1540 !NO_SYS_FILE.
1541 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
1542 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
1543 (_initialize_kernel_u_addr): Remove prototype and function.
1544 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1545 !NO_SYS_FILE.
1546 * xcoffread.c: Likewise.
1547
b9e1c0d6
MK
15482004-08-06 Mark Kettenis <kettenis@gnu.org>
1549
1550 * vax-nat.c: New file.
1551 * vaxbsd-nat.c: Tweak comment.
1552 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
1553 vaxnbsd-tdep.c.
1554 (vax-nat.o): New dependency.
1555 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
1556 (vax-*-ultrix2*): Remove.
1557 * config/vax/vax.mh: New file.
1558 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
1559 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
1560 (vax_register_u_addr): New prototype.
1561 (REGISTER_U_ADDR): Define using vax_register_u_addr.
1562 * config/vax/vaxult2.mh: Remove file.
1563 * config/vax/vaxult.mh: Remove file.
1564 * config/vax/vaxbsd.mh: Remove file.
1565 * config/vax/vax.mt (TM_FILE): Remove.
1566 * config/vax/tm-vaxbsd.h: Remove file.
1567
9ad7bec7
JB
15682004-08-06 Joel Brobecker <brobecker@gnat.com>
1569
1570 * aix-thread.c (get_signaled_thread): New function.
1571 (iter_trap): Delete, no longer used.
1572 (iter_tid): New function.
1573 (pd_update): Find the thread that received the SIGTRAP signal
1574 by first locating the kernel thread, and then finding its
1575 associated thread.
1576
bf0d233d
UW
15772004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
1578
1579 * lin-lwp.c (child_wait): Continue inferior after processing
1580 PTRACE_EVENT_CLONE event.
1581
d0f853e1
NN
15822004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
1583
1584 * MAINTAINERS: Add self to Write-After-Approval.
1585
ab14aeb0
JJ
15862004-08-05 Jeff Johnston <jjohnstn@redhat.com>
1587
1588 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
1589 libunwind-xxxx.so" where xxxx is UNW_TARGET.
1590
9c8dbfa9
AC
15912004-08-05 Andrew Cagney <cagney@gnu.org>
1592
c8f3ca46
AC
1593 * config/xm-sysv4.h: Delete file.
1594 * config/mips/xm-irix5.h: Delete file.
1595 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
1596 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
1597 * config/ia64/xm-aix.h: Delete file.
1598 * config/ia64/aix.mh (XM_FILE): Delete.
1599 * config/pa/xm-hppah.h: Delete file.
1600 * config/pa/hpux11w.mh (XM_FILE): Delete.
1601 * config/pa/hpux11.mh (XM_FILE): Delete.
1602 * config/pa/hpux1020.mh (XM_FILE): Delete.
1603 * config/pa/hppahpux.mh (XM_FILE): Delete.
1604
5f7daaff
AC
1605 * config/alpha/xm-alphalinux.h: Delete file.
1606 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
1607 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
1608 * config/alpha/xm-alphaosf.h: Delete file.
1609 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
1610 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
1611 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
1612 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
1613
69babf95
AC
1614 * config/i386/xm-i386v.h: Delete file.
1615 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
1616 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
1617 * config/i386/xm-i386sco.h: Delete file.
1618 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
1619 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
1620 * config/i386/xm-i386v4.h: Delete file.
1621 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
1622 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
1623 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
1624 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
1625
6f009c8a
AC
1626 * config/vax/xm-vax.h: Delete file.
1627 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
1628 * config/vax/xm-vaxult2.h: Delete file.
1629 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
1630 * config/vax/vaxult2.mh (XM_FILE): Delete.
1631 * config/vax/xm-vaxult.h: Delete file.
1632 * config/vax/vaxult.mh (XM_FILE): Delete.
1633 * config/vax/xm-vaxbsd.h: Delete file.
1634 * config/vax/vaxbsd.mh (XM_FILE): Delete.
1635
9c8dbfa9
AC
1636 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
1637 * gdbarch.h, gdbarch.c: Re-generate.
1638 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
1639 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
1640 * frame.h: Delete deprecated_read_fp from comments.
1641 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
1642 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
1643
84367a3e
MK
16442004-08-04 Mark Kettenis <kettenis@gnu.org>
1645
9c8e3411
MK
1646 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
1647 trampoline in OpenBSD 3.5-current.
1648
b87bc0d8
MK
1649 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
1650 SSE registers.
1651
84367a3e
MK
1652 * Makefile.in: Remove embedded page breaks.
1653
a44bddec
JB
16542004-08-04 Jim Blandy <jimb@redhat.com>
1655
7ab3286f
JB
1656 * regcache.c (regcache_raw_read): Assert that, after calling
1657 target_fetch_registers, the register we're reading is cached.
1658
a44bddec
JB
1659 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
1660 a call to 'internal_error', with a more helpful error message.
1661 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 1662 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 1663
35124113
AC
16642004-08-04 Andrew Cagney <cagney@gnu.org>
1665
1666 * Makefile.in: Update dependencies.
1667
9f643768
JB
16682004-08-04 Jim Blandy <jimb@redhat.com>
1669
6ced10dd
JB
1670 Change the layout of the PowerPC E500 raw register cache to allow
1671 the lower 32-bit halves of the GPRS to be their own raw registers,
1672 not pseudoregisters.
1673 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
1674 add ppc_ev0_upper_regnum flag.
1675 * rs6000-tdep.c: #include "reggroups.h".
1676 (spe_register_p): Recognize the ev upper half registers as SPE
1677 registers.
1678 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
1679 registers.
1680 (e500_move_ev_register): New function.
1681 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
1682 vector registers are the pseudo-registers now, formed by splicing
1683 together the gprs and the upper-half registers.
1684 (e500_register_reggroup_p): New function.
1685 (P): Macro deleted.
1686 (P8, A4): New macro.
1687 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
1688 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
1689 macros.
1690 (registers_e500): Rearrange register set so that the raw register
1691 set contains 32-bit GPRs and upper-half registers, and the SPE
1692 vector registers become pseudo-registers.
1693 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
1694 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
1695 register numbers are now the same for the E500 as they are for
1696 other PowerPC variants. Register e500_register_reggroup_p as the
1697 register group function for the E500.
1698 * Makefile.in (rs6000-tdep.o): Update dependencies.
1699
1700 Adapt PPC E500 native support to the new raw regcache layout.
1701 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
1702 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
1703 (fetch_spe_register, store_spe_register): Handle fetching/storing
1704 all the SPE registers at once, if regno == -1. These now take
1705 over the job of fetch_spe_registers and store_spe_registers.
1706 (fetch_spe_registers, store_spe_registers): Deleted.
1707 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
1708 unconditionally; they're always raw. Fetch/store SPE upper half
1709 registers, if present, instead of ev registers.
1710 (fetch_register, store_register): Remove sanity checks: gprs are
1711 never pseudo-registers now, so we never need to even mention any
1712 registers that are ever pseudoregisters.
1713
9f643768
JB
1714 Use a fixed register numbering when communicating with the PowerPC
1715 simulator.
1716 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
1717 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
1718 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
1719 New functions.
1720 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
1721 init_sim_regno_table.
1722 * Makefile.in (gdb_sim_ppc_h): New variable.
1723 (rs6000-tdep.o): Update dependencies.
1724
1e2279c8
AC
17252004-08-02 Andrew Cagney <cagney@gnu.org>
1726
1d94326f
AC
1727 * cris-tdep.c (cris_register_size): Restore function, still used
1728 locally.
1729
331ae7ed
AC
1730 * gdbarch.sh (deprecated_target_read_fp)
1731 (deprecated_frame_locals_address, deprecated_frame_args_address)
1732 (deprecated_frame_chain_valid, deprecated_frame_chain)
1733 (deprecated_init_extra_frame_info, deprecated_pop_frame)
1734 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
1735 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
1736 * gdbarch.h, gdbarch.c: Re-generate.
1737 * regcache.c (deprecated_read_fp): Do not call
1738 DEPRECATED_TARGET_READ_FP_P.
1739 * infcmd.c (default_print_registers_info): Do not call
1740 DEPRECATED_DO_REGISTERS_INFO.
1741 * frame-base.c (default_frame_locals_address): Do not call
1742 DEPRECATED_FRAME_LOCALS_ADDRESS.
1743 (default_frame_args_address): Do not call
1744 DEPRECATED_FRAME_ARGS_ADDRESS.
1745
1e2279c8
AC
1746 * gdbarch.sh (deprecated_register_raw_size)
1747 (deprecated_register_virtual_size:int): Delete.
1748 * gdbarch.h, gdbarch.c: Re-generate.
1749 * cris-tdep.c (cris_register_size): Delete.
1750 (cris_gdbarch_init): Update.
1751 * alpha-tdep.c (alpha_register_raw_size)
1752 (alpha_register_virtual_size): Delete.
1753 (alpha_gdbarch_init): Update.
1754
a90c06b4
AC
1755 * gdbarch.sh (deprecated_register_virtual_type)
1756 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
1757 (deprecated_dummy_write_sp): Delete.
1758 * gdbarch.h, gdbarch.c: Re-generate.
1759
f42accbe
AC
1760 * gdbarch.sh (deprecated_register_bytes): Delete.
1761 * gdbarch.h, gdbarch.c: Re-generate.
1762 * regcache.c (deprecated_register_bytes): New function.
1763 * regcache.h (deprecated_register_bytes): Declare.
1764 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1765 * v850-tdep.c (v850_gdbarch_init): Update.
1766 * sh64-tdep.c (sh64_gdbarch_init): Update.
1767 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1768 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1769 * mcore-tdep.c (mcore_gdbarch_init): Update.
1770 * cris-tdep.c (cris_gdbarch_init): Update.
1771 * arm-tdep.c (arm_gdbarch_init): Update.
1772 * remote.c (init_remote_state): Update.
1773 * remote-vx.c (vx_prepare_to_store): Update.
1774 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
1775 * irix5-nat.c (fetch_core_registers): Update.
1776 * cris-tdep.c (cris_register_bytes_ok): Update.
1777 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1778
45c9dd44
AC
1779 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
1780 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
1781 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
1782 (mips_insn16_frame_base_address, mips_insn16_frame_base)
1783 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
1784 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
1785 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
1786 (mips_insn32_frame_base_address, mips_insn32_frame_base)
1787 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
1788 with mips_insn16 and mips_insn32.
1789
3acba339
AC
1790 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1791 * rs6000-tdep.c (rs6000_push_dummy_call)
1792 (rs6000_extract_return_value): Use register_size.
1793 * xstormy16-tdep.c (xstormy16_get_saved_register)
1794 (xstormy16_extract_return_value): Ditto.
1795 * valops.c (value_assign): Ditto.
1796 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
1797 * v850-tdep.c (v850_extract_return_value): Ditto.
1798 * tracepoint.c (collect_symbol): Ditto.
1799 * target.c (debug_print_register): Ditto.
1800 * stack.c (frame_info): Ditto.
1801 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
1802 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1803 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
1804 (store_register_using_P): Ditto.
1805 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
1806 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
1807 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1808 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
1809 * regcache.c (deprecated_read_register_bytes)
1810 (deprecated_write_register_bytes, read_register)
1811 (write_register): Ditto.
1812 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
1813 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
1814 * monitor.c (monitor_supply_register, monitor_fetch_register)
1815 (monitor_store_register): Ditto.
1816 * mn10300-tdep.c (mn10300_pop_frame_regular)
1817 (mn10300_print_register): Ditto.
1818 * mipsv4-nat.c (fill_fpregset): Ditto.
1819 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
1820 (mips64_fill_fpregset): Ditto.
1821 * mi/mi-main.c (register_changed_p, get_register)
1822 (mi_cmd_data_write_register_values): Ditto.
1823 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
1824 * irix5-nat.c (fill_gregset, fetch_core_registers):
1825 * infrun.c (write_inferior_status_register): Ditto.
1826 * infptrace.c (fetch_register, store_register): Ditto.
1827 * infcmd.c (default_print_registers_info): Ditto.
1828 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
1829 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
1830 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
1831 * hpux-thread.c (hpux_thread_fetch_registers)
1832 (hpux_thread_store_registers): Ditto.
1833 * hppah-nat.c (store_inferior_registers, fetch_register):
1834 * findvar.c (value_from_register): Ditto.
1835 * dve3900-rom.c (fetch_bitmapped_register):
1836 * cris-tdep.c (cris_gdbarch_init): Ditto.
1837 * alpha-tdep.h: Ditto.
1838 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
1839
01e1877c
AC
1840 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
1841 DEPRECATED_REGISTER_RAW_SIZE from comments.
1842 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
1843 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
1844 DEPRECATED_REGISTER_RAW_SIZE.
1845 * findvar.c (value_of_register): Simplify by assuming that the
1846 registers raw and virtual sizes are identical.
1847 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
1848 comment.
1849 * arch-utils.c (generic_register_size): Simplify by assuming
1850 register_type.
1851
73f458fb
AC
1852 * regcache.c (legacy_read_register_gen, real_register)
1853 (legacy_write_register_gen): Delete, not used.
1854
336a3131
AC
1855 * regcache.c (struct regcache_descr): Delete legacy_p.
1856 (init_legacy_regcache_descr): Delete function.
1857 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
1858 Do not use deprecated register functions.
1859 (regcache_raw_read, deprecated_write_register_gen):
1860 (deprecated_read_register_gen, regcache_raw_write): Delete code
1861 predicated on legacy_p.
1862 (register_size): Delete check against register raw size.
1863
c1d546cd
AC
1864 * cris-tdep.c (cris_register_type): Replace
1865 cris_register_virtual_type.
1866 (cris_gdbarch_init): Update, set register_type.
1867
48c2c0a6
AC
1868 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
1869 * gdbarch.h, gdbarch.c: Re-generate.
1870 * arm-tdep.c (arm_frameless_function_invocation): Delete.
1871 (arm_gdbarch_init) Do not set frameless function invocation.
1872 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
1873 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
1874 * frv-tdep.c (frv_frameless_function_invocation): Delete.
1875 (frv_gdbarch_init): Do not set frameless function invocation.
1876 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1877 * sh-tdep.c (sh_gdbarch_init): Ditto.
1878 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
1879 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1880 * avr-tdep.c (avr_gdbarch_init): Ditto.
1881
474093a6
AC
1882 * blockframe.c (legacy_frame_chain_valid): Delete function.
1883
3c109c8b
AC
1884 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
1885 and pc. Update comments.
1886 (pc_in_dummy_frame): Delete function.
1887 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
1888 use the "id".
1889 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
1890 call_hi, top and pc, use the id.
1891 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
1892
96860204
AC
1893 * dummy-frame.c: Include "gdb_string.h".
1894 (generic_save_call_dummy_addr, generic_push_dummy_frame)
1895 (generic_save_dummy_frame_tos): Delete.
1896 (dummy_frame_push): New function, replaces above.
1897 * dummy-frame.h: Update copyright.
1898 (dummy_frame_push): Declare.
1899 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
1900 (generic_save_call_dummy_addr): Delete declarations.
1901 * infcall.c: Include "dummy-frame.h".
1902 (call_function_by_hand): Add locals caller_regcache,
1903 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
1904 with call to frame_save_as_regcache plus cleanup. Delete calls to
1905 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
1906 Move clear_proceed_status to just before the resume, add call to
1907 dummy_frame_push (discard cleanup).
1908 * Makefile.in (infcall.o): Add $(dummy_frame_h).
1909 (dummy-frame.o): Add $(gdb_string_h).
1910
d67ec5db
AC
19112004-08-01 Andrew Cagney <cagney@gnu.org>
1912
1913 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
1914 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
1915 * dummy-frame.c (find_dummy_frame): Delete.
1916 (struct dummy_frame_cache, dummy_frame_sniffer)
1917 (dummy_frame_prev_register, dummy_frame_this_id)
1918 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
1919 frame unwinder using a dummy_frame_cache.
1920
a81dcb05
AC
19212004-08-01 Andrew Cagney <cagney@gnu.org>
1922
1923 * frame.h (frame_save_as_regcache): Declare.
1924 * frame.c (frame_save_as_regcache): New function.
1925 (do_frame_read_register): Replace do_frame_unwind_register.
1926 (frame_pop): Use frame_save_as_regcache.
1927 * dummy-frame.c (generic_push_dummy_frame): Use
1928 frame_save_as_regcache.
1929
aa495d11
JB
19302004-08-01 Joel Brobecker <brobecker@gnat.com>
1931
1932 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
1933 file as included until we record the first line in the linetable.
1934
ff65ac78
AC
19352004-08-01 Andrew Cagney <cagney@gnu.org>
1936
1937 * frame.h (deprecated_pop_dummy_frame)
1938 (deprecated_read_register_dummy)
1939 (deprecated_generic_find_dummy_frame): Delete.
1940 * dummy-frame.c (deprecated_generic_find_dummy_frame)
1941 (deprecated_read_register_dummy)
1942 (deprecated_find_dummy_frame_regcache)
1943 (discard_innermost_dummy)
1944 (deprecated_pop_dummy_frame): Delete.
1945 (dummy_frame_this_id): Simplify.
1946 (struct dummy_frame): Delete "fp" and "sp".
1947 (find_dummy_frame): Simplify.
1948 (generic_push_dummy_frame): Do not set "fp" or "sp".
1949 (fprint_dummy_frames): Do not print "fp" and "sp"
1950
37bdc87e
MK
19512004-08-01 Mark Kettenis <kettenis@gnu.org>
1952
1953 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
1954 (struct i386_insn): New structure.
1955 (i386_match_insn): New function.
1956 (i386_frame_setup_skip_insns): New variable.
1957 (i386_analyze_frame_setup): Change to use i386_match_insn and the
1958 array i386_frame_setup_insns of instructions that should be
1959 skipped inside the frame setup sequence.
1960
8241eaa6
AC
19612004-08-01 Andrew Cagney <cagney@gnu.org>
1962
5bc602c7
AC
1963 * frame.h (deprecated_frame_xmalloc_with_cleanup)
1964 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1965 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1966 * stack.c (frame_info): Delete references to
1967 DEPRECATED_FRAME_INIT_SAVED_REGS and
1968 deprecated_get_frame_saved_regs.
1969 * frame.c (struct frame_info): Delete saved_regs and extra_info.
1970 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
1971 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
1972 (frame_unwind_register_signed)
1973 (frame_unwind_register_unsigned)
1974 (frame_unwind_unsigned_register): Use register_size.
1975 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
1976 (deprecated_frame_xmalloc_with_cleanup)
1977 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1978 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1979
03d363a1
AC
1980 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
1981 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
1982 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
1983 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
1984
8241eaa6
AC
1985 * infcall.c (call_function_by_hand): Do not use
1986 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
1987 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
1988 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
1989 DEPRECATED_STACK_ALIGN.
1990
f00df8b7
AC
19912004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1992
1993 Committed by Andrew Cagney.
1994 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
1995
eec63939
AC
19962004-08-01 Andrew Cagney <cagney@gnu.org>
1997
1998 * mips-tdep.c (mips16_frame_cache)
1999 (mips16_frame_this_id, mips16_frame_prev_register)
2000 (mips16_frame_unwind, mips16_frame_sniffer)
2001 (mips16_frame_base_address, mips16_frame_base)
2002 (mips16_frame_base_sniffer, mips32_frame_cache)
2003 (mips32_frame_this_id, mips32_frame_prev_register)
2004 (mips32_frame_unwind, mips32_frame_sniffer)
2005 (mips32_frame_base_address, mips32_frame_base)
2006 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2007 separate heuristic mips16 and mips32 unwinders.
2008 (mips_stub_frame_cache, mips_stub_frame_this_id)
2009 (mips_stub_frame_prev_register)
2010 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2011 (mips_stub_frame_base_address, mips_stub_frame_base)
2012 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2013 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2014 match true mdebug frames.
2015 (non_heuristic_proc_desc): Add forward declaration.
2016
e66299b3
AC
20172004-08-01 Andrew Cagney <cagney@gnu.org>
2018
83cbbf3e
AC
2019 * config/mips/tm-irix6.h: Delete file.
2020 * config/mips/tm-irix5.h: Delete file.
2021 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
2022 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
2023
22d41b37
AC
2024 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
2025 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
2026 * config/nm-gnu.h (NO_CORE_OPS): Delete.
2027 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
2028 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
2029 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
2030 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
2031 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
2032 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
2033 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
2034 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
2035 (TARGET_SIGNAL_RAW_VALUES): Delete.
2036 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2037 Delete.
2038 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
2039 (TARGET_HW_WATCH_LIMIT): Delete.
2040 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2041 * minimon.h: Delete file.
2042
e66299b3
AC
2043 * trad-frame.c (trad_frame_get_this_base)
2044 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2045 functions.
2046 * trad-frame.h (trad_frame_set_this_base)
2047 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2048
1f67027d
AC
20492004-07-31 Andrew Cagney <cagney@gnu.org>
2050
2051 * trad-frame.c (trad_frame_get_prev_register): Rename
2052 trad_frame_get_prev_register.
2053 * vax-tdep.c (vax_frame_prev_register): Update.
2054 * trad-frame.h: Update.
2055 * trad-frame.c (trad_frame_get_register): Update.
2056 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2057 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2058 Update.
2059 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2060 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2061 Update.
2062 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2063 Update.
2064 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2065 Update.
2066 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2067 Update.
2068 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2069 Update.
2070 * s390-tdep.c (s390_frame_prev_register)
2071 (s390_stub_frame_prev_register)
2072 (s390_sigtramp_frame_prev_register): Update.
2073 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2074 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2075 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2076 * m88k-tdep.c (m88k_frame_prev_register)
2077 * m68hc11-tdep.c (m68hc11_frame_prev_register)
2078 * m32r-tdep.c (m32r_frame_prev_register): Update.
2079 * hppa-tdep.c (hppa_frame_prev_register_helper)
2080 * frv-tdep.c (frv_frame_prev_register): Update.
2081 * d10v-tdep.c (d10v_frame_prev_register): Update.
2082 * cris-tdep.c (cris_frame_prev_register): Update.
2083 * avr-tdep.c (avr_frame_prev_register): Update.
2084 * arm-tdep.c (arm_prologue_prev_register)
2085 (arm_sigtramp_prev_register): Update.
2086
c1bf6f65
AC
20872004-07-31 Andrew Cagney <cagney@gnu.org>
2088
2089 * frame.h (legacy_saved_regs_unwind)
2090 (legacy_frame_chain_valid, legacy_frame_p)
2091 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
2092 * dummy-frame.c (dummy_frame_this_id): Simplify.
2093 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
2094 * frame.c (struct frame_info): Delete the field "type".
2095 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2096 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2097 (legacy_saved_regs_unwind, legacy_frame_p)
2098 (frame_type_from_pc): Delete.
2099 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2100 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2101
dc856692
MK
21022004-07-31 Mark Kettenis <kettenis@gnu.org>
2103
5a5effe1
MK
2104 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2105 indentation.
2106
d4fd50a6
MK
2107 * mips-nat.c: Remove file.
2108 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2109 (mips-nat.o): Remove dependency.
2110
2689df5a
MK
2111 * infptrace.c: Update copyright year.
2112 (fetch_register): Pass NULL in regcache_raw_supply call instead of
2113 explicitly setting the buffer to all zeroes.
2114
dc856692
MK
2115 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2116 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2117
763910e0
AC
21182004-07-30 Andrew Cagney <cagney@gnu.org>
2119
2120 * GDB 6.2 released from gdb_6_2-branch.
2121
0b66e38c
EZ
21222004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
2123
2124 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2125
2126 * exec.c (exec_file_attach):
2127 * nto-tdep.c (nto_find_and_open_solib):
2128 * pa64solib.c (pa64_solib_sizeof_symbol_table):
2129 * solib.c (solib_open):
2130 * somsolib.c (som_solib_sizeof_symbol_table):
2131 * source.c (is_regular_file, openp, open_source_file):
2132 * symfile.c (symfile_bfd_open):
2133 * wince.c (upload_to_device): Differentiate between the search for
2134 binary and source files.
2135
be7d7357
AC
21362004-07-30 Andrew Cagney <cagney@gnu.org>
2137
2138 * complaints.c (_initialize_complaints): Pass NULL to
2139 add_setshow_zinteger_cmd for help_doc.
2140 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
2141
ddc9cd0f
AC
21422004-07-30 Andrew Cagney <cagney@gnu.org>
2143
2144 Fix PR i18n/761.
2145 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
2146 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
2147 $(PACKAGE).pot and update-po.
2148 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
2149 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
2150 (update-po): New rules.
2151 (localedir): Define using autoconf.
2152 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
2153 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
2154 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
2155 * configure.in: Generate CATALOGS and LINGUAS from contents of
2156 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
2157 * configure: Re-generate.
2158 * po/gdbtext: New file
2159
e92f3704
JG
21602004-07-30 Jerome Guitton <guitton@gnat.com>
2161
2162 * MAINTAINERS: Reorder Write After Approval list in alphabetical
2163 order.
2164
b0f35d58
DL
21652004-07-30 David Lecomber <dsl@sources.redhat.com>
2166
2167 * dwarf2read.c (read_file_scope): Set producer if attribute
2168 present.
2169 (struct dwarf2_cu): Added new member producer.
2170
ce7d4522
JG
21712004-07-30 Jerome Guitton <guitton@gnat.com>
2172
2173 * inflow.c (kill_command): release file handles in BFD.
2174 * exec.c (exec_file_attach): Ditto.
2175 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
2176
05ee07c7
AC
21772004-07-29 Andrew Cagney <cagney@gnu.org>
2178
2179 * PROBLEMS (mips-irix): Note that it is broken.
2180
62eceb47
AC
21812004-07-29 Andrew Cagney <cagney@gnu.org>
2182
e57b8d41
AC
2183 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
2184 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
2185
d334389b
AC
2186 * config/xm-nbsd.h: Delete file.
2187 * config/arm/xm-nbsd.h: Delete file.
2188 * config/i386/xm-nbsd.h: Delete file.
2189 * config/ns32k/xm-nbsd.h: Delete file.
2190 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
2191 * config/i386/nbsdelf.mh (XM_FILE): Delete.
2192 * config/i386/nbsdaout.mh (XM_FILE): Delete.
2193 * config/arm/nbsdelf.mh (XM_FILE): Delete.
2194 * config/arm/nbsdaout.mh (XM_FILE): Delete.
2195
e910f676
AC
2196 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
2197 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
2198 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
2199 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
2200 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
2201 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
2202
6fa856b9
AC
2203 * config/powerpc/xm-linux.h: Delete empty file.
2204 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
2205 * config/powerpc/linux.mh (XM_FILE): Delete.
2206 * config/m68k/xm-linux.h: Delete empty file.
2207 * config/m68k/linux.mh (XM_FILE): Delete.
2208 * config/ia64/xm-linux.h: Delete empty file.
2209 * config/ia64/linux.mh (XM_FILE): Delete.
2210 * config/arm/xm-linux.h: Delete empty file.
2211 * config/arm/linux.mh (XM_FILE): Delete.
2212
471ae5ae
AC
2213 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2214 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
2215 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2216 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
2217 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2218 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
2219 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2220 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
2221
62eceb47
AC
2222 * config/m68k/xm-m68k.h: Delete file.
2223 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
2224 copyright.
2225 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2226 * config/pa/xm-linux.h: Delete empty file.
2227 * config/pa/linux.mh (XM_FILE): Delete.
2228 * config/i386/xm-i386.h: Delete empty file.
2229 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
2230 "i386/xm-i386.h".
2231 * config/i386/obsdaout.mh (XM_FILE): Delete.
2232 * config/i386/obsd64.mh (XM_FILE): Delete.
2233 * config/i386/fbsd64.mh (XM_FILE): Delete.
2234 * config/i386/nto.mh (XM_FILE): Delete.
2235 * config/i386/obsd.mh (XM_FILE): Delete.
2236 * config/i386/linux64.mh (XM_FILE): Delete.
2237 * config/i386/linux.mh (XM_FILE): Delete.
2238 * config/i386/i386sol2.mh (XM_FILE): Delete.
2239 * config/i386/i386gnu.mh (XM_FILE): Delete.
2240 * config/i386/fbsd.mh (XM_FILE): Delete.
2241 * config/i386/nbsd64.mh (XM_FILE): Delete.
2242
c35f4ffc
AC
22432004-07-29 Andrew Cagney <cagney@gnu.org>
2244
2245 * config/pa/xm-linux.h: Do not include "floatformat.h".
2246 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2247 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2248 * config/i386/xm-i386.h: Do not include "floatformat.h".
2249 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2250 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2251 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2252 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
2253 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
2254 GDB_HOST_LONG_DOUBLE_FORMAT instead.
2255 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
2256 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
2257 * configure, config.in: Regenerate.
2258 * configure.host (gdb_host_float_format, gdb_host_double_format)
2259 (gdb_host_long_double_format): Set according to the host.
2260
624a44a3
AC
22612004-07-29 Andrew Cagney <cagney@gnu.org>
2262
2263 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
2264
0dea2468
AC
22652004-07-28 Andrew Cagney <cagney@gnu.org>
2266
2267 * PROBLEMS: Mention threads/1650.
2268 * NEWS: Mention the NPTL fix.
2269
b3f42336
AC
22702004-07-28 Andrew Cagney <cagney@gnu.org>
2271
2272 * cli/cli-decode.c (add_setshow_cmd): Delete function.
2273 (add_setshow_cmd_full): Make static.
2274 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
2275 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
2276 * cli/cli-decode.c (add_setshow_filename_cmd)
2277 (add_setshow_string_cmd): New functions.
2278 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
2279 * mips-tdep.c (_initialize_mips_tdep): Update.
2280 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
2281 * cli/cli-logging.c (_initialize_cli_logging): Update.
2282 * complaints.c (_initialize_complaints): Update.
2283 * remote.c (_initialize_remote): Update.
2284
3b64bf98
AC
22852004-07-28 Andrew Cagney <cagney@gnu.org>
2286
2287 * cli/cli-decode.c (add_setshow_zinteger_cmd)
2288 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
2289 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
2290 print parameters. Make string parameters constant.
2291 * command.h: Update. Update copyright.
2292 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
2293 * observer.c (_initialize_observer): Ditto.
2294 * frame.c (_initialize_frame): Ditto.
2295 * complaints.c (_initialize_complaints): Ditto.
2296 * maint.c (_initialize_maint_cmds): Ditto.
2297 * target.c (initialize_targets): Ditto.
2298 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
2299 * infcall.c (_initialize_infcall): Ditto.
2300 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2301 * m32r-rom.c (_initialize_m32r_rom): Ditto.
2302 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2303 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
2304 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2305
e9667a65
AC
23062004-07-28 Andrew Cagney <cagney@gnu.org>
2307
54a5b07d
AC
2308 * gdbtypes.c (lookup_primitive_typename): Delete function.
2309 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
2310 * ada-lex.l: Use language_lookup_primitive_type_by_name.
2311 * gdbtypes.c (lookup_typename): Ditto.
2312 * f-exp.y (yylex): Ditto.
2313 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
2314
e9667a65
AC
2315 * scm-lang.c (c_builtin_types): Delete extern declaration.
2316 (scm_language_defn): Replace
2317 string_char_type and primitive_type_vector with
2318 la_language_arch_info.
2319 * jv-lang.c (java_language_defn): Replace
2320 string_char_type and primitive_type_vector with
2321 la_language_arch_info.
2322 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
2323 c_builtin_types in comment.
2324 * c-lang.h (struct language_arch_info): Declare opaque.
2325 (c_language_arch_info): Declare.
2326 (c_builtin_types): Delete declaration.
2327 * c-lang.c (c_language_arch_info): Set string_char_type to
2328 builtin_char, not builtin_true_char. Make global.
2329 (c_builtin_types): Delete array.
2330 (asm_language_defn, minimal_language_defn): Replace
2331 string_char_type and primitive_type_vector with
2332 la_language_arch_info.
2333
685419e2
AC
23342004-07-28 Andrew Cagney <cagney@gnu.org>
2335
2336 * gdbtypes.h (struct builtin_type): Rename true_char to
2337 builtin_true_char.
2338 * gdbtypes.c (gdbtypes_post_init): Update.
2339 * c-lang.c (arch_info): New function.
2340 (enum c_primitive_types): New enum.
2341 (c_language_defn): Instead of string_char_type and
2342 primitive_type_vector set la_language_arch_info.
2343
5a44ea29
AC
23442004-07-28 Andrew Cagney <cagney@gnu.org>
2345
2346 * language.h (struct language_arch_info): Fix typo
2347 s/primative/primitive/.
2348 * gdbtypes.c (lookup_primitive_typename): Ditto.
2349 * language.c (language_lookup_primitive_type_by_name)
2350 (unknown_language_arch_info): Ditto.
2351
f290d38e
AC
23522004-07-27 Andrew Cagney <cagney@gnu.org>
2353
2354 * defs.h (enum language): Add nr_languages.
2355 * language.h (struct language_arch_info): Define.
2356 (struct language_defn): Add la_language_arch_info.
2357 (language_lookup_primative_type_by_name): Declare.
2358 (language_string_char_type): Declare.
2359 * language.c (_initialize_language, language_gdbarch_post_init)
2360 (struct language_gdbarch, language_gdbarch_data): Implement
2361 per-architecture language information.
2362 (unknown_language_arch_info, language_string_char_type)
2363 (language_lookup_primative_type_by_name): New functions.
2364 (unknown_language_defn, auto_language_defn)
2365 (local_language_defn): Set la_language_arch_info to
2366 unknown_language_arch_info.
2367 (unknown_builtin_types): Delete.
2368 * gdbtypes.c (lookup_primitive_typename): Use
2369 language_lookup_primative_type_by_name.
2370 (create_string_type): Use language_string_char_type.
2371 * values.c (value_from_string): Use language_string_char_type.
2372 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
2373 * p-lang.c (pascal_language_defn): Ditto.
2374 * m2-lang.c (m2_language_defn): Ditto.
2375 * jv-lang.c (java_language_defn): Ditto.
2376 * objc-lang.c (objc_language_defn): Ditto.
2377 * f-lang.c (f_language_defn): Ditto.
2378 * c-lang.c (c_language_defn, cplus_language_defn)
2379 (asm_language_defn, minimal_language_defn): Ditto.
2380
000177f0
AC
23812004-07-27 Andrew Cagney <cagney@gnu.org>
2382
2383 * gdbtypes.h (struct builtin_type): Declare.
2384 (builtin_type): Declare.
2385 * d10v-tdep.c (d10v_register_type): Use builtin_type.
2386 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
2387 (gdbtypes_post_init): New function.
2388 (builtin_type): New function.
2389
e22f895c
KI
23902004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
2391
2392 * remote-m32r-sdi.c: Fix breakpoint bug.
2393 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
2394 recv_char_data, recv_long_data): New functions to replace communication
2395 sequences.
2396
536517dd
MC
23972004-07-26 Michael Chastain <mec.gnu@mindspring.com>
2398
2399 Document PR threads/1650.
2400 * PROBLEMS (Threads): Document problem with many threads
2401
a0a44d18
AC
24022004-07-26 Andrew Cagney <cagney@gnu.org>
2403
2404 * gdb-mi.el: Move from here ...
2405 * mi/gdb-mi.el: ... to here.
2406
7ac4ac06
AC
24072004-07-26 Andrew Cagney <cagney@gnu.org>
2408
2409 Problem reported by Ashley Pittman <ashley@quadrics.com>.
2410 * main.c (captured_main): When in batch mode always detach.
2411
a1b461bf
AC
24122004-07-26 Andrew Cagney <cagney@gnu.org>
2413
2414 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
2415 and h8300 as broken.
2416 * NEWS: END-OF-LIFE frame compatibility module.
2417 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
2418 specific comments.
2419
cb1a6d5f
AC
24202004-07-26 Andrew Cagney <cagney@gnu.org>
2421
2422 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
2423 * xcoffsolib.c (_initialize_xcoffsolib): Update.
2424 * wince.c (_initialize_wince): Update.
2425 * win32-nat.c (_initialize_win32_nat): Update.
2426 * varobj.c (_initialize_varobj): Update.
2427 * valops.c (_initialize_valops): Update.
2428 * utils.c (initialize_utils, initialize_utils): Update.
2429 * tui/tui-win.c (_initialize_tui_win): Update.
2430 * top.c (init_main): Update.
2431 * symfile.c (_initialize_symfile): Update.
2432 * source.c (_initialize_source): Update.
2433 * somsolib.c (_initialize_som_solib): Update.
2434 * solib.c (_initialize_solib): Update.
2435 * solib-frv.c (_initialize_frv_solib): Update.
2436 * serial.c (_initialize_serial): Update.
2437 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
2438 * remote.c (_initialize_remote, _initialize_remote): Update.
2439 * remote-vx.c (_initialize_vx): Update.
2440 * remote-utils.c (_initialize_sr_support): Update.
2441 * remote-sds.c (_initialize_remote_sds): Update.
2442 * remote-mips.c (_initialize_remote_mips): Update.
2443 * remote-e7000.c (_initialize_remote_e7000): Update.
2444 * proc-api.c (_initialize_proc_api): Update.
2445 * printcmd.c: Update.
2446 * parse.c (_initialize_parse): Update.
2447 * pa64solib.c (_initialize_pa64_solib): Update.
2448 * p-valprint.c (_initialize_pascal_valprint): Update.
2449 * monitor.c (_initialize_remote_monitors): Update.
2450 * mips-tdep.c (_initialize_mips_tdep): Update.
2451 * mcore-tdep.c (_initialize_mcore_tdep): Update.
2452 * maint.c (_initialize_maint_cmds): Update.
2453 * lin-lwp.c (_initialize_lin_lwp): Update.
2454 * language.c (_initialize_language): Update.
2455 * kod.c (_initialize_kod): Update.
2456 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
2457 * i386-tdep.c (_initialize_i386_tdep): Update.
2458 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
2459 * gdbarch.sh: Update.
2460 * gdbarch.c: Re-generate.
2461 * gdb-events.sh: Update.
2462 * gdb-events.c: Re-generate.
2463 * frame.c (_initialize_frame): Update.
2464 * exec.c: Update.
2465 * demangle.c (_initialize_demangler): Update.
2466 * dcache.c (_initialize_dcache): Update.
2467 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
2468 * cp-valprint.c (_initialize_cp_valprint): Update.
2469 * corefile.c (_initialize_core): Update.
2470 * command.h: Update.
2471 * cli/cli-decode.h: Update.
2472 * cli/cli-cmds.c (init_cli_cmds): Update.
2473 * charset.c (_initialize_charset): Update.
2474 * breakpoint.c (_initialize_breakpoint): Update.
2475 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
2476 * alpha-tdep.c (_initialize_alpha_tdep): Update.
2477 * aix-thread.c (_initialize_aix_thread): Update.
2478
b4632131
MK
24792004-07-24 Mark Kettenis <kettenis@gnu.org>
2480
2481 Partial fix for PR backtrace/1718.
2482 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
2483 that GCC migrates into the prolugue. Don't handle any
2484 instructions that clobber %ebx.
2485
822c9732
AC
24862004-07-23 Andrew Cagney <cagney@gnu.org>
2487
2488 Use regcache_raw_collect instead of regcache_collect.
2489 * regcache.h (regcache_collect): Delete declaration.
2490 * regcache.c (regcache_colect): Delete function.
2491 * win32-nat.c (do_child_store_inferior_registers): Update.
2492 * sol-thread.c (sol_thread_store_registers): Update.
2493 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
2494 * rs6000-nat.c (store_register): Update.
2495 * remote.c (store_register_using_P, remote_store_registers): Update.
2496 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
2497 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
2498 (fill_vrregset, store_spe_registers, fill_gregset)
2499 (fill_gregset): Update.
2500 * nto-procfs.c (procfs_store_registers): Update.
2501 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
2502 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
2503 * m68klinux-nat.c (store_register, fill_gregset): Update.
2504 * m68k-tdep.c (fill_gregset): Update.
2505 * infptrace.c (store_register): Update.
2506 * i386-nto-tdep.c (i386nto_regset_fill): Update.
2507 * i386-linux-nat.c (store_register, fill_gregset): Update.
2508 * hppa-linux-nat.c (fill_gregset): Update.
2509 * go32-nat.c (store_register): Update.
2510 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
2511 (store_fp_regs): Update.
2512 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
2513 (store_nwfpe_extended, store_fpregister, store_fpregs)
2514 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
2515 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
2516 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
2517 (store_regs_user_thread, store_regs_kernel_thread): Update.
2518
32b05c07
MK
25192004-07-24 Mark Kettenis <kettenis@gnu.org>
2520
2521 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
2522 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
2523 encoding.
2524 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
2525 member of `struct comp_unit'.
2526
8567c30f
AC
25272004-07-23 Andrew Cagney <cagney@gnu.org>
2528
2529 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
2530 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
2531
f6da8dd8
MH
25322004-07-23 Martin Hunt <hunt@redhat.com>
2533 Kevin Buettner <kevinb@redhat.com>
2534
2535 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
2536 alignment was being added to the offset instead of multiplied.
2537
bd921882
MK
25382004-07-23 Mark Kettenis <kettenis@gnu.org>
2539
24f033e8
MK
2540 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
2541 changed signal trampoline in OpenBSD 3.5-current.
2542
90f3cecd
MK
2543 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
2544 <machine/pcb.h> and "bsd-kvm.h".
2545 (sparc64nbsd_supply_pcb): New function.
2546 (_initialize_sparc64nbsd_nat): Renamed from
2547 _initialize_sparcnbsd_nat. Enable libkvm interface.
2548 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
2549 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
2550 (LOADLIBES): New variable.
2551
a4954a62
MK
2552 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
2553
bd921882
MK
2554 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
2555
23a6d369
AC
25562004-07-21 Andrew Cagney <cagney@gnu.org>
2557
2558 Use regcache_raw_supply instead of supply_register.
2559 * regcache.h (supply_register): Delete declaration.
2560 * regcache.c (supply_register): Delete function.
2561 * wince.c (do_child_fetch_inferior_registers): Update.
2562 * win32-nat.c (do_child_fetch_inferior_registers)
2563 (fetch_elf_core_registers): Update.
2564 * v850ice.c (v850ice_fetch_registers): Update.
2565 * thread-db.c (thread_db_store_registers): Update.
2566 * sol-thread.c (sol_thread_store_registers): Update.
2567 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
2568 * rs6000-nat.c (fetch_register): Update.
2569 * rom68k-rom.c (rom68k_supply_one_register): Update.
2570 * remote.c (remote_wait, remote_async_wait): Update.
2571 * remote-st.c (get_hex_regs): Update.
2572 * remote-sim.c (gdbsim_fetch_register): Update.
2573 * remote-sds.c (sds_fetch_registers): Update.
2574 * remote-rdp.c (remote_rdp_fetch_register): Update.
2575 * remote-rdi.c (arm_rdi_fetch_registers): Update.
2576 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
2577 * remote-m32r-sdi.c (m32r_fetch_register): Update.
2578 * remote-hms.c (init_hms_cmds): Update.
2579 * remote-est.c (init_est_cmds): Update.
2580 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
2581 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
2582 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
2583 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
2584 (fetch_register, supply_vrregset, supply_vrregset)
2585 (fetch_spe_registers): Update.
2586 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
2587 * monitor.c (monitor_supply_register): Update.
2588 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
2589 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
2590 (mipsnbsd_supply_fpreg): Update.
2591 * mips-nat.c (fetch_inferior_registers)
2592 (fetch_core_registers): Update.
2593 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
2594 (supply_fpregset, mips64_supply_gregset)
2595 (mips64_supply_fpregset): Update.
2596 * m68klinux-nat.c (fetch_register, supply_gregset)
2597 (supply_fpregset): Update.
2598 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
2599 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
2600 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
2601 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
2602 * infptrace.c (fetch_register): Update.
2603 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
2604 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
2605 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
2606 (gnu_fetch_registers, gnu_store_registers): Update.
2607 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
2608 * i386-linux-nat.c (fetch_register, supply_gregset)
2609 (dummy_sse_values): Update.
2610 * hpux-thread.c (hpux_thread_fetch_registers): Update.
2611 * hppah-nat.c (fetch_register): Update.
2612 * hppa-linux-nat.c (fetch_register, supply_gregset)
2613 (supply_fpregset): Update.
2614 * go32-nat.c (fetch_register): Update.
2615 * dve3900-rom.c (fetch_bitmapped_register)
2616 (_initialize_r3900_rom): Update.
2617 * cris-tdep.c (supply_gregset): Update.
2618 * abug-rom.c (init_abug_cmds): Update.
2619 * core-aout.c (fetch_core_registers): Update.
2620 * armnbsd-nat.c (supply_gregset, supply_fparegset)
2621 (fetch_register, fetch_fp_register): Update.
2622 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
2623 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
2624 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
2625 * alphanbsd-tdep.c (fetch_core_registers): Update.
2626 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
2627 * alpha-nat.c (fetch_osf_core_registers)
2628 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
2629 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
2630 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
2631
73cc75f3
AC
26322004-07-21 Andrew Cagney <cagney@gnu.org>
2633
2634 * PROBLEMS: Mention breakpoints/1702.
2635 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
2636 that is known to work.
2637
a53c66de
AC
26382004-07-21 Andrew Cagney <cagney@gnu.org>
2639
2640 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
2641 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
2642 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
2643 (handle_inferior_event): Wrap call to deprecated
2644 IGNORE_HELPER_CALL in #ifdef.
2645 * config/mips/tm-nbsd.h: Update.
2646
708ff411
JB
26472004-07-20 Jim Blandy <jimb@redhat.com>
2648
412b3060
JB
2649 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
2650 bfd_mach_ppc has no segment registers.
2651
13ac140c
JB
2652 Include PowerPC SPR numbers for special-purpose registers.
2653 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
2654 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
2655 new member in initializer.
2656 (S, S4, SN4, S64): New macros for defining special-purpose
2657 registers.
2658 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
2659 registers_403, registers_403GC, registers_505, registers_860,
2660 registers_601, registers_602, registers_603, registers_604,
2661 registers_750, registers_e500): Use them.
2662
708ff411
JB
2663 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
2664 replace references with expression used to initialize variable.
2665
1f602b35
AC
26662004-07-20 Andrew Cagney <cagney@gnu.org>
2667
2668 * breakpoint.c (deprecated_read_memory_nobpt): Rename
2669 read_memory_nobpt.
2670 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
2671 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
2672 (s390_sigtramp_frame_sniffer): Update.
2673 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
2674 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
2675 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
2676 (mips32_fetch_instruction): Update.
2677 * mcore-tdep.c (get_insn): Update.
2678 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
2679 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
2680 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
2681 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2682 (i386_linux_rt_sigtramp_start): Update.
2683 * i386-linux-nat.c (child_resume): Update.
2684 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
2685 * hppa-linux-tdep.c (insns_match_pattern): Update.
2686 * gdbcore.h: Update.
2687 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
2688 * frame.c (safe_frame_unwind_memory): Update.
2689 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
2690 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
2691 * alpha-tdep.c (alpha_read_insn): Update.
2692
2cd8546d
AC
26932004-07-20 Andrew Cagney <cagney@gnu.org>
2694
2695 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
2696 containing both bytes and mask. Add "frame_type".
2697 * tramp-frame.c (tramp_frame_start): Update.
2698 (tramp_frame_prepend_unwinder): Update.
2699 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2700 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2701 (mips_linux_n64_rt_sigframe): Update. Make "static const".
2702 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
2703
f928dd62
EZ
27042004-07-19 Eli Zaretskii <eliz@gnu.org>
2705
2706 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
2707 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
2708 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
2709 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
2710
d5c560f7
AC
27112004-07-17 Andrew Cagney <cagney@gnu.org>
2712
860660cb
AC
2713 * NEWS, PROBLEMS: Update for 6.2.
2714
8c266f54
AC
2715 * README: Update to 6.2.
2716
a552edd9
AC
2717 * utils.c (xvasprintf): Call xstrvprintf.
2718
c4a172b5
AC
2719 * parse.c: Update copyright.
2720 (null_post_parser): Eliminate ARGSUSED.
2721
da745b36
AC
2722 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
2723 * tui/tui-win.c (tui_get_cmd_list): Ditto.
2724 * symfile-mem.c (_initialize_symfile_mem): Ditto.
2725
9cbc6ef0
AC
2726 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
2727 * ppc-linux-nat.c: Use "Linux kernel".
2728 * hppa-linux-tdep.c: Use GNU/Linux.
2729 * hppa-linux-nat.c: Use GNU/Linux.
2730 * dwarfread.c: Add [sic] to use of Linux.
2731
1b89295f
AC
2732 * hppa-linux-nat.c: Do not include <string.h>.
2733 (supply_fpregset): Remove "register" attribute.
2734
d5c560f7
AC
2735 * solib-frv.c (fetch_loadmap): Use xfree, not free.
2736
7ddd7709
MK
27372004-07-17 Mark Kettenis <kettenis@gnu.org>
2738
b1d19a62
MK
2739 * configure.in: Define _MSE_INT_H on Solaris 9 too.
2740 * configure, config.in: Regenerated.
2741
7ddd7709
MK
2742 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
2743 "bsd-kvm.h".
2744 (vaxbsd_supply_pcb): New function.
2745 (_initialize_vaxbsd_nat): New prototype and function.
2746 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
2747 solib-sunos.o.
2748 (LOADLIBES): New variable.
2749 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2750 (LOADLIBES): New variable.
2751 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2752 (LOADLIBES): New variable.
2753 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2754
2c07db7a
AC
27552004-07-16 Andrew Cagney <cagney@gnu.org>
2756
2757 * defs.h (event_loop_p): Replace variable declaration with macro,
2758 always 1.
2759 * main.c (captured_main): Delete options "-async" and "-noasync".
2760 (event_loop_p): Delete variable.
2761 * NEWS: Mention that "-async" and "-noasync" were removed.
2762
717eb1cf
AC
27632004-07-16 Andrew Cagney <cagney@gnu.org>
2764
2765 * remote-m32r-sdi.c: Re-indent.
2766
c101bc14
JB
27672004-07-16 Jim Blandy <jimb@redhat.com>
2768
5109a438
JB
2769 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
2770 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
2771 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
2772 missing MPC823 SPRs.
2773 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
2774 incorrect. (This was corrected in GDB's register name tables on
2775 2004-07-14.)
2776
c101bc14
JB
2777 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
2778 should be "esasrr" ("ESA Save and Restore Register").
2779
7ce450bd
AC
27802004-07-16 Andrew Cagney <cagney@gnu.org>
2781
2782 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
2783 calls, no longer applicable. Update comments and rename parameter
2784 "step_frame" to "return_frame".
2785
ca73dd9d
AC
27862004-07-16 Andrew Cagney <cagney@gnu.org>
2787
2788 * frame.c (fprint_field): New function.
2789 (fprint_frame_id): Use fprint_field.
2790
31941f6d
JB
27912004-07-15 Joel Brobecker <brobecker@gnat.com>
2792
2793 * ada-lang.c (ada_language_defn): Remove commented out code.
2794
f86a7158
JB
27952004-07-15 Jim Blandy <jimb@redhat.com>
2796
2797 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
2798 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
2799
c24791ec
JB
28002004-07-14 Jim Blandy <jimb@redhat.com>
2801
29bb1356
JB
2802 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
2803
cc98b5cc
JB
2804 * ppc-tdep.h (ppc_num_vrs): New enum constant.
2805
8f088af7
JB
2806 * ppc-tdep.h (ppc_num_srs): New enum constant.
2807
0ea0ec5f
JB
2808 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
2809 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
2810 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
2811 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
2812 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
2813 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
2814 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
2815 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
2816 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
2817 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
2818 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
2819 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
2820 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
2821 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
2822 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
2823 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
2824 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
2825 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
2826 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
2827 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
2828 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
2829 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
2830 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
2831 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
2832 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
2833 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
2834 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
2835 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
2836 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
2837 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
2838 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
2839 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
2840 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
2841 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
2842 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
2843 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
2844 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
2845 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
2846 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
2847 special-purpose register numbers.
2848
c24791ec
JB
2849 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
2850 manual mentions 'md_twb', but many mention 'm_twb', and at that
2851 point in the register list.)
2852
d833db3b
AC
28532004-07-14 Andrew Cagney <cagney@gnu.org>
2854
2855 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
2856 instead of "internal-error".
2857
080228b2
JB
28582004-07-10 Joel Brobecker <brobecker@gnat.com>
2859
2860 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
2861 that was inserted inside a comment.
2862
c268433a
RC
28632004-07-10 Randolph Chung <tausq@debian.org>
2864
2865 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
2866 function.
2867 (hppa_hpux_push_dummy_code): New function.
2868 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
2869 Set find_global_pointer method.
2870
71009278
MK
28712004-07-10 Mark Kettenis <kettenis@gnu.org>
2872
2873 * NEWS: Mention BSD libkvm interface.
2874
b2fa5097
MS
28752004-07-10 Michael Snyder <msnyder@redhat.com>
2876
2877 * symfile.c (generic_load): Comment typo.
2878 * stack.c (get_selected_block): Ditto.
2879 * regcache.c (regcache_cooked_read): Ditto.
2880 * monitor.c (monitor_debug): Ditto.
2881 * mips-tdep.c (mips_read_pc): Ditto.
2882 * i386-linux-nat.c (ps_get_thread_area): Ditto.
2883 * gdb_mbuild.sh: Ditto.
2884 * gdbarch.sh: Ditto.
2885 * gdbarch.h: Ditto.
2886
c3e5cd34
PH
28872004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
2888
8a2225b2
PH
2889 * ada-tasks.c: Remove file.
2890
c3e5cd34
PH
2891 Remove ARI problems:
2892
2893 * ada-exp.y (write_var_from_sym): Reformat to put operator at
2894 beginning of line.
2895
2896 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
2897 Add comment.
2898 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
2899 (MIN_OF_SIZE): Rename min_of_size. Add comment.
2900 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
2901 (UMIN_OF_SIZE): Remove.
2902 (max_of_type): New function to replace orphan macro in gdbtypes.h
2903 (min_of_type): Ditto.
2904 (discrete_type_high_bound): Use max_of_type.
2905 (discrete_type_low_bound): Use min_of_type.
2906 (possible_user_operator_p): Move operator to beginning of line.
2907 (ada_is_variant_part): Ditto.
2908 (ensure_lval): Rewrite to avoid deprecated operations.
2909 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
2910 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
2911 (ada_enum_name): Remove assignments in 'if' statements.
2912 (build_ada_types): Add gdbarch parameter.
2913 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
2914 with gdbarch_data_register_post_init.
2915 Use add_setshow_uinteger_cmd rather than add_set_cmd and
2916 add_show_from_set.
2917
2918 * ada-valprint.c (inspect_it): Remove declaration.
2919 (repeat_count_threshold): Remove declaration.
2920 (ada_print_floating): Remove assignments in 'if' statements.
2921 (print_str): Move operator to beginning of line.
2922
61ce229a
JB
29232004-07-08 Jim Blandy <jimb@redhat.com>
2924
2925 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
2926
09bcec80
BR
29272004-07-08 Bob Rossi <bob@brasko.net>
2928
2929 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
2930
31c27f77
JJ
29312004-07-06 Jeff Johnston <jjohnstn@redhat.com>
2932
2933 * language.h (struct_language_defn): Add new function pointer:
2934 la_class_name_from_physname. Also add new prototype for
2935 language_class_name_from_physname.
2936 * language.c (language_class_name_from_physname): New function.
2937 (unk_lang_class_name): Ditto.
2938 (unknown_language_defn, auto_language_defn): Change
2939 to add unk_lang_class_name function pointer for
2940 la_class_name_from_physname.
2941 (local_language_defn): Ditto.
2942 * dwarf2read.c (guess_structure_name): Change to call
2943 language_class_name_from_physname.
2944 (determine_class_name): Ditto.
2945 * cp-support.c (class_name_from_physname): Renamed.
2946 (cp_class_name_from_physname): New name of function.
2947 * cp-support.h: Ditto.
2948 * c-lang.c (c_language_defn): Change to add NULL
2949 for class_name_from_physname function pointer.
2950 (cplus_language_defn): Change to add cp_class_name_from_physname.
2951 * jv-lang.c (java_class_name_physname): New function.
2952 (java_find_last_component): New static routine.
2953 (java_language_defn): Add java_class_name_from_physname pointer.
2954 * ada-lang.c (ada_language_defn): Change to add NULL
2955 for class_name_from_physname function pointer.
2956 * f-lang.c (f_language_defn): Ditto.
2957 * m2-lang.c (m2_language_defn): Ditto.
2958 * objc-lang.c (objc_language_defn): Ditto.
2959 * p-lang.c (pascal_language_defn): Ditto.
2960 * scm-lang.c (scm_language_defn): Ditto.
2961
ee28ca0f
AC
29622004-07-06 Andrew Cagney <cagney@gnu.org>
2963
2964 Patch from Bart Robinson.
2965 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
2966 (O_LARGEFILE): Define to 0, if not defined.
2967
fdb1bf9d
MK
29682004-07-03 Mark Kettenis <kettenis@gnu.org>
2969
cb162ff6
MK
2970 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
2971 <machine/pcb.h> and "bsd-kvm.h".
2972 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
2973 (m68kbsd_supply_pcb): New function.
2974 (_initialize_m68kbsd_nat): New prototype and function.
2975 * Makefile.in (m68kbsd-nat.o): Update dependencies.
2976 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2977 (LOADLIBES): New variable.
2978 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2979 (LOADLIBES): New variable.
2980
fdb1bf9d
MK
2981 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
2982
963c4174
MK
29832004-07-03 Mark Kettenis <kettenis@gnu.org>
2984
2985 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
2986 <sys/proc.h>.
2987 (bsd_kvm_cmdlist): New variable.
2988 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
2989 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
2990 command and "kvm proc" command.
2991 * Makefile.in (bsd-kvm.o): Update dependencies.
2992
533f1d8f
MK
29932004-07-02 Mark Kettenis <kettenis@gnu.org>
2994
2995 * osabi.c: Update copyright year.
2996 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
2997 notes if EI_OSABI is set to ELFOSABI_HPUX.
2998
6780dcde
MS
29992004-07-01 Michael Snyder <msnyder@redhat.com>
3000
3001 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3002 that seems to have gotten whacked out of line.
3003
67bebe79
MK
30042004-07-01 Mark Kettenis <kettenis@gnu.org>
3005
3006 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3007 code.
3008
0b5d8877
PH
30092004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3010
3011 * ada-lang.c (decode_packed_array): Minor change to comment.
3012 (ada_value_slice_ptr): New function.
3013 (ada_value_slice): New function.
3014 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
3015 test. Don't know why it is there.
3016 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
3017 to avoid dereferencing huge arrays from which one is slicing.
3018 (empty_array): Correct to return an array rather than
3019 a subrange value.
3020 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
3021 on empty arrays (let'em use 'FIRST instead).
3022
19c1ef65
PH
30232004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3024
3025 Address complaints from gdb_ari.sh:
3026
3027 * ada-exp.y: Include gdb_string.h rather than string.h.
3028 (convert_char_literal): Reformat declaration.
3029 * ada-lang.h: Include opaque struct declaration for struct frame_info.
3030 * ada-lex.l: Change use of free to xfree (the macro would do so
3031 anyway, but this is harmless).
3032 Include gdb_string.h rather than string.h.
3033 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
3034
3035 * ada-lang.c (parse): Remove K&Rism in parameter list.
3036 (is_name_suffix): Correct Linux => GNU/Linux in comment.
3037
d81cbc94
MK
30382004-06-30 Mark Kettenis <kettenis@gnu.org>
3039
3040 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3041 dead code.
3042
07681759
MK
30432004-06-30 Mark Kettenis <kettenis@gnu.org>
3044
3045 * alphabsd-nat.c: Update copyright year.
3046 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3047
f7948b5f
JB
30482004-06-29 Joel Brobecker <brobecker@gnat.com>
3049
6e0cdd28 3050 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
3051 (i386_cygwin_in_solib_call_trampoline): New function.
3052 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3053 and skip_trampoline_code gdbarch methods.
3054
8f113c9a
JB
30552004-06-29 Jim Blandy <jimb@redhat.com>
3056
3057 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3058 name actually used in the dependency lists.
3059
97dc871c
RC
30602004-06-29 Randolph Chung <tausq@debian.org>
3061
3062 * NEWS (New native configurations): Mention GNU/Linux/hppa.
3063
47216e51
CV
30642004-06-29 Corinna Vinschen <vinschen@redhat.com>
3065
3066 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 3067 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
3068 functionality.
3069
e623b504
AC
30702004-06-28 Andrew Cagney <cagney@gnu.org>
3071
3072 * defs.h (xstrvprintf): Declare.
3073 * utils.c (xstrvprintf): New function.
3074 (internal_vproblem, xstrprintf, xasprintf)
3075 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3076 * serial.c (serial_printf): Ditto.
3077 * complaints.c (vcomplaint): Ditto.
3078
79acc9b3
CV
30792004-06-29 Corinna Vinschen <vinschen@redhat.com>
3080
3081 * infcmd.c (attach_command): Move call to target_terminal_inferior
3082 behind loading symbol table.
3083
1daf35d9
AC
30842004-06-28 Andrew Cagney <cagney@gnu.org>
3085
3086 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3087 change - add back extern deprecated_ui_loop_hook declaration.
3088
b435e160
AC
30892004-06-28 Andrew Cagney <cagney@gnu.org>
3090
3091 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3092 xstrprintf.
3093 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3094 (c_value_of_variable): Ditto.
3095 * utils.c (internal_vproblem): Ditto.
3096 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3097 * remote.c (add_packet_config_cmd): Ditto.
3098 * remote-rdp.c (rdp_set_command_line): Ditto.
3099 * regcache.c (regcache_dump): Ditto.
3100 * frv-tdep.c (new_variant, new_variant): Ditto.
3101 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3102 (fbsd_find_memory_regions): Ditto.
3103 * breakpoint.c (create_thread_event_breakpoint)
3104 (create_breakpoints): Ditto.
3105 * aix-thread.c (aix_thread_pid_to_str): Ditto.
3106 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
3107
06d5cf63
JB
31082004-06-28 Joel Brobecker <brobecker@gnat.com>
3109
3110 * ada-lang.c: Re-indent file, with some massaging to help indent
3111 a bit when the result is otherwise really too ugly.
3112
35809fad
UW
31132004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3114
3115 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
3116 code_addr_p and special_addr_p to 'unsigned int'.
3117
40e20472
MK
31182004-06-27 Mark Kettenis <kettenis@gnu.org>
3119
3120 * i386v4-nat.c: Update copyright year and tweak comment.
3121 (regmap): Remove trailing comma.
3122 (supply_gregset): Rename local variable i to regnum. Call
3123 regcache_raw_supply instead of supply_register.
3124 (fill_gregset): Rename argument regno to regnum. Call
3125 regcache_raw_collect instead of regcache_collect.
3126
12b0b6de
UW
31272004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3128
3129 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3130 and special_addr_p.
3131 (frame_id_build, frame_id_build_special): Update comments.
3132 (frame_id_build_wild): New prototype.
3133 * frame.c (frame_id_build, frame_id_build_special): Fill in new
3134 struct frame_id fields.
3135 (frame_id_build_wild): New function.
3136 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3137
47b42a3e
MK
31382004-06-27 Mark Kettenis <kettenis@gnu.org>
3139
3140 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
3141 hppabsd-tdep.c.
3142
1265e4aa
JB
31432004-06-27 Joel Brobecker <brobecker@gnat.com>
3144
3145 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
3146
76a01679
JB
31472004-06-27 Joel Brobecker <brobecker@gnat.com>
3148
3149 * ada-lang.c: Re-indent file.
3150
7aca490a
JB
31512004-06-27 Joel Brobecker <brobecker@gnat.com>
3152
3153 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
3154 (no_symtab_msg): Likewise.
3155
5e987968
AS
31562004-06-27 Andreas Schwab <schwab@suse.de>
3157
3158 * source.c: Fix whitespace.
3159
315c4276
MK
31602004-06-27 Mark Kettenis <kettenis@gnu.org>
3161
d15be926
MK
3162 * configure.in: Include <sys/param.h> for td_pcb test.
3163 * configure: Regenerated.
3164
9062529b
MK
3165 * i386nbsd-nat.c: New file.
3166 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
3167 i386obsd-nat.c and i386obsd-tdep.c.
3168 (i386nbsd-nat.o): New dependency.
3169 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
3170 bsd-kvm.o.
3171 (LOADLIBES): New variable.
3172 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
3173 bsd-kvm.o.
3174 (LOADLIBES): New variable.
3175
8010310e
MK
3176 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
3177 (LOADLIBES): New variable.
3178
efe1d7b9
MK
3179 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
3180 fetching from BSD_KVM_PADDR. Correctly lookup address for
3181 "_thread0".
3182
315c4276
MK
3183 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
3184 "bsd-kvm.h".
3185 (amd64fbsd_supply_pcb): New funcion.
3186 (_initialize_amd64fbsd_nat): Enable libkvm interface.
3187
399cfac6
DL
31882004-06-27 <david@streamline-computing.com>
3189
3190 Partial fix for PR cli/1056.
3191 * valarith.c: Check for zero in division and remainder
3192 evaluation.
3193
6235f9c8
MK
31942004-06-27 Mark Kettenis <kettenis@gnu.org>
3195
3196 * i387-tdep.c: Remove excessive whitespace.
3197
2726dafc
AC
31982004-06-26 Andrew Cagney <cagney@gnu.org>
3199
3200 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
3201 * gdb-events.h, gdb-events.c: Re-generate.
3202 * tui/tui-hooks.c (tui_install_hooks): Update.
3203 (tui_remove_hooks): Update.
3204 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
3205
0e56aeaf
MK
32062004-06-26 Mark Kettenis <kettenis@gnu.org>
3207
cb461069
MK
3208 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
3209 (gregset_t, fpregset_t): Remove typedefs.
3210 (REG_OFFSET): Rename argument.
3211 (amd64bsd_r_reg_offset): Rename from reg_offset.
3212 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3213 Remove functions.
3214 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
3215 of reg_offset.
3216 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
3217
ecba89de
MK
3218 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
3219
4cd80476
MK
3220 * vax-tdep.c: Tweak comment.
3221
0e56aeaf
MK
3222 Add OpenBSD/hppa support.
3223 * NEWS (New native configurations): Mention OpenBSD/hppa.
3224 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
3225 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
3226 files.
3227 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3228 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
3229 * configure.host: Add hppa*-*-openbsd*.
3230 * configure.tgt: Add hppa*-*-openbsd*.
3231
98bbd631
AC
32322004-06-25 Andrew Cagney <cagney@gnu.org>
3233
3234 * defs.h (deprecated_ui_loop_hook): Deprecated.
3235 * wince.c (child_wait): Update.
3236 * win32-nat.c (child_wait): Update.
3237 * v850ice.c (v850ice_wait): Update.
3238 * top.c (deprecated_ui_loop_hook): Update.
3239 * serial.h: Update.
3240 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
3241 (do_unix_readchar): Update.
3242 * ser-tcp.c (net_open): Update.
3243 * remote-sim.c (gdb_os_poll_quit): Update.
3244 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
3245
769d7dc4
AC
32462004-06-24 Andrew Cagney <cagney@gnu.org>
3247
3248 * defs.h (deprecated_pre_add_symbol_hook)
3249 (deprecated_post_add_symbol_hook): Deprecated.
3250 * symfile.c (symbol_file_add_with_addrs_or_offsets)
3251 (symbol_file_add_with_addrs_or_offsets): Update references.
3252
11c949aa
AC
32532004-06-24 Andrew Cagney <cagney@gnu.org>
3254
3255 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
3256 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
3257 * wince.c (ui_loop_hook): Delete extern declaration.
3258 * win32-nat.c (ui_loop_hook): Delete extern declaration..
3259 * v850ice.c (ui_loop_hook): Delete extern declaration..
3260 * ser-unix.c (ui_loop_hook): Delete extern declaration..
3261 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
3262 * remote-sim.c (ui_loop_hook): Delete extern declaration..
3263 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
3264 ui_loop_hook declaration.
3265
eedc19af
AC
32662004-06-24 Andrew Cagney <cagney@gnu.org>
3267
3268 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
3269 entry_func_highpc fields.
3270 * objfiles.c (init_entry_point_info): Do not clear
3271 entry_func_lowpc and entry_func_highpc.
3272 (objfile_relocate): Do not relocate entry_func_lowpc and
3273 entry_func_highpc.
3274 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
3275 entry_func_highpc.
3276 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
3277 entry_func_highpc.
3278 * blockframe.c (legacy_frame_chain_valid): Replace tests against
3279 entry_func_lowpc and entry_func_highpc with call to
3280 inside_entry_func.
3281
d47079be
MK
32822004-06-24 Mark Kettenis <kettenis@gnu.org>
3283
3284 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
3285 quad-precision floating point arguments in registers.
3286
2107e348
MK
32872004-06-24 Mark Kettenis <kettenis@gnu.org>
3288
3289 From Michael Mueller <m.mueller99@kay-mueller.de>:
3290 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
3291 account.
3292
46587c42
JJ
32932004-06-22 Jeff Johnston <jjohnstn@redhat.com>
3294
3295 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
3296 to -1.
3297 * breakpoint.c (bpstat_stop_status): Move check for ignoring
3298 untriggered watchpoints to a separate if clause. Update function
3299 comment regarding STOPPED_BY_WATCHPOINT argument.
3300
226f5cf4
JB
33012004-06-22 Jim Blandy <jimb@redhat.com>
3302
3303 * gdbarch.sh: Doc fix.
3304
f10683bb
MH
33052004-06-21 Martin Hunt <hunt@redhat.com>
3306 Kevin Buettner <kevinb@redhat.com>
3307
3308 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
3309 * mips-tdep.h (MIPS_SP_REGNUM): Define.
3310 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
3311 to set_gdbarch_sp_regnum(). Use cooked register number.
3312 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
3313
412d5987
AC
33142004-06-21 Andrew Cagney <cagney@gnu.org>
3315
3316 * gdbarch.sh: When the macro field is empty, do not generate a
3317 macro definition. When the macro field is "=", generate the macro
3318 name from the upper-case function name.
3319 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
3320 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
3321 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
3322 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
3323 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
3324 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
3325 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
3326 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
3327 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
3328 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
3329 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
3330 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
3331 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
3332 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
3333 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
3334 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
3335 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
3336 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
3337 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
3338 (DEPRECATED_USE_STRUCT_CONVENTION)
3339 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3340 (DEPRECATED_FRAME_INIT_SAVED_REGS)
3341 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
3342 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
3343 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
3344 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
3345 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
3346 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
3347 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
3348 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
3349 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
3350 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
3351 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
3352 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
3353 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
3354 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
3355 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
3356 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
3357
68908a3e
AC
33582004-06-21 Andrew Cagney <cagney@gnu.org>
3359
48f7351b
AC
3360 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
3361 macro name, and the function rather than macro value. Only wrap
3362 macro print statements in #ifdef. Move format logic to where it
3363 is needed.
3364 * gdbarch.c: Re-generate.
3365
283354d8
AC
3366 * gdbarch.sh (read): Delete "print_p" and "description", add
3367 "garbage_at_eol". Check for non-empty garbage at end-of-line.
3368 Delete references to print_p.
3369 (TARGET_ARCHITECTURE): Delete print predicate.
3370 * gdbarch.c: Re-generate.
3371
68908a3e
AC
3372 * gdbarch.sh: Check that multi-arch methods do not provide a
3373 macro.
3374 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
3375 (print_registers_info, print_float_info, print_vector_info)
3376 (adjust_breakpoint_address, remote_translate_xfer_address)
3377 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
3378 (address_class_type_flags_to_name, unwind_sp): Remove the macro
3379 name from the multi-arch definition.
3380
a2428dbe
AC
33812004-06-20 Andrew Cagney <cagney@gnu.org>
3382
3383 * gdbarch.sh: Sort by the function, instead of macro name.
3384 * gdbarch.c: Re-generate.
3385
750eb019
AC
33862004-06-20 Andrew Cagney <cagney@gnu.org>
3387
66d659b1
AC
3388 * gdbarch.sh: Use the function, instead of macro name in
3389 errors and the log file.
3390 (return_value): Remove stray ":" in spec.
3391
750eb019
AC
3392 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
3393 * gdbarch.h, gdbarch.c: Re-generate.
3394 * Makefile.in (arch-utils.o): Update dependencies.
3395 * values.c (using_struct_return): Move code calling
3396 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
3397 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
3398 to legacy_return_value, simplify.
3399 * infcmd.c (print_return_value): Move code calling
3400 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
3401 to legacy_return_value, simplify.
3402 * infcall.c (call_function_by_hand): Move code calling
3403 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
3404 * arch-utils.c: Update copyright. Include "gdbcore.h".
3405 (legacy_return_value): New function.
3406 * arch-utils.h: Update copyright.
3407 (legacy_return_value): Declare.
3408
b5622e8d
AC
34092004-06-20 Andrew Cagney <cagney@gnu.org>
3410
3411 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
3412 * gdbarch.h, gdbarch.c: Re-generate.
3413 * values.c (using_struct_return): Update call.
3414 * mcore-tdep.c: Update comment.
3415 * infcall.c (call_function_by_hand): Update comment.
3416 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3417 * arch-utils.h (always_use_struct_convention): Update.
3418 * v850-tdep.c (v850_gdbarch_init): Update.
3419 * sh64-tdep.c (sh64_gdbarch_init): Update.
3420 * sh-tdep.c (sh_gdbarch_init): Update.
3421 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3422 * mips-tdep.c (mips_gdbarch_init): Update.
3423 * mcore-tdep.c (mcore_gdbarch_init): Update.
3424 * m32r-tdep.c (m32r_gdbarch_init): Update.
3425 * ia64-tdep.c (ia64_gdbarch_init): Update.
3426 * h8300-tdep.c (h8300_gdbarch_init): Update.
3427 * frv-tdep.c (frv_gdbarch_init): Update.
3428 * cris-tdep.c (cris_gdbarch_init): Update.
3429 * arm-tdep.c (arm_gdbarch_init): Update.
3430 * alpha-tdep.c (alpha_gdbarch_init): Update.
3431
5191de37
MC
34322004-06-18 Michael Chastain <mec.gnu@mindspring.com>
3433
3434 * PROBLEMS: Add more specific information, and a work-around,
3435 for PR gdb/1458.
3436
782263ab
AC
34372004-06-18 Andrew Cagney <cagney@gnu.org>
3438
3439 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
3440 * gdbarch.h, gdbarch.c: Re-generate.
3441 * ada-lang.c (ada_finish_decode_line_1): Update.
3442 * infrun.c (handle_inferior_event): Update.
3443 * infcall.c (find_function_addr): Update.
3444 * linespec.c (minsym_found): Update.
3445 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
3446 Update.
3447 * blockframe.c (legacy_frameless_look_for_prologue): Update.
3448 * cli/cli-cmds.c (disassemble_command): Update.
3449 * vax-tdep.c (vax_gdbarch_init): Update.
3450
2f305df1
MK
34512004-06-18 Mark Kettenis <kettenis@gnu.org>
3452
3453 * i386-tdep.c (i386_collect_fpregset): Fix comment.
3454
e5fe55f7
AC
34552004-06-17 Andrew Cagney <cagney@gnu.org>
3456
3457 GDB 6.1.1 released from the GDB 6.1 branch.
3458 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
3459 * PROBLEMS: Ditto.
3460
473b7be6
DJ
34612004-06-16 Daniel Jacobowitz <dan@debian.org>
3462
3463 PR gdb/1658
3464 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
3465 operation as a uleb128. Found by Michael Coulter.
3466
96d887e8
PH
34672004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
3468
3469 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
3470 make it non-static.
3471 * ada-lang.h (task_control_block): declaration moved from ada-task.c
3472 to ada-lang.h; this is needed to be able to implement the kill command
3473 in multi-task mode.
3474 (task_ptid): Ditto.
3475 (task_entry): Ditto.
3476 (task_list): Ditto.
3477 (ada_build_task_list): Ditto.
3478
3479 * ada-lang.c: Conditionalize routines and data structures related
3480 to breakpoints, exceptions, completion, and symbol caching on
3481 GNAT_GDB, since these are not yet used in the submitted public sources.
3482 (ada_main_name): Editorial: Move definition out of exception-related
3483 code.
3484
31eef181
AC
34852004-06-15 Andrew Cagney <cagney@gnu.org>
3486
3487 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
3488 deprecated_pc_in_call_dummy.
3489
2c500098
AM
34902004-06-15 Alan Modra <amodra@bigpond.net.au>
3491
3492 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
3493 bfd_get_section_size_before_reloc or _raw_size.
3494 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3495 * dwarf2read.c (dwarf2_locate_sections): Likewise.
3496 (dwarf2_read_section): Likewise.
3497 * elfread.c (elf_locate_sections): Likewise.
3498 * gcore.c (derive_heap_segment): Likewise.
3499 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
3500 * remote-e7000.c (e7000_load): Likewise.
3501 * remote-m32r-sdi.c (m32r_load): Likewise.
3502 * remote-mips.c (mips_load_srec): Likewise.
3503 (pmon_load_fast): Likewise.
3504 * remote.c (compare_sections_command): Likewise.
3505 * symfile.c (add_section_size_callback): Likewise.
3506 (load_section_callback): Likewise.
3507 (pc_in_unmapped_range): Likewise.
3508 (pc_in_mapped_range): Likewise.
3509 (sections_overlap): Likewise.
3510 (list_overlays_command): Likewise.
3511 (simple_overlay_update_1): Likewise.
3512 (simple_overlay_update): Likewise.
3513 * tracepoint.c (remote_set_transparent_ranges): Likewise.
3514 * win32-nat.c (core_section_load_dll_symbols): Likewise.
3515
90f943f1
RC
35162004-06-14 Randolph Chung <tausq@debian.org>
3517
3518 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
3519 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
3520 static.
3521 (hppa_hpux_inferior_created): New function.
3522 (hppa_hpux_init_abi): Register observer.
3523 * symfile.c (hp_cxx_exception_support_initialized)
3524 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
3525 (symbol_file_add_main_1, symbol_file_clear): Likewise.
3526
700c15aa
RC
35272004-06-14 Randolph Chung <tausq@debian.org>
3528
3973a7d3
AC
3529 * MAINTAINERS (Write After Approval): Alphabetize my entry
3530 correctly.
700c15aa 3531
cea4838c
AC
35322004-06-14 Andrew Cagney <cagney@gnu.org>
3533
3534 * MAINTAINERS (testsuite): List Michael Chastain as the lead
3535 testsuite maintainer.
3536
97092415
AC
35372004-06-13 Andrew Cagney <cagney@gnu.org>
3538
e8c3165b
AC
3539 * infcmd.c (print_return_value): Fix logic, allow
3540 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
3541
bceabdd8
AC
3542 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
3543 defining any macros.
3544 * gdbarch.h: Re-generate.
3545
57010b1c
AC
3546 * gdbarch.sh: Delete "level" attribute. Only check for a macro
3547 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
3548 * gdbarch.h: Re-generate.
3549
bc87dfa0
AC
3550 * values.c (generic_use_struct_convention): Don't check gcc_p.
3551
15ac804d
AC
3552 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3553 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
3554 * gdbarch.h, gdbarch.c: Regenerate.
3555 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
3556 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
3557 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3558 deprecated_max_register_raw_size and
3559 deprecated_max_register_virtual_size.
3560 * v850-tdep.c (v850_gdbarch_init): Ditto.
3561 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3562 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3563 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3564 * cris-tdep.c (cris_gdbarch_init): Ditto.
3565
97092415
AC
3566 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
3567 * gdbarch.h, gdbarch.c: Re-generate.
3568 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
3569 (m68hc11_use_struct_convention): Delete function.
3570 (m68hc11_extract_struct_value_address): Delete function.
3571 (m68hc11_return_value): New function.
3572 (m68hc11_gdbarch_init): Instead of store_return_value,
3573 extract_return_value, return_value_on_stack,
3574 deprecated_extract_struct_value_address and use_struct_convention,
3575 set return_value.
3576 * values.c (using_struct_return): Do not call
3577 RETURN_VALUE_ON_STACK.
3578 * arch-utils.h (generic_return_value_on_stack_not): Delete
3579 declaration.
3580 * arch-utils.c (generic_return_value_on_stack_not): Delete
3581 function.
3582
44e5158b
AC
35832004-06-12 Andrew Cagney <cagney@gnu.org>
3584
3585 * values.c (register_value_being_returned): Delete function.
3586 * infcmd.c (legacy_return_value): Delete function.
3587 * infcall.c (call_function_by_hand): Inline
3588 "register_value_being_returned", simplify.
3589 * values.c (using_struct_return): Update comment, refer to
3590 print_return_value instead of register_value_being_returned.
3591 * infcmd.c (print_return_value): Inline calls to
3592 register_value_being_returned and legacy_return_value. Simplify.
3593
b887c273
RC
35942004-06-11 Randolph Chung <tausq@debian.org>
3595
3596 * somread.c (som_symtab_read): Exclude gcc local symbols.
3597
1b2bfbb9
RC
35982004-06-11 Randolph Chung <tausq@debian.org>
3599
3973a7d3
AC
3600 * infrun.c (handle_inferior_event): Handle the case when a
3601 trampoline ends up in the runtime resolver, and if the trampoline
3602 has no name. Rearrange the code so that all the trampoline
3603 processing happens before other step-out-of-range handling.
1b2bfbb9 3604
a9d61c86
MH
36052004-06-11 Martin Hunt <hunt@redhat.com>
3606
3607 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
3608 has no fpu.
3609
2c87cf5a
AC
36102004-06-10 Andrew Cagney <cagney@gnu.org>
3611
3612 * blockframe.c (legacy_inside_entry_func): Delete.
3613 (legacy_frame_chain_valid): Inline call to
3614 legacy_inside_entry_func, simplify.
3615
0b67b468 36162004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
3617
3618 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
3619 * dwarf2read.c (partial_die_info): Add dirname field.
3620 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
3621 (read_partial_die): Save away DW_AT_comp_dir.
3622 * defs.h (symtab_to_filename): Removed.
3623 * source.c (find_and_open_source): Added.
57c22c6c 3624 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
3625 (symtab_to_filename): Removed.
3626 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
3627 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
3628 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
3629 symtab_to_filename.
3630 * symtab.h (partial_symtab): Add dirname field.
3631 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
3632 (mi_cmd_file_list_exec_source_file): Call new function
3633 symtab_to_fullname to find fullname.
57c22c6c 3634 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 3635 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
3636 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
3637
9a1dd1ad
AC
36382004-06-10 Andrew Cagney <cagney@gnu.org>
3639
239ae8c7
AC
3640 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
3641 to generic_use_struct_convention, the default value.
3642
fc720350
AC
3643 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
3644 of abort.
3645
9a1dd1ad
AC
3646 * ns32k-tdep.c (ns32k_push_arguments): New function.
3647 (ns32k_gdbarch_init): Set deprecated_push_arguments.
3648 * infcall.c (call_function_by_hand): Call error instead of
3649 legacy_push_arguments.
3650 * value.h (legacy_push_arguments): Delete declaration.
3651 * valops.c (legacy_push_arguments): Delete function.
3652 (value_push): Delete function.
3653
fea25152
BF
36542004-06-10 Brian Ford <ford@vss.fsi.com>
3655
3656 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
3657 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
3658 info.
3659 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
3660
30a4a8e0
AC
36612004-06-10 Andrew Cagney <cagney@gnu.org>
3662
3663 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
3664 * gdbarch.h, gdbarch.c: Re-generate.
3665 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
3666 parameters.
3667 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
3668 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
3669 deprecated_pc_in_call_dummy instead of
3670 DEPRECATED_PC_IN_CALL_DUMMY.
3671 (arm_skip_prologue): Ditto.
3672 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
3673 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
3674 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
3675 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
3676 Ditto.
3677 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
3678 (sh64_init_extra_frame_info, sh64_get_saved_register)
3679 (sh64_pop_frame): Ditto.
3680 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
3681 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
3682 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
3683 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
3684 (h8300_pop_frame): Ditto.
3685 * blockframe.c (legacy_inside_entry_func)
3686 (legacy_frame_chain_valid): Ditto.
3687 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
3688 to deprecated_pc_in_call_dummy.
3689
81cfbe54
AC
36902004-06-09 Andrew Cagney <cagney@gnu.org>
3691
a1f4a1b6
AC
3692 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
3693 provide a default value.
3694 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
3695 * gdbarch.h, gdbarch.c: Re-generate.
3696 * arch-utils.c (generic_convert_register_p): Rename
3697 legacy_convert_register_p
3698 (legacy_register_to_value, legacy_value_to_register): Delete
3699 functions.
3700 * arch-utils.h (generic_convert_register_p): Rename
3701 legacy_convert_register_p.
3702 (legacy_register_to_value, legacy_value_to_register): Delete
3703 declarations.
3704
9730f241
AC
3705 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
3706 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
3707 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
3708 * gdbarch.h, gdbarch.c: Re-generate.
3709 * infcmd.c (default_print_registers_info): Simplify.
3710 * findvar.c (value_of_register): Simplify.
3711 * mi/mi-main.c (get_register): Simplify.
3712 * arch-utils.c (legacy_convert_register_p): Always return 0.
3713 (legacy_register_to_value, legacy_value_to_register): Always call
3714 internal_error.
3715
8a1bf479
AC
3716 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
3717 #ifdef CLEAR_INSN_CACHE code.
3718 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
3719 Delete #ifdef CLEAR_DEFERRED_STORES code.
3720
4b38d6f1
AC
3721 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
3722
2d62ecc7
AC
3723 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
3724 copyright.
3725 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
3726
be4f7469
AC
3727 * config/mips/mipsv4.mh: Delete file.
3728
81cfbe54
AC
3729 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
3730 unreferenced macro.
3731 (hpread_adjust_stack_address): Delete declaration.
3732
d966f0cb
AC
37332004-06-08 Andrew Cagney <cagney@gnu.org>
3734
3735 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3736 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
3737 PTRACE_ATTACH / PTRACE_DETACH available call error.
3738 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
3739 * infttrace.c (update_thread_state_after_attach, attach, detach):
3740 Remove #ifdef wrappers.
3741 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
3742 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3743 * config/nm-bsd.h (ATTACH_DETACH): Delete.
3744 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
3745 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
3746 * config/nm-linux.h (ATTACH_DETACH): Delete.
3747 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
3748 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
3749 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
3750 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
3751 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
3752
d91670b9
CV
37532004-06-08 Corinna Vinschen <vinschen@redhat.com>
3754
3755 * configure.in: Set $configdir to the right OS specific value.
3756 Use value when setting $tcldir and $tkdir.
3757 * configure: Regenerate.
3758
28ba0b33
PB
37592004-06-06 Paul Brook <paul@codesourcery.com>
3760
3761 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
3762 records.
3763
f26caa11
PH
37642004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
3765
3766 * ada-lang.c (lookup_symbol_in_language): New function to allow
3767 re-use of another language's symbol lookup code. (Placed here
3768 temporarily while Ada support is being integrated into the public
3769 tree).
3770 (restore_language): New auxiliary function for
3771 lookup_symbol_in_language.
3772 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
3773 temporarily while Ada support is being integrated into the public
3774 tree).
3775
d560a54b
AO
37762004-06-08 Alexandre Oliva <aoliva@redhat.com>
3777
e75d110c
AO
3778 * Makefile.in (check//%): New.
3779
d560a54b
AO
3780 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
3781 (mn10300_store_return_value): Rewrite.
3782 (mn10300_type_align): New.
3783 (mn10300_use_struct_convention): Rewrite.
3784 (mn10300_return_value): New, using all of the above.
3785 (mn10300_pop_frame_regular): Add saved_regs_size.
3786 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
3787
a72fbdb7
AO
3788 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
3789 regs if PC is on movm.
3790
01904826
JB
37912004-06-07 Jim Blandy <jimb@redhat.com>
3792
3793 Add native Linux support for the PowerPC E500.
3794 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
3795 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
3796 all architectures except the E500.
3797 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
3798 #definitions.
3799 (struct gdb_evrregset_t): New type.
3800 (have_ptrace_getsetevrregs): New variable.
3801 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
3802 fetch_spe_registers): New functions.
3803 (fetch_register): Call fetch_spe_register as appropriate.
3804 Assert that we're only passed raw register numbers.
3805 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
3806 Don't fetch gprs if they're pseudoregisters.
3807 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
3808 store_spe_registers): New functions.
3809 (store_register): Call store_spe_register as appropriate.
3810 Assert that we're only passed raw register numbers.
3811 (store_ppc_registers): Call store_spe_registers as appropriate.
3812 Don't store gprs if they're pseudoregisters.
3813
f90ef764
JJ
38142004-06-07 Jeff Johnston <jjohnstn@redhat.com>
3815
3816 * thread-db.c (thread_get_info_callback): Fill in the thread_info
3817 struct if one exists, even if we are dealing with a zombie thread.
3818
45b75230
AC
38192004-06-07 Andrew Cagney <cagney@gnu.org>
3820
3821 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
3822 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
3823 Rename PC_REQUIRES_RUN_BEFORE_USE.
3824 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
3825 #ifdef.
3826
1658da49
RC
38272004-06-07 Randolph Chung <tausq@debian.org>
3828
3829 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
3830 unwinding after sp has been saved to the stack but before the end
3831 of the prologue, and after the fp has been modified but before it has
3832 been saved to the stack.
3833 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
3834 Remove superfluous definitions.
3835 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
3836
9a727a3c
RC
38372004-06-07 Guy Martin <gmsoft@gentoo.org>
3838
3839 Committed by Randolph Chung.
3840 * hppa-linux-nat.c: Include the correct version of the header file
3841 depending on the kernel version.
3842
9e500012
RC
38432004-06-06 Randolph Chung <tausq@debian.org>
3844
3845 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
3846 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
3847
3388d7ff
RC
38482004-06-06 Randolph Chung <tausq@debian.org>
3849
3850 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3851 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
3852 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
3853 * hppa-tdep.c (hppa_symbol_address): New function definition.
3854 * hppa-tdep.h (hppa_symbol_address): New function declaration.
3855
d49771ef
RC
38562004-06-06 Randolph Chung <tausq@debian.org>
3857
3858 * hppa-tdep.h (struct value): Forward declaration.
3859 (gdbarch_tdep): Define tdep find_global_pointer method.
3860 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
3861 associated with the function we are trying to call, and write it
3862 to the gp register.
3863 (hppa32_convert_from_funct_ptr_addr): New function.
3864 (hppa_find_global_pointer): New function.
3865 (hppa_gdbarch_init): Set default find_global_pointer method; set
3866 convert_from_func_ptr_addr method.
3867 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
3868 (hppa_linux_init_abi): Set find_global_pointer method.
3869 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
3870
7d9b040b
RC
38712004-06-06 Randolph Chung <tausq@debian.org>
3872
3873 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
3874 to struct value *function.
3875 * gdbarch.c: Regenerate.
3876 * gdbarch.h: Likewise.
3877 * infcall.c (call_function_by_hand): Pass entire function value
3878 to push_dummy_call.
3879
3880 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
3881 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
3882 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
3883 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
3884 * arm-tdep.c (arm_push_dummy_call): Likewise.
3885 * avr-tdep.c (avr_push_dummy_call): Likewise.
3886 * cris-tdep.c (cris_push_dummy_call): Likewise.
3887 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
3888 * frv-tdep.c (frv_push_dummy_call): Likewise.
3889 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3890 * hppa-tdep.c (hppa32_push_dummy_call)
3891 (hppa64_push_dummy_call): Likewise.
3892 * i386-tdep.c (i386_push_dummy_call): Likewise.
3893 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
3894 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
3895 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
3896 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
3897 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
3898 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3899 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
3900 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3901 (ppc64_sysv_abi_push_dummy_call): Likewise.
3902 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
3903 (ppc64_sysv_abi_push_dummy_call): Likewise.
3904 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3905 * s390-tdep.c (s390_push_dummy_call): Likewise.
3906 * sh-tdep.c (sh_push_dummy_call_fpu)
3907 (sh_push_dummy_call_nofpu): Likewise.
3908 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
3909 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
3910 * vax-tdep.c (vax_push_dummy_call): Likewise.
3911
4a19ea35
JB
39122004-06-04 Jim Blandy <jimb@redhat.com>
3913
8327ccee
JB
3914 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
3915 gdbarch argument to register_size.
3916
a3c001ce
JB
3917 * rs6000-tdep.c (rs6000_store_return_value): Use
3918 regcache_cooked_write_part instead of
3919 deprecated_write_register_bytes.
3920 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
3921 not gdbarch_deprecated_store_return_value.
3922
4a19ea35
JB
3923 * ppc-linux-nat.c (store_register, fetch_register): Remove
3924 incorrect assertions. Simplify and generalize handling of
3925 transfers whose sizes are not multiples of, or less than, sizeof
3926 (PTRACE_XFER_TYPE).
3927
b9b5d7ea
JJ
39282004-06-04 Jeff Johnston <jjohnstn@redhat.com>
3929
3930 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
3931 as a new thread event.
720c7d64 3932 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 3933 zombie, return TD_THR_ZOMBIE.
720c7d64 3934 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
3935 TD_THR_ZOMBIE, check if the thread is still on the thread list
3936 and return a -1 ptid if not found.
3937 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
3938 change the status to TARGET_WAITKIND_SPURIOUS.
3939
c8a3b559
CV
39402004-06-03 Corinna Vinschen <vinschen@redhat.com>
3941
3942 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
3943 double values in little endian mode.
3944
20605361
AC
39452004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
3946
3947 Committed by Andrew Cagney.
3948 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
3949 after last enum constant to avoid error from IBM C
3950 compiler.
3951
bc97b3ba
JB
39522004-06-02 Jim Blandy <jimb@redhat.com>
3953
3954 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
3955 to 'message', and make it local to the lone block that uses it.
3956
1da28ab0
JB
3957 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
3958
4c4b4cd2
PH
39592004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
3960
8a2225b2
PH
3961 * ada-exp.y: Update copyright notice.
3962 Include block.h.
3963
3964 Replace REGNAME, LAST, INTERNAL_VARIABLE with
3965 SPECIAL_VARIABLE and unify the treatment of these cases.
3966
3967 (write_attribute_call0): Remove.
3968 (write_attribute_call1): Remove.
3969 (write_attribute_calln): Remove.
3970 (save_qualifier): Add missing semicolon.
3971
3972 (simple_exp,exp): Decomment (i.e., reactivate) code that was
3973 temporarily disabled to allow compilation with FSF head version.
3974
3975 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
3976 use individual operators (OP_*) for all attributes.
3977 (exp syntax): Use write_int.
3978 Handle STRING literals with OP_STRING.
3979 (variable syntax): Add limit parameter to calls to
3980 write_object_renaming.
3981
3982 (temp_parse_space): New definition to hold entities that need
3983 only live until the next call to ada_parse.
3984 (string_to_operator): Rename fields of ada_opname_table entries.
3985
3986 (write_var_from_sym): Record block.
3987 (write_var_from_name): Minor reformatting.
3988 Make sure saved name is properly encoded in the case of multiple
3989 matches, and set its language to Ada.
3990 Update comment.
3991 Modify to indicate unresolved name as symbol in the UNRESOLVED
3992 namespace, allocated in temp_parse_space.
3993 (write_int): New function.
3994
3995 (write_object_renaming): Add max_depth parameter to limit
3996 chains of object renamings.
3997 Handle case where root of renaming expression is itself a renaming.
3998 Use temp_parse_space for temporary name buffer.
3999 Handle renamings to dereferenced pointers (___XEXA suffices).
4000
4001 (ada_parse, yyerror, string_to_operator,
4002 write_var_from_sym, write_var_from_name, write_attribute_call0,
4003 write_attribute_call1, write_attribute_calln,
4004 write_object_renaming): Protoize.
4005
4006 (_initialize_ada_exp): New function.
4007
4008 * ada-lang.c: Update copyright notice.
4009 General terminology change to conform to GNAT compiler usage:
4010 mangle => encode, demangle => decode
4011 Include gdb_obstack.h.
4012 Include gdb_regex.h
4013 Include frame.h
4014 Include hashtab.h
4015 Include completer.h
4016 Include gdb_stat.h
4017 Include block.h
4018 Include infcall.h
4019
4020 (ADA_RETAIN_DOTS): Make sure this is defined.
4021 (TRUNCATION_TOWARDS_ZERO): Define.
4022 (struct string_vector): Define.
4023 (unresolved_names): Remove definition.
4024 (xnew_string_vector): New function.
4025 (string_vector_append): New function.
4026 (extract_string): Make static.
4027 (ada_unqualified_name): New function.
4028 (add_angle_brackets): New function.
4029 (function_name_from_pc): New function.
4030 (place_on_stack): Rename to ensure_lval.
4031
4032 (ensure_lval): Renamed from place_on_stack.
4033 Make identity on lvals.
4034 Update comment.
4035 (is_nonfunction): New interface.
4036 Only symbols in LOC_CONST class can be enumerals.
4037 (fill_in_ada_prototype): Remove; now independent of language.
4038 (add_defn_to_vec): Add obstack and symtab arguments.
4039 Use obstack to hold collected definitions.
4040 (num_defns_collected): New function.
4041 (defns_collected): New function.
4042 (ada_resolve_subexp): Rename to resolve_subexp.
4043 (resolve_subexp): Renamed from ada_resolve_subexp.
4044 (ada_op_name): Return non-const result.
4045 (ada_decoded_op_name): Renamed from ada_op_name, now used for
4046 other purposes.
4047
4048 (to_fixed_array_type): Add declaration.
4049 (coerce_unspec_val_to_type): Remove offset parameter.
4050 (find_sal_from_funcs_and_line): New interface.
4051 (find_line_in_linetable): Ditto.
4052
4053 (all_sals_for_line): Rename to ada_sals_for_line and make
4054 global.
4055 Add new parameter. When set, do not ask the user to choose the
4056 instance, but use the first one found instead.
4057 Use given line number in returned sals.
4058 Fix comment.
4059 Skip the prologue if funfirstline is set.
4060 Correct for memory leak when 0 lines found.
4061
4062 (value_pos_atr): Use pos_atr.
4063 (pos_atr): New function.
4064 (standard_lookup): Add block parameter.
4065
4066 (makeTimeStart): Remove declaration and uses.
4067 (makeTimeStop): Remove declaration and uses.
4068
4069 (ada_completer_word_break_characters): Allow for VMS.
4070 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4071 (raise_sym_name): New constant.
4072 (raise_unhandled_sym_name): New constant.
4073 (raise_assert_sym_name): New constant.
4074 (process_raise_exception_name): New constant.
4075 (longest_exception_template): New constant.
4076 (warning_limit): New variable to limit warnings during expression
4077 evaluation.
4078 (warnings_issued): New variable to keep track of warnings issued.
4079 (known_runtime_file_name_patterns): New constant.
4080 (known_auxiliary_function_name_patterns): New constant.
4081 (symbol_list_obstack): New variable.
4082
4083 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4084 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4085 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4086 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
4087 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
4088 ada_variant_discrim_name, field_alignment, dynamic_template_type,
4089 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
4090 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
4091 and strcmp.
4092
4093 (ada_get_field_index): New function.
4094 (lim_warning): New function.
4095 (ada_translate_error_message): New function.
4096 (MAX_OF_SIZE): New function.
4097 (MIN_OF_SIZE): New function.
4098 (UMAX_OF_SIZE): New function.
4099 (UMIN_OF_SIZE): New function.
4100 (discrete_type_high_bound): New function.
4101 (discrete_type_low_bound): New function.
4102 (base_type): New function.
4103 (do_command): Remove.
4104
4105 (ada_update_initial_language): Use language_ada, not language_unknown.
4106 (ada_encode): Renamed from ada_mangle.
4107 Obey ADA_RETAIN_DOTS.
4108 (ada_decode): Renamed from ada_demangle.
4109 Update coding conventions.
4110 (decoded_names_store): New hash table.
4111 (ada_decode_symbol): New function.
4112 (ada_la_decode): New function.
4113
4114 (modify_general_field): Correct computations of offset and bit
4115 position.
4116 (desc_base_type): Handle ref types, too.
4117 (ada_is_direct_array_type): New function.
4118
4119 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4120 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4121 (ada_is_bogus_array_descriptor,ada_type_of_array,
4122 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4123 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
4124 ada_is_array_descriptor_type.
4125
4126 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4127 (ada_is_packed_array_type): Handle pointers or
4128 references to packed arrays as well.
4129 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4130 (decode_packed_array_type): Search for the packed array type
4131 symbol in the currently selected block and associated
4132 superblocks too.
4133 Use lookup_symbol again.
4134
4135 (decode_packed_array): Handle pointers and references.
4136 Update call to coerce_unspec_val_to_type.
4137 (decode_packed_array_type,value_subscript_packed): Limit warnings.
4138 (ada_value_primitive_packed_val): Improve comment.
4139
4140 (ada_index_type): Substitute int type for "undefined".
4141 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
4142 ada_array_langth, ada_is_string_type): Use renamed
4143 ada_is_simple_array_type.
4144 (empty_array): New function.
4145
4146 (ada_resolve): Rename to resolve.
4147 (resolve): Make static.
4148 Call renamed resolve_subexp.
4149 Update comment.
4150 (ada_resolve_subexp): Rename to resolve_subexp.
4151 (resolve_subexp): Update comment.
4152 Decomment disabled code.
4153 Add LOC_COMPUTED* cases.
4154 Modify to use temporary struct symbols (marked as being in
4155 UNDEF_NAMESPACE) to indicate unresolved names, instead of
4156 OP_UNRESOLVED_VALUE.
4157 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
4158 Add OP_STRING case.
4159 Remove OP_ARRAY.
4160 Use SYMBOL_PRINT_NAME instead of ada_demangle.
4161 Use new ada_lookup_symbol_list interface.
4162 Use new ada_resolve_function interface.
4163 Remove OP_TYPE case.
4164
4165 (ada_args_match): Idiot proof against null actuals.
4166 Use intermediate variables to clarify.
4167 (ada_resolve_function): Update comment and interface.
4168 (mangled_ordered_before): Rename to encoded_ordered_before and
4169 update comment.
4170 (sort_choices): Update comment and interface.
4171 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
4172 (user_select_syms): New interface.
4173 Use new sort_choices interface.
4174 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
4175 (possible_user_operator_p): Idiot-proof against null values.
4176 (ada_simple_renamed_entity): Don't make cleanup; rely on
4177 caller to free result string.
4178 Remove const from return type.
4179 (make_array_descriptor): Rename uses of place_on_stack to
4180 ensure_lval.
4181 Make sure that arrays are on stack.
4182
4183 (HASH_SIZE): Define.
4184 (struct cache_entry): Define.
4185 (cache_space): Define.
4186 (cache): Define.
4187 (clear_ada_sym_cache): New function.
4188 (find_entry): New function.
4189 (lookup_cached_symbol): New function.
4190 (defn_vector_size): Define.
4191 (cache_symbol): New function.
4192 (defn_symbols): Remove.
4193
4194 (standard_lookup): Use lookup_symbol_in_language to get effect of
4195 C lookup.
4196 Cache results.
4197
4198 (symbol_completion_match): New function.
4199 (symbol_completion_add): New function.
4200 (ada_make_symbol_completion_list): New function.
4201
4202 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
4203 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
4204 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4205 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
4206
4207 (ada_lookup_simple_minsym): New function.
4208 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
4209
4210 (add_symbols_from_enclosing_procs): New interface.
4211 Conditionalize more helpfully.
4212 Don't bother if program isn't running.
4213 Use new interface to get_frame_block.
4214 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
4215
4216 (remove_extra_symbols): New interface.
4217 (xget_renaming_scope): New function.
4218 (is_package_name): New function.
4219 (renaming_is_visible): New function.
4220 (remove_out_of_scope_renamings): New function.
4221
4222 (ada_lookup_symbol_list): New interface.
4223 Properly reinitialize the symbol list obstack.
4224 Don't call add_symbols_from_enclosing_procs if we start from a
4225 static or global block.
4226 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
4227 add_symbols_from_enclosing_procs.
4228 Add symtab data to cached entries.
4229 Handle symbols prefixed with
4230 "standard__" specially; strip prefix and don't look in local symbols.
4231 Do not include out of scope renaming symbols in list of
4232 symbols returned.
4233 Add const to block parameter.
4234 Move check for non-local, non-global symbols earlier.
4235 Remove timing stuff.
4236 (ada_lookup_symbol): New interface.
4237 Find symtab as well.
4238 (ada_lookup_symbol_nonlocal): New function.
4239
4240 (is_name_suffix): Enhance suffix detection to recognize
4241 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
4242 (is_dot_digits_suffix): New function.
4243 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
4244
4245 (ada_add_block_symbols): New interface. Use obstack to return results
4246 in a vector of struct ada_symbol_infos. Add symtab argument.
4247 Use new interface to add_defn_to_vec.
4248 Remove calls to fill_in_ada_prototype.
4249 Use BLOCK_BUCKETS, BLOCK_BUCKET.
4250
4251 (ada_finish_decode_line_1): Add const qualification to local to fix
4252 warning.
4253 Start looking in static block for functions to avoid attempts
4254 to search frame chain for up-level variables.
4255 Adapt to new ada_sals_for_line interface.
4256 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
4257 Handle quoting of the function name inside the spec string.
4258 Skip prologue when funfirstline is set and update the
4259 function documentation to that effect.
4260
4261 (debug_print_lines, debug_print_block, debug_print_blocks,
4262 debug_print_symtab): Remove.
4263
4264 (ada_main_name): New function.
4265 (ada_exception_breakpoint_type): New function.
4266 (is_known_support_routine): New function.
4267 (ada_find_printable_frame): Renamed from find_printable_frame and made
4268 global.
4269 Remove level parameter.
4270 Use new interface to select_frame.
4271
4272 (begin_command): Remove.
4273 (ada_adjust_exception_stop): New function.
4274 (ada_print_exception_stop): New function.
4275 (exception_name_from_cond): New function.
4276 (ada_report_exception_break): Replace disabled code with
4277 conditionalization on GNAT_GDB.
4278 Get the exception name from the condition string.
4279 Remove and move functionality into new functions
4280 ada_print_exception_breakpoint_task and
4281 ada_print_exception_breakpoint_nontask.
4282 (error_breakpoint_runtime_sym_not_found): New function.
4283 (is_runtime_sym_defined): New function.
4284 (ada_breakpoint_rewrite): Uncomment suppressed code.
4285 Use symbolic error-message and runtime-symbol names.
4286 Surround runtime symbol names in quotes.
4287 Allow non-specific breakpoints on exceptions and assertions before
4288 program starts.
4289
4290 (ada_is_tagged_type): Add parameter.
4291 (ada_is_tag_type): New function.
4292 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
4293 (ada_variant_discrim_type): Ditto.
4294 (value_tag_from_contents_and_address): New function.
4295 (type_from_tag): New function.
4296 (struct tag_args): New structure used to communicate with
4297 ada_tag_name_1.
4298 (ada_tag_name_1): New function.
4299 (ada_tag_name): New function.
4300
4301 (ada_scan_number): Update comment.
4302 (find_struct_field): New function.
4303 (ada_search_struct_field): Make static.
4304 (ada_value_struct_elt): New version that returns references when
4305 given pointers or references to structs.
4306 (ada_lookup_struct_elt_type): Add 'refok' parameter.
4307 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
4308 interface.
4309 (ada_value_ind): Use new ada_to_fixed_value interface.
4310 (ada_coerce_ref): Ditto.
4311 (field_offset): Remove.
4312
4313 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
4314 (ada_find_renaming_symbol): New function.
4315 (ada_prefer_type): Prefer named types over unnamed ones.
4316 (variant_field_index): New function.
4317 (contains_variant_part): Removed: subsumed by variant_field_index.
4318 (ada_template_to_fixed_record_type): New function, mostly from
4319 template_to_fixed_record_type.
4320 (template_to_fixed_record_type):
4321 Do not scan the type fields beyond the last one; prevents a
4322 potential SEGV.
4323 Handle case where variant field is listed BEFORE discriminant it
4324 depends on.
4325 Fix calculation of record length when bit length is
4326 not evenly divisible by char length.
4327 Move code to ada_template_to_fixed_record_type and call it.
4328
4329 (template_to_static_fixed_type): Revise comment.
4330 Modify to work on ordinary record types as well as templates,
4331 so as to handle fields that use ___XVE or ___XVU encodings.
4332 (to_record_with_fixed_variant_part): Fill out comment.
4333 Initialize C++ stuff in right type.
4334 Allow case where DVAL is null.
4335 Handle case where variant field is not last.
4336 Fix typo concerning record length.
4337 (to_fixed_record_type): Decomment disabled code.
4338 (to_fixed_record_type): Use variant_field_index instead of
4339 contains_variant_part.
4340 (to_fixed_variant_branch_type): Ditto.
4341 (to_fixed_array_type): Decomment disabled code.
4342 (ada_to_fixed_type): Convert tagged types to the specific type.
4343 Deactivate the size-check for array types in order to avoid
4344 some false size alarms.
4345 (to_static_fixed_type): Decomment disabled code.
4346 Modify to call template_to_static_fixed_type
4347 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
4348 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
4349 Remove valaddr argument, as it is never really used.
4350 (ada_to_fixed_value): Change interface to act on single struct value*
4351 operand.
4352 (adjust_pc_past_prologue): New function.
4353 (ada_attribute_name): Modify to take enum exp_opcode argument.
4354
4355 (ada_enum_name): Recognize new homonym-distinguishing convention.
4356 Adjust local variable's type to remove compiler warning.
4357 Fix a small problem in the part that unqualifies the enumeration name.
4358 (ada_value_binop): New function.
4359 (ada_value_equal): New function.
4360
4361 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
4362 Don't give error message when not doing normal evaluation
4363 and a tagged type doesn't seem to contain a structure member.
4364 Give error message for packed arrays.
4365 For indexing arrays, handle pointers to packed arrays correctly.
4366 Handle case of 'first and 'last attributes of bare integral type
4367 without encoded subtype info.
4368 Remove some unnecessary casts.
4369 Fix uninitialized value of type in computing 'first, 'last, or 'length
4370 of array object.
4371 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
4372 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
4373 calls.
4374 Attributes are now exp_opcode values.
4375 Correct treatment of 'modulus.
4376 Better error message for taking 'length of wrong kind of type;
4377 improve comment.
4378 Change EVAL_NORMAL to noside for consistency.
4379 Use ada_value_binop for DIV, MOD, REM.
4380 Make special case out of array of length 0, since an argument
4381 of 0 upsets some platforms' malloc.
4382 Use OP_STRING instead of OP_ARRAY.
4383 For slice, add check that we have an array type before extracting
4384 a slice out of it. Avoids a SEGV.
4385 When evaluating an array slice, if the array type is a reference to
4386 an aligner type, then replace the aligner type by the actual type.
4387 Decomment disabled code.
4388 Remove some dead code.
4389 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
4390 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
4391 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
4392 and UNOP_MBR to UNOP_IN_RANGE.
4393 If an array type has a parallel ___XVE type, then use it.
4394 Turn arrays into pointers for lvalue arrays.
4395 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
4396 bounds error and handle 0-length slices.
4397 Use lim_warning.
4398 When selecting fields, apply ada_to_fixed_value (because the fields
4399 might have ___XVU or ___XVE encodings even if not dynamic.)
4400 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
4401 (ada_is_system_address_type): New function.
4402
4403 (get_var_value): Use new interface to ada_lookup_symbol_list.
4404 (get_int_var_value): New interface.
4405 (to_fixed_range_type): Allow unknown bound, with warning.
4406 (ada_is_modular_type): Decomment disabled code.
4407 (ADA_OPERATORS): New definition.
4408 (ada_operator_length): New function.
4409 (ada_expr_op_name): New function.
4410 (ada_forward_operator_length): New function.
4411 (ada_dump_subexp_body): New function.
4412 (ada_print_subexp): New function.
4413 (ada_exp_descriptor): New constant.
4414 (ada_op_print_tab): Add 'size. Remove FIXMEs.
4415 (ada_language_defn): Add ada_exp_descriptor entry.
4416 Change ada_parse => parse.
4417 Add post-parser entry.
4418 Use ada-specific non-local symbol lookup.
4419 Don't use C-style arrays.
4420 String lower-bound is 1.
4421 Decomment disabled code.
4422 (parse): New function.
4423 New fields ada_translate_error_message, ada_lookup_symbol,
4424 ada_lookup_minimal_symbol.
4425
4426 * ada-lang.h: Update copyright dates.
4427 Replace the mangle/demangle terminology throughout by the
4428 more appropriate encode/decode one.
4429 Include breakpoint.h.
4430 Forward declare struct partial_symbol, struct block.
4431 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
4432 (EXTRACT_ADDRESS): Remove.
4433 (EXTRACT_INT): Remove.
4434 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
4435 (MAX_ENCLOSING_FRAME_LEVELS): Define.
4436 (MAX_RENAMING_CHAIN_LENGTH): Define.
4437 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
4438
4439 (enum task_states): Remove.
4440 ada_task_states: Remove.
4441 (fat_string): Remove.
4442 (struct entry_call): Remove.
4443 (struct task_fields): Remove.
4444 (struct task_entry): Remove.
4445
4446 (struct ada_symbol_info): Define.
4447 (enum ada_attribute): Remove.
4448 (enum ada_operator): Define.
4449
4450 (ada_get_field_index): Declare.
4451 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
4452 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4453 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4454 (ada_lookup_symbol_list): New interface.
4455 (ada_decode_symbol): Declare.
4456 (ada_decode): Declare.
4457 (ada_lookup_symbol): New interface.
4458 (ada_update_initial_language): Declare.
4459 (ada_lookup_simple_minsym): Declare.
4460 (user_select_syms): New interface.
4461 (ada_sals_for_line): Declare.
4462 (ada_is_tagged_type): New interface.
4463 (ada_tag_name): Declare.
4464 (ada_lookup_struct_elt_type): Remove declaration.
4465 (ada_search_struct_field): Remove declaration.
4466 (ada_attribute_name): New interface.
4467 (ada_is_system_address_type): Declare.
4468 (ada_to_fixed_value): Remove declaration.
4469 (ada_template_to_fixed_record_type_1): Declare.
4470 (get_int_var_value): New interface.
4471 (ada_find_any_symbol): Declare.
4472 (ada_find_renaming_symbol): Declare.
4473 (ada_mangle): Rename to ada_encode.
4474 (ada_simple_renamed_entity): Remove const.
4475 (ada_main_name): Declare.
4476 (get_current_task): Rename to ada_get_current_task.
4477 (get_entry_number): Remove declaration.
4478 (ada_report_exception_break): Remove declaration.
4479 (ada_print_exception_breakpoint_nontask): Declare.
4480 (ada_print_exception_breakpoint_task): Declare.
4481 (ada_find_printable_frame): Declare.
4482
4483 * ada-lex.l: Update copyright notices.
4484 Use xmalloc and xfree instead of malloc and free.
4485 Use new interface to name_lookup.
4486 Use new interface to
4487 ada_mangle=>ada_encode.
4488 Redo handling of '$...' variable to parallel current treatment
4489 in c-exp.y.
4490 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
4491 digit_to_int, strtoulst, processInt, processReal, processId,
4492 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
4493 yywrap): Protoize.
4494
4495 (processInt): Use cast to remove harmless warning.
4496 (processReal): Modify to get rid of compiler warning on scan formats.
4497
4498 (processId): Replace xmalloc with obstack_alloc for name and remove
4499 call to ada_name_string_cleanup.
4500 Remove obsolete disabled code.
4501 (name_lookup): Ditto.
4502 New interface.
4503 Use obsavestring on temp_parse_space instead of savestring
4504 on name, and remove call to ada_name_string_cleanup.
4505 Free string returned from ada_simple_renamed_entity.
4506 Use new interface to ada_lookup_symbol_list.
4507 Decomment disabled code.
4508 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
4509 not types.
4510 When a type name lookup succeeds as a result of
4511 lookup_primitive_typename, check for regular type entry that has not
4512 yet been read in.
4513 Limit length of chain of renamed symbols we are willing to follow.
4514 Do not break names beginning with "standard__" into segments.
4515 (block_lookup): Use new interface to ada_lookup_symbol_list.
4516
4517 * ada-typeprint.c: Update copyright notice.
4518 (demangled_type_name): Rename to decoded_type_name.
4519 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
4520 (print_range_bound): Correct handling of negative
4521 bounds that make the index type looked unsigned under STABS.
4522 (print_dynamic_range_bound): Use new interface to get_int_var_value.
4523 (print_range_type_named): Use the builtin int type if no type
4524 corresponding to the given type name could be found.
4525 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
4526 Add some bullet-proofing.
4527 (print_variant_clauses): Allow for variant branches with ___XVU
4528 encodings that are not dynamic fields.
4529 Use new interface to ada_is_tagged_type.
4530 (print_record_type): Allow for fields with ___XVE encodings that
4531 are not dynamic fields.
4532 Use new interface to ada_is_tagged_type.
4533 (ada_print_type): ada_is_array_descriptor =>
4534 ada_is_array_descriptor_type.
4535
4536 * ada-valprint.c: Update copyright notice.
4537 Include gdb_string.h
4538 Include infcall.h
4539 (ui_memcpy): New function.
4540 (ada_print_floating): New function.
4541 (ada_print_str): Order arguments correctly.
4542 Correct handling of empty arrays and arrays of 0-length items.
4543 ada_is_array_descriptor => ada_is_array_descriptor_type
4544 Print values of type System.Address in hexadecimal format.
4545 Use ada_print_floating to print floating-point numbers in Ada format.
4546 Print class tag values with type names.
4547 No longer print the address of reference values. Avoids
4548 a potential confusion.
4549 (ada_value_print): Stop printing the object type for reference
4550 values, but preserve that behavior for access types. Avoids
4551 a potential confusion.
4552 Simplify one conditional expression, as the first part is now
4553 necessarily true.
4554 ada_is_array_descriptor => ada_is_array_descriptor_type
4555 Add check for arrays for null records, and print them by hand.
4c4b4cd2 4556
f65f91b5
JB
45572004-06-01 Jim Blandy <jimb@redhat.com>
4558
4559 * ppc-tdep.h: Delete unused 'regoff' member.
4560 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
4561
d4687fa0
MC
45622004-06-01 Michael Chastain <mec.gnu@mindspring.com>
4563
4564 Fix PR symtab/1661.
4565 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
4566 (hpread_read_struct_type): Likewise.
4567
de169ec9
AC
45682004-06-01 Andrew Cagney <cagney@gnu.org>
4569
c6902d46
AC
4570 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
4571 instead of xasprintf.
4572 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
4573 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
4574 (mi_cmd_data_list_register_names)
4575 (mi_cmd_data_list_changed_registers)
4576 (mi_cmd_data_list_register_values)
4577 (get_register, mi_cmd_data_write_register_values)
4578 (mi_cmd_data_write_register_values)
4579 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
4580 (mi_cmd_target_download, mi_cmd_target_select)
4581 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
4582 (mi_execute_cli_command, mi_execute_async_cli_command)
4583 (mi_execute_async_cli_command): Ditto.
4584 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
4585 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
4586
6085fc2d
AC
4587 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
4588 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
4589 error_last_message instead of mi_error_last_message.
4590 * mi/mi-main.c (mi_error_last_message): Delete function.
4591
de169ec9
AC
4592 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
4593 "invalid number of columns" error. Delete redundant "out of
4594 memory" check.
4595
1fc7d519
MK
45962004-05-31 Mark Kettenis <kettenis@gnu.org>
4597
6cfb2041
MK
4598 * i386bsd-nat.c: Don't include <sys/procfs.h>.
4599 (gregset_t, fpregset_t): Remove typedefs.
4600 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
4601 (REG_OFFSET): Rename argument.
4602 (i386bsd_r_reg_offset): Rename from reg_offset.
4603 (REG_ADDR): Remove macro.
4604 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
4605 functions.
4606 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
4607 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
4608 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
4609 instead of supply_gregset.
4610 (store_inferior_registers): Use `struct reg' and `struct fpreg'
4611 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
4612 instead of fill_gregset.
4613 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
4614
1fc7d519
MK
4615 * i386bsd-nat.c: Don't include "gregset.h".
4616 (supply_gregset, fill_gregset): Make static.
4617 (supply_fpregset, fill_fpregset): Remove.
4618 * Makefile.in (i386bsd-nat.o): Update dependencies.
4619
2c34abbe
MK
46202004-05-30 Mark Kettenis <kettenis@gnu.org>
4621
448724fb
MK
4622 * fbsd-proc.c: Include "regcache.h", "regset.h" and
4623 "gdb_assert.h". Con't include "gregset.h".
4624 (fbsd_make_corefile_notes): Use regset-based core file support
4625 instead off fill_gregset and fill_fpregset.
4626 * Makefile.in (fbsd-proc.o): Update dependencies.
4627
5ca8ca7c
MK
4628 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
4629 instructions.
4630 (m88k_frame_prev_register): Simplify code a bit.
4631
593adc23
MK
4632 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
4633 (amd64_collect_fpregset): New function.
4634 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
4635
8d1b517b
MK
4636 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
4637
7fdafb5a
MK
4638 * i386-tdep.c (i386_supply_gregset): Adjust comment.
4639 (i386_collect_gregset): New function.
4640 (i386_supply_fpregset): Adjust comment.
4641 (i386_collect_fpregset): New function.
4642 (i386_regset_from_core_section): Use i386_collect_gregset and
4643 i386_collect_fpregset.
4644
8693c419
MK
4645 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
4646 handle VALUEP being null.
4647
2c34abbe
MK
4648 * regset.h (collect_regset_ftype): Unconstify fourth argument.
4649
45d134d8
MK
46502004-05-29 Mark Kettenis <kettenis@gnu.org>
4651
1698f4e7
MK
4652 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
4653
45d134d8
MK
4654 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
4655 assembler in OpenBSD 3.5-current.
4656 (amd64obsd_sigcontext_addr): Likewise.
4657
691d145a
JB
46582004-05-28 Jim Blandy <jimb@redhat.com>
4659
4660 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
4661 register set, so our regcache isn't declared "legacy" and our E500
4662 pseudoregister read and write functions aren't ignored.
4663 (rs6000_register_byte, rs6000_register_raw_size,
4664 rs6000_register_virtual_type, rs6000_register_convertible,
4665 rs6000_register_convert_to_virtual,
4666 rs6000_register_convert_to_raw): Deleted.
4667 (rs6000_register_type, rs6000_convert_register_p,
4668 rs6000_register_to_value, rs6000_value_to_register): New
4669 functions.
4670 (rs6000_gdbarch_init): Don't register
4671 gdbarch_deprecated_register_size,
4672 gdbarch_deprecated_register_bytes,
4673 gdbarch_deprecated_register_byte,
4674 gdbarch_deprecated_register_raw_size,
4675 gdbarch_deprecated_register_virtual_type,
4676 gdbarch_deprecated_register_convertible,
4677 gdbarch_deprecated_register_convert_to_virtual, or
4678 gdbarch_deprecated_register_convert_to_raw methods. Instead,
4679 register gdbarch_register_type, gdbarch_convert_register_p,
4680 gdbarch_register_to_value, and gdbarch_value_to_register methods.
4681
18ed0c4e
JB
46822004-05-26 Jim Blandy <jimb@redhat.com>
4683
4684 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
4685 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
4686 functions, updated to match the register numberings used in GCC.
4687 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
4688 rs6000_dwarf2_reg_to_regnum as register number conversions
4689 functions for STABS and Dwarf2.
4690
779af9e3
RC
46912004-05-26 Randolph Chung <tausq@debian.org>
4692
4693 * infttrace.h (target_waitkind): Forward declare type instead of pulling
4694 in header file.
4695
c23968a2
JB
46962004-05-25 Joel Brobecker <brobecker@gnat.com>
4697
4698 * NEWS: Document new "start" command.
4699
3a7d1c27
RC
47002004-05-25 Randolph Chung <tausq@debian.org>
4701
4702 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
4703 hppa-linux.
4704
43613416
RC
47052004-05-25 Randolph Chung <tausq@debian.org>
4706
4707 * hppa-hpux-tdep.c (offsetof): Define.
4708 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
4709 (hppa32_hpux_frame_base_before_sigtramp)
4710 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
4711 (hppa64_hpux_frame_saved_pc_in_sigtramp)
4712 (hppa64_hpux_frame_base_before_sigtramp)
4713 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
4714 functions.
4715 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
4716 (hppa_hpux_sigtramp_frame_unwind_cache)
4717 (hppa_hpux_sigtramp_frame_this_id)
4718 (hppa_hpux_sigtramp_frame_prev_register)
4719 (hppa_hpux_sigtramp_frame_unwind)
4720 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
4721 (hppa_hpux_init_abi): Register sigtramp unwinder.
4722 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
4723
6d1be3f1
RC
47242004-05-25 Randolph Chung <tausq@debian.org>
4725
4726 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
4727 and multiple stack unwinds.
4728 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
4729
97c34f65
AC
47302004-05-25 Andrew Cagney <cagney@gnu.org>
4731
4732 * symfile.h (symbol_file_add_from_memory): Delete declaration.
4733 * symfile-mem.h: Delete file.
4734 * symfile-mem.c: Do not include "symfile-mem.h".
4735 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
4736 "struct bfd_section". When an error do not bother returning NULL.
4737 (add_symbol_file_from_memory_command): Use "struct bfd" and
4738 "struct bfd_section".
4739 * Makefile.in (symfile_mem_h): Delete.
4740 (symfile-mem.o): Update dependencies.
4741
e23cbd82
NR
47422004-05-25 Nick Roberts <nickrob@gnu.org>
4743
4744 * gdb-mi.el: New file.
4745
20d2ca3e
AC
47462004-05-25 Andrew Cagney <cagney@gnu.org>
4747
4748 * inftarg.c: Include "observer.h".
4749 (child_attach, child_create_inferior): Notify inferior_created.
4750 * corelow.c: Include "observer.h".
4751 (core_open): Notify inferior_created.
4752 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
4753
c27cda74
AC
47542004-05-25 Andrew Cagney <cagney@gnu.org>
4755
4756 * target.h (struct target_ops): Add from_tty to
4757 to_create_inferior.
4758 (target_create_inferior, find_default_create_inferior): Update.
4759 * infcmd.c (run_command): Update.
4760 * wince.c (child_create_inferior): Update.
4761 * win32-nat.c (child_create_inferior): Update.
4762 * uw-thread.c (uw_thread_create_inferior): Update.
4763 * thread-db.c (thread_db_create_inferior): Update.
4764 * target.c (debug_to_create_inferior)
4765 (find_default_create_inferior): Update.
4766 (maybe_kill_then_create_inferior): Update.
4767 * sol-thread.c (sol_thread_create_inferior): Update.
4768 * remote.c (extended_remote_async_create_inferior)
4769 (extended_remote_create_inferior): Update.
4770 * remote-vx.c (vx_create_inferior): Update.
4771 * remote-st.c (st2000_create_inferior): Update.
4772 * remote-sim.c (gdbsim_create_inferior): Update.
4773 * remote-sds.c (sds_create_inferior): Update.
4774 * remote-rdp.c (remote_rdp_create_inferior): Update.
4775 * remote-rdi.c (arm_rdi_create_inferior): Update.
4776 * remote-m32r-sdi.c (m32r_create_inferior): Update.
4777 * remote-e7000.c (e7000_create_inferior): Update.
4778 * procfs.c (procfs_create_inferior): Update.
4779 * ocd.c (ocd_create_inferior): Update.
4780 * ocd.h (ocd_create_inferior): Update.
4781 * nto-procfs.c (procfs_create_inferior): Update.
4782 * monitor.c (monitor_create_inferior): Update.
4783 * lin-lwp.c (lin_lwp_create_inferior): Update.
4784 * inftarg.c (child_create_inferior): Update.
4785 * hpux-thread.c (hpux_thread_create_inferior): Update.
4786 * gnu-nat.c (gnu_create_inferior): Update.
4787
1db2a798
AC
47882004-05-25 Andrew Cagney <cagney@gnu.com>
4789
4790 * MAINTAINERS: Update e-mail address.
4791
007d08bb
RC
47922004-05-24 Randolph Chung <tausq@debian.org>
4793
4794 * thread.c (info_threads_command, thread_apply_all_command)
4795 (thread_apply_command, thread_command, do_captured_thread_select):
4796 Remove HPUXHPPA-specific code.
4797
69e7b95e
RC
47982004-05-24 Randolph Chung <tausq@debian.org>
4799
4800 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
4801 unused symbols.
4802 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
4803 references.
4804
a4d5f2e0
JB
48052004-05-24 Joel Brobecker <brobecker@gnat.com>
4806
4807 * infcmd.c (kill_if_already_running): New function, extracted
4808 from run_command().
4809 (run_command): Replace extracted code by call to
4810 kill_if_already_running().
4811 (start_command): New function.
4812 (_initialize_infcmd): Add "start" command.
4813
bf2ca189
MK
48142004-05-24 Mark Kettenis <kettenis@gnu.org>
4815
4816 Add OpenBSD/m88k support.
4817 * NEWS (New native configurations): Mention OpenBSD/m88k.
4818 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
4819 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
4820 * Makefile.in (m88k_tdep_h): New variable.
4821 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
4822 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
4823 * configure.host: Add m88*-*-openbsd*.
4824 * configure.tgt: Add m88*-*-openbsd*.
4825
80fadb11
JB
48262004-05-24 Jim Blandy <jimb@redhat.com>
4827
4828 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
4829 to approve changes.
4830
19e2d14b
KB
48312004-05-24 Kevin Buettner <kevinb@redhat.com>
4832
4833 * symtab.c (fixup_section): Search section table when lookup by
4834 name fails.
4835
1b07b470
RC
48362004-05-24 Randolph Chung <tausq@debian.org>
4837
4838 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
4839 be "small_struct".
4840
368702b1
MK
48412004-05-24 Mark Kettenis <kettenis@gnu.org>
4842
5df97fde
MK
4843 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
4844 register number in regcache_raw_collect call.
4845 (m68kbsd_collect_fpregset): Likewise.
4846 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
4847
368702b1
MK
4848 * regset.h (struct regset): Add back `regset' member.
4849
a770d4ec
MK
48502004-05-23 Mark Kettenis <kettenis@gnu.org>
4851
70f9f479
MK
4852 * configure.in: Check for td_pcb in `struct thread'.
4853 * configure, config.in: Regenerated.
4854
2e16d79e
MK
4855 * dpx2-nat.c: Remove file.
4856 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
4857 (dpx2-nat.o): Remove dependencies.
4858
492cf391
MK
4859 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
4860 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
4861 (amd64obsd_supply_pcb): New function.
4862 (_initialize_amd64obsd_nat): Enable libkvm interface.
4863 * Makefile.in (amd64obsd-nat.o): Update dependencies.
4864 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
4865 (LOADLIBES): New variable.
4866
a770d4ec
MK
4867 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
4868 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
4869 (sparc32nbsd_supply_pcb): New function.
4870 (_initialize_sparcnbsd_nat): Enable libkvm interface.
4871 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
4872 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4873 (LOADLIBES): New variable.
4874
9ea75c57
MK
48752004-05-22 Mark Kettenis <kettenis@gnu.org>
4876
2e0c3539
MK
4877 * bsd-kvm.c, bsd-kvm.h: New files.
4878 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4879 "bsd-kvm.h".
4880 (i386fbsd_supply_pcb): New function.
4881 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
4882 (i386fbsd-nat.o): Update dependencies.
4883 (bsd_kvm_h): New variable.
4884 (bsd-kvm.o): New dependency.
4885 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4886 (LOADLIBES): New variable.
4887
9ea75c57
MK
4888 * regset.c: Tweak comment.
4889 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
4890 macro.
4891 * regset.h: Update copyright year.
4892 (struct regset): Remove `descr' member, add `gdbarch' member.
4893 (regset_alloc): Adjust prototype and comment.
4894 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
4895 (i386_supply_fpregset): Likewise.
4896 (i386_regset_from_core_section): Update call to regset_alloc.
4897 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
4898 REGSET->arch.
4899 (i386obsd_aout_regset_from_core_section): Update call to
4900 regset_alloc.
4901 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
4902 REGSET->arch.
4903 (i386nbsd_aout_regset_from_core_section): Update call to
4904 regset_alloc.
4905 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
4906 REGSET->arch.
4907 (amd64_regset_from_core_section): Update call to regset_alloc.
4908 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
4909 REGSET->arch.
4910 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
4911 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
4912 &sparc32nbsd_gregset in sparc32_supply_gregset call.
4913 (sparc32nbsd_init_abi): Update call to regset_alloc.
4914 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
4915 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
4916 (sparc64obsd_init_abi): Update call to regset_alloc.
4917 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
4918 &sparc64nbsd_gregset in sparc64_supply_gregset call.
4919 (sparc64nbsd_init_abi): Update call to regset_alloc.
4920 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
4921 &sparc64fbsd_gregset in sparc64_supply_gregset call.
4922 (sparc64fbsd_init_abi): Update call to regset_alloc.
4923
867e2dc5
JB
49242004-05-22 Jim Blandy <jimb@redhat.com>
4925
4926 * ppc-tdep.h (spe_register_p): New declaration.
4927 (struct gdbarch_tdep): New members: ppc_acc_regnum and
4928 ppc_spefscr_regnum.
4929 * rs6000-tdep.c (spe_register_p): New function.
4930 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
4931 spefscr.
4932 (rs6000_gdbarch_init): Initialize the new members of the tdep
4933 structure.
4934
617a4cba
JB
49352004-05-21 Jim Blandy <jimb@redhat.com>
4936
0397dee1
JB
4937 * ppc-linux-nat.c (fetch_register): Move code back to be next
4938 to the comment that describes it. (Moved code, instead of
4939 comment, for symmetry with store_register.)
4940
617a4cba
JB
4941 Allocate regset structures in the gdbarch's obstack, not using
4942 xmalloc.
4943 * regset.c (regset_alloc): Renamed from regset_xmalloc.
4944 Add 'arch' argument. Allocate the regset on arch's obstack, not
4945 using xmalloc.
4946 * regset.h (regset_alloc): Update declaration.
4947 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
4948 gdbarch argument.
4949 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4950 * i386-tdep.c (i386_regset_from_core_section): Same.
4951 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4952 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4953 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4954 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4955 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4956 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4957
9aa3914d
JB
49582004-05-21 Joel Brobecker <brobecker@gnat.com>
4959
4960 * config/djgpp/fnchange.lst: Undo previous change, was useless.
4961
99c87dab
JB
49622004-05-21 Jim Blandy <jimb@redhat.com>
4963
4964 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
4965 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
4966
c2b6b4aa
JB
49672004-05-20 Jim Blandy <jimb@redhat.com>
4968
4969 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
4970
144529d0
MK
49712004-05-20 Mark Kettenis <kettenis@gnu.org>
4972
4973 * regset.h: Make prototype const-correct.
4974 * regset.c (regset_xmalloc): Make const-correct.
4975
4725b721
PH
49762004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
4977
4978 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
4979 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
4980 (symbol_search_name): Declare.
4981
4982 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
4983 (iter_name_next_hashed): Ditto.
4984 (iter_name_next_linear): Ditto.
4985 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
4986
4987 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
4988 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
4989 (symbol_search_name): New function.
4990
4991 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
4992
4993 * minsyms.c (build_minimal_symbol_hash_tables): Change
4994 test for adding to demangled hash table to check for difference
4995 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
4996
be07a590
JB
49972004-05-19 Jim Blandy <jimb@redhat.com>
4998
4999 Use a constructor function to create regset structures.
5000 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5001 (struct regset): Use supply_regset_ftype. Add new
5002 'collect_regset' member.
5003 (regset_xmalloc): New declaration.
5004 * regset.c: New file.
5005 * am64-tdep.c (amd64_regset_from_core_section): Use
5006 regset_xmalloc to construct regset structures.
5007 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5008 * i386-tdep.c (i386_regset_from_core_section): Same.
5009 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5010 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5011 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5012 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5013 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5014 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5015 * Makefile.in (COMMON_OBS): Add regset.o.
5016 (regset.o): New rule.
5017
604368f5
JB
50182004-05-19 Joel Brobecker <brobecker@gnat.com>
5019
5020 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
5021 and pthread_cond_wait.c.
5022
82d69f8b
JB
50232004-05-18 Jim Blandy <jimb@redhat.com>
5024
5025 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
5026 before the mach-specific switch, and then let the individual cases
5027 override the defaults, rather than leaving them uninitialized
5028 until the switch and then setting them in each case.
5029
5859efe5
RC
50302004-05-18 Randolph Chung <tausq@debian.org>
5031
5032 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
5033 millicode functions.
5034
9ca80cf8
RC
50352004-05-18 Randolph Chung <tausq@debian.org>
5036
5037 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5038 references to dld_flags_buffer consistent.
5039
ed70ba00
RC
50402004-05-18 Randolph Chung <tausq@debian.org>
5041
5042 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5043 it for unwinding the stack.
5044
63100632
RC
50452004-05-18 Randolph Chung <tausq@debian.org>
5046
5047 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5048 Undefine these so we can overide them using gdbarch.
5049
090ccbb7
RC
50502004-05-18 Randolph Chung <tausq@debian.org>
5051
5052 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5053 handling for 64-bit HPUX (elf).
5054
594706e6
DJ
50552004-05-18 Daniel Jacobowitz <dan@debian.org>
5056
5057 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5058 constants.
5059 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5060 * ia64-tdep.c (examine_prologue): Likewise.
5061 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5062 * v850-tdep.c (v850_fix_call_dummy): Likewise.
5063
e5483145
MK
50642004-05-18 Mark Kettenis <kettenis@gnu.org>
5065
5066 * vax-tdep.c (vax_return_value): Implement
5067 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5068
caed1a45
MK
50692004-05-17 Mark Kettenis <kettenis@gnu.org>
5070
5071 * vax-tdep.c (vax_return_value): Fix typo.
5072
3c0b7db2
AC
50732004-05-17 Andrew Cagney <cagney@redhat.com>
5074
5aae53e5
AC
5075 * MAINTAINERS: Mark Salter was also responsible for
5076 testsuite/config/
5077
3c0b7db2
AC
5078 * NEWS: Mention signal fixes.
5079
22b0923d
RC
50802004-05-17 Randolph Chung <tausq@debian.org>
5081
5082 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5083 check to see if we are unwinding an export stub. Export stubs clobber
5084 the %rp in the call path and stores the original rp in a stack slot.
5085
22f2b2f3
JB
50862004-05-17 Jim Blandy <jimb@redhat.com>
5087
5088 * MAINTAINERS: Update address for J.T. Conklin.
5089
cea96d64
RC
50902004-05-17 Randolph Chung <tausq@debian.org>
5091
5092 * hppa-tdep.c: Remove superfluous #include's.
5093 * Makefile.in (hppa-tdep.o): Update dependencies.
5094
f08f6a4a
RC
50952004-05-17 Randolph Chung <tausq@debian.org>
5096
5097 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5098 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5099 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5100 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5101 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5102 Remove static function declarations.
5103
51da707a
MK
51042004-05-17 Mark Kettenis <kettenis@gnu.org>
5105
caed1a45
MK
5106 * alphabsd-nat.c: Update copyright year.
5107 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5108
c0c2b0db
MK
5109 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5110 and M68K_A2_REGNUM.
5111
51da707a
MK
5112 * m68k-tdep.c (m68k_svr4_return_value): Implement
5113 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5114
8d027a04
MK
51152004-05-16 Mark Kettenis <kettenis@gnu.org>
5116
5117 * sol-thread.c Update copyright year. Fix various coding
5118 standards violations. Tweak a few comments.
5119 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5120 Delete prototypes.
5121
0d99fdb9
RC
51222004-05-15 Randolph Chung <tausq@debian.org>
5123
5124 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5125 as pointer instead of array reference since HPUX compiler does
5126 not accept unsized array arguments.
5127 * somsolib.c (dld_flags_buffer): Use constant array size.
5128
f7e3843a
MK
51292004-05-15 Mark Kettenis <kettenis@gnu.org>
5130
0fe85704
MK
5131 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5132 offset with decimal offset.
5133 (amd64obsd_sigcontext_addr): Return correct address for entire
5134 signal trampoline.
5135
a54f9a00
MK
5136 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5137 instead of get_frame_base.
5138
feae6502
MK
5139 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5140 (fill_gregset): Use regcache_raw_collect.
5141
0382d099
MK
5142 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
5143 ppcobsd-tdep.c.
5144
f7e3843a
MK
5145 * config/sparc/tm-nbsd64.h: Remove file.
5146 * config/tm-sunos.h: Remove file.
5147
773df3e5
JB
51482004-05-15 Joel Brobecker <brobecker@gnat.com>
5149
5150 * rs6000-tdep.c (store_param_on_stack_p): New function,
5151 an improved version of some code extracted from skip_prologue().
5152 (skip_prologue): Use store_param_on_stack_p() to detect
5153 instructions saving a parameter on the stack. Detect when r0
5154 is used to save a parameter.
5155 Do not mark "li rx, SIMM" instructions as part of the prologue,
5156 unless the following instruction is also part of the prologue.
5157
95918acb
AC
51582004-05-14 Andrew Cagney <cagney@redhat.com>
5159
06f32659
AC
5160 * infrun.c (handle_inferior_event): Simplify
5161 STEP_OVER_UNDEBUGGABLE.
5162
95918acb
AC
5163 * infrun.c (handle_step_into_function): Delete function.
5164 (handle_inferior_event): Inline calls to
5165 handle_step_into_function.
5166
40711ff1 51672004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
5168
5169 * rs6000-nat.c: Fix a comment.
5170
02f60eae
JB
51712004-05-12 David Anderson <davea@sgi.com>
5172
5173 Committed by Jim Blandy <jimb@redhat.com>:
5174 * regcache.c (struct regcache_descr): fix comment spelling.
5175
552e377b
JB
51762004-05-13 J. Brobecker <brobecker@gnat.com>
5177
5178 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
5179 Fixes a link link failure.
5180
349766b2
JB
51812004-05-13 J. Brobecker <brobecker@gnat.com>
5182
5183 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
5184 error that was causing the build to fail.
5185
0d4d5484
JB
51862004-05-13 J. Brobecker <brobecker@gnat.com>
5187
5188 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
5189 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
5190
0b30808c
AC
51912004-05-13 Andrew Cagney <cagney@redhat.com>
5192
5193 * infrun.c (handle_inferior_event): Check for
5194 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
5195 calls. Update comments.
5196
cdf2c5f5
JB
51972004-05-13 Jim Blandy <jimb@redhat.com>
5198
063715bf
JB
5199 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
5200 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5201 (store_regs_user_thread, store_regs_kernel_thread): Use
5202 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
5203 * ppc-linux-nat.c (fill_gregset): Same.
5204 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
5205 (ppc_linux_sigtramp_cache): Same.
5206 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
5207 (ppcnbsd_sigtramp_cache_init): Same.
5208 * rs6000-nat.c (fetch_core_registers): Same.
5209 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5210 (rs6000_frame_cache): Same.
5211
cdf2c5f5
JB
5212 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
5213 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
5214 of assuming that the gprs are numbered starting with zero.
5215 * ppc-linux-nat.c (fill_gregset): Same.
5216 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
5217 * ppcnbsd-nat.c (getregs_supplies): Same.
5218 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
5219 * rs6000-nat.c (fetch_core_registers): Same.
5220 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
5221
450bd37b
MS
52222004-05-07 Michael Snyder <msnyder@redhat.com>
5223
5224 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
5225 LOC_COMPUTED_ARG, and LOC_INDIRECT.
5226
4a72a2a6
AC
52272004-05-13 Andrew Cagney <cagney@redhat.com>
5228
5229 * infrun.c (handle_inferior_event): Use frame_unwind_id.
5230
8edfa926
BM
52312004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5232
5233 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
5234 base_address for shared libraries.
5235
723e0e3d
BM
52362004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5237
5238 * MAINTAINERS (write after approval): Add myself.
5239
00d4360e
UW
52402004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5241
5242 * breakpoint.c (bpstat_stop_status): Add new argument
5243 STOPPED_BY_WATCHPOINT. Use it instead of testing
5244 target_stopped_data_address agaist 0 to check whether
5245 or not we stopped due to a hardware watchpoint.
5246 * breakpoint.h (bpstat_stop_status): Adapt prototype.
5247 * infrun.c (handle_inferior_event): Call bpstat_stop_status
5248 with new argument.
5249
ec76baa5
JB
52502004-05-12 Jim Blandy <jimb@redhat.com>
5251
5252 * configure.in: When checking whether we should use the -bbigtoc
5253 option, don't forget to restore the original value of LDFLAGS.
5254 * configure: Regenerated.
5255
f2c9ca08
AC
52562004-05-12 Andrew Cagney <cagney@redhat.com>
5257
5258 * thread.c (load_infrun_state): Delete step_sp.
5259 * infrun.c (context_switch): Ditto.
5260 * inferior.h (step_sp): Ditto.
5261 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
5262 * gdbthread.h (struct thread_info, save_infrun_state)
5263 (restore_infrun_state): Ditto.
5264
090ddb2a
UW
52652004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
5266
5267 * MAINTAINERS (write after approval): Add myself.
5268
8aad930b
AC
52692004-05-12 Andrew Cagney <cagney@redhat.com>
5270
5271 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
5272 eliminate reference to step_sp.
5273 (struct execution_control_state, init_execution_control_state)
5274 (handle_inferior_event, keep_going): Delete update_step_sp and
5275 step_sp.
5276 * infcmd.c (step_sp): Note that variable is unused.
5277
922d5ae0
AC
52782004-05-11 Andrew Cagney <cagney@redhat.com>
5279
5280 * infrun.c (step_over_function): Delete function.
5281 (handle_step_into_function): Use insert_step_resume_breakpoint.
5282 (insert_step_resume_breakpoint): Fix assertion.
5283
017c5ca5
NR
52842004-05-11 Nick Roberts <nickrob@gnu.org>
5285
5286 * utils.c (defaulted_query): Just use the normal query input type
5287 when printing the annotations.
5288
42edda50
AC
52892004-05-11 Andrew Cagney <cagney@redhat.com>
5290
5291 * infrun.c (handle_inferior_event): Simplify code handling
5292 step-into or return-from a signal trampoline.
5293
d28b44a7
AC
52942004-05-11 Andrew Cagney <cagney@redhat.com>
5295
5296 * ppcnbsd-tdep.c: Include "gdb_assert.h".
5297 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
5298
383f0f5b
JB
52992004-05-10 Jim Blandy <jimb@redhat.com>
5300
d0b57c3a
JB
5301 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
5302 with a call to internal_error.
5303
383f0f5b
JB
5304 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
5305 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
5306 processor variant lacks those registers.
5307 (ppc_floating_point_unit_p): Change description to make it clear
5308 that this returns info about the ISA, not the ABI.
5309 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
5310 return true or false by checking tdep->ppc_fp0_regnum and
5311 tdep->ppc_fpscr_regnum. The original code replicated the BFD
5312 arch/mach switching done in rs6000_gdbarch_init; it's better to
5313 keep that logic there, and just check the results here.
5314 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
5315 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
5316 floating-point registers.
5317 (ppc_supply_fpregset, ppc_collect_fpregset)
5318 (rs6000_push_dummy_call, rs6000_extract_return_value)
5319 (rs6000_store_return_value): Assert that we have floating-point
5320 registers.
5321 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
5322 (rs6000_frame_cache): Don't note the locations at which
5323 floating-point registers were saved if we have no fprs.
5324 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
5325 registers.
5326 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5327 (store_regs_user_thread, store_regs_kernel_thread): Only call
5328 supply_fprs / fill_fprs if we actually have floating-point
5329 registers.
5330 (special_register_p): Check ppc_fpscr_regnum before matching
5331 against it.
5332 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
5333 supply / collect fpscr if we don't have it.
5334 * ppc-bdm.c: #include "gdb_assert.h".
5335 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
5336 have floating-point registers, since I can't test this code on
5337 FP-free systems to adapt it.
5338 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
5339 fpscr and floating point register numbers if they don't exist.
5340 (fetch_register): Assert that we have floating-point registers
5341 before we reach the code that handles them.
5342 (store_register): Same. And use tdep instead of calling
5343 gdbarch_tdep again.
5344 (fill_fpregset): Don't try to collect FP registers and fpscr if we
5345 don't have them.
5346 (ppc_linux_sigtramp_cache): Don't record the saved locations of
5347 fprs and fpscr if we don't have them.
5348 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
5349 don't have them.
5350 * ppcnbsd-nat.c: #include "gdb_assert.h".
5351 (getfpregs_supplies): Assert that we have floating-point registers.
5352 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
5353 * ppcobsd-tdep.c: #include "gdb_assert.h".
5354 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
5355 have floating-point registers.
5356 * rs6000-nat.c (regmap): Don't match against the fpscr and
5357 floating point register numbers if they don't exist.
5358 (fetch_inferior_registers, store_inferior_registers,
5359 fetch_core_registers): Only fetch / store / supply the
5360 floating-point registers and the fpscr if we have them.
5361 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
5362 (ppcobsd-tdep.o): Update dependencies.
5363
15960608
AC
53642004-05-10 Andrew Cagney <cagney@redhat.com>
5365
5366 * infrun.c (through_sigtramp_breakpoint): Delete variable.
5367 (context_switch): Do not switch through_sigtramp_breakpoint.
5368 * gdbthread.h (save_infrun_state, load_infrun_state)
5369 (struct thread_info): Delete through_sigtramp_breakpoint parameter
5370 and structure member.
5371 * thread.c (load_infrun_state, save_infrun_state): Update.
5372
5ab5aa0f
MK
53732004-05-10 Mark Kettenis <kettenis@gnu.org>
5374
5375 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
5376
da78b0e7
DJ
53772004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5378
5379 * acinclude.m4: Quote macro names being defined by AC_DEFUN
5380 throughout.
5381 * aclocal.m4: Regenerate.
5382
cca0d3b0
NW
53832004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
5384
5385 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
5386
d303a6c7
AC
53872004-05-10 Andrew Cagney <cagney@redhat.com>
5388
5389 * infrun.c (check_sigtramp2): Delete function.
5390 (handle_inferior_event): When single stepping, and taking a
5391 signal, set a breakpoint at the signal return address. Delete
5392 redundant calls to check_sigtramp2.
5393 (insert_step_resume_breakpoint): New function.
5394 (through_sigtramp_breakpoint, handle_inferior_event)
5395 (follow_exec, wait_for_inferior, fetch_inferior_event)
5396 (currently_stepping, keep_going): Delete most uses of
5397 through_sigtramp_breakpoint, not that it should be deleted.
5398 (delete_breakpoint_current_contents): Delete function.
5399
03f4cc20
RC
54002004-05-10 Randolph Chung <tausq@debian.org>
5401
5402 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
5403 target.
5404 * config/pa/tm-linux.h: New file.
5405
37fc812e
DJ
54062004-05-10 Daniel Jacobowitz <drow@mvista.com>
5407
5408 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
5409 of prefixes. Don't print the prefix twice in the CLI.
5410
26c0b942
JB
54112004-05-10 Jim Blandy <jimb@redhat.com>
5412
2e56e9c1
JB
5413 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
5414 collect all the gprs.
5415
26c0b942
JB
5416 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
5417 loop collecting gprs.
5418
dc497459
AC
54192004-05-09 Andrew Cagney <cagney@redhat.com>
5420
5421 * remote-vx.c (net_step): Delete step-range code.
5422 * remote.c (remote_resume, init_all_packet_configs)
5423 (set_remote_protocol_E_packet_cmd)
5424 (show_remote_protocol_E_packet_cmd)
5425 (remote_protocol_E, show_remote_cmd, _initialize_remote)
5426 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
5427 (show_remote_protocol_e_packet_cmd): Ditto.
5428
0543f387
MK
54292004-05-09 Mark Kettenis <kettenis@gnu.org>
5430
c481d1ca
MK
5431 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
5432
f626a069
MK
5433 * hppa-tdep.h: Update copyright year.
5434 (struct trad_frame_saved_reg): Add opaque declaration.
5435
6fa57a7d
MK
5436 * amd64-tdep.c (amd64_return_value): Implement
5437 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5438
e47577ab
MK
5439 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
5440 (m68k_value_to_register): New functions.
5441 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
5442 value_to_register.
5443
31db7b6c
MK
5444 * defs.h (enum return_value_convention): Add
5445 RETURN_VALUE_ABI_RETURNS_ADDRESS and
5446 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5447 * infcmd.c (legacy_return_value): New function.
5448 (print_return_value): Rwerite to implement
5449 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5450 * values.c (using_struct_return): Check for inequality to
5451 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
5452 RETURN_VALUE_STRUCT_CONVENTION.
5453 * i386-tdep.c (i386_return_value): Implement
5454 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5455
0543f387
MK
5456 * vax-tdep.c: Tweak comments. Reorder include files. Don't
5457 include "symtab.h", "opcode/vax.h" and "inferior.h".
5458 (vax_skip_prologue): Replace calls to read_memory_integer by calls
5459 to read_memory_unsigned_integer.
5460 (vax_gdbarch_init): Reorder.
5461 (_initialize_vax_tdep): Spell out prototype.
5462 * Makefile.in (vax-tdep.o): Update dependencies.
5463
0c93b7b6
AC
54642004-05-08 Andrew Cagney <cagney@redhat.com>
5465
e6b55ae2
AC
5466 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
5467 * target.c (target_detach, target_disconnect): Ditto.
5468
1ac839b8
AC
5469 * infcall.c (call_function_by_hand): When no
5470 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
5471 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
5472 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
5473 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5474 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5475
28954179
AC
5476 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
5477 * gdbarch.h, gdbarch.c: Re-generate.
5478 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5479 deprecated_fix_call_dummy.
5480 * v850-tdep.c (v850_gdbarch_init): Ditto.
5481 * infcall.c (call_function_by_hand): Do not call
5482 DEPRECATED_FIX_CALL_DUMMY.
5483
434b87dd
AC
5484 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
5485 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
5486 * gdbarch.h, gdbarch.c: Re-generate.
5487 * arm-linux-tdep.c (arm_linux_call_dummy_words)
5488 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
5489 deprecated_sizeof_call_dummy_words.
5490 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
5491 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5492 * v850-tdep.c (v850_gdbarch_init): Ditto.
5493 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
5494 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
5495 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5496 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5497 * arch-utils.h (legacy_call_dummy_words)
5498 (legacy_sizeof_call_dummy_words): Delete declarations.
5499 * arch-utils.c (legacy_call_dummy_words)
5500 (legacy_sizeof_call_dummy_words): Delete variables.
5501
58d28df8
AC
5502 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
5503 * gdbarch.h, gdbarch.c: Re-generate.
5504 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
5505 * infcall.c (call_function_by_hand): Eliminate call to
5506 DEPRECATED_PUSH_DUMMY_FRAME.
5507 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5508 push_dummy_frame.
5509 (ns32k_push_dummy_frame): Delete function.
5510
e4a2df64
AC
5511 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5512 deprecated_call_dummy_breakpoint_offset or
5513 deprecated_call_dummy_start_offset.
5514 * dummy-frame.c, arm-tdep.c: Update comments.
5515 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
5516 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
5517 * gdbarch.h, gdbarch.c: Re-generate.
5518
d3712828
AC
5519 * infcall.c (legacy_push_dummy_code): Delete function.
5520 (push_dummy_code): Delete call.
5521
7a882905
AC
5522 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
5523 * gdbarch.h, gdbarch.c: Re-generate.
5524 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
5525 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
5526 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
5527 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
5528
0ec5872b
AC
5529 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
5530 (struct frame_info): Delete opaque declaration.
5531 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
5532 * frame.c (get_frame_type): Delete call.
5533
0c93b7b6
AC
5534 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5535 pc_in_call_dummy.
5536 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
5537 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
5538
75536971
MK
55392004-05-08 Mark Kettenis <kettenis@gnu.org>
5540
527ca6bb
MK
5541 * alphanbsd-tdep.c: Include "gdb_string.h".
5542 * armnbsd-tdep.c: Update copyright year.
5543 Include "gdb_string.h".
5544 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
5545 dependencies.
5546
d39fdc61
MK
5547 * delta68-nat.c: Remove file.
5548 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
5549 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
5550 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
5551 (delta68-nat.o): Remove dependency.
5552
75536971
MK
5553 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
5554 function.
5555 (m68k_gdbarch_init): Don't set
5556 deprecated_frameless_function_invocation.
5557
f4ca1d1f
RC
55582004-05-07 Randolph Chung <tausq@debian.org>
5559
5560 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
5561 read_memory_nobpt for code reading when doing frame unwinding.
5562 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
5563
2f0e8c7a
RC
55642004-05-07 Randolph Chung <tausq@debian.org>
5565
5566 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
5567 instead of sp, handle sigaltstack case.
5568 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
5569 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
5570 signal handler and not that of the caller.
5571 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
5572 hppa_linux_sigtramp_find_sigcontext.
5573
959464ff
RC
55742004-05-07 Randolph Chung <tausq@debian.org>
5575
5576 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
5577 hppa-linux-nat.c.
5578 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
5579 * hppa-linux-nat.c (fetch_register, store_register): Define.
5580 (fetch_inferior_registers, store_inferior_registers): Define.
5581 (supply_gregset): Add comment and clean up some unneeded code.
5582 (fill_gregset): Add comment and fix so that it saves registers in
5583 the right place in the gregset.
5584 (fill_fpregset): Fix buffer overrun problem.
5585 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
5586
0da28f8a
RC
55872004-05-07 Randolph Chung <tausq@debian.org>
5588
5589 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
5590 do common handling of the pcoqt register.
5591 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
5592 to use helper function.
5593 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
5594 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
5595 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
5596 generic fallback unwinder when all else fails.
5597 (hppa_gdbarch_init): Add fallback sniffer.
5598 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
5599 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
5600 to use helper function.
5601
b9ec757a
JB
56022004-05-08 Joel Brobecker <brobecker@gnat.com>
5603
5604 * config/djgpp/fnchange.lst: Add translation rules for
5605 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
5606
756e95f1
MK
56072004-05-08 Mark Kettenis <kettenis@gnu.org>
5608
5609 * frame.c (get_prev_frame_1): Work around GCC bug.
5610 * frame.h: Add comment about GCC bug.
5611
2b4855ab
AC
56122004-05-07 Andrew Cagney <cagney@redhat.com>
5613
5614 * observer.c: Include "commands.h" and "gdbcmd.h".
5615 (observer_debug, _initialize_observer): Add the
5616 command "set/show debug observer".
5617 * observer.sh: When observer debugging, log notify calls.
5618 * Makefile.in (observer.o): Update dependencies.
5619
ba3e8e46
JM
56202004-05-07 Jason Molenda (jmolenda@apple.com)
5621
5622 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
5623
16796152
JB
56242004-05-07 Jim Blandy <jimb@redhat.com>
5625
daf6dc85
JB
5626 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
5627 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
5628 to recognize gpr regnums, instead of assuming that
5629 tdep->ppc_fp0_regnum marks the end of the general-purpose
5630 registers.
5631
16796152
JB
5632 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
5633 the given architecture has floating-point registers.
5634
c69b8bfc
AC
56352004-05-07 Andrew Cagney <cagney@redhat.com>
5636
5637 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
5638 macro defined to 1.
5639 * gdbarch.h, gdbarch.c: Re-generate.
5640 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5641 deprecated_use_generic_dummy_frames.
5642
7243600a
BF
56432004-05-07 Brian Ford <ford@vss.fsi.com>
5644
5645 * NEWS: Mention Cygwin DWARF 2 support.
5646
73c1e0a1
AC
56472004-05-07 Andrew Cagney <cagney@redhat.com>
5648
5649 * objfiles.h (struct entry_info): Delete unused fields
5650 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
5651 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
5652 * mipsread.c (mipscoff_symfile_read): Update.
5653 * mdebugread.c (parse_partial_symbols): Update.
5654 * dwarfread.c (read_file_scope): Update.
5655 * dwarf2read.c (read_file_scope): Update.
5656 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
5657 * coffread.c (complete_symtab): Update.
5658
1d3056ac
MK
56592004-05-07 Mark Kettenis <kettenis@gnu.org>
5660
5661 * infcall.c (_initialize_infcall): Fix typo.
5662
15170568
AC
56632004-05-07 Andrew Cagney <cagney@redhat.com>
5664
5665 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
5666 * command.h (add_setshow_zinteger_cmd): Declare.
5667
34f75cc1
RC
56682004-05-06 Randolph Chung <tausq@debian.org>
5669
5670 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
5671 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
5672 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
5673 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
5674 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
5675 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
5676 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
5677 definitions ...
5678 * hppa-tdep.h: ... to here, with HPPA_ prefix.
5679 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
5680 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
5681 (hppa64_hpux_frame_find_saved_regs_in_sig)
5682 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
5683 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
5684 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
5685 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
5686 (hppa_linux_sigtramp_frame_prev_register): Likewise.
5687 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
5688 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
5689 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
5690 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
5691 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
5692 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
5693 (hppa32_register_type, hppa_cannot_store_register)
5694 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
5695 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
5696 * hpread.c (hpread_process_one_debug_symbol): Likewise.
5697 * pa64solib.c (pa64_solib_have_load_event)
5698 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
5699 (pa64_solib_unloaded_library_pathname): Likewise.
5700 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
5701 (som_solib_library_pathname): Likewise.
5702
0a5e7efe
JI
57032004-05-05 Jim Ingham <jingham@apple.com>
5704
5705 * breakpoint.c (create_breakpoints): Copy the ignore count and
5706 thread id over from the pended breakpoint to the actual
5707 breakpoint.
5708
10a4b113
AC
57092004-05-05 Andrew Cagney <cagney@redhat.com>
5710
5711 * gdbarch.sh (PARM_BOUNDARY): Delete.
5712 gdbarch.h, gdbarch.c: Re-generate.
5713 * valops.c (PARM_BOUNDARY): Delete macro.
5714 (value_push): Delete PARM_BOUNDARY code.
5715 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
5716
366f009f
JB
57172004-05-04 Jim Blandy <jimb@redhat.com>
5718
32b99774
JB
5719 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
5720 Don't assume that the gprs, fprs, and UISA sprs are
5721 contiguous, start at register number zero, and end with fpscr.
5722 Instead, use the numbers from the tdep structure.
5723
366f009f
JB
5724 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
5725 should no longer be used in code specific to the RS6000 and its
5726 derivatives.
5727 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
5728 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
5729 tdep->ppc_fp0_regnum.
5730 (ppc_supply_fpregset, ppc_collect_fpregset)
5731 (rs6000_push_dummy_call, rs6000_extract_return_value)
5732 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
5733 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
5734 FP0_REGNUM.
5735 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
5736 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
5737 Same.
5738 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
5739 bdm_ppc_store_registers): Same.
5740 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
5741 (store_register, fill_fpregset): Same.
5742 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
5743 (ppc_linux_supply_fpregset): Same.
5744 * ppcnbsd-nat.c (getfpregs_supplies): Same.
5745 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
5746 Same.
5747 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
5748 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
5749 ppc64_sysv_abi_return_value): Same.
5750 * rs6000-nat.c (regmap, fetch_inferior_registers)
5751 (store_inferior_registers, fetch_core_registers): Same.
5752
827f338d
MK
57532004-05-01 Mark Kettenis <kettenis@gnu.org>
5754
5755 * m68knbsd-nat.c: Remove file.
5756 * m68knbsd-tdep.c: Remove file.
5757 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
5758 dependencies.
5759 * configure.host: Add m68k-*-netbsdelf*.
5760 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
5761 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
5762 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
5763 (XM_FILE): Remove.
5764 * config/m68k/nbsdelf.mh: New file.
5765 * config/m68k/nbsd.mt: New file.
5766 * config/m68k/nbsdaout.mt: Remove file.
5767 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
5768 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
5769 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
5770 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
5771 (use_struct_convention): Remove prototype.
5772 (USE_STRUCT_CONVENTION): Remove define.
5773 * config/m68k/xm-nbsd.h: Remove file.
5774
66894781
MS
57752004-05-04 Michael Snyder <msnyder@redhat.com>
5776
5777 * m68k-tdep.c (m68k_gdbarch_init): Default to using
5778 reg_struct_return method (as gcc usually does for cross targets).
5779
f0f63663
AC
57802004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5781
5782 Committed by Andrew Cagney.
5783 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
5784 alignment padding when accessing ucontext struct members.
5785
edf61169
JB
57862004-05-04 Jim Blandy <jimb@redhat.com>
5787
8bf659e8
JB
5788 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
5789 'ppc_gplast_regnum' member.
5790 (ppc_num_gprs): New enum constant.
5791 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
5792 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
5793 * rs6000-nat.c (regmap, fetch_inferior_registers,
5794 store_inferior_registers): Same.
5795 * rs6000-tdep.c (e500_pseudo_register_read)
5796 (e500_pseudo_register_write): Same.
5797 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
5798
b967e06f
JB
5799 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
5800 * ppc-tdep.h (ppc_num_fprs): New enum constant.
5801 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
5802 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
5803 FPLAST_REGNUM.
5804 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5805 Same.
5806 * ppc-linux-nat.c (ppc_register_u_addr): Same.
5807 * rs6000-nat.c (regmap, fetch_inferior_registers)
5808 (store_inferior_registers): Same.
5809
edf61169
JB
5810 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
5811 with FPLAST_REGNUM.
5812
58a9656e
JB
58132004-05-03 Joel Brobecker <brobecker@gnat.com>
5814
5815 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
5816 failure detected by recent versions of GCC.
5817 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
5818 to be consistent with the usage in dwarf2_create_include_psymtab.
5819
dc305454
MS
58202004-05-03 Michael Snyder <msnyder@redhat.com>
5821
5822 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
5823 (heuristic_proc_start): Whitespace cleanup.
5824
29972665
MK
58252004-05-04 Mark Kettenis <kettenis@gnu.org>
5826
6b57680d
MK
5827 * sun3-nat.c: Remove file.
5828 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
5829 dependencies.
5830 (ALLDEPFILES): Remove sun3-nat.c.
5831 (sun3-nat.o): Remove dependencies.
5832
29972665
MK
5833 * i386-interix-nat.c, i386-interix-tdep.c,
5834 config/i386/nm-interix.h, config/i386/interix.mh,
5835 config/i386/interix.mt: Remove files.
5836 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
5837 dependencies.
5838
f595cb19
MK
58392004-05-03 Mark Kettenis <kettenis@gnu.org>
5840
5841 * m68k-tdep.h (struct gdbarch_tdep): Add member
5842 struct_value_regnum.
5843 (m68k_svr4_init_abi): New prototype.
5844 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
5845 different calling conventions.
5846 (m68k_extract_return_value): Remove code dealing with single-field
5847 structs.
5848 (m68k_store_return_value): Remove code dealing with single-field
5849 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
5850 (m68k_extract_struct_value_address): Remove function.
5851 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
5852 (m68k_reg_struct_return_p, m68k_return_value)
5853 (m68k_svr4_return_value): New functions.
5854 (m68k_use_struct_convention): Remove function.
5855 (m68k_push_dummy_call): Use new struct_value_regnum member of
5856 `struct gdbarch_tdep' instead of hardcoded register number to
5857 store STRUCT_ADDR.
5858 (m68k_svr4_init_abi): New function.
5859 (m68k_gdbarch_init): Don't set extract_return_value,
5860 store_return_values, deprecated_extract_struct_value_address and
5861 use_struct_convention. Set return_value instead. Initialize new
5862 struct_value_regnum member of `struct gdbarch_tdep'.
5863 * m68klinux-tdep.c: Update copyright year.
5864 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
5865 (m68k_linux_extract_struct_value_address): Remove function.
5866 (m68k_linux_init_abi): Don't set extract_return_value,
5867 store_return_values, deprecated_extract_struct_value_address and
5868 use_struct_convention. Call m68k_svr4_init_abi but override the
5869 new struct_value_regnum member of `struct gdbarch_tdep'.
5870 * Makefile.in (m68k-tdep.o): Update dependencies.
5871
aaa75496
JB
58722004-05-03 J. Brobecker <brobecker@gnat.com>
5873
5874 * dwarf2read.c (line_header): Add new included_p field in
5875 field file_names.
5876 (partial_die_info): New field has_stmt_list. New field line_offset.
5877 (dwarf2_create_include_psymtab): New function.
5878 (dwarf2_build_include_psymtabs): New function.
5879 (add_file_name): Add forward declaration. Initialize new field.
5880 (dwarf_decode_lines): Add new parameter. Enhance this procedure
5881 to be able to determine the list of files included by the
5882 given unit, and build their associated psymtabs.
5883 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
5884 files as well.
5885 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
5886 (read_file_scope): Update call to dwarf_decode_lines.
5887 (read_partial_die): Handle DW_AT_stmt_list attributes.
5888
c848556f
MC
58892004-05-02 Michael Chastain <mec.gnu@mindspring.com>
5890
5891 Unfix PR gdb/1626.
5892 * configure.in: Revert special case for osf5.*.
5893 * configure: Regenerate.
5894
eb4556d7
JB
58952004-05-02 Jim Blandy <jimb@redhat.com>
5896
5897 Move the symbol-file-from-memory functions into their own file.
5898 * symfile-mem.c, symfile-mem.h: New files.
5899 * symfile.c (symbol_file_add_from_bfd): New function.
5900 (symbol_file_add): Call symbol_file_add_from_bfd.
5901 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
5902 Moved to symfile-mem.c.
5903 (_initialize_symfile): Move definition of
5904 add-symbol-file-from-memory command to symfile-mem.c.
5905 * symfile.h (symbol_file_add_from_bfd): New declaration.
5906 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
5907 * config/powerpc/linux.mt (TDEPFILES): Same.
5908 * Makefile.in (SFILES): Add symfile-mem.c.
5909 (symfile_mem_h): New variable.
5910 (HFILES_NO_SRCDIR): Add symfile-mem.h.
5911 (symfile-mem.o): New rule.
5912
80bb239e
AC
59132004-05-01 Andrew Cagney <cagney@redhat.com>
5914
7789d0fa
AC
5915 * breakpoint.c (insert_bp_location): Use get_frame_id, and
5916 frame_find_by_id instead of frame_relative_level.
5917 (do_enable_breakpoint): Ditto.
5918 * thread.c: Update copyright.
5919 (info_threads_command): Ditto, simplify.
5920
80bb239e
AC
5921 * frame.c (deprecated_generic_get_saved_register): Delete
5922 function, moved to "xstormy16-tdep.c".
5923 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
5924 deprecated_generic_get_saved_register from "frame.c".
5925 (xstormy16_frame_saved_register): Call
5926 xstormy16_get_saved_register.
5927 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
5928 static.
5929 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
5930 * frame.h (deprecated_generic_get_saved_register): Delete.
5931
b2a871dd
MC
59322004-05-01 Michael Chastain <mec.gnu@mindspring.com>
5933
5934 * dwarfread.c: Update documentation on the state of dwarf-1.
5935
0e100dab
AC
59362004-05-01 Andrew Cagney <cagney@redhat.com>
5937
acd8056e
AC
5938 * stack.c (select_frame_command): Delete call to
5939 frame_relative_level.
5940 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
5941 Delete #if0 code.
5942 (frame_info): Do not print FRAMELESS.
5943 (print_block_frame_labels): Replace DEPRECATED_STREQ.
5944 (catch_info): Delete #if0 code.
5945
0e100dab
AC
5946 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
5947 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
5948 of frame_relative_level.
5949 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
5950 to SENTINEL_FRAME.
5951 * frame.h (enum frame_type): Add SENTINEL_FRAME.
5952 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
5953 frame_relative_level.
5954
55699d59
AC
5955 * frame.h (deprecated_set_frame_type): Delete declaration.
5956 * frame.c (deprecated_set_frame_type): Delete function, update
5957 comments.
5958
fcf70625
AC
5959 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
5960 * gdbarch.h, gdbarch.c: Re-generate.
5961 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
5962 (shnbsd_pc_in_sigtramp): Delete.
5963 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
5964 pc_in_sigtramp.
5965 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
5966 pc_in_sigtramp.
5967 * frame.h: Update comments.
5968 * ppc-linux-tdep.c: Update comments.
5969 * breakpoint.c (bpstat_what): Update comments.
5970
ac5eccb7
AC
5971 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
5972 m68klinux-tdep.o's dependencies, were previously added to
5973 m68klinux-nat.o.
5974
f2524b93
AC
5975 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
5976 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
5977 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5978 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5979 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5980
17e20bce
AC
5981 * Makefile.in (m68klinux-nat.o): Update dependencies.
5982 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5983 (m68k_linux_sigtramp_frame_cache)
5984 (m68k_linux_sigtramp_frame_this_id)
5985 (m68k_linux_sigtramp_frame_prev_register)
5986 (m68k_linux_sigtramp_frame_unwind)
5987 (m68k_linux_sigtramp_frame_sniffer)
5988 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
5989 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
5990 names, use trad-frame.h.
5991 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
5992 (struct m68k_sigtramp_info): Delete.
5993 * m68k-tdep.c (m68k_sigtramp_frame_cache)
5994 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
5995 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
5996 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
5997 "m68klinux-tdep.c".
5998
c8864fa2
AC
5999 * infrun.c (check_sigtramp2): Delete check for
6000 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6001
511dd2cd
MK
60022004-05-01 Mark Kettenis <kettenis@gnu.org>
6003
6004 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6005
8c6b0e06
AC
60062004-05-01 Andrew Cagney <cagney@redhat.com>
6007
9df0bb3f
AC
6008 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6009 (frv_linux_sigtramp_frame_cache)
6010 (frv_linux_sigtramp_frame_this_id)
6011 (frv_linux_sigtramp_frame_prev_register)
6012 (frv_linux_sigtramp_frame_unwind)
6013 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6014 include "linux" in function and variable names, directly call
6015 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
6016 the latest trad-frame code.
6017 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
6018 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
6019 * Makefile.in (frv-linux-tdep.o): Update dependencies.
6020 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
6021 * frv-tdep.c (frv_sigtramp_frame_cache)
6022 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6023 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
6024 frv-linux-tdep.c.
6025 (frv_gdbarch_init): Do not append a sigtramp sniffer.
6026 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
6027 (frv_set_sigcontext_reg_addr): Delete function.
6028
8c6b0e06
AC
6029 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
6030 (DEPRECATED_SIGTRAMP_END): Delete.
6031 * gdbarch.h, gdbarch.c: Re-generate.
6032 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
6033 * config/vax/tm-vaxbsd.h: Update copyright.
6034 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6035 (DEPRECATED_IN_SIGTRAMP): Define.
6036 * config/m68k/tm-nbsd.h: Update copyright.
6037 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6038 (DEPRECATED_IN_SIGTRAMP): Define.
6039
50ea7769
MK
60402004-05-01 Mark Kettenis <kettenis@gnu.org>
6041
03ac2a74
MK
6042 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6043 encondings. Fixes PR gdb/1628.
6044
50ea7769
MK
6045 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6046 DW_CFA_restore state without a matching DW_CFA_remember_state
6047 instead of aborting. Fixes PR backtrace/1589.
6048
9a5d7be1
JB
60492004-04-30 Joel Brobecker <brobecker@gnat.com>
6050
6051 * MAINTAINERS: Add self as AIX maintainer.
6052 Update my e-mail address in write-after-approval section.
6053
2593d1cd
AC
60542004-04-30 Andrew Cagney <cagney@redhat.com>
6055
ce12bbf9
AC
6056 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6057 (legacy_get_prev_frame): Ditto.
6058
36710c63
AC
6059 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6060 (mips_gdbarch_init): Do not set pc_in_sigtramp.
6061 * mipsread.c (sigtramp_address): Delete extern variable.
6062 (mipscoff_new_init): Delete reference.
6063 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6064 (fixup_sigtramp): Delete function.
6065 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6066 (fixup_sigtramp): Delete declarations.
6067
2593d1cd
AC
6068 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6069 deprecated_pc_in_sigtramp.
6070 (ppcnbsd_pc_in_sigtramp): Delete function.
6071
2a25f91c
MK
60722004-05-01 Mark Kettenis <kettenis@gnu.org>
6073
6074 * config/m68k/nm-nbsd.h: Tweak comments.
6075 * config/m68k/nm-nbsdaout.h: Likewise.
6076
0b281939
AC
60772004-04-30 Andrew Cagney <cagney@redhat.com>
6078
6079 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6080 legacy_pc_in_sigtramp.
6081 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6082
8f2d3ea0
MK
60832004-05-01 Mark Kettenis <kettenis@gnu.org>
6084
6085 Add OpenBSD/m68k support.
6086 * NEWS (New native configurations): Mention OpenBSD/m68k.
6087 * m68kbsd-tdep.c: New file.
6088 * m68kbsd-nat.c: New file.
6089 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6090 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6091 * configure.host: Add m68k-*-openbsd.
6092 * configure.tgt: Add m68k-*-openbsd.
6093 * config/m68k/tm-obsd.h: New file.
6094 * config/m68k/obsd.mt: New file.
6095 * config/m68k/obsd.mh: New file.
6096 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6097 m68kbsd-tdep.c.
6098
c40f49a4
AC
60992004-04-30 Andrew Cagney <cagney@redhat.com>
6100
6101 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6102 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6103
e81554cd
MK
61042004-04-30 Mark Kettenis <kettenis@gnu.org>
6105
6106 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6107 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6108
d4dc1a91
BF
61092004-04-30 Brian Ford <ford@vss.fsi.com>
6110
6111 Revert 2004-04-16 change.
6112 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6113 (i386_coff_init_abi): Remove.
6114 * i386-tdep.h (i386_coff_init_abi): Remove.
6115 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6116
2f72f850
AC
61172004-04-30 Andrew Cagney <cagney@redhat.com>
6118
e492f9d6
AC
6119 * blockframe.c (find_pc_partial_function): Delete use of
6120 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6121 DEPRECATED_SIGTRAMP_END.
6122
7b7adad0
AC
6123 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6124 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6125 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6126 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6127 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6128
2f72f850
AC
6129 * defs.h (deprecated_inside_entry_file): Delete declaration.
6130 * blockframe.c (deprecated_inside_entry_file): Delete function.
6131 (legacy_frame_chain_valid): Delete call.
6132 * sh64-tdep.c (sh64_frame_chain): Delete call.
6133 * objfiles.h: Update comments.
6134 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6135 call.
6136 * frame.c (get_prev_frame): Delete call, update comments.
6137
283f90a7
BF
61382004-04-30 Brian Ford <ford@vss.fsi.com>
6139
6140 * MAINTAINERS (Write After Approval): Add myself.
6141
8ee56bcf
AC
61422004-04-30 Andrew Cagney <cagney@redhat.com>
6143
6144 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
6145 * gdbarch.h, gdbarch.c: Re-generate.
6146 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
6147 code.
6148
ee27e1b6
AC
61492004-04-30 Andrew Cagney <cagney@redhat.com>
6150
6151 * gdb-events.sh (selected_thread_changed)
6152 (selected_frame_level_changed, target_changed): Delete.
6153 * gdb-events.h, gdb-events.c: Re-generate.
6154 * valops.c (value_assign): Update.
6155 * stack.c (select_frame_command, up_silently_base)
6156 (down_silently_base): Update.
6157
d5ac5a39
AC
61582004-04-29 Andrew Cagney <cagney@redhat.com>
6159
6160 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
6161 registers correctly.
6162 (print_gp_register_row, mips32_heuristic_proc_desc)
6163 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
6164 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
6165 references to mips_isa_regsize.
6166
ceae6e75
AC
61672004-04-29 Andrew Cagney <cagney@redhat.com>
6168
6169 * mips-tdep.c (struct gdbarch_tdep): Delete
6170 mips_fp_register_double.
6171 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
6172 mips_abi_regsize.
6173 (mips_gdbarch_init): Do not set mips_fp_register_double.
6174 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
6175
a587af0b
AC
61762004-04-29 Joel Brobecker <brobecker@gnat.com>
6177
6178 Committed by Andrew Cagney.
6179 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
6180 function calls.
6181
13326b4e
AC
61822004-04-29 Andrew Cagney <cagney@redhat.com>
6183
6184 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
6185 gdbarch, use mips_abi, update callers.
6186 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
6187 mips_abi_regsize, update callers.
6188 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
6189 mips_default_abi_regsize.
6190 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
6191 mips_default_abi_regsize.
6192
711cc5cd
AC
61932004-04-29 Andrew Cagney <cagney@redhat.com>
6194
1b13c4f6
AC
6195 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
6196 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
6197 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
6198 mips_default_abi_regsize.
6199 (mips_isa_regsize): Rename mips_regisze.
6200 * mipsnbsd-tdep.c: Update.
6201 * mips-linux-tdep.c: Update.
6202 * irix5-nat.c: Update.
6203 * mips-tdep.h (mips_isa_regsize): Update.
6204
711cc5cd
AC
6205 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
6206 Delete all disabled code.
6207 * gdb-events.h, gdb-events.c: Re-generate.
6208
e63bbc88
MK
62092004-04-19 Jerome Guitton <guitton@gnat.com>
6210 Mark Kettenis <kettenis@gnu.org>
6211
6212 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
6213 the function begins with a branch instruction.
6214
fd35795f
MK
62152004-04-29 Mark Kettenis <kettenis@gnu.org>
6216
6217 * i386-tdep.c: Fix spelling mistakes.
6218
c960c18f
AC
62192004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6220 Andrew Cagney <cagney@redhat.com>
6221
6222 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
6223 <sys/proc.h>.
6224 * acconfig.h: Provide default _KMEMUSER value.
6225 * config.in, configure: Re-generate.
6226 * NEWS: Mention fix.
6227
50306a9d
RC
62282004-04-24 Randolph Chung <tausq@debian.org>
6229
6230 * configure.host (hppa*-*-linux*): New target.
6231 * configure.tgt (hppa*-*-linux*): Likewise.
6232 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
6233 gdbarch_init_osabi() call earlier so that osabi-specific frame
6234 unwinders can be registered first.
6235 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
6236 hppa-linux-nat.c.
6237 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
6238 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
6239 * config/pa/linux.mh: New file.
6240 * config/pa/linux.mt: New file.
6241 * config/pa/nm-linux.h: New file.
6242 * config/pa/xm-linux.h: New file.
6243 * hppa-linux-nat.c: New file.
6244 * hppa-linux-tdep.c: New file.
6245
2a6228ef
RC
62462004-04-28 Randolph Chung <tausq@debian.org>
6247
6248 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
6249 return values.
6250 (hppa32_push_dummy_call): Fix small struct and floating point argument
6251 passing, and make sure the stack frame is properly aligned.
6252
82c10df6
AC
62532004-04-28 Andrew Cagney <cagney@redhat.com>
6254
d762c46a
AC
6255 * stack.c (print_stack_frame): Fix description.
6256
82c10df6
AC
6257 * NEWS: Mention gdb/gdbserver/configure execute permission
6258 changed. PR server/519.
6259
0faf0076
AC
62602004-04-28 Andrew Cagney <cagney@redhat.com>
6261
6262 * stack.c (print_stack_frame_stub): Delete declaration.
6263 (struct print_stack_frame_args, print_stack_frame)
6264 (print_frame_info, print_frame): Replace "source" with print what.
6265 Replace "print" with "print_level". Replace "args" with
6266 "print_args".
6267 * frame.h (show_and_print_stack_frame, print_stack_frame)
6268 (print_frame_info): Update declarations.
6269 * stack.c (select_and_print_frame, frame_command)
6270 (current_frame_command, up_command, down_command): Update calls -
6271 use get_selected_frame, pass "enum print_what" for source, do not
6272 call frame_relative_level.
6273 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
6274 * remote-rdp.c (remote_rdp_open): Ditto.
6275 * remote-mips.c (common_open): Ditto.
6276 * remote-e7000.c (e7000_start_remote): Ditto.
6277 * ocd.c (ocd_start_remote): Ditto.
6278 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
6279 * infrun.c (normal_stop): Ditto.
6280 * inflow.c (kill_command): Ditto.
6281 * infcmd.c (finish_command): Ditto.
6282 * corelow.c (core_open): Ditto.
6283 * tracepoint.c (finish_tfind_command): Ditto.
6284 * thread.c (info_threads_command, info_threads_command)
6285 (restore_current_thread, do_captured_thread_select): Ditto.
6286 * ada-tasks.c (task_command): Ditto.
6287
f4c5303c
OF
62882004-04-26 Orjan Friberg <orjanf@axis.com>
6289
6290 * frame.c: Include "observer.h".
6291 (frame_observer_target_changed): New function.
6292 (_initialize_frame): Attach target_changed observer.
6293 * regcache.c: Include "observer.h".
6294 (regcache_observer_target_changed): New function.
6295 (_initialize_regcache): Attach target_changed observer.
6296 * valops.c: Include "observer.h".
6297 (value_assign): Notify target_changed event when modifying register.
6298 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
6299
7270d8f2
OF
63002004-04-26 Orjan Friberg <orjanf@axis.com>
6301
6302 From Paul Koning <pkoning@equallogic.com>:
6303 * breakpoint.c (free_valchain): New function.
6304 (insert_bp_location, delete_breakpoint): Use free_valchain.
6305 (remove_breakpoint): Do not remove the valchain.
6306 (bpstat_stop_status): If not stopped by watchpoint, skip
6307 watchpoints when generating stop status list.
6308 * infrun.c (handle_inferior_event): Make
6309 stepped_after_stopped_by_watchpoint a global variable.
6310 * remote.c (remote_stopped_data_address): Return watch data
6311 address rather than zero if stepped_after_stopped_by_watchpoint is
6312 set.
6313
02d62932
MC
63142004-04-25 Michael Chastain <mec.gnu@mindspring.com>
6315
6316 Fix PR gdb/1626.
6317 * configure.in: Check for curses after termcap.
6318 On osf5.*, do not check for ncurses.
6319 * configure: Regenerate.
6320
3e9a183c
MK
63212004-04-25 Mark Kettenis <kettenis@gnu.org>
6322
c79ac407
MK
6323 * ppcobsd-nat.c: Include "ppc-tdep.h".
6324 * Makefile.in (ppcobsd-nat.o): Update dependencies.
6325
3e9a183c
MK
6326 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
6327 Fixes PR tdep/1623 and PR tdep/1624.
6328
38cc9c28
MC
63292004-04-24 Michael Chastain <mec.gnu@mindspring.com>
6330
6331 * xmodem.h, xmodem.c: Remove files.
6332 * Makefile.in: Remove references to xmodem.h, xmodem.c.
6333
7f07c5b6
RC
63342004-04-23 Randolph Chung <tausq@debian.org>
6335
6336 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
6337 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
6338 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
6339 for handling stackless frames.
6340 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
6341
9f7194c3
RC
63422004-04-23 Randolph Chung <tausq@debian.org>
6343
6344 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
6345 starts at a pc before the frame is created.
6346
dcff6009
JB
63472004-04-23 Joel Brobecker <brobecker@gnat.com>
6348
6349 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
6350
40711ff1 63512004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
6352
6353 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
6354 use convert_typed_floating to get the appropriate format.
6355
abc485a1
RC
63562004-04-22 Randolph Chung <tausq@debian.org>
6357
6358 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
6359 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
6360 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
6361 (hppa_sign_extend): Add prototype.
6362 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
6363 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
6364 (sign_extend): Rename with hppa_ prefix and make non-static. Other
6365 hppa targets will also use these functions.
6366 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
6367 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
6368 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
6369 (hppa_gdbarch_init): Remove gdbarch setting of
6370 skip_trampoline_code, in_solib_call_trampoline and
6371 in_solib_return_trampoline.
6372 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6373 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
6374 hppa_in_solib_call_trampoline.
6375 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
6376 Moved from hppa-tdep.c.
6377 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
6378 in_solib_call_trampoline and in_solib_return_trampoline.
6379
369aa520
RC
63802004-04-22 Randolph Chung <tausq@debian.org>
6381
6382 * hppa-tdep.c (hppa_debug): New variable.
6383 (find_unwind_entry, hppa_frame_cache): Add debug output.
6384 (_initialize_hppa_tdep): Add command to set debug flag.
6385
476be15e
AC
63862004-04-22 Andrew Cagney <cagney@redhat.com>
6387
6388 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
6389 "trad-frame.h".
6390 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
6391 signal trampoline unwinder.
6392 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
6393
d195bc9f
MK
63942004-04-22 Mark Kettenis <kettenis@gnu.org>
6395
6396 Add OpenBSD/powerpc support.
6397 * NEWS (New native configurations): Mention OpenBSD/powerpc.
6398 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
6399 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
6400 (ppc_collect_fpregset): New prototypes.
6401 * ppcobsd-nat.c: New file.
6402 * ppcobsd-tdep.c: New file.
6403 * ppcobsd-tdep.h: New file.
6404 * rs6000-tdep.c: Include "regset.h".
6405 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
6406 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
6407 New functions.
6408 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
6409 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
6410 (rs6000-tdep.o): Update dependencies.
6411 * configure.host: Add powerpc-*-openbsd.
6412 * configure.tgt: Add powerpc-*-openbsd.
6413 * config/powerpc/obsd.mh: New file.
6414 * config/powerpc/nm-obsd.h: New file.
6415 * config/powerpc/obsd.mt: New file.
6416
6f14cc33
AC
64172004-04-22 Andrew Cagney <cagney@redhat.com>
6418
fcf29e5f
AC
6419 * frame.h (show_frame_info): Delete declaration.
6420
6f14cc33
AC
6421 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
6422 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
6423 * m32r-tdep.c (m32r_frame_this_id): Ditto.
6424 * frv-tdep.c (frv_frame_this_id): Ditto.
6425 * avr-tdep.c (avr_frame_this_id): Ditto.
6426
e5786a5c
EZ
64272004-04-22 Elena Zannoni <ezannoni@redhat.com>
6428
6429 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
6430
26e75e5c
JB
64312004-04-22 Jim Blandy <jimb@redhat.com>
6432
6433 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
6434 register number zero.
6435
d8d65dd3
MS
64362004-04-21 Michael Snyder <msnyder@redhat.com>
6437
6438 * mips-tdep.c (heuristic_proc_start):
6439 Warning() already prefixes "Warning: ".
6440
9a4105ab
AC
64412004-04-21 Andrew Cagney <cagney@redhat.com>
6442
6443 * annotate.h (deprecated_annotate_starting_hook)
6444 (deprecated_annotate_stopped_hook)
6445 (deprecated_annotate_exited_hook)
6446 (deprecated_annotate_signal_hook)
6447 (deprecated_annotate_signalled_hook): Deprecate.
6448 * tracepoint.h (deprecated_create_tracepoint_hook)
6449 (deprecated_delete_tracepoint_hook)
6450 (deprecated_modify_tracepoint_hook)
6451 (deprecated_trace_find_hook)
6452 (deprecated_trace_start_stop_hook): Deprecate.
6453 * target.h (deprecated_target_new_objfile_hook): Deprecate.
6454 * remote.h (deprecated_target_resume_hook)
6455 (deprecated_target_wait_loop_hook): Deprecate.
6456 * gdbcore.h (deprecated_exec_file_display_hook)
6457 (deprecated_file_changed_hook): Deprecate.
6458 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
6459 * defs.h (deprecated_modify_breakpoint_hook)
6460 (deprecated_command_loop_hook, deprecated_show_load_progress)
6461 (deprecated_print_frame_info_listing_hook)
6462 (deprecated_query_hook, deprecated_warning_hook)
6463 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
6464 (deprecated_delete_breakpoint_hook)
6465 (deprecated_interactive_hook, deprecated_registers_changed_hook)
6466 (deprecated_readline_begin_hook, deprecated_readline_hook)
6467 (deprecated_readline_end_hook, deprecated_register_changed_hook)
6468 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
6469 (deprecated_context_hook, deprecated_target_wait_hook)
6470 (deprecated_attach_hook, deprecated_detach_hook)
6471 (deprecated_call_command_hook, deprecated_set_hook)
6472 (deprecated_error_hook, deprecated_error_begin_hook)
6473 (deprecated_ui_load_progress_hook): Deprecate.
6474 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
6475 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
6476 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
6477 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
6478 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
6479 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
6480 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
6481 * annotate.c, aix-thread.c: Update.
6482
62cf13cc
AC
64832004-04-21 Andrew Cagney <cagney@redhat.com>
6484
b2e31a62
AC
6485 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
6486 * vaxnbsd-tdep.c: Include "gdb_string.h".
6487
62cf13cc
AC
6488 * symfile.c (symbol_file_add_from_memory): #if 0 function.
6489 (add_symbol_file_from_memory_command): #if 0 function body, call
6490 error instead.
6491
00e32a35
AC
64922004-04-21 Andrew Cagney <cagney@redhat.com>
6493
6494 * gdbcore.h: Update copyright.
6495 (deprecated_add_core_fns): Rename add_core_fns.
6496 * win32-nat.c (_initialize_core_win32): Update.
6497 * sun3-nat.c (_initialize_core_sun3): Update.
6498 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
6499 * rs6000-nat.c (_initialize_core_rs6000): Update.
6500 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
6501 * nto-tdep.c (_initialize_nto_tdep): Update.
6502 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
6503 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
6504 * mips-nat.c (_initialize_core_mips): Update.
6505 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6506 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
6507 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
6508 * lynx-nat.c (_initialize_core_lynx): Update.
6509 * irix5-nat.c (_initialize_core_irix5): Update.
6510 * i386-interix-nat.c (_initialize_core_interix): Update.
6511 * cris-tdep.c (_initialize_cris_tdep): Update.
6512 * corelow.c (deprecated_add_core_fns): Update.
6513 * core-regset.c (_initialize_core_regset): Update.
6514 * core-aout.c (_initialize_core_aout): Update.
6515 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
6516 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
6517 * alpha-nat.c (_initialize_core_alpha): Update.
6518
13c7b1ca
JB
65192004-04-21 Jim Blandy <jimb@redhat.com>
6520
6521 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
6522
7b5a2f43
DJ
65232004-04-19 Daniel Jacobowitz <drow@mvista.com>
6524
6525 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
6526 Delete.
6527 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
6528 (read_attribute_value): Update calls to dwarf_alloc_block.
6529 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
6530 dwarf2_tmp_obstack.
6531 (psymtab_to_symtab_1): Likewise. Clean up using
6532 free_stack_comp_unit.
6533 (add_to_cu_func_list): Use the comp_unit_obstack.
6534
05cf31d1
JB
65352004-04-19 Joel Brobecker <brobecker@gnat.com>
6536
6537 * dwarf2read.c (dwarf2_flag_true_p): New function.
6538 (die_is_declaration): Use the function above. Add some comments.
6539
adf93a2f
MK
65402004-04-19 Mark Kettenis <kettenis@gnu.org>
6541
6542 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
6543 architecture when registering sparcnbsd_core_osabi_sniffer.
6544 Adjust comment.
6545
748894bf
MK
65462004-04-18 Mark Kettenis <kettenis@gnu.org>
6547
f622ad42
MK
6548 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
6549 return value.
6550
c4fc7f1b
MK
6551 Based on a patch from Brian Ford <ford@vss.fsi.com>:
6552 * i386-tdep.c: Correct register numbering scheme comments
6553 throughout.
6554 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
6555 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
6556 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
6557 (i386_gdb_arch_init): Likewise.
6558
b4ead1bd
MK
6559 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
6560 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
6561 ppcnbsd-tdep.o.
6562
748894bf
MK
6563 * m68k-tdep.h: Tweak comments.
6564 * m68k-tdep.c: Tweak comment.
6565
fdd72f95
RC
65662004-04-17 Randolph Chung <tausq@debian.org>
6567
6568 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
6569 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
6570 (hppa_hpux_som_init_abi): Set is_elf to 0.
6571 (hppa_hpux_elf_init_abi): Set is_elf to 1.
6572 * hppa-tdep.c (low_text_segment_address): Remove global.
6573 (record_text_segment_lowaddr): Pass in low address as parameter. Use
6574 section offset to calculate segment address.
6575 (internalize_unwinds): Define low_text_segment_address as local and
6576 pass to record_text_segment_lowaddr for ELF targets.
6577 (hppa_gdbarch_init): Zero fill tdep structure.
6578 (hppa_dump_tdep): Print tdep structure.
6579 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
6580
0f8d9d59
RC
65812004-04-17 Randolph Chung <tausq@debian.org>
6582
6583 * hppa-tdep.c (hppa_pseudo_register_read): Define.
6584 (hppa_gdbarch_init): Set pseudo_register_read.
6585 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
6586 * regcache.c (supply_register): Remove check for
6587 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
6588
7c46b9fb
RC
65892004-04-17 Randolph Chung <tausq@debian.org>
6590
6591 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
6592 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
6593 (hpread_adjust_stack_address): Move to hpread.c.
6594 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6595 obj_private_struct): Move from tm-hppa.h.
6596 * hpread.c (hppa-tdep.h): Include.
6597 (hpread_adjust_stack_address): Move from hppa-tdep.c.
6598 (hpread_read_function_type, hpread_read_doc_function_type)
6599 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
6600 directly.
6601 * pa64solib.c (hppa-tdep.h): Include.
6602 * somsolib.c (hppa-tdep.h): Include.
6603 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
6604 inferior_status): Remove unused forward declarations.
6605 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
6606 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6607 obj_private_struct): Move to hppa-tdep.h.
6608 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
6609
8d153463
RC
66102004-04-17 Randolph Chung <tausq@debian.org>
6611
6612 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
6613 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
6614 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
6615 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
6616 Remove forward declaration and make static.
6617 (hppa_reg_struct_has_addr): Remove.
6618
350c2e5b
JB
66192004-04-16 Joel Brobecker <brobecker@gnat.com>
6620
6621 * observer.sh: Move comments in sed command to first column.
6622
bbde78fa
JM
66232004-04-16 Jason Molenda (jmolenda@apple.com)
6624
6625 * frame.c: Minor typeo corrections in comments.
6626
e0270fd9
JB
66272004-04-16 Joel Brobecker <brobecker@gnat.com>
6628
6629 * observer.c (observer_test_first_notification_function): Update
6630 function profile.
6631 (observer_test_second_notification_function): Likewise.
6632 (observer_test_third_notification_function): Likewise.
6633
3d049254
MK
66342004-04-16 Mark Kettenis <kettenis@gnu.org>
6635
6636 From Brian Ford <ford@vss.fsi.com>:
6637 * i386-tdep.c (i386_coff_init_abi): New function.
6638 * i386-tdep.h (i386_coff_init_abi): New prototype.
6639 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
6640 register number translation functions for DWARF and DWARF 2.
6641
7867684d
JB
66422004-04-16 Joel Brobecker <brobecker@gnat.com>
6643
6644 * dwarf2read.c: Back out my previous change, it was incorrect.
6645
72bf9492
DJ
66462004-04-16 Daniel Jacobowitz <drow@mvista.com>
6647
6648 * dwarf2read.c: Include "hashtab.h".
6649 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
6650 has_namespace_info.
6651 (struct partial_die_info): Add comments. Use bitfields to reduce
6652 memory footprint. Add scope, scope_set, has_specification,
6653 spec_offset, die_parent, die_child, and die_sibling.
6654 (peek_die_abbrev): Add prototype.
6655 (partial_read_comp_unit_head): New function, broken out from
6656 dwarf2_build_psymtabs_hard.
6657 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
6658 Use partial_read_comp_unit_head. Initialize the CU and
6659 comp_unit_obstack. Update calls to read_partial_die and
6660 scan_partial_symbols. Use free_stack_comp_unit and
6661 load_partial_dies.
6662 (scan_partial_symbols): Change PDI to a pointer. Use the child and
6663 sibling pointers to walk partial DIEs. Call fixup_partial_die.
6664 Update calls to helper functions. Remove NAMESPACE argument.
6665 Update comments.
6666 (partial_die_parent_scope, partial_die_full_name): New functions.
6667 (add_partial_symbol): Remove namespace argument. Update call to
6668 pdi_needs_namespace. Use partial_die_full_name. Handle
6669 DW_TAG_namespace. Check has_namespace_info flag.
6670 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
6671 tag. Handle namespaces.
6672 (add_partial_namespace, add_partial_enumeration): Simplify.
6673 (guess_structure_name): New function, derived from
6674 add_partial_structure.
6675 (add_partial_structure): Remove.
6676 (determine_class_name): Update comment.
6677 (dwarf2_read_abbrevs): Set has_namespace_info flag.
6678 (is_type_tag_for_partial, load_partial_dies): New functions.
6679 (read_partial_die): Pass abbrev and abbrev_len as arguments.
6680 Record specifications instead of following them immediately.
6681 (find_partial_die_in_comp_unit, find_partial_die)
6682 (fixup_partial_die, free_stack_comp_unit)
6683 (hashtab_obstack_allocate, dummy_obstack_deallocate)
6684 (partial_die_hash, partial_die_eq): New functions.
6685 * Makefile.in (hashtab_h): Define.
6686 (dwarf2read.o): Update dependencies.
6687 (observer_inc, observer_h): Move to the correct section.
6688
fdc860a3
JB
66892004-04-15 Joel Brobecker <brobecker@gnat.com>
6690
6691 * dwarf2read.c (dwarf2_attribute_true_p): New function.
6692 (die_is_declaration): Use the function above. Add comment.
6693
dc718098
JB
66942004-04-15 Joel Brobecker <brobecker@gnat.com>
6695
6696 * dwarf2read.c (read_structure_scope): Identify stub types
6697 using die_is_declaration() only.
6698
8718a420
RM
66992004-04-15 Roland McGrath <roland@redhat.com>
6700
6701 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
6702 argument instead of NAME.
6703 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
6704 in call to symbol_file_add_with_addrs_or_offsets.
6705 (build_addr_info): New function, helper for ...
6706 (symbol_file_add_from_memory): New function.
6707 (add_symbol_file_from_memory_command): New function using that.
6708 (_initialize_symfile): Register it for add-symbol-file-from-memory.
6709 (pre_add_symbol_hook): Add const to argument type.
6710 * symfile.h (symbol_file_add_from_memory): Declare it.
6711
8b910bab
MK
67122004-04-15 Mark Kettenis <kettenis@gnu.org>
6713
9f076e7a
MK
6714 * NEWS (New native configurations): Mention OpenBSD/vax.
6715 * configure.host: Add vax-*-openbsd*.
6716 * config/vax/obsd.mh: New file.
6717 * config/vax/nm-obsd.h: New file.
6718
8b910bab
MK
6719 * vax-tdep.c: Include "regset.h".
6720 (vax_supply_gregset): New function.
6721 (vax_gregset): New variable.
6722 (vax_regset_from_core_section): New function.
6723 (vax_gdbarch_init): Set regset_from_core_section.
6724 * Makefile.in (vax-tdep.o): Update dependencies.
6725
7a464420
AC
67262004-04-15 Andrew Cagney <cagney@redhat.com>
6727
6728 * observer.c (normal_stop_subject, observer_notify_normal_stop)
6729 (observer_normal_stop_notification_stub)
6730 (observer_attach_normal_stop, observer_detach_normal_stop):
6731 Delete, replaced by #include "observer.inc".
6732 * infrun.c (normal_stop): Pass "stop_bpstat" to
6733 observer_notify_normal_stop.
6734 * Makefile.in (observer_inc): Define.
6735 (observer.o): Update dependencies.
6736 (observer.h, observer.inc): New rules.
6737 * observer.h: Delete file.
6738 * observer.sh: New file.
6739
e36ad527
MK
67402004-04-15 Mark Kettenis <kettenis@gnu.org>
6741
6742 * vax-tdep.c (vax_frame_cache): Fix typo.
6743
67b441e1
MK
67442004-04-14 Mark Kettenis <kettenis@gnu.org>
6745
6f606e1c
MK
6746 * NEWS (New native configurations): Mention NetBSD/vax.
6747 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
6748 * config/vax/nbsdelf.mh: New file.
6749 * config/vax/nbsdaout.mh: New file.
6750 * config/vax/nm-nbsd.h: New file.
6751 * config/vax/nm-nbsdaout.h: New file.
6752
9c5519a5
MK
6753 * vaxnbsd-tdep.c: New file.
6754 * Makefile.in (vaxnbsd-tdep.o): New dependency.
6755 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
6756 * config/vax/nbsd.mt: New file.
6757 * config/vax/tm-nbsd.h: New file.
6758
4844a614
MK
6759 * Makefile.in (vaxbsd-nat.o): New dependency.
6760
67b441e1
MK
6761 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
6762 * vax-tdep.c (vax_store_arguments): Remove struct_return and
6763 struct_addr arguments. Don't push return value address.
6764 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
6765 arguments to vax_store_arguments. Store return value address in
6766 R1.
6767 (vax_store_struct_return, vax_extract_return_value)
6768 (vax_store_return_value): Remove functions.
6769 (vax_return_value): New function.
6770 (vax_gdbarch_init): Set return value. Don't set
6771 deprecated_store_struct_return, deprecated_extract_struct_return
6772 and deprecated_store_return_value.
6773
6672f2ae
AS
67742004-04-14 Andreas Schwab <schwab@suse.de>
6775
6776 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
6777 value buffer.
6778 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
6779
7346c184
MK
67802004-04-14 Mark Kettenis <kettenis@gnu.org>
6781
6782 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
6783 (vax_unwind_dummy_id): New functions.
6784 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
6785 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
6786 variables.
6787 (vax_fix_call_dummy): Remove function.
6788 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
6789 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
6790 call_dummy_location, deprecated_call_dummy_words,
6791 deprecated_sizeof_call_dummy_words,
6792 deprecated_call_dummy_breakpoint_offset,
6793 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
6794 and deprecated_dummy_write_sp.
6795
58e23df4
DC
67962004-04-13 David Carlton <carlton@kealia.com>
6797
6798 * MAINTAINERS: Move myself to "paper trail" section.
6799
5e6b39ff
MK
68002004-04-12 Mark Kettenis <kettenis@gnu.org>
6801
7def7fef
MK
6802 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
6803 "trad-frame.h".
6804 (vax_frame_init_saved_regs): Remove function.
6805 (vax_sigtramp_saved_pc): Remove function.
6806 (vax_frame_saved_pc): Remove function.
6807 (vax_frame_args_address): Remove function.
6808 (vax_frame_num_args): Rewrite.
6809 (vax_frame_chain): Remove function.
6810 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
6811 VAX_FP_REGNUM.
6812 (vax_pop_frame): Likewise.
6813 (vax_saved_pc_after_call): Remove function.
6814 (struct vax_frame_cache): New structure.
6815 (vax_frame_cache): New function.
6816 (vax_frame_this_id): New function.
6817 (vax_frame_prev_register): New function.
6818 (vax_frame_unwind): New variable.
6819 (vax_frame_sniffer): New function.
6820 (vax_frame_base_address): New function.
6821 (vax_frame_args_address): New function.
6822 (vax_frame_base): New variable.
6823 (vax_unwind_pc): New function.
6824 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
6825 deprecated_fp_regnum, deprecated_saved_pc_after_call,
6826 deprecated_frame_chain, deprecated_frame_saved_pc,
6827 deprecated_frame_args_address and
6828 deprecated_frame_init_saved_regs.
6829 * Makefile.in (vax-tdep.o): Update dependencies.
6830
53284fc1
MK
6831 * vaxbsd-nat.c: New file.
6832
5e6b39ff
MK
6833 * vax-tdep.h: Update copyright year. Adjust comments.
6834 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
6835 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
6836 (vax_regnum): New enum. Replacing...
6837 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
6838 (VAX_PS_REGNUM): ... these removed macros.
6839 * vax-tdep.c (vax_register_name): Remove prototype.
6840 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
6841 (vax_register_byte, vax_register_raw_size,
6842 vax_register_virtual_size, vax_register_virtual_type): Remove
6843 functions.
6844 (vax_register_type): New function.
6845 (vax_breakpoint_from_pc): Reorganize.
6846 (vax_gdbarch_init): Set register_type. Don't set
6847 deprecated_register_size, deprecated_register_bytes,
6848 deprecated_register_byte, deprecated_register_raw_size,
6849 deprecated_max_register_raw_size,
6850 deprecated_register_virtual_size,
6851 deprecated_max_register_virtual_size and
6852 deprecated_register_virtual_type. Add comment on stack direction.
6853
e9c71e9f
MK
68542004-04-11 Mark Kettenis <kettenis@gnu.org>
6855
6856 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
6857 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 6858 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 6859
d46f1176 68602004-04-10 Randolph Chung <tausq@debian.org>
8718a420 6861
d46f1176
RC
6862 * MAINTAINERS (write after approval): Add myself.
6863
a2a84a72
RC
68642004-04-07 Randolph Chung <tausq@debian.org>
6865
6866 * hppa-tdep.c (hppa_inner_than): Remove.
6867 (is_pa_2): Remove unused static variable.
8718a420 6868 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 6869
e85c3284
PH
68702004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
6871
6872 * language.h (language_defn): Add new la_post_parser field.
6873 * parser-defs.h (null_post_parser): New declaration (default for
6874 la_post_parser).
8718a420 6875
e85c3284
PH
6876 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
6877 insert call to that function.
6878 (parse_exp_in_context): New function, including code formerly in
8718a420 6879 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
6880 prefixification.
6881 (parse_expression_in_context): New exported function.
6882 (null_post_parser): New definition.
6883 * expression.h (parse_expression_in_context): Add declaration.
8718a420 6884
e85c3284
PH
6885 * p-lang.c (pascal_language_defn): Add trivial post-parser.
6886 * c-lang.c (c_language_defn): Ditto.
6887 (cplus_language_defn): Ditto.
6888 (asm_language_defn): Ditto.
6889 (minimal_language_defn): Ditto.
6890 * f-lang.c (f_language_defn): Ditto.
6891 * jv-lang.c (java_language_defn): Ditto.
6892 * language.c (unknown_language_defn): Ditto.
6893 (auto_language_defn): Ditto.
6894 (local_language_defn): Ditto.
6895 * m2-lang.c (m2_language_defn): Ditto.
6896 * scm-lang.c (scm_language_defn): Ditto.
6897 * obj-lang.c (objc_language_defn): Ditto.
8718a420 6898
d9f8c85b
MK
68992004-04-10 Mark Kettenis <kettenis@gnu.org>
6900
fa34704a
MK
6901 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
6902 (amd64nbsd_mcontext_addr): New function.
6903 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
6904 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
6905 with amd64nbsd_r_reg_offset, instead of building it on the fly.
6906
403e1656
MK
6907 * corelow.c (core_xfer_partial): Fix coding standards violation.
6908 Add support for TARGET_OBJECT_WCOOKIE.
6909
a57e5a95
MK
6910 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
6911 deprecated_pc_in_sigtramp.
6912 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
6913 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
6914 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
6915 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6916 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
6917 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6918 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
6919
377d9ebd
MK
6920 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
6921 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
6922 Fix typo.
6923
f0ef85a5
MK
6924 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
6925 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
6926 (amd64_collect_fxsave): Likewise.
6927
d9f8c85b
MK
6928 * i386-sol2-tdep.c: Include "gdb_string.h".
6929 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
6930 name.
6931 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6932
75f501b5
MK
69332004-04-10 Mark Kettenis <kettenis@gnu.org>
6934
6935 * i386-sol2-tdep.c: Include "solib-svr4.h".
6936 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6937 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6938 * config/i386/tm-i386sol2.h: Include :solib.h".
6939 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
6940 solib-svr4.o and solib-legacy.o.
6941 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
6942 solib-svr4.o.
6943
b31bc724
MK
69442004-04-09 Mark Kettenis <kettenis@gnu.org>
6945
18bbbd9e
MK
6946 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
6947 whether a register is supplied by PTRACE_GETFPREGS.
6948 (store_inferior_registers): Likewise.
6949 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
6950 whether a register is supplied by PT_GETFPREGS.
6951 (store_inferior_registers): Likewise.
6952
3c30bf1b
MK
6953 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
6954 * config/i386/linux64.mt (TDEPFILES): Likewise.
6955
a4194092
MK
6956 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
6957
911bc6ee
MK
6958 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
6959 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6960 the program counter is in the range specified by `struct
6961 gdbarch_tdep'.
6962 * amd64-linux-tdep.c: Include "symtab.h".
6963 (amd64_linux_pc_in_sigtramp): Remove function.
6964 (amd64_linux_sigtramp_p): New function.
6965 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6966 deprecated_pc_in_sigtramp.
6967 * amd64nbsd-tdep.c: Include "symtab.h".
6968 (amd64nbsd_sigtramp_p): New function.
6969 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6970 deprecated_pc_in_sigtramp.
6971 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
6972 few comments.
6973 (amd64obsd_pc_in_sigtramp): Remove function.
6974 (amd64obsd_sigtramp_p): New function.
6975 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6976 deprecated_pc_in_sigtramp.
6977 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
6978 (i386bsd_pc_ins_sigtramp): Remove prototype.
6979 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
6980 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
6981 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6982 the program counter is in the range specified by `struct
6983 gdbarch_tdep'.
6984 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
6985 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
6986 (i386_go32_pc_in_sigtramp): Remove function.
6987 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
6988 Initialize TDEP->sigtramp_p.
6989 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
6990 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
6991 deprecated_pc_in_sigtramp.
6992 * i386-linux-tdep.c: Adjust comments.
6993 (i386_linux_pc_in_sigtramp): Remove function.
6994 (i386_linux_sigtramp_p): New function.
6995 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6996 deprecated_pc_in_sigtramp.
6997 * i386-nto-tdep.c: Update copyright year.
6998 (i386nto_pc_in_sigtramp): Remove function.
6999 (i386nto_sigtramp_p): New function.
7000 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7001 SP_REGNUM.
7002 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
7003 deprecated_pc_in_sigtramp.
7004 * i386-sol2-tdep.c: Update copyright year.
7005 (i386_sol2_pc_in_sigtramp): Remove function.
7006 (i386_sol2_sigtramp_p): New function.
7007 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
7008 deprecated_pc_in_sigtramp.
7009 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7010 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7011 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7012 deprecated_sigtramp_start and deprecated_sigtramp_end.
7013 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7014 (i386nbsd_pc_in_sigtramp): Remove function.
7015 (i386nbsd_sigtramp_p): New function.
7016 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7017 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7018 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
7019 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
7020 (i386obsd_pc_in_sigtramp): Remove function.
7021 (i386obsd_sigtramp_p): New function.
7022 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
7023 functions.
7024 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7025 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7026 TDEP->sigtramp_p.
7027 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
7028 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
7029 dependencies.
7030
e083e6ec
MK
7031 * config/i386/i386aout.mt: Remove file.
7032
bd153b94
MK
7033 * configure.tgt: Remove i[34567]86-*-go32*,
7034 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
7035 and i[34567]86-*-isc*. Set gdb_target to i386 for
7036 i[34567]86-*-netware* and i[34567]86-*-*.
7037 * config/i386/i386.mt: New file.
7038 * config/i386/embed.mt: Remove file.
7039 * config/i386/go32.mt: Remove file.
7040 * config/i386/i386nw.mt: Remove file.
7041 * config/i386/i386v.mt: Remove file.
7042 * config/i386/tm-go32.h: Remove file.
7043
4a1bcc8c
MK
7044 * tui/tui-hooks.c: Include "readline/readline.h" after
7045 "gdb_curses.h" instead of before.
7046 * tui/tui-io.c: Likewise.
7047
f9a79064
MK
7048 * tui/tui.c: Fix typo in comment.
7049
b31bc724
MK
7050 * sparc64-tdep.c (sparc_address_from_register): Remove function.
7051
f83f82bc
AC
70522004-04-08 Andrew Cagney <cagney@redhat.com>
7053
7054 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7055 (deprecated_exception_support_initialized): Declare.
8718a420 7056 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
7057 (initialize_hp_cxx_exception_support)
7058 (child_enable_exception_callback): Update.
7059 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7060 (deprecated_exception_support_initialized): Rename
7061 deprecated_exception_catchpoints_are_fragile and
7062 deprecated_exception_support_initialized.
7063 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7064
7065 * symtab.c (deprecated_hp_som_som_object_present): Rename
7066 hp_som_som_object_present.
7067 * symtab.h (deprecated_hp_som_som_object_present): Declare.
7068 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7069 Update. Delete extern declaration.
7070 * valops.c (hp_som_som_object_present): Ditto.
8718a420 7071 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
7072 (parse_nested_classes_for_hpacc): Ditto.
7073 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 7074 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
7075 (initialize_hp_cxx_exception_support): Ditto.
7076 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 7077 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 7078 (cp_print_class_method): Ditto.
8718a420 7079 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
7080 (c_type_print_base): Ditto.
7081 * c-exp.y (hp_som_som_object_present): Ditto.
7082
fb2be677
AC
70832004-04-08 Andrew Cagney <cagney@redhat.com>
7084
7085 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7086 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7087 (frame_unwind_find_by_frame): Re-implement the unwind code so
7088 that it can both prepend and append sniffers. Replace
7089 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7090 * tramp-frame.c (tramp_frame_append): Use
7091 frame_unwind_prepend_unwinder.
7092 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7093 frame_unwind_register_unwinder.
7094 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7095 tramp_frame_append.
7096 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 7097 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
7098 (mips_linux_init_abi): Update.
7099
67faf007
KB
71002004-04-08 Kevin Buettner <kevinb@redhat.com>
7101
7102 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7103 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
7104 file support.
7105
8973ff21
KB
71062004-04-07 Kevin Buettner <kevinb@redhat.com>
7107
7108 * ia64-tdep.c (elf.h): Don't include.
7109 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7110
4a0e2f88
JM
71112004-04-07 Jason Molenda (jmolenda@apple.com)
7112
7113 * frame.h: Typeo corrections in comments.
7114
9872ad24
JB
71152004-04-07 Jim Blandy <jimb@redhat.com>
7116
7117 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7118 %esp and %ebp
7119
70b216c8
MK
71202004-04-07 Mark Kettenis <kettenis@gnu.org>
7121
11d5789c
MK
7122 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7123 * config/sparc/linux64.mt (TDEPFILES): Likewise.
7124 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7125 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7126 and solib-legacy.o.
7127 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7128 solib-svr4.o.
7129 * config/sparc/tm-sol2.h: Update copyright year. Include
7130 "solib.h".
7131
70b216c8
MK
7132 * sparc-sol2-tdep.c: Update copyright year. Include
7133 "solib-svr4.h".
7134 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7135 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7136 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 7137 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
7138 dependencies.
7139
6339dc9e
AC
71402004-04-06 Andrew Cagney <cagney@redhat.com>
7141
7142 * infttrace.c: Include "infttrace.h".
7143 * infttrace.h: Include "target.h".
7144 * Makefile.in (infttrace_h): Update.
7145 (infttrace.o): Update.
8718a420 7146
93449403
AC
71472004-04-06 Andrew Cagney <cagney@redhat.com>
7148
6d518969
AC
7149 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
7150 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
7151 move extern declarations from here ...
7152 * infttrace.h: ... to here.
7153 * Makefile.in (hppah-nat.o): Update dependencies.
7154
85f4f2d8
AC
7155 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
7156 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 7157 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
7158 (hppa_breakpoint_from_pc): Delete.
7159
93449403
AC
7160 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
7161
71456ec6
AC
71622004-04-05 Andrew Cagney <cagney@redhat.com>
7163
7164 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
7165 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
7166 <sys/file.h>.
8718a420 7167
4c02c60c
AC
71682004-04-06 Randolph Chung <tausq@debian.org>
7169
7170 Committed by Andrew Cagney (mechanical change).
7171 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
7172 exception_catchpoints_are_fragile, find_stub_with_shl_get,
7173 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
7174 child_enable_exception_callback, current_ex_event,
7175 null_symtab_and_line, child_get_current_exception_event,
7176 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
7177 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
7178 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
7179 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
7180 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
7181 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
7182 Move hpux-specific definitions ...
7183 * hppa-hpux-tdep.c: ... to here.
7184
3a515653
AC
71852004-04-05 Andrew Cagney <cagney@redhat.com>
7186
7187 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
7188 skip_prologue_using_sal.
7189
c1730d02
AC
71902004-04-05 Andrew Cagney <cagney@redhat.com>
7191
7192 * config/i386/tm-i386.h: Delete file.
7193 * config/i386/tm-vxworks.h: Update copyright, do not include
7194 "tm-i386.h".
7195 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
7196 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
7197 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
7198 * config/i386/ncr3000.mt (TM_FILE): Delete.
7199 * config/i386/interix.mt (TM_FILE): Delete.
7200 * config/i386/i386v.mt (TM_FILE): Delete.
7201 * config/i386/i386nw.mt (TM_FILE): Delete.
7202 * config/i386/i386gnu.mt (TM_FILE): Delete.
7203 * config/i386/i386aout.mt (TM_FILE): Delete.
7204 * config/i386/embed.mt (TM_FILE): Delete.
7205
8b67aa36
KB
72062004-04-05 Kevin Buettner <kevinb@redhat.com>
7207
7208 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
7209 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
7210 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
7211 (accg7_regnum): New constants.
7212 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
7213 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
7214 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
7215 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
7216 for accg registers.
7217 (frv_register_sim_regno): Update spr_map[].
7218
3c7012f5
AC
72192004-04-04 Andrew Cagney <cagney@redhat.com>
7220
7221 * config/mips/xm-riscos.h: Delete.
7222 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
7223 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
7224 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
7225 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
7226 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
7227 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
7228 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
7229 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
7230 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
7231 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
7232 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
7233 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
7234 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
7235 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
7236 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
7237 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
7238 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
7239 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
7240 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
7241 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
7242 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
7243 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
7244 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
7245 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
7246 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
7247 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 7248
3c7012f5
AC
7249 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
7250 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
7251 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
7252 * configure.host: Remove m680[01]0-sun-sunos3*,
7253 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
7254 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
7255 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
7256 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
7257 mips-*-riscos*.
7258 * NEWS: Mention removed systems.
7259
99d16a21
AC
72602004-04-04 Andrew Cagney <cagney@redhat.com>
7261
7262 GDB 6.1 release created from 6.1 branch.
7263
6cdf9d98
AC
72642004-04-04 Andrew Cagney <cagney@redhat.com>
7265
98d346c3
AC
7266 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
7267 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
7268 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
7269
6cdf9d98
AC
7270 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
7271 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
7272 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
7273
859a326d
JB
72742004-04-03 Jim Blandy <jimb@redhat.com>
7275
7276 * MAINTAINERS: Chris Faylor has changed employers; add him to
7277 "paper trail" section, and update his E-mail address.
7278
b87178c3
AC
72792004-04-03 Andrew Cagney <cagney@redhat.com>
7280
4ea2acf0
AC
7281 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
7282 generic dummy frames.
7283 * dummy-frame.c: Update copyright.
7284 (dummy_frame_sniffer): Delete check for generic dummy frames.
7285
d0bd2d18 7286 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 7287 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
7288 (REG_PARM_STACK_SPACE): Delete.
7289 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
7290 Inline reference to REG_PARM_STACK_SPACE.
7291
b87178c3
AC
7292 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
7293 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7294 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7295 (FRAME_BASE_BEFORE_SIGTRAMP)
7296 (hppa32_hpux_frame_base_before_sigtramp)
7297 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
7298 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
7299 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
7300 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7301 (FRAME_BASE_BEFORE_SIGTRAMP)
7302 (hppa64_hpux_frame_base_before_sigtramp)
7303 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
7304
43e2e1a0
AC
73052004-04-03 Andrew Cagney <cagney@redhat.com>
7306
7307 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
7308
ddc135a4
AC
73092004-04-02 Andrew Cagney <cagney@redhat.com>
7310
7311 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
7312 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
7313 * dummy-frame.h: Delete out-of-date comments.
7314 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
7315 * gdbarch.h, gdbarch.c: Re-generate.
7316
d15bfd3a 73172004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 7318
d15bfd3a
AC
7319 Committed by Andrew Cagney <cagney@redhat.com>.
7320 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
7321 into account an instruction saving a register if we have already
7322 seen an earlier instruction saving that same register.
7323
f04ceafa
AC
73242004-04-02 Andrew Cagney <cagney@redhat.com>
7325
08be3abd
AC
7326 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
7327 * gdbarch.h, gdbarch.c: Re-generate.
7328 * frame.c (legacy_get_prev_frame): Delete references to
7329 DEPRECATED_INIT_FRAME_PC_FIRST.
7330
f04ceafa
AC
7331 * infrun.c (pc_in_sigtramp): Delete function.
7332 (check_sigtramp2): Inline call to pc_in_sigtramp, use
7333 get_frame_type.
7334
08e69816
AC
73352004-04-02 Andrew Cagney <cagney@redhat.com>
7336
7337 * infrun.c (handle_step_into_function): Delete code conditional on
7338 legacy_frame_p.
7339 (handle_inferior_event, step_over_function): Ditto.
7340
adb54772
AC
73412004-04-02 Andrew Cagney <cagney@redhat.com>
7342
7343 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
7344 "previous frame inner to this frame" test.
7345
304396fb
AC
73462004-04-02 Andrew Cagney <cagney@redhat.com>
7347
7348 * frame.c (safe_frame_unwind_memory): New function.
7349 * frame.h (safe_frame_unwind_memory): Declare. Update description
7350 of /safe_/ methods.
7351 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
7352 "next_frame". Use safe_frame_unwind_memory.
7353 (tramp_frame_sniffer): Update call to tramp_frame_start.
7354
6502dd73
DJ
73552004-04-01 Daniel Jacobowitz <drow@mvista.com>
7356
7357 * dwarf2read.c (dwarf2_objfile_data_key): New.
7358 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
7359 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
7360 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
7361 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
7362 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
7363 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
7364 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
7365 Remove variables.
7366 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
7367 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
7368 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
7369 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
7370 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
7371 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
7372 Remove macros.
7373 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
7374 data.
7375 (dwarf2_locate_sections, dwarf2_build_psymtabs)
7376 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
7377 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
7378 (read_partial_die, read_full_die, read_indirect_string)
7379 (dwarf_decode_line_header, dwarf_decode_macros)
7380 (dwarf2_symbol_mark_computed): Remove use of removed macros.
7381 Update uses of removed variables.
7382 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
7383 of removed macros.
7384 (_initialize_dwarf2_read): New function.
7385 * symfile.h (dwarf2_has_info): Update prototype.
7386 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
7387 * elfread.c (elf_symfile_read): Likewise.
7388
408752b0
JB
73892004-04-01 Jim Blandy <jimb@redhat.com>
7390
9f744501
JB
7391 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
7392 function for register numbers on all the rs6000-derived targets.
7393 (rs6000_gdbarch_init): Don't register a separate
7394 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
7395 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
7396 variants.
7397
408752b0
JB
7398 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
7399 numbering.
7400
2de41bce
PH
74012004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
7402
7403 * valarith.c: Update copyright notice.
7404 (value_add): Handle range types.
7405 (value_sub): Ditto.
7406 (value_equal): Ditto.
7407 (value_less): Ditto.
7408 (value_neg): Ditto.
7409 (value_complement): Ditto.
8718a420 7410 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 7411 eliminiating unnecessary COERCE_ENUMs.
8718a420 7412
5613d8d3
AC
74132004-03-31 Andrew Cagney <cagney@redhat.com>
7414
7415 * frame.h (frame_unwind_id): Declare.
7416 * frame.c (frame_unwind_id): New function.
7417 (get_prev_frame_1): New function.
7418 (frame_debug_got_null_frame): New function.
7419 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
7420 code proper to prev_frame, update description.
7421 * infrun.c (step_over_function): Use frame_unwind_id.
7422
c4557624
JB
74232004-04-31 J. Brobecker <brobecker@gnat.com>
7424
7425 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
7426 (hppa64_push_dummy_call): Likewise.
7427
3e6bb910
JB
74282004-03-30 Jim Blandy <jimb@redhat.com>
7429
7430 From Ulrich Weigand:
7431 * utils.c (query): Do not use a va_list variable multiple times.
7432
a2f23071
DJ
74332004-03-29 Daniel Jacobowitz <drow@mvista.com>
7434
7435 * Makefile.in (linux_nat_h): Update dependencies.
7436 * configure.in: Check for <gnu/libc-version.h>.
7437 * configure: Regenerate.
7438 * config.in: Regenerate.
7439 * linux-nat.h: Include "target.h". Add waitstatus field to
7440 struct lwp_info.
7441 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
7442 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
7443 to.
7444 (lin_lwp_handle_extended): New function. Handle clone events.
7445 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
7446 thread exit events.
7447 (child_wait): Handle clone events.
7448 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
7449 * linux-nat.c (linux_enable_event_reporting): Turn on
7450 PTRACE_O_TRACECLONE.
7451 (linux_handle_extended_wait): Handle clone events.
7452 * thread-db.c: Include <gnu/libc-version.h>.
7453 (struct private_thread_info): Add dying flag.
7454 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
7455 higher.
7456 (attach_thread): Update comments. Handle dying threads.
7457 (detach_thread): Set the dying flag.
7458 (check_event): Always call attach_thread.
7459
8d5f9dcb
DJ
74602004-03-29 Daniel Jacobowitz <drow@mvista.com>
7461
7462 * mips-tdep.c (mips_pdr_data): New.
7463 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
7464 (_initialize_mips_tdep): Initialize mips_pdr_data.
7465
66337bb1
CV
74662004-03-29 Corinna Vinschen <vinschen@redhat.com>
7467
7468 * minsyms.c (install_minimal_symbols): Move dropping leading
7469 char from linkage name from here...
7470 (prim_record_minimal_symbol_and_info): ...to here. Simplify
7471 test for "__gnu_compiled*" symbols.
7472
e802b915
JB
74732004-03-28 Jim Blandy <jimb@redhat.com>
7474
7475 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
7476 registers to temp register r0 and byte stores as prologue
7477 instructions.
7478
72b56458
AC
74792004-03-28 Andrew Cagney <cagney@redhat.com>
7480
7481 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
7482 arm*-*-*.
7483
0bfbda3b
SC
74842004-03-28 Stephane Carrez <stcarrez@nerim.fr>
7485
7486 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
7487 and switch the layout to force a display of register window.
7488
5a7225ed
JB
74892004-02-26 J. Brobecker <brobecker@gnat.com>
7490
7491 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
7492 of the INTEGER class.
7493
81a07a45
JB
74942004-03-26 Jim Blandy <jimb@redhat.com>
7495
7496 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
7497 bytes long on PPC GNU/Linux.
7498
8c691c7a
DC
74992004-03-26 David Carlton <carlton@kealia.com>
7500
7501 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
7502
103a0089
AC
75032004-03-25 Andrew Cagney <cagney@redhat.com>
7504
7505 * PROBLEMS: Add general section titles, remove references to
7506 specific releases.
7507
7a5ea0d4
DJ
75082004-03-25 Daniel Jacobowitz <drow@mvista.com>
7509
7510 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
7511 INT_REGISTER_SIZE.
7512 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
7513 FP_REGISTER_VIRTUAL_SIZE.
7514 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
7515 of DEPRECATED_REGISTER_RAW_SIZE.
7516 (arm_register_type): Add gdbarch argument.
7517 (arm_register_raw_size, arm_register_virtual_size): Delete.
7518 (arm_register_byte, arm_extract_return_value)
7519 (arm_store_return_value, arm_get_longjmp_target): Update references
7520 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
7521 (arm_gdbarch_init): Likewise. Don't set
7522 deprecated_register_raw_size, deprecated_register_virtual_size,
7523 deprecated_max_register_raw_size,
7524 deprecated_max_register_virtual_size, or
7525 deprecated_max_register_virtual_type. Do set register_type.
7526 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
7527 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
7528 (FP_REGISTER_VIRTUAL_SIZE): Delete.
7529 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
7530 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
7531 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
7532 INT_REGISTER_SIZE.
7533 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
7534 (remote_rdp_store_register): Likewise.
7535
5792a79b
DJ
75362004-03-24 Daniel Jacobowitz <drow@mvista.com>
7537
7538 * Makefile.in (mips-linux-tdep.o): Update dependencies.
7539 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
7540 to after osabi initialization.
7541 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
7542 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
7543 functions.
7544 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
7545 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
7546 variables.
7547 (mips_linux_init_abi): Append signal trampoline unwinders.
7548
1196bfda
AC
75492004-03-24 Andrew Cagney <cagney@redhat.com>
7550
7551 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
7552 * tramp-frame.c: Include "gdb_assert.h".
7553 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
7554 correct sizeof.
7555 (tramp_frame_append): Validate the tramp frame's instructions.
7556 * Makefile.in (tramp-frame.o): Update dependencies.
7557
4be282b4
AC
75582004-03-23 Andrew Cagney <cagney@redhat.com>
7559
7560 * trad-frame.h (trad_frame_set_reg_addr): Declare.
7561
69aec09b
AC
75622004-03-23 Andrew Cagney <cagney@redhat.com>
7563
7564 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
7565 Nasser as past testsuite/lib/ (and other) maintainers.
7566
63ed89b4
DJ
75672004-03-23 Daniel Jacobowitz <drow@mvista.com>
7568
7569 * infcmd.c (attach_command): Reread symbols if we already have
7570 an exec file.
7571
f3b36427
AC
75722004-03-23 Andrew Cagney <cagney@redhat.com>
7573
7574 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
7575
aa2a3f87
AC
75762004-03-23 Andrew Cagney <cagney@redhat.com>
7577
7578 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
7579 * gdbarch.h, gdbarch.c: Re-generate.
7580 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7581 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7582 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 7583 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 7584 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 7585 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
7586 (DEPRECATED_SIGTRAMP_START): Update.
7587 * blockframe.c (find_pc_sect_partial_function): Update.
7588 * arch-utils.c (legacy_pc_in_sigtramp): Update.
7589
00cac895
DJ
75902004-03-23 Daniel Jacobowitz <drow@mvista.com>
7591
7592 * remote.c (remote_open_1): Reopen the exec file and reread symbols
7593 if necessary.
7594
f561f026
AC
75952004-03-23 Andrew Cagney <cagney@redhat.com>
7596
7597 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
7598 predicate, deprecate.
7599 * gdbarch.h, gdbarch.c: Re-generate.
7600 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7601 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7602 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
7603 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7604 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
7605 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
7606 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
7607 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
7608 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
7609 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
7610 * blockframe.c (find_pc_partial_function): Update.
7611 * breakpoint.c (bpstat_what): Update.
7612 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
7613 * frv-linux-tdep.c (frv_linux_init_abi): Update.
7614 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
7615 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
7616 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7617 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7618 * i386-nto-tdep.c (i386nto_init_abi): Update.
7619 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
7620 * i386-tdep.c (i386_sigtramp_frame_sniffer)
7621 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
7622 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7623 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7624 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7625 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
7626 * infrun.c (pc_in_sigtramp): Update.
7627 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
7628 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
7629 * mips-tdep.c (mips_gdbarch_init): Update.
7630 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
7631 * ppc-linux-tdep.c: Update comment.
7632 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
7633 * shnbsd-tdep.c (shnbsd_init_abi): Update.
7634 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
7635 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
7636 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
7637 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
7638 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
7639 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
7640 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
7641 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 7642
8050c72f
AC
76432004-03-23 Andrew Cagney <cagney@redhat.com>
7644
d2259dd3
AC
7645 * tramp-frame.h, tramp-frame.h: New files.
7646 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
7647 Update rules to include "tramp-frame.h" and "tramp-frame.c".
7648
8050c72f
AC
7649 * Makefile.in: Update all dependencies.
7650
0db9b4b7
AC
76512004-03-23 Andrew Cagney <cagney@redhat.com>
7652
7653 * Makefile.in (trad_frame_h): Add $(frame_h).
7654 * trad-frame.h: Update copyright. Include "frame.h".
7655 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
7656 (trad_frame_set_id, trad_frame_get_id): Declare.
7657 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
7658 * trad-frame.c: Update copyright.
7659 (struct trad_frame_cache): Define.
7660 (trad_frame_cache_zalloc): New function.
7661 (trad_frame_set_id, trad_frame_get_id): New functions.
7662 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 7663
8e645ae7
AC
76642004-03-22 Andrew Cagney <cagney@redhat.com>
7665
7666 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
7667 s390_pltstub_unwind_cache.
7668 (s390_stub_frame_unwind_cache): Rename
7669 s390_pltstub_frame_unwind_cache.
7670 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
7671 (s390_stub_frame_prev_register): Rename
7672 s390_pltstub_frame_prev_register.
7673 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
7674 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
7675
7676 From Ulrich Weigand:
7677 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
7678 pointer calls like PLT calls.
7679
34fcf120
DJ
76802004-03-22 Daniel Jacobowitz <drow@mvista.com>
7681
7682 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
7683 PC rather than the partial function start address. Use the start
7684 address to sanity check the found PDR.
7685
5b917078
DJ
76862004-03-22 Daniel Jacobowitz <drow@mvista.com>
7687
7688 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
7689 linux_handle_extended_wait.
7690
8adf9e78
AC
76912004-03-22 Andrew Cagney <cagney@redhat.com>
7692
c3122434
AC
7693 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
7694 function.
7695
8adf9e78
AC
7696 * frame.h (generic_pop_current_frame): Delete declaration.
7697 (deprecate_pop_dummy_frame): Deprecate
7698 generic_pop_dummy_frame.
7699 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
7700 (generic_pop_current_frame): Delete function.
7701 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
7702 generic_pop_current_frame.
7703 * v850-tdep.c (v850_pop_frame): Update.
7704 * mcore-tdep.c (mcore_pop_frame): Update.
7705 * sh64-tdep.c (sh64_pop_frame): Update.
7706 * h8300-tdep.c (h8300_pop_frame): Update.
7707
90ba813f
AC
77082004-03-22 Andrew Cagney <cagney@redhat.com>
7709
7710 * frame.h (deprecated_pc_in_call_dummy): Rename
7711 generic_pc_in_call_dummy.
7712 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
7713 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
7714 generic_pc_in_call_dummy.
7715 (pc_in_dummy_frame): Make static.
7716 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
7717 * gdbarch.h, gdbarch.c: Re-generate.
7718 * dummy-frame.c (dummy_frame_sniffer): Simplify.
7719 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
7720 (legacy_get_prev_frame): Ditto.
7721 * inferior.h: Delete reference to generic_pc_in_call_dummy in
7722 comment.
8718a420 7723
ca4bb888
AC
77242004-03-21 Andrew Cagney <cagney@redhat.com>
7725
244675f9
AC
7726 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
7727 declaration and out-of-date comment.
7728 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
7729 Delete function.
7730 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
7731 deprecated_pc_in_call_dummy.
7732
ca4bb888
AC
7733 * infrun.c (handle_inferior_event): For non legacy frames, use the
7734 frame ID and frame type to identify a signal trampoline. Update
7735 comments.
7736
1777c7b4
NW
77372004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
7738
7739 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
7740 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
7741
82417da5
AC
77422004-03-21 Andrew Cagney <cagney@redhat.com>
7743
7744 * frame-unwind.h: Update copyright.
7745 (struct frame_data): Add opaque declaration.
7746 (frame_sniffer_ftype): Declare.
7747 (struct frame_unwind): Add "unwind_data" and "sniffer".
7748 (frame_unwind_register_unwinder): Declare.
7749 (frame_unwind_find_by_frame): Add parameter "this_cache".
7750 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
7751 (legacy_get_prev_frame, legacy_get_prev_frame)
7752 (get_frame_type): Pass the prologue_cache to
7753 frame_unwind_find_by_frame.
7754 * frame-unwind.c (struct frame_unwind_table_entry): Add field
7755 "unwinder".
7756 (frame_unwind_register_unwinder): New function.
7757 (frame_unwind_find_by_frame): Handle an unwind sniffer.
7758
b2ba182e
PH
77592004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
7760
7761 * bcache.c (print_percentage): Use floating point to avoid
7762 incorrect results when portion*100 overflows.
7763
81332287
KB
77642004-03-19 Kevin Buettner <kevinb@redhat.com>
7765
7766 * ppc_tdep.h (ppc_linux_frame_saved_pc)
7767 (ppc_linux_init_extra_frame_info)
7768 (ppc_linux_frameless_function_invocation)
7769 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
7770 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
7771 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
7772 (rs6000_frame_chain): Delete declarations.
7773 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
7774 (ppc_linux_init_extra_frame_info)
7775 (ppc_linux_frameless_function_invocation)
7776 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
7777 (ppc_linux_init_abi): Remove registration of above deleted functions.
7778 * rs6000-tdep.c (rs6000_init_extra_frame_info)
7779 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
7780 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
7781 (rs6000_pop_frame, rs6000_frameless_function_invocation)
7782 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
7783 (rs6000_gdbarch_init): Remove registration of above deleted functions.
7784 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
7785 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
7786 frame management for all OSABIs.
7787
61a65099
KB
77882004-03-19 Andrew Cagney <cagney@redhat.com>
7789
7790 Committed by Kevin Buettner <kevinb@redhat.com>.
7791
7792 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
7793 Update copyright.
7794 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
7795 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
7796 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
7797 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
7798 unwinders. #ifdef legacy frame code.
7799 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7800 "frame-base.h".
7801 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
7802 (struct rs6000_frame_cache, rs6000_frame_cache)
7803 (rs6000_frame_this_id, rs6000_frame_prev_register)
7804 (rs6000_frame_sniffer, rs6000_frame_unwind)
7805 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
7806 (rs6000_frame_base): Implement a traditional frame unwinder.
7807 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
7808 frame unwinder.
7809
88f7da05
KB
78102004-03-19 Kevin Buettner <kevinb@redhat.com>
7811
7812 * breakpoint.c (adjust_breakpoint_address): Don't adjust
7813 breakpoint address for watchpoints or the catch eventpoints.
7814 Add new paramter ``bptype''. Adjust all callers.
7815
f826dce1
AC
78162004-03-19 Andrew Cagney <cagney@redhat.com>
7817
33cb8b0f
AC
7818 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
7819
f826dce1
AC
7820 * PROBLEMS: Delete note that ARM does not use frame code, problem
7821 fixed.
7822
43b1ab88
AC
78232004-03-18 Andrew Cagney <cagney@redhat.com>
7824
292ab034
AC
7825 * stack.c (return_command): Delete code wrapped in #ifdef
7826 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
7827
43b1ab88
AC
7828 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
7829
dbfe4626
AC
78302004-03-18 Andrew Cagney <cagney@redhat.com>
7831
7832 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
7833 DEPRECATED_IN_SIGTRAMP.
7834 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7835 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
7836 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7837 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7838 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7839 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7840 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7841 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7842 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
7843 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
7844
0cad6aec
AC
78452004-03-18 Andrew Cagney <cagney@redhat.com>
7846
7847 * frame-base.c: Update copyright. Include "gdb_obstack.h".
7848 (struct frame_base_table_entry): Define.
7849 (struct frame_base_table): Re-implement as a linked list.
7850 (frame_base_init): Re-implement.
7851 (frame_base_table): Delete function.
7852 (append_predicate): Delete function.
7853 (frame_base_append_sniffer): Update.
7854 (frame_base_set_default): Update.
7855 (frame_base_find_by_frame): Update.
7856 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
7857 * Makefile.in (frame-base.o): Update dependencies.
7858
9982c2e7
AC
78592004-03-17 Andrew Cagney <cagney@redhat.com>
7860
7861 * frame.c (legacy_get_prev_frame): Pass correct frame to
7862 frame_unwind_find_by_frame.
7863
8dfe8985
DC
78642004-03-17 David Carlton <carlton@kealia.com>
7865
7866 * NEWS: Mention C++ nested types and namespaces
7867
ed47347a
MC
78682004-03-16 Michael Chastain <mec.gnu@mindspring.com>
7869
7870 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
7871 and "Regressions since gdb 5.3.". Add known regressions since
7872 gdb 6.0.
7873
90aeadfc
DC
78742004-03-16 David Carlton <carlton@kealia.com>
7875
7876 * dwarf2read.c (process_structure_scope): Process children even
7877 when we're a declaration.
7878
73912b9b
AC
78792004-03-16 Andrew Cagney <cagney@redhat.com>
7880
7881 * symtab.h (find_pc_sect_partial_function): Delete declaration.
7882 * blockframe.c (find_pc_partial_function)
7883 (find_pc_sect_partial_function): Merge into a single
7884 find_pc_partial_function.
7885
283accbc
MK
78862004-03-16 Mark Kettenis <kettenis@gnu.org>
7887
7888 * i386bsd-nat.c: s/regno/regnum/g.
7889 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
7890 FP0_REGNUM.
7891 (store_inferior_registers): Likewise.
7892
f5b1afdf
MK
78932004-03-16 Mark Kettenis <kettenis@gnu.org>
7894
7895 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
7896 of i387_fill_fsave.
7897 (store_inferior_registers): Call i387_collect_fsave and
7898 i387_collect_fxsave instead of i387_fill_fsave and
7899 i387_fill_fxsave.
7900
41fe5eb3
AC
79012004-03-15 Andrew Cagney <cagney@redhat.com>
7902
7903 * Makefile.in (frame-unwind.o): Update dependencies.
7904 * frame-unwind.c: Include "gdb_obstack.h".
7905 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
7906 parameter.
7907 (append_predicate): Delete function.
7908 (struct frame_unwind_table_entry): New structure.
7909 (struct frame_unwind_table): Replace "sniffer" with "head" and
7910 "tail".
7911 (frame_unwind_append_sniffer): Update.
7912 (frame_unwind_find_by_frame): Update.
7913 (_initialize_frame_unwind): Registe frame_unwind_init using
7914 gdbarch_data_register_pre_init.
7915
3f63813d
MK
79162004-03-15 Mark Kettenis <kettenis@gnu.org>
7917
7918 * i386bsd-nat.c: Update copyright year.
7919 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
7920 define unconditionally.
7921
3248c325 79222004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
7923
7924 * i387-tdep.h (i387_collect_fsave): New prototype.
7925 * i387-tdep.c (i387_collect_fsave): New function containing most
7926 of the code from i387_fill_fsave.
3248c325 7927 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 7928
871fbe6a
MK
79292004-03-15 Mark Kettenis <kettenis@gnu.org>
7930
7931 * i386-linux-tdep.c: Update copyright year.
7932 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
7933 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
7934 svr4_ilp32_link_map_offsets instead of
7935 i386_linux_svr4_fetch_link_map_offsets.
7936
8176b9b8
DC
79372004-03-15 David Carlton <carlton@kealia.com>
7938
7939 Fix for PR c++/1553:
7940 * dwarf2read.c (read_structure_type): Determine type name by
7941 calling determine_class_name.
7942 (determine_class_name): New.
7943 (determine_prefix): Look at TYPE_TAG_NAME and call
7944 determine_class_name when appropriate.
7945 (determine_prefix_aux, class_name): Delete.
9d58e29d 7946 (read_namespace): Set die->type.
8176b9b8 7947
fe8bf7d7
KB
79482004-03-15 Kevin Buettner <kevinb@redhat.com>
7949
7950 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
7951 unused macro definition. The definition in target.h (or perhaps
7952 elsewhere) takes precedence.
7953
ed6edd9b
AC
79542004-03-15 Andrew Cagney <cagney@redhat.com>
7955
f9be684a
AC
7956 * ppc-tdep.h: Update copyright.
7957 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
7958 function signatures to match "regsets.h".
7959 * ppc-linux-tdep.c: Include "regset.h".
7960 (ELF_GREGSET_SIZE): Delete.
7961 (right_supply_register): New function.
7962 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
7963 using right_supply_register.
7964 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
7965 functions.
7966 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
7967 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
7968 (_initialize_ppc_linux_tdep): Do not register
7969 ppc_linux_regset_core_fns.
7970 (ppc_linux_regset_from_core_section): Replace
7971 fetch_core_registers.
7972 (ppc_linux_regset_core_fns): Delete.
7973 * ppc-linux-nat.c: (right_fill_reg): New function.
7974 (supply_gregset): Update call to ppc_linux_supply_gregset.
7975 (fill_gregset): Clear the register set, use right_fill_reg.
7976 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
7977 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
7978
ed6edd9b
AC
7979 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
7980 unsigned.
7981
030f20e1
AC
79822004-03-15 Andrew Cagney <cagney@redhat.com>
7983
7984 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
7985 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
7986 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
7987 and register_gdbarch_data.
7988 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
7989 (struct gdbarch_data): Replace "init" by "pre_init" and
7990 "post_init".
7991 * gdbarch.h, gdbarch.c: Re-generate.
7992 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
7993 with"obstack", use OBSTACK_ZALLOC.
7994 (dwarf2_frame_ops): Delete.
7995 (dwarf2_frame_set_init_reg): Use gdbarch_data.
7996 (dwarf2_frame_init_reg): Use gdbarch_data.
7997 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 7998 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
7999 (_initialize_svr4_solib): Update.
8000 * user-regs.c (_initialize_user_regs): Update.
8001 * reggroups.c (_initialize_reggroup): Update.
8002 * regcache.c (_initialize_regcache): Update.
8003 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8004 * libunwind-frame.c (_initialize_libunwind_frame): Update.
8005 * gnu-v3-abi.c (init_gnuv3_ops): Update.
8006 * frame-unwind.c (_initialize_frame_unwind): Update.
8007 * frame-base.c (_initialize_frame_base): Update.
8008 * user-regs.c (user_reg_add): Update.
8009 * reggroups.c (reggroup_add): Update.
8010 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8011 * libunwind-frame.c (libunwind_frame_set_descr): Update.
8012 * frame-unwind.c (frame_unwind_append_sniffer): Update.
8013 * frame-base.c (frame_base_table): Update.
8014 * remote.c (_initialize_remote): Update.
8015 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 8016
3111a3fc
AC
80172004-03-15 Andrew Cagney <cagney@redhat.com>
8018
8019 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
8020
5ecb7103
KB
80212004-03-15 Kevin Buettner <kevinb@redhat.com>
8022
8023 * Makefile.in (frv-linux-tdep.o): Add dependencies.
8024 * frv-linux-tdep.c: New file.
8025 * frv-tdep.c (struct gdbarch_tdep): Add new field
8026 ``sigcontext_reg_addr''.
8027 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
8028 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8029 (frv_sigramp_frame_sniffer): New functions.
8030 (frv_sigtramp_frame_unwind): New static global.
8031 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
8032 sniffers.
8033 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
8034 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
8035
1ccda5e9
KB
80362004-03-15 Kevin Buettner <kevinb@redhat.com>
8037
8038 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8039 but not via a call to error(), when unable to read memory.
8040
b375a0a5
KB
80412004-03-15 Kevin Buettner <kevinb@redhat.com>
8042
8043 * frv-tdep.c (frv_call_dummy_words): Delete.
8044 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8045
4fdf6121
AC
80462004-03-15 Andrew Cagney <cagney@redhat.com>
8047
8048 * infrun.c (handle_step_into_function, step_over_function): Only
8049 update and use STEP_FRAME_ID when the system is using legacy
8050 frames. Update comments.
8051
34021503
MK
80522004-03-14 Mark Kettenis <kettenis@gnu.org>
8053
187e21d1
MK
8054 * amd64-linux-tdep.h: Remove file.
8055 * amd64-linux-tdep.c: Don't include "inferior.h" and
8056 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
8057 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8058 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8059 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8060 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8061 macros.
8062 (user_to_gdb_regmap): Remove variable.
8063 (amd64_linux_gregset_reg_offset): New variable.
8064 (amd64_core_fns): Remove variable.
8065 (fetch_core_registers): Remove function.
8066 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8067 functions.
8068 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8069 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8070 * Makefile.in (amd64_linux_tdep_h): Remove.
8071 (amd64-linux-nat.o): Update dependencies.
8072 (amd64-linux-tdep.o): Update dependencies.
8073
99679982
MK
8074 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8075 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8076 functions.
8077 (fetch_inferior_registers, store_inferior_registers): Rewrite.
8078
34021503
MK
8079 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8080 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8081
134d01f1
DJ
80822004-03-14 Daniel Jacobowitz <drow@mvista.com>
8083
8084 * dwarf2read.c (read_structure_type): Rename from
8718a420 8085 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
8086 Return immediately if die->type is set. Call read_type_die before
8087 dwarf2_add_member_fn.
8088 (process_structure_scope): New function.
8089 (read_enumeration_type, process_enumeration_scope): New functions,
8090 broken out from read_enumeration. Don't create the enumeration
8091 type if it has already been created.
8092 (read_enumeration): Removed.
8093 (process_die): Call read_structure_type, process_structure_scope,
8094 read_enumeration_type, and process_enumeration_scope. Just call
8095 new_symbol for base and subrange types. Add a comment about other
8096 type dies.
8097 (read_type_die): Call read_enumeration_type.
8098 (add_partial_structure, new_symbol): Update comments.
8099
65760afb
SC
81002004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8101
8102 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8103
10f59415
SC
81042004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8105
8106 * tui/tui-win.h (tui_get_cmd_list): Declare.
8107 * tui/tui-win.c (tui_command): New function.
8108 (tui_get_cmd_list): New function.
8109 (_initialize_tui_win): Moved initialization of tui command in
8110 tui_get_cmd_list.
8111
8112 * tui/tui-data.c (init_content_element): Setup new data members.
8113 (init_win_info): Likewise.
8114 (free_content_elements): Free it.
8115 * tui/tui-data.h (struct tui_data_element): Store the register
8116 content to print.
8117 (struct tui_data_info): Keep the current register group.
8118
8119 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8120
8121 * tui/tui-regs.h (tui_show_registers): Update prototype.
8122 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8123 (tui_resize_all): No need to calculate anything for register window.
8124 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8125 (tui_set_register_element, tui_set_general_regs_content): Remove.
8126 (tui_set_special_regs_content): Remove.
8127 (tui_set_general_and_special_regs_content): Remove.
8128 (tui_set_float_regs_content): Remove.
8129 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8130 (tui_set_regs_content): Remove.
8131 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8132 (tui_v_show_registers_command_support): Remove.
8133 (tui_show_registers): Use a reggroup to specify the registers to show.
8134 (tui_show_register_group): New function.
8135 (tui_display_registers_from): Compute the layout of register window
8136 and refresh with new API; be sure to delete old register windows.
8137 (tui_check_register_values): Update to use tui_get_register and
8138 tui_display_data.
8139 (tui_display_register): Just refresh the register window part.
8140 (tui_register_format): Format registers and save in tui_data_element.
8141 (tui_get_register): New to combine tui_reg_value_has_changed and
8142 tui_get_register_raw_value; fix to use the new gdb API.
8143 (tui_show_float_command): Renamed tui_reg_float_command.
8144 (tui_show_general_command): Renamed tui_reg_general_command.
8145 (tui_show_special_command): Renamed tui_reg_system_command.
8146 (_initialize_tui_regs): Remove unused commands.
8147
c3364ea4
MK
81482004-03-13 Mark Kettenis <kettenis@gnu.org>
8149
27d1e716
MK
8150 * NEWS (New native configurations): Mention OpenBSD/amd64.
8151
c3364ea4
MK
8152 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
8153 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
8154 Remove defines.
8155 * config/i386/nm-fbsd64.h: Likewise.
8156 * config/i386/nm-obsd.h: Likewise.
8157 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
8158 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
8159
b2d6d697
KB
81602004-03-12 Kevin Buettner <kevinb@redhat.com>
8161
8162 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
8163 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
8164 New constants.
8165
76e43199
KB
8166 From Richard Sandiford <rsandifo@redhat.com>:
8167 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
8168
34ce532e
KB
81692004-03-12 Kevin Buettner <kevinb@redhat.com>
8170
8171 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
8172 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
8173 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
8174 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
8175 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
8176 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
8177 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
8178 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
8179 definitions from frv-tdep.c to frv-tdep.h.
8180
c4d10515
KB
81812004-03-12 Kevin Buettner <kevinb@redhat.com>
8182
8183 Add shared library support for FR-V FDPIC ABI:
8184 * Makefile.in (solib-frv.o): Add dependencies.
8185 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
8186 New functions.
8187 (frv_push_dummy_call): Add support for FDPIC ABI.
8188 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
8189 for FDPIC ABI.
8190 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
8191 (frv_fdpic_find_canonical_descriptor): Declare.
8192 * solib-frv.c: New file.
8193 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
8194 * config/frv/tm-frv.h (solib.h): Include.
8195
ed1bd989
KB
81962004-03-12 Kevin Buettner <kevinb@redhat.com>
8197
8198 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
8199 (frv-tdep.o): Update dependencies.
8200 * frv-tdep.h: New file.
8201 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
8202 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
8203 constants.
8204 (struct gdbarch_tdep): Add new member ``frv_abi''.
8205 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
8206 functions.
8207 (new_variant): Set ``frv_abi'' field.
8208 (gdb_arch_init): Detect FDPIC executables.
8209
82b38f72
MK
82102004-03-12 Mark Kettenis <kettenis@gnu.org>
8211
8212 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
8213 wrapper.
8214
db1ea9ba
AC
82152004-03-11 Andrew Cagney <cagney@redhat.com>
8216
8217 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
8218
f8766ec1
KB
82192004-03-11 Kevin Buettner <kevinb@redhat.com>
8220
8221 * solist.h (master_so_list): New function.
8222 * solib.c (master_so_list): Likewise.
8223 * solib-svr4.c (enable_break): Iterate over so_list entries
8224 obtained from master list instead of entries obtained directly
8225 via svr4_current_sos().
8226
523f6a27
BE
82272004-03-10 Ben Elliston <bje@gnu.org>
8228
8229 * MAINTAINERS: Update my mail address.
8230
37814c18
KI
82312004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
8232
8233 * remote-m32r-sdi.c: Support hardware watchpoint.
8234
8b9740d8
DJ
82352004-03-09 Daniel Jacobowitz <drow@mvista.com>
8236
8237 * user-regs.c: Update copyright years.
8238 (struct user_regs): Rename to gdb_user_regs.
8239 (append_user_reg, builtin_user_regs, user_regs_init)
8240 (user_reg_add, user_reg_map_name_to_regnum)
8241 (usernum_to_user_reg): Update.
8242
4bb7a0a7
DJ
82432004-03-09 Daniel Jacobowitz <drow@mvista.com>
8244
8245 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
8246 (skip_children): New functions.
8247 (locate_pdi_sibling): Call skip_children.
8248
44e1a9eb
DJ
82492004-03-09 Daniel Jacobowitz <drow@mvista.com>
8250
8251 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
8252 * gdbtypes.c (check_typedef): Update comments.
8253
f3dd6933
DJ
82542004-03-09 Daniel Jacobowitz <drow@mvista.com>
8255
8256 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
8257 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
8258 pointer. Update comment about comp_unit_head.
8259 (struct abbrev_info): Shorten two int flags.
8260 (dwarf_alloc_abbrev): Take a CU argument.
8261 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
8262 each time through the loop. Update cleanup argument.
8263 (psymtab_to_symtab_1): Update cleanup call.
8264 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
8265 abbrev_obstack.
8266 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
8267 Just call obstack_free and clear the pointer.
8268
b40c7d58
DJ
82692004-03-09 Daniel Jacobowitz <drow@mvista.com>
8270
8271 * infrun.c (handle_inferior_event): Remove short-circuit code for
8272 events in a different thread.
8273
333dabeb
DJ
82742004-03-09 Daniel Jacobowitz <drow@mvista.com>
8275
8276 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
8277 print the whole transfer.
8278 (initialize_targets): Update description of "set debug target".
8279
aa17d93e
DJ
82802004-03-09 Daniel Jacobowitz <drow@mvista.com>
8281
8282 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
8283
0b71f08f
NW
82842004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
8285
8286 * MAINTAINERS (write after approval): Add myself.
8287
3930f270
CV
82882004-03-08 Corinna Vinschen <vinschen@redhat.com>
8289
8290 * sh-tdep.c (sh_print_registers_info): Use for loop.
8291 Don't skip multiple registers when a float register is encountered.
8292
a2b4a96c
CV
82932004-03-08 Corinna Vinschen <vinschen@redhat.com>
8294
8295 Fix PR tdep/1291.
8296 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
8297 to official SH documentation.
8298
f15a4bc0
AC
82992004-03-07 Andrew Cagney <cagney@redhat.com>
8300
8301 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
8302 unused function.
8303
9498281f
DJ
83042004-03-07 Daniel Jacobowitz <drow@mvista.com>
8305
8306 * arm-tdep.c (thumb_get_next_pc): Handle BX.
8307 (arm_get_next_pc): Handle BX and BLX.
8308
449e1137
AC
83092004-03-07 Andrew Cagney <cagney@redhat.com>
8310
eded0a31
AC
8311 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
8312 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
8313 HPPA_SP_REGNUM.
8314 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
8315 (hppa_target_read_fp): Delete.
8316 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
8317 register_virtual_size, max_register_raw_size,
8318 max_register_virtual_size, register_byte, register_size,
8319 target_read_fp, fp_regnum, and register_bytes. Set register_type
8320 instead of register_virtual_type.
8321 (hppa32_register_type, hppa64_register_type): Replace
8322 hppa32_register_virtual_type and hppa64_register_virtual_type.
8323 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
8324 (HPPA_FP_REGNUM): Define.
8325
f5f907e2
AC
8326 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
8327
69b4bbe4
AC
8328 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
8329 (pa_do_registers_info): Delete.
8330 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 8331 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 8332 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 8333
78161e48
AC
8334 * infcall.c (legacy_push_dummy_code): Delete #ifdef
8335 GDB_TARGET_IS_HPPA code.
8336 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 8337 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
8338 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
8339 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
8340 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
8341 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
8342 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 8343 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
8344 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
8345 (hppa_frameless_function_invocation, hppa64_store_return_value)
8346 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 8347 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 8348 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 8349 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
8350 (find_proc_framesize, deposit_21, restore_pc_queue)
8351 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 8352 (rp_saved, pc_in_linker_stub): Delete.
78161e48 8353
782eae8b
AC
8354 Unconditionally enable 64-bit frame and ABI code.
8355 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
8356 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
8357 push_dummy_frame, fix_call_dummy, push_arguments,
8358 call_dummy_location, extract_return_value, use_struct_convention,
8359 store_return_value, store_struct_return, saved_pc_after_call,
8360 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
8361 frame_chain, frame_chain_valid, frameless_function_invocation,
8362 frame_saved_pc, and pop_frame.
78161e48 8363
449e1137
AC
8364 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
8365 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
8366 (hppa_gdbarch_init): Do not set PC_REGNUM.
8367
12507572
MK
83682004-03-06 Mark Kettenis <kettenis@gnu.org>
8369
8370 * config/alpha/tm-fbsd.h: Remove file.
8371 * config/alpha/fbsd.mt: Tweak comment.
8372 (TM_FILE): Set to tm-alpha.h.
8373
c107cc1b
AC
83742004-03-05 Andrew Cagney <cagney@redhat.com>
8375
8376 * infrun.c (step_over_function): When non-legacy code, and no
8377 step_frame_id, use the unwinder to get the caller's frame ID.
8378
f2e7c15d
MK
83792004-03-05 Mark Kettenis <kettenis@gnu.org>
8380
8b0c3633
MK
8381 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
8382 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
8383 bfd_arch_unknown. Adjust comment.
8384
f2e7c15d
MK
8385 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
8386 * i386obsd-tdep.c: Correct spelling in comment.
8387 * i386nbsd-tdep.c: Correct spelling in comment.
8388 * sparc-tdep.c: Correct spelling in comments.
8389
1198ecbe
DC
83902004-03-05 David Carlton <carlton@kealia.com>
8391
8392 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
8393 bug.
8394
9eb42ed1
MK
83952004-03-05 Mark Kettenis <kettenis@gnu.org>
8396
8397 * sparc-tdep.c: Fix typo in comment.
8398
52b5e991
JB
83992004-03-04 J. Brobecker <brobecker@gnat.com>
8400
8401 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
8402
d8151005
DJ
84032004-03-04 Daniel Jacobowitz <drow@mvista.com>
8404
8405 * dwarf2read.c: Add comment describing memory lifetimes.
8406 (struct dwarf2_pinfo): Update comment.
8407 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
8408 (read_enumeration, new_symbol): Don't use obsavestring.
8409
cbeae229
MK
84102004-03-04 Mark Kettenis <kettenis@gnu.org>
8411
722d18c2
MK
8412 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
8413 instead of amd64_fill_fxsave.
8414 * amd64bsd-nat.c (store_inferior_registers): Likewise.
8415 * amd64fbsd-nat.c (fill_fpregset): Likewise.
8416
cbeae229
MK
8417 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
8418 Reorganize code a bit.
8419
b4206d25
OF
84202004-03-04 Orjan Friberg <orjanf@axis.com>
8421
8422 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
8423 when the frame pointer is pushed. Don't set the frame pointer's
8424 address on the stack unless it's actually located there.
b4206d25
OF
8425 Set the SRP's address on the stack correctly when the PC is still in
8426 the prologue.
8427 (cris_return_value): New function.
8428 (cris_gdbarch_init): Clear deprecated store_return_value,
8429 extract_return_value.
8430
49b0b195
JB
84312004-03-02 Jim Blandy <jimb@redhat.com>
8432
8433 * stabsread.c (reg_value_complaint): The maximum register number
8434 is one less than the number of registers.
8435
e9ff708b
AC
84362004-03-02 Andrew Cagney <cagney@redhat.com>
8437
8438 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
8439 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
8440 trailing comma and redundant assignment of I386_ST0_REGNUM.
8441 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
8442 32-bit segment registers.
8443
d4715e41
AC
84442004-03-01 Andrew Cagney <cagney@redhat.com>
8445
8446 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
8447 use frame_relative_level and get_next_frame.
8448
3ce2bf18
AC
84492004-02-29 Andrew Cagney <cagney@redhat.com>
8450
8451 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
8452 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
8453 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
8454 Delete macro.
8455
2da6aac3
DJ
84562004-02-29 Daniel Jacobowitz <drow@mvista.com>
8457
8458 * inflow.c (terminal_inferior): Don't give up the terminal if we
8459 previously couldn't get the inferior's terminal state.
8460
6ba34a8d
DJ
84612004-02-29 Daniel Jacobowitz <drow@mvista.com>
8462
8463 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
8464 PC_REGNUM.
8465
faae5abe
AC
84662004-02-28 Andrew Cagney <cagney@redhat.com>
8467
8468 * NEWS: Refer to GDB 6.1.
8469 * README: Refer to GDB 6.1.
8470 * PROBLEMS: Refer to GDB 6.1.
8471
2227a3c5
DJ
84722004-02-28 Daniel Jacobowitz <drow@mvista.com>
8473
8474 * thread-db.c (disable_thread_signals): Remove unused function.
8475
80571bff
MK
84762004-02-28 Mark Kettenis <kettenis@gnu.org>
8477
041bd74b
MK
8478 * amd64-nat.c: Include "gdb_string.h".
8479 (amd64_collect_native_gregset): Zero-extend the 32-bit
8480 general-purpose registers and %eip.
8481
3c017e40
MK
8482 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
8483 * amd64-tdep.c (amd64_collect_fxsave): New function.
8484 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
8485
80571bff
MK
8486 * i387-tdep.h: Update copyright year.
8487 (i387_collect_fxsave): New prototype.
8488 * i387-tdep.c: Update copyright year.
8489 (i387_collect_fxsave): New function containing most of the code
8490 from i387_fill_fxsave.
8491 (i387_fill_fxsave): Call i387_collect_fxsave.
8492
50d71875
AC
84932004-02-28 Andrew Cagney <cagney@redhat.com>
8494
8495 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
8496 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
8497
4a28816e
MK
84982004-02-28 Mark Kettenis <kettenis@gnu.org>
8499
8500 * amd64-tdep.c (amd64_frame_cache): Fix comment.
8501
dbda9972
AC
85022004-02-28 Andrew Cagney <cagney@redhat.com>
8503
8504 * utils.c: Use "", instead of <>, to include readline.
8505 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
8506 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
8507 * source.c, solib.c, exec.c, event-top.c: Ditto.
8508 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
8509 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
8510 * Makefile.in: Update all dependencies.
8511 (readline_tilde_h, readline_history_h): Define.
8512 (readline_headers): Delete.
8513
83277a99
MK
85142004-02-28 Mark Kettenis <kettenis@gnu.org>
8515
91ae4303
MK
8516 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
8517 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
8518 "config/i386/tm-lx64.h".
8519
83277a99
MK
8520 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
8521 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
8522 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
8523
6e1d7d6c
AC
85242004-02-28 Andrew Cagney <cagney@redhat.com>
8525
ecc9ac84
AC
8526 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
8527
6e1d7d6c
AC
8528 * breakpoint.c (_initialize_breakpoint): Use
8529 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
8530 Add help to show command.
8531
9671aeef
MK
85322004-02-28 Mark Kettenis <kettenis@gnu.org>
8533
7fa2737c
MK
8534 * i386-nat.c: Reformat to be closer to coding standards.
8535 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
8536 `retval'. Make variables `align' and `size' local to while-loop.
8537 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
8538 (_initialize_i386_nat): New prototype.
8539
9671aeef
MK
8540 * tui/tui.c: Include <readline/readline.h> instead of
8541 "readline/readline.h". Include it after <term.h> and
8542 "gdb_curses.h".
8543
fca7aa43
AC
85442004-02-27 Andrew Cagney <cagney@redhat.com>
8545
412275d5
AC
8546 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
8547 the new frame unwind code.
8548 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
8549 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
8550 PCOQ_HEAD_REGNUM.
8551
fca7aa43
AC
8552 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
8553 "return_value" and "push_dummy_call".
8554 (hppa32_use_struct_convention): Delete unused function.
8555 (hppa32_store_return_value): Delete unused function.
8556 (hppa32_extract_return_value): Delete unused function.
8557 (hppa32_stack_align): Delete function.
8558
e6a8a7d2
EZ
85592004-02-27 Eli Zaretskii <eliz@elta.co.il>
8560
8561 * coffread.c (enter_linenos): Don't let rawptr reference memory
8562 outside linetab[]'s limits.
8563
1797a8f6
AC
85642004-02-27 Andrew Cagney <cagney@redhat.com>
8565
8566 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
8567 inferior stack space - the stack needs to grow upwards.
8568 (hppa32_frame_align): New function.
8569 (hppa64_frame_align): Replace hppa_frame_align.
8570 (hppa_gdbarch_init): Update.
8571
2e4b5889
OF
85722004-02-26 Orjan Friberg <orjanf@axis.com>
8573
8574 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
8575 (dwarf2-frame.h): Include.
8576 (enum cris_regnums): New enum CRIS_FP_REGNUM.
8577 Remove static variables related to ABI setting.
8578 (struct gdbarch_tdep): Remove cris_abi member.
8579 (struct frame_extra_info): Remove.
8580 (cris_unwind_cache, stack_item): New structs.
8581 (cris_frame_unwind, cris_frame_base): New variables.
8582 (push_stack_item, pop_stack_item)
8583 (cris_frame_unwind_cache, cris_frame_this_id)
8584 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
8585 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
8586 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
8587 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
8588 (cris_reg_struct_has_addr): New functions.
8589 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 8590 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
8591 (cris_store_struct_return, cris_frameless_function_invocation)
8592 (cris_pop_frame, cris_skip_prologue_main)
8593 (cris_abi_original_store_return_value)
8594 (cris_abi_v2_store_return_value)
8595 (cris_abi_original_extract_return_value)
8596 (cris_abi_v2_extract_return_value)
8597 (cris_abi_original_reg_struct_has_addr)
8598 (cris_abi_v2_reg_struct_has_addr)
8599 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
8600 (cris_push_return_address, cris_abi_update): Remove.
8601 (_initialize_cris_tdep): Remove ABI command.
8602 (cris_dump_tdep): Ditto.
8718a420 8603 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
8604 Set store_return_value, extract_return_value, push_dummy_code,
8605 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
8606 frame_unwind_append_sniffer, frame_base_set_default.
8607 Clear deprecated init_frame_pc, push_arguments, store_return_value,
8608 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
8609 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 8610 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
8611 init_extra_frame_info, frameless_function_invocation, frame_chain,
8612 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
8613 dummy_write_sp.
8718a420 8614
6b9acc27
JJ
86152004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8616
8617 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
8618 * valprint.c (print_hex_chars): Change from static to external.
8619 (print_char_chars): New function.
8620 * printcmd.c (print_scalar_formatted): For integer and enum types
8621 that are longer than LONGEST, perform processing via appropriate
8622 print_*_chars routines.
8623
a431654a
AC
86242004-02-26 Andrew Cagney <cagney@redhat.com>
8625
8626 * Makefile.in: Update dependencies.
8627 Changes from Ulrich Weigand,
8628 * s390-tdep.c: Include "dwarf2-frame.h".
8629 (s390_dwarf2_frame_init_reg): New function.
8630 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
8631 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
8632
fa8d40ab
JJ
86332004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8634
8635 * breakpoint.c (pending_break_support): New setting variable.
8636 (break_command_1): Account for pending_break_support setting
8637 when creating pending breakpoints.
8638 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
8639 (_initialize_breakpoint): Add "set breakpoint pending" and
8640 "show breakpoint pending" commands.
8641
0dcd613f
AC
86422004-02-26 Andrew Cagney <cagney@redhat.com>
8643
8644 Fix PR i18n/1570.
8645 * charset.c (backslashable, backslashed, represented): Remove 'e'
8646 from list of escaped characters, not part of ISO-C.
8647
479272a3
JB
86482004-02-25 J. Brobecker <brobecker@gnat.com>
8649
8650 From Peter Schauer <schauer@pdf.de>:
8651 * tui/tui.c: Move system header includes after local includes.
8652 Fixes a build failure on solaris systems.
8653
7613d933
JB
86542004-02-25 J. Brobecker <brobecker@gnat.com>
8655
8656 * configure.in: Refine the previous change.
8657 * configure: Regenerate.
8658
9c1488cb
MK
86592004-02-25 Mark Kettenis <kettenis@gnu.org>
8660
8661 * amd64-tdep.h: Renamed from x86-64-tdep.h.
8662 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
8663 "amd64-tdep.h" instead of "x86-64-tdep.h".
8664 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8665 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
8666 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
8667 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8668 and "x86-64-tdep.c".
8669 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
8670 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8671 and "x86-64-tdep.c".
8672 * amd64bsd-nat.c: Update copyright year.
8673 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8674 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
8675 "x86-64-tdep.h".
8676 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
8677 "x86-64-tdep.h".
8678 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
8679 "x86-64-tdep.h".
8680 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
8681 "x86-64-tdep.h".
8682 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
8683 "x86-64-tdep.h".
8684 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
8685 "x86-64-tdep.h".
8718a420 8686 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
8687 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
8688 * Makefile.in (amd64_linux_tdep_h): Renamed from
8689 x86_64_linux_tdep_h.
8690 (amd64_tdep_h): Renamed from x86_64_tdep_h.
8691 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
8692 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
8693 (amd64obsd-tdep.o): Update dependencies.
8694 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
8695 dependencies.
8696 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
8697 dependencies.
8698 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
8699 amd64-linux-nat.c amd64-linux-tdep.c.
8700 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
8701 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
8702 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
8703 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
8704 amd64-tdep.o and amd64-linux-tdep.o.
8705 (TM_FILE): Set to tm-linux64.h.
8706 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
8707 (NAT_FILE): Set to nm-linux64.h.
8708 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
8709 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8710 amd64-tdep.o.
8711 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8712 amd64-tdep.o.
8713 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8714 amd64-tdep.o.
8715
4b8dad4a
RM
87162004-02-25 Roland McGrath <roland@redhat.com>
8717
8718 * remote.c (remote_protocol_qPart_auxv): New variable.
8719 (init_all_packet_configs): Initialize it.
8720 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
8721 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
8722 (show_remote_cmd): Call it.
8723 (_initialize_remote): Initialize commands.
8724 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
8725 service TARGET_OBJECT_AUXV requests.
8726
66745969
JB
87272004-02-25 J. Brobecker <brobecker@gnat.com>
8728
8729 * configure.in: Make sure that the wborder function is available.
8730 Otherwise, search for it in the cur_colr library.
8731 * configure: Regenerate.
8732
79508e1e
AC
87332004-02-25 Andrew Cagney <cagney@redhat.com>
8734
8735 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
8736
571ee600
MK
87372004-02-25 Mark Kettenis <kettenis@gnu.org>
8738
8739 * config/i386/tm-x86-64linux.h: Tweak comments.
8740
2b1b322f 87412004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
8742
8743 * MAINTAINERS: Add self to write-after-approval list.
8744
4d2acc65
AC
87452004-02-25 Andrew Cagney <cagney@redhat.com>
8746
4b8dad4a 8747 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
8748 * cli/cli-script.c (execute_control_command): Unconditionally
8749 install a cleanup. Default "ret" to "invalid_control". Use
8750 "break" instead of "return" to escape from the switch.
8751
4cfcaf21
JB
87522004-02-24 J. Brobecker <brobecker@gnat.com>
8753
8754 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
8755 with the lines macro defined in term.h on AiX.
8756 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
8757 a collision with the label_width macro defined in term.h on AiX.
8758
54a5c8d8
KB
87592004-02-23 David Mosberger <davidm@hpl.hp.com>
8760
8761 Committed by Kevin Buettner <kevinb@redhat.com>.
8762
8763 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
8764 * ia64-tdep.c (ia64_write_pc): Make it a global function.
8765 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
8766 instead of ia64_write_pc().
8767 * ia64-linux-tdep.c (regcache.h): Include.
8768 (ia64_linux_write_pc): New function.
4b8dad4a 8769
8a1dac83
RM
87702004-02-23 Roland McGrath <roland@redhat.com>
8771
8772 * auxv.c (info_auxv_command): Fix typos in error messages.
8773
90f90721
MK
87742004-02-23 Mark Kettenis <kettenis@gnu.org>
8775
8a1dac83 8776 * x86-64-tdep.h: Tweak comment.
90f90721
MK
8777 (enum amd64_regnum): New.
8778 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
8779 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
8780 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
8781 (X86_64_XMM1_REGNUM): Removed.
8782 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
8783 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
8784 prototypes for renamed functions.
8785 * x86-64-tdep.c: Fix typo.
8786 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
8787 register numbers.
8788 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
8789 Use constants from `enum amd64_regnum' for register numbers.
8790 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
8791 (amd64_analyze_prologue, amd64_frame_cache,
8792 amd64_sigtramp_frame_cache): Use constants from `enum
8793 amd64_regnum' for register numbers.
8794 (amd64_supply_fpregset): Adjust for renamed functions.
8795 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
8796 `enum amd64_regnum' for register numbers.
8797 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
8798 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
8799 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
8800 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
8801 (amd64_linux_fill_gregset): Adjust for renamed macros.
8802 (fetch_core_registers): Adjust for renamed functions.
8803 (amd64_linux_init_abi): Adjust for renamed functions.
8804 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
8805 renamed functions.
8806 * amd64-nat.c: Adjust for renamed macros.
8807 * amd64bsd-nat.c (fetch_inferior_registers)
8808 (store_inferior_registers): Use constants from `enum amd64_regnum'
8809 for register numbers. Adjust for renamed variables.
8810 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
8811 renamed variables.
8812 (_initialize_amd64fbsd_nat): Use constants from `enum
8813 amd64_regnum' for register numbers.
8814 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
8815 `enum amd64_regnum' for register numbers.
8816 (amd64fbsd_init_abi): Adjust for renamed functions.
8817 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
8818 `enum amd64_regnum' for register numbers.
8819 (amd64nbsd_init_abi): Adjust for renamed functions.
8820 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
8821 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
8822 `enum amd64_regnum' for register numbers.
8823 (amd64obsd_init_abi): Adjust for renamed functions.
8824 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
8825
d5479188
JJ
88262004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8827
8828 * breakpoint.c (print_one_breakpoint): Do not output spaces
8829 after printing <PENDING> for a pending breakpoint.
8830
81cb7cc9
JJ
88312004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8832
8833 * printcmd.c (print_scalar_formatted): Initialize val_long
8834 to remove compiler warning message.
8835
cbdeadca
JJ
88362004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8837
8838 * defs.h (nquery, yquery): New prototypes.
8839 * breakpoint.c (break_command_1): Use new nquery interface.
8840 * utils.c (defaulted_query, nquery, yquery): New functions.
8841
da6bab63
AC
88422004-02-23 Andrew Cagney <cagney@redhat.com>
8843
2f690297
AC
8844 * hppa-tdep.c (hppa_frame_align): New function.
8845 (hppa32_push_dummy_call): New function.
8846 (hppa64_push_dummy_call): New function.
8847 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
8848 disabled.
8a1dac83 8849
da6bab63
AC
8850 * infcall.c (legacy_push_dummy_code): Don't call deprecated
8851 FIX_CALL_DUMMY when push_dummy_call is available.
8852 (call_function_by_hand, push_dummy_code): Ditto.
8853
abf9b42d
AC
88542004-02-22 Andrew Cagney <cagney@redhat.com>
8855
8856 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
8857 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
8858 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
8859 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
8860 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
8861 call_dummy_location to ON_STACK.
8862
10fc94a4
MK
88632004-02-22 Mark Kettenis <kettenis@gnu.org>
8864
51433e4b
MK
8865 * x86-64-linux-tdep.c: Tweak comment.
8866 (amd64_linux_supply_gregset): Renamed from
8867 x86_64_linux_supply_gresget.
8868 (amd64_linux_fill_gregset): Renamed from
8869 x86_64_linux_fill_gregset.
8870 (fetch_core_registers): Adjust for renamed functions.
8871 (amd64_core_fns): Renamed from x86_64_core_fns.
8872 (amd64_linux_sigtramp_start): Renamed from
8873 x86_64_linux_sigtramp_start.
8874 (amd64_linux_pc_in_sigtramp): Renamed from
8875 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
8876 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
8877 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
8878 (amd64_linux_sigcontext_addr): Renamed from
8879 x86_64_linux_sigcontext_addr.
8880 (amd64_linux_sc_reg_offset): Renamed from
8881 x86_64_linux_sc_reg_offset.
8882 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
8883 Adjust for renamed functions and variables.
8884 (_initialize_amd64_linux_tdep): Renamed from
8885 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
8886 variables.
8887 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
8888 Adjust for renamed functions.
8889
430eaf2e
MK
8890 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
8891 from x86_64_linux_gregset64_reg_offset.
8892 (amd64_linux_gregset32_reg_offset): Rename from
8893 x86_64_linux_gregset64_reg_offset.
8894 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
8895 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
8896 (amd64_linux_dr_set_control): Renamed from
8897 x86_64_linux_dr_set_control. Adjust for renamed functions.
8898 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
8899 Adjust for renamed functions.
8900 (amd64_linux_dr_reset_addr): Renamed from
8901 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
8902 (amd64_linux_dr_get_status): Renamed from
8903 x86_64_linux_dr_get_status. Adjust for renamed functions.
8904 (_initialize_amd64_linux_nat): Renamed from
8905 _initialize_x86_64_linux_nat. Adjust for renamed variables and
8906 functions.
8907 * config/i386/nm-x86-64linux.h: Update copyright year.
8908 Adjust for renamed functions.
8909
10fc94a4
MK
8910 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
8911 amd64fbsd_sigtramp_start.
8912 (amd64fbsd_sigtramp_end_addr): Renamed from
8913 amd64fbsd_sigtramp_end.
8914 (amd64fbsd_init_abi): Adjust for renamed variables.
8915 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
8916 variables.
8917 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
8918 amd64fbsd_sigtramp_start.
8919 (amd64fbsd_sigtramp_end_addr): Renamed from
8920 amd64fbsd_sigtramp_end.
8921
343af405
AC
89222004-02-22 Andrew Cagney <cagney@redhat.com>
8923
537987fc
AC
8924 * hppa-tdep.c (hppa32_return_value): New function.
8925 (hppa64_return_value): New function.
8926 (hppa_gdbarch_init): Set return_value; keep disabled.
8927
fad850b2
AC
8928 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
8929 struct-return and inferior function call methods.
8930
26d08f08
AC
8931 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8932 "frame-base.h".
8933 (struct hppa_frame_cache): Define.
8934 (hppa_frame_cache, hppa_frame_this_id): New functions.
8935 (hppa_frame_prev_register): New function.
8936 (hppa_frame_unwind, hppa_frame_base): New variables.
8937 (hppa_frame_unwind_sniffer): New function.
8938 (hppa_frame_base_address, hppa_unwind_pc): New function.
8939 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
8940 sniffer, and frame base sniffer; keep disabled.
8941 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
8942 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
8943
e7d7bd65
AC
8944 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
8945 to predicates for "seriously old code".
8946
e963316f
AC
8947 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
8948 runtime if(0).
8949
56132691
AC
8950 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
8951 unsigned.
8952 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 8953
343af405
AC
8954 * config/pa/tm-hppa.h: Update copyright.
8955 (DEPRECATED_INIT_FRAME_PC): Delete macro.
8956 (deprecated_init_frame_pc_default): Delete declaration.
8957 (hppa_frame_init_saved_regs): Delete declaration.
8958 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8959 * hppa-tdep.c: Include "arch-utils.h".
8960 (hppa_gdbarch_init): Set deprecated init_frame_pc
8961 and deprecated frame_init_saved_regs.
8962 (hppa_frame_init_saved_regs): Make static.
8963
f5859b4d
MK
89642004-02-22 Mark Kettenis <kettenis@gnu.org>
8965
86f6f8e7 8966 Remove old 386BSD support.
cf7c5c23 8967 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
8968 * configure.host: Remove i[34567]86-*-bsd*.
8969 * configure.tgt: Remove i[34567]86-*-bsd*.
8970 * i386b-nat.c: Removed.
8971 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
8972 (i386b-nat.o): Remove dependencies.
8973
86f6f8e7
MK
8974 * config/i386/i386bsd.mh: Removed.
8975 * config/i386/i386bsd.mt: Removed.
8976 * config/i386/nm-i386bsd.h: Removed.
8977 * config/i386/tm-i386bsd.h: Removed.
8978 * config/i386/xm-i386bsd.h: Removed.
8979
971218cd
MK
8980 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
8981
7e654c37
MK
8982 * amd64fbsd-tdep.c: Include "solib-svr4.h".
8983 (amd64fbsd_init_abi): Set link map offsets.
8984 * amd64nbsd-tdep.c: Include "slib-svr4.h".
8985 (amd64nbsd_init_abi): Set link map offsets.
8986 * amd64obsd-tdep.c: Include "solib-svr4.h".
8987 (amd64obsd_init_abi): Set link map offsets.
8988 * i386fbsd-tdep.c: Include "solib-svr4.h".
8989 (i386fbsd_init_abi): Set link map offsets.
8990 * i386nbsd-tdep.c: Include "solib-svr4.h".
8991 (i386nbsdelf_init_abi): Set link map offsets.
8992 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
8993 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
8994 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
8995 solib-legacy.o and core-aout.o. Reformat.
8996 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
8997 solib-svr4.o, solib-legacy.o. Reformat.
8998 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
8999 * config/i386/nbsdelf.mh: Reformat.
9000 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9001 solib-svr4.o, solib-legacy.o and corelow.o.
9002 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9003 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9004 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
9005 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9006 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9007 (TM_FILE): Set to tm-fbsd.h.
9008 * config/i386/nbsd.mt (TDEPFILES): Reformat.
9009 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9010 solib-svr4.o.
9011 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9012 solib-svr4.o.
9013 (TM_FILE): Set to nm-nbsd.h.
9014 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
9015 Simplify shared library support. Don't include "elf/common.h".
9016 (SVR4_SHARED_LIBS): Don't define.
9017 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
9018 "solib.h".
9019 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
9020 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
9021 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
9022 Don't include "i386/tm-i386.h". Include "solib.h".
9023 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
9024 Don't include "i386/tm-i386.h".
9025 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
9026 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
9027 Include "i386/xm-i386.h".
9028 (HOST_LONG_DOUBLE_FORMAT): Remove.
9029
5d93ae8c
MK
9030 Fix OpenBSD/i386 sigtramp recognition.
9031 * i386-tdep.h: Update copyright year.
9032 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
9033 (i386bsd_sigtramp_end): New prototypes.
9034 (i386fbsd_sigtramp_start_addr): Renamed from
9035 i386fbsd_sigtramp_start.
9036 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9037 (i386obsd_sigtramp_start_addr): Renamed from
9038 i386obsd_sigtramp_start.
9039 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9040 * i386bsd-tdep.c: Update copyright year.
9041 (i386bsd_pc_in_sigtramp): Make public.
9042 * i386fbsd-nat.c: Update copyright year.
9043 (_initialize_i386fbsd_nat): Adjust for renamed variables.
9044 * i386fbsd-tdep.c: Update copyright year.
9045 (i386fbsd_sigtramp_start_addr): Renamed from
9046 i386fbsd_sigtramp_start.
9047 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9048 (i386fbsdaout_init_abi): Adjust for renamed variables.
9049 * i386obsd-nat.c: Update copyright year.
9050 (_initialize_i386obsd_nat): Adjust for renamed variables.
9051 * i386obsd-tdep.c: Include "target.h".
9052 (i386obsd_page_size): New variable.
9053 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9054 (i386obsd_sigtramp_end): New functions.
9055 (i386obsd_sigtramp_start_addr): Renamed from
9056 i386obsd_sigtramp_start.
9057 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9058 (i386obsd_init_abi): Adjust for renamed variables. Set
9059 pc_in_sigtramp, sigtramp_start and sigtramp_end.
9060 * Makefile.in (i386obsd-tdep.o): Update dependencies.
9061
84d04465
MK
9062 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9063 trampoline change in OpenBSD kernel.
9064
b053aceb
MK
9065 * amd64-nat.c: Update copyright year.
9066 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9067 architecture from REGCACHE.
9068
f5859b4d
MK
9069 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9070 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9071
e4bbbda8
MK
90722004-02-21 Mark Kettenis <kettenis@gnu.org>
9073
ba361932
MK
9074 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9075 i[34567]86-*-openbsd3.[0-3].
9076 * config/i386/obsdaout.mh: New file.
9077
d3e48264
MK
9078 * config/i386/obsd.mh (MH_FLAGS): Remove.
9079
60a6eeb6
MK
9080 Fix PR build/1549.
9081 * i386obsd-tdep.c: Update copyright years. Include
9082 "solib-svr4.h".
9083 (i386obsd_init_abi): Don't set regset_from_core_section here.
9084 (i386obsd_aout_init_abi): New function. Set
9085 regset_from_core_section here.
9086 (i386obsd_elf_init_abi): New function.
9087 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9088 * Makefile.in (i386obsd-tdep.o): Update dependecies.
9089 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9090 (TM_FILE): Set to tm-nbsd.h.
9091
9092 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9093 solib-sunos.o.
9094
e4bbbda8
MK
9095 * solib-svr4.h: Update copyright year.
9096 (svr4_ilp32_fetch_link_map_offsets)
9097 (svr4_lp64_fetch_link_map_offsets): New prototype.
9098 * solib-svr4.c: Update copyright year.
9099 (svr4_ilp32_fetch_link_map_offsets)
9100 (svr4_lp64_fetch_link_map_offsets): New function.
9101
f6fe98ef
DJ
91022004-02-20 Daniel Jacobowitz <drow@mvista.com>
9103
9104 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9105 to the partial symbol table.
9106
589ca796
JB
91072004-02-20 J. brobecker <brobecker@gnat.com>
9108
9109 * PROBLEMS: Add description of problem documented under gdb/1560.
9110
2031c21a
MK
91112004-02-20 Mark Kettenis <kettenis@gnu.org>
9112
30b344b1
MK
9113 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
9114 comments.
9115 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9116 functions.
9117 (amd64obsd_init_abi): Reorder initializations. Use
9118 amd64obsd_r_reg_offset to initialize the general-purpose register
9119 set details. Set regset_from_core_section.
9120 (_initialize_amd64obsd_tdep): Rename from
9121 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
9122 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9123 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9124
2031c21a
MK
9125 * NEWS (New native configurations): Mention OpenBSD/alpha.
9126 * configure.tgt: Add alpha*-*-openbsd*.
9127 * configure.host: Add alpha*-*-openbsd*.
9128 * alphanbsd-tdep.c: Update copyright year.
9129 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9130
42471775
AC
91312004-02-20 Andrew Cagney <cagney@redhat.com>
9132
9133 Fix PR tdep/1372.
9134 * configure.tgt: Delete target "none-*-*".
9135 * configure.host: Delete host "none-*-*".
9136 * config/none/none.mh: Delete file.
9137 * config/none/none.mt: Delete file.
9138 * config/none/xm-none.h: Delete file.
9139 * config/none/tm-none.h: Delete file.
9140 * config/none/nm-none.h: Delete file.
9141
960ccd7d
FF
91422004-02-19 Fred Fish <fnf@redhat.com>
9143
9144 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
9145 cache->uses_fp prior to setting it.
9146
5f883edd
FF
91472004-02-19 Fred Fish <fnf@redhat.com>
9148
9149 Fix for PR breakpoint/1558.
9150 * sh-tdep.c (IS_JSR): New macro.
9151 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
9152
f98c22d5
JB
91532004-02-19 Jim Blandy <jimb@redhat.com>
9154
9155 * findvar.c (value_from_register): Doc fix.
9156
95051d27
JJ
91572004-02-19 Jeff Johnston <jjohnstn@redhat.com>
9158
9159 * printcmd.c (print_scalar_formatted): Do not check for sizeof
9160 type being greater than sizeof of host's LONGEST. Always use
9161 unpack_long() unless format 'f' chosen.
9162
ccefbec3
EZ
91632004-02-19 Joel Brobecker <brobecker@gnat.com>
9164
9165 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 9166
ccefbec3
EZ
9167 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
9168 contains a symbol wich is the best, non-exact match for the given
9169 pc. Update comments.
9170
91712004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 9172
2ede629f
EZ
9173 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
9174 macro, which was part of the now removed Mach 3 port.
9175 * utils.c (request_quit): Ditto.
9176
567ee972
MK
91772004-02-18 Mark Kettenis <kettenis@gnu.org>
9178
9179 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
9180 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
9181
50cca7bb
MK
91822004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9183
9184 Committed by Mark Kettenis <kettenis@gnu.org>.
9185
9186 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
9187 Define.
9188
226361c4
AC
91892004-02-18 Andrew Cagney <cagney@redhat.com>
9190
9191 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
9192 CONFIG_INSTALL and CONFIG_UNINSTALL.
9193 * configure: Re-generate.
9194 * interps.h (INTERP_TUI): Define.
9195 * Makefile.in: Update dependencies.
9196 (TUI): New macro.
9197 (tui-main.o): Specify dependencies.
9198 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
9199 * tui/tui-main.c: New file.
9200
49cfa46f
MK
92012004-02-18 Mark Kettenis <kettenis@gnu.org>
9202
e2879ccb
MK
9203 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
9204 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
9205 dependencies.
9206 * configure.host: Add x86_64-*-openbsd*.
9207 * configure.tgt: Add x86_64-*-openbsd*.
9208 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
9209
c43f4bec
MK
9210 * tui/tui.c: Don't include <malloc.h>.
9211
09ae75b6
MK
9212 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
9213 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
9214 amd64nbsd-tdep.c.
9215
49cfa46f 9216 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 9217 static. Remove extraneous whitespace.
49cfa46f
MK
9218 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
9219 static.
9220
05957fdb
JB
92212004-02-17 Jim Blandy <jimb@redhat.com>
9222
9223 * findvar.c (value_from_register): Doc fix.
9224
d0f54f9d
JB
92252004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9226
9227 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 9228
8a1dac83 9229 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
9230 CORE_ADDR as type for selectors. Correct types for GNU run time
9231 message lookup function to use double indirection.
9232 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
9233 * objc-lang.h (lookup_child_selector): Adapt prototype.
9234
9cbd5950
JB
9235 * s390-nat.c (SUBOFF): New macro.
9236 (supply_gregset, fill_gregset): Use it to handle debugging
9237 of 32-bit exectuables running under a 64-bit kernel.
9238 * s390-tdep.c: Include "solib-svr4.h".
9239 (s390_svr4_fetch_link_map_offset): New function.
9240 (s390x_svr_fetch_link_map_offset): Likewise.
9241 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
9242 * Makefile.in (s390-tdep.o): Update dependencies.
9243
a8c99f38
JB
9244 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
9245 "frame-unwind.h".
9246 (s390_readinstruction): Reformat. Use read_memory_nobpt.
9247 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
9248 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
9249 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
9250 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
9251 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 9252 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
9253 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
9254 (struct frame_extra_info): Remove.
9255 (s390_memset_extra_info): Remove.
f73b1eff
JB
9256 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
9257 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
9258 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
9259 (is_rse): Renamed to ...
9260 (is_rsy): ... this. Support long displacements.
9261 (is_rxe): Renamed to ...
9262 (is_rxy): ... this. Support long displacements.
9263 (compute_x_addr): Support long displacements.
9264 (struct s390_prologue_data): New data type.
9265 (s390_on_stack): Change API to use struct s390_prologue_data.
9266 (s390_store): Reimplement.
9267 (s390_load): New function.
9268 (s390_get_signal_frame_info): Remove.
9269 (s390_get_frame_info): Remove, replace by ...
9270 (s390_analyze_prolog): ... this new function.
9271 (s390_check_function_end): Remove.
9272 (s390_function_start): Remove.
9273 (s390_frameless_function_invokation): Remove.
9274 (s390_is_sigreturn): Remove.
9275 (s390_init_frame_pc_first): Remove.
9276 (s390_init_frame_extra_info): Remove.
9277 (s390_frame_init_saved_regs): Remove.
9278 (s390_frame_saved_pc_nofix): Remove.
9279 (s390_frame_saved_pc): Remove.
9280 (s390_frame_chain): Remove.
9281 (s390_fp_regnum, s390_read_fp): Remove.
9282 (s390_pop_frame_regular, s390_pop_frame): Remove.
9283 (s390_saved_pc_after_call): Remove.
9284 (s390_skip_prologue): Reimplement.
9285 (s390_in_function_epilogue_p): Support long displacements.
9286 (struct s390_unwind_cache): New data structure.
9287 (s390_frame_unwind_cache): New function.
9288 (s390_prologue_frame_unwind_cache): Likewise.
9289 (s390_backchain_frame_unwind_cache): Likewise.
9290 (s390_frame_this_id, s390_frame_prev_register): Likewise.
9291 (s390_frame_unwind): Define.
9292 (s390_frame_sniffer): New function.
9293 (struct s390_pltstub_unwind_cache): New data structure.
9294 (s390_pltstub_frame_unwind_cache): New function.
9295 (s390_pltstub_frame_this_id): Likewise.
9296 (s390_pltstub_frame_prev_register): Likewise.
9297 (s390_pltstub_frame_unwind): Define.
9298 (s390_pltstub_frame_sniffer): New function.
9299 (struct s390_sigtramp_unwind_cache): New data structure.
9300 (s390_sigtramp_frame_unwind_cache): New function.
9301 (s390_sigtramp_frame_this_id): Likewise.
9302 (s390_sigtramp_frame_prev_register): Likewise.
9303 (s390_sigtramp_frame_unwind): Define.
9304 (s390_sigtramp_frame_sniffer): New function.
9305 (s390_frame_base_address, s390_local_base_address): New functions.
9306 (s390_frame_base): Define.
9307 (s390_unwind_pc, s390_unwind_sp): New function.
9308 (s390_push_dummy_call): Use new frame base location.
9309 (s390_unwind_dummy_id): Likewise.
9310 (s390_gdbarch_init): Remove calls to:
9311 set_gdbarch_frameless_function_invocation,
9312 set_gdbarch_deprecated_init_frame_pc,
9313 set_gdbarch_deprecated_frame_chain,
9314 set_gdbarch_deprecated_frame_init_saved_regs,
9315 set_gdbarch_deprecated_pop_frame,
9316 set_gdbarch_deprecated_init_extra_frame_info,
9317 set_gdbarch_deprecated_init_frame_pc_first,
9318 set_gdbarch_deprecated_target_read_fp,
9319 set_gdbarch_deprecated_frame_saved_pc,
9320 set_gdbarch_deprecated_saved_pc_after_call,
9321 set_gdbarch_deprecated_fp_regnum.
9322 Add calls to:
9323 set_gdbarch_in_solib_call_trampoline,
9324 frame_unwind_append_sniffer,
9325 frame_base_set_default,
9326 set_gdbarch_unwind_pc,
9327 set_gdbarch_unwind_sp.
9328 * Makefile.in (s390-tdep.o): Update dependencies.
9329
b0cf273e
JB
9330 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
9331 (S390_STACK_FRAME_OVERHEAD): Remove.
9332 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
9333 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
9334 (s390_promote_integer_argument): Remove.
9335 (s390_cannot_extract_struct_value_address): Remove.
9336 (s390_use_struct_convention, s390_store_struct_return): Remove.
9337 (s390_extract_return_value, s390_store_return_value): Remove.
9338 (s390_return_value_convention, s390_return_value): New functions.
9339 (is_float_singleton): Handle typedefs.
8a1dac83 9340 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
9341 Remove, replace by ...
9342 (s390_function_arg_pass_by_reference, s390_function_arg_float,
9343 s390_function_arg_integer): ... these new functions.
9344 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
9345 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
9346 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
9347 Fill in tdep->abi.
9348 Remove calls to:
9349 set_gdbarch_deprecated_store_struct_return,
9350 set_gdbarch_deprecated_extract_return_value,
9351 set_gdbarch_deprecated_store_return_value,
9352 set_gdbarch_use_struct_convention,
9353 set_gdbarch_extract_struct_value_address,
9354 set_gdbarch_deprecated_pc_in_call_dummy,
9355 set_gdbarch_deprecated_push_arguments,
9356 set_gdbarch_deprecated_save_dummy_frame_tos,
9357 set_gdbarch_deprecated_push_return_address,
9358 set_gdbarch_deprecated_sizeof_call_dummy_words,
9359 set_gdbarch_deprecated_call_dummy_words,
9360 set_gdbarch_deprecated_dummy_write_sp.
9361 Add calls to:
9362 set_gdbarch_push_dummy_call,
9363 set_gdbarch_unwind_dummy_id,
9364 set_gdbarch_return_value.
8a1dac83 9365
e1457d83
JB
9366 * config/s390/nm-linux.h: Update comments.
9367 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
9368 (STOPPED_BY_WATCHPOINT): Redefine.
9369 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
9370 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
9371 (s390_stopped_by_watchpoint): Likewise.
9372 (watch_area_cnt): Remove.
9373 * s390-nat.c: Update comments.
9374 (watch_area): Remove typedef.
9375 Global replace watch_area by struct watch_area.
9376 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 9377 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
9378 use s390_inferior_tid. Add short-cut for the no watchpoint case.
9379 (s390_fix_watch_points): Remove pid argument,
9380 use s390_inferior_tid. Recompute area spanned by watchpoints.
9381 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
9382 argument. Reimplement.
9383
d0f54f9d
JB
9384 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
9385 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
9386 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 9387 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
9388 core-regset.o.
9389 * config/s390/s390x.mt: Remove.
9390 * config/s390/tm-s390.h: Remove.
9391 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
9392 (TARGET_ELF64): Remove.
9393 (SKIP_TRAMPOLINE_CODE): Do not undefine.
9394 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
9395 s390*-*-* case; always set gdb_target to s390.
9396 * regformats/reg-s390.dat: Remove control registers.
9397 * regformats/reg-s390x.dat: Likewise.
9398 * s390-tdep.h: New file.
8a1dac83 9399 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
9400 Include "inferior.h" and "s390-tdep.h".
9401 Remove private definition of offsetof.
9402 (s390_register_u_addr): Remove.
9403 (regmap_gregset, regmap_fpregset): Define.
9404 (supply_gregset, fill_gregset): Reimplement.
9405 (supply_fpregset, fill_fpregset): Likewise.
9406 (s390_inferior_tid): New function.
9407 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
9408 (fetch_inferior_registers, store_inferior_registers): Likewise.
9409 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
9410 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
9411 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
9412 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
9413 (struct gdbarch_tdep): Define.
9414 (struct s390_register_info): Define.
9415 (s390_register_info): New variable.
9416 (s390_register_name): Reimplement.
9417 (s390_register_type): New function.
9418 (s390_register_raw_size, s390x_register_raw_size): Remove.
9419 (s390_cannot_fetch_register): Remove.
9420 (s390_register_byte): Remove.
9421 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
9422 (s390_dwarf_regmap): New variable.
9423 (s390_dwarf_reg_to_regnum): New function.
9424 (s390_stab_reg_to_regnum): Remove.
9425 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
9426 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
9427 (s390_convert_register_p): Likewise.
9428 (s390_register_to_value, s390_value_to_register): Likewise.
9429 (s390_register_reggroup_p): Likewise.
9430 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
9431 s390_gregset, s390x_gregset, s390_fpregset): New variables.
9432 (s390_supply_regset, s390_regset_from_core_section): New functions.
9433 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
9434 (S390_FPR_SIZE): Likewise.
9435 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
9436 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
9437 (S390_NUM_GPRS): Move here from tm-s390.h.
9438 (S390_NUM_FPRS): Likewise.
9439 (s390_in_function_epilogue_p): New function.
9440 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
9441 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
9442 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
9443 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
9444 Replace S390_FP_REGNUM by S390_SP_REGNUM.
9445 Remove calls to:
9446 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
9447 set_gdbarch_deprecated_max_register_virtual_size,
9448 set_gdbarch_deprecated_register_byte,
d0f54f9d 9449 set_gdbarch_cannot_fetch_register,
8a1dac83 9450 set_gdbarch_cannot_store_register,
d0f54f9d
JB
9451 set_gdbarch_deprecated_register_size,
9452 set_gdbarch_deprecated_register_raw_size,
9453 set_gdbarch_deprecated_register_virtual_size,
9454 set_gdbarch_deprecated_register_virtual_type,
9455 set_gdbarch_deprecated_register_bytes.
9456 Add calls to:
9457 set_gdbarch_num_pseudo_regs,
9458 set_gdbarch_register_type,
9459 set_gdbarch_convert_register_p,
9460 set_gdbarch_register_to_value,
9461 set_gdbarch_value_to_register,
9462 set_gdbarch_register_reggroup_p,
9463 set_gdbarch_regset_from_core_section,
9464 set_gdbarch_pseudo_register_read,
9465 set_gdbarch_pseudo_register_write,
9466 set_gdbarch_in_function_epilogue_p.
9467 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
9468 (s390_tdep_h): New variable.
9469
8cfe231d
JB
94702004-02-17 Jim Blandy <jimb@redhat.com>
9471
4589a601
JB
9472 * findvar.c (value_from_register): If the type has no length, just
9473 return an acceptable value --- don't report an internal error.
9474
8cfe231d
JB
9475 * stabsread.c (read_type): If we find any type numbers that are
9476 forward references, complain if the references aren't resolved by
9477 the time we're finished reading.
9478 (cleanup_undefined_types): Make error message more appropriate for
9479 a complaint.
9480
5bf0017e
EZ
94812004-02-17 Elena Zannoni <ezannoni@redhat.com>
9482
9d62932d
EZ
9483 * Makefile.in (defs_h): Remove dependency on progress_h.
9484 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
9485 progress.h.
9486 * main.c (captured_main): Delete use of START_PROGRESS and
9487 END_PROGRESS.
9488
94892004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 9490
5bf0017e
EZ
9491 * objfiles.c (terminate_minimal_symbol_table): Add back
9492 initialization of MSYMBOL_TYPE.
9493
9fc9f5e2
AC
94942004-02-17 David Mosberger <davidm@hpl.hp.com>
9495
9496 Committed by Andrew Cagney.
9497 * Makefile.in (ia64_tdep_h): New macro.
9498 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
9499 (ia64-tdep.o): Likewise.
9500 * ia64-tdep.h: New file.
9501 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
9502 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
9503 (ia64_aix_sigcontext_register_address): Likewise.
9504 (ia64_linux_getunwind_table): Delete declaration.
9505 * ia64-linux-tdep.c: Likewise.
9506
76cd2bd9
CV
95072004-02-17 Corinna Vinschen <vinschen@redhat.com>
9508
9509 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
9510 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
9511 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
9512
634aa483
AC
95132004-02-17 Andrew Cagney <cagney@redhat.com>
9514
9515 * symtab.c (skip_prologue_using_sal): New function.
9516 * symtab.h (skip_prologue_using_sal): Declare.
9517 * frv-tdep.c: Include "symtab.h".
9518 (skip_prologue_using_sal): Delete function.
9519 * mips-tdep.c (skip_prologue_using_sal): Delete function.
9520 * rs6000-tdep.c (refine_prologue_limit): Mention
9521 skip_prologue_using_sal.
9522 * ia64-tdep.c (refine_prologue_limit): Ditto.
9523 * Makefile.in: Update dependencies.
9524
95252004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 9526
39ce7b3f
AC
9527 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
9528 START_INFERIOR_TRAPS_EXPECTED.
9529 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
9530 START_INFERIOR_TRAPS_EXPECTED.
9531 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
9532 Delete macro.
9533 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
9534 macro, moved to "nm-osf.h". Update copyright.
9535 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
9536 update copyright.
9537
19772a2c
AC
9538 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
9539 and function replacing FRAMELESS_FUNCTION_INVOCATION.
9540 * blockframe.c (legacy_frameless_look_for_prologue): Rename
9541 frameless_look_for_prologue.
9542 * frame.h (legacy_frameless_look_for_prologue): Rename
9543 frameless_look_for_prologue.
9544 * gdbarch.h, gdbarch.c: Re-generate.
9545 * sh64-tdep.c (sh64_gdbarch_init): Update.
9546 * sh-tdep.c (sh_gdbarch_init): Update.
9547 * s390-tdep.c (s390_gdbarch_init): Update.
9548 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9549 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9550 * m68k-tdep.c (m68k_gdbarch_init): Update.
9551 (delta68_frame_args_address): Update.
9552 * m32r-tdep.c (m32r_gdbarch_init): Update.
9553 * hppa-tdep.c (hppa_gdbarch_init): Update.
9554 * h8300-tdep.c (h8300_gdbarch_init): Update.
9555 * frv-tdep.c (frv_gdbarch_init): Update.
9556 (frv_frameless_function_invocation): Update.
9557 * cris-tdep.c (cris_gdbarch_init): Update.
9558 (cris_frameless_function_invocation): Update.
9559 * avr-tdep.c (avr_gdbarch_init): Update.
9560 * arm-tdep.c (arm_gdbarch_init): Update.
9561 * stack.c (frame_info): Update, call predicate.
9562 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
9563 * frame.c (legacy_get_prev_frame): Update, call predicate..
9564 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
9565 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
9566 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
9567 invocation.
9568 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9569 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9570 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
9571
9572 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
9573 function.
9574
7dcaac91
DJ
95752004-02-16 Daniel Jacobowitz <drow@mvista.com>
9576
9577 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
9578 initializations.
9579
88289b6e
AC
95802004-02-16 Andrew Cagney <cagney@redhat.com>
9581
9582 * tui/tui-windata.c: Include "gdb_string.h".
9583 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
9584 * tui/tui-layout.c, tui/tui-command.c: Ditto.
9585 * Makefile.in: Update dependencies.
9586
9f976b41
DJ
95872004-02-16 Daniel Jacobowitz <drow@mvista.com>
9588
9589 * Makefile.in (infrun.o): Add $(gdb_assert_h).
9590 * infrun.c: Include "gdb_assert.h".
9591 (singlestep_ptid, saved_singlestep_ptid)
9592 (stepping_past_singlestep_breakpoint): New variables.
9593 (resume): Set singlestep_ptid. Check for singlestep thread
9594 hop.
9595 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
9596 (handle_inferior_event): Handle singlestep thread hop.
9597
c324d747
AC
95982004-02-16 Andrew Cagney <cagney@redhat.com>
9599
f090b9b1
AC
9600 * dwarf2-frame.c (dwarf2_frame_ops): New function.
9601 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
9602 (dwarf2_frame_init_reg): Ditto.
9603
fd33e6cb
AC
9604 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
9605 suggested by Joshua Neuheisel
9606
c324d747
AC
9607 * configure.in: Always check for curses, including pdcurses.
9608 Warn, instead of error, when no curses are found. Enable TUI when
9609 curses is available.
9610 * configure: Re-generate.
9611
b66ba949
CV
96122004-02-16 Corinna Vinschen <vinschen@redhat.com>
9613
9614 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
9615 sh_sh4_register_convert_to_virtual.
9616 (sh_register_convert_to_raw): Rename from
9617 sh_sh4_register_convert_to_raw.
9618 (sh_pseudo_register_read): Accomodate above name change.
9619 (sh_pseudo_register_write): Ditto.
9620
b58cbbf2
CV
96212004-02-16 Corinna Vinschen <vinschen@redhat.com>
9622
9623 * sh-tdep.c (sh_generic_register_name): Remove.
9624 (sh_gdbarch_init): Use sh_sh_register_name in default case.
9625
5929a910
AC
96262004-02-15 Andrew Cagney <cagney@redhat.com>
9627
4566dfcf
AC
9628 * configure.in (build_warnings): Add -Wunused-function.
9629 * configure: Re-generate.
9630
db11ed55
AC
9631 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
9632 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
9633
46ac7a5d
AC
9634 * procfs.c (procfs_init_inferior): Assume that
9635 START_INFERIOR_TRAPS_EXPECTED is defined.
9636 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
9637 * config/ns32k/tm-nbsd.h: Delete file,
9638 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
9639
ba801595
AC
9640 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
9641 * config/vax/tm-vax.h: Delete file.
9642
5929a910
AC
9643 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9644 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9645 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9646 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9647 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
9648 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9649 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
9650
8f22cb90
MK
96512004-02-15 Mark Kettenis <kettenis@gnu.org>
9652
9653 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
9654 * dwarf2-frame.c (dwarf2_frame_data): New variable.
9655 (struct dwarf2_frame_ops): New.
9656 (dwarf2_frame_default_init_reg): New function, based on
9657 dwarf2_frame_init_reg.
9658 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
9659 (dwarf2_frame_init_reg): Call architecture-specific function.
9660 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
9661 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
9662 instead of dwarf2_frame_data.
9663 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
9664 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
9665
8132723e
AC
96662004-02-15 Andrew Cagney <cagney@redhat.com>
9667
046a4708
AC
9668 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
9669 register_gdbarch_swap.
9670 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
9671 * f-lang.c (_initialize_f_language): Update, use
9672 DEPRECATED_REGISTER_GDBARCH_SWAP.
9673 * remote.c (_initialize_remote): Ditto.
9674 * regcache.c (_initialize_regcache): Ditto.
9675 * parse.c (_initialize_parse): Ditto.
9676 * infrun.c (_initialize_infrun): Ditto.
9677 * mi/mi-main.c (_initialize_mi_main): Ditto.
9678 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 9679
549c1eea
AC
9680 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
9681 poking .cacheable directly.
9682 * symfile.c (symfile_bfd_open): Ditto.
9683
0c0b39de
AC
9684 * Makefile.in: Update all dependencies.
9685
8132723e
AC
9686 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
9687 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
9688 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
9689 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
9690 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 9691
b9d26eb9
AC
96922004-02-14 Andrew Cagney <cagney@redhat.com>
9693
8e1f669a
AC
9694 * arch-utils.c (legacy_convert_register_p): Check
9695 DEPRECATED_REGISTER_CONVERTIBLE_P.
9696 * findvar.c (value_of_register): Ditto.
9697
cd0bfa36
AC
9698 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
9699 * gdbarch.h, gdbarch.c: Re-generate.
9700 * arch-utils.c (deprecated_register_convertible_not): Delete.
9701 * arch-utils.h (deprecated_register_convertible_not): Delete.
9702 * mi/mi-main.c (get_register): Update. Update copyright.
9703 * infcmd.c (default_print_registers_info): Update.
9704
b9d26eb9
AC
9705 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9706 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
9707 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 9708 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
9709 * frame.c (deprecated_get_next_frame_hack): Delete function.
9710 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
9711 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9712 Update.
9713 * infcall.c (call_function_by_hand): Update.
9714
9ab9195f
EZ
97152004-02-14 Elena Zannoni <ezannoni@redhat.com>
9716
9717 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 9718 from here...
9ab9195f
EZ
9719 * objfiles.c (init_entry_point_info, entry_point_address):..to
9720 here.
9721 * symfile.h (init_entry_point_info, entry_point_address): Remove
9722 prototypes.
9723 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 9724 prototypes.
9ab9195f
EZ
9725 * cris-tdep.c: Remove include of symfile.h. Add include of
9726 objfiles.h.
9727 * infcall.c: Ditto.
9728 * mcore-tdep.c: Ditto.
9729 * mn10300-tdep.c: Ditto.
9730 * sh64-tdep.c: Ditto.
9731 * v850-tdep.c: Ditto.
9732 * arm-tdep.c: Remove include of symfile.h.
9733 * blockframe.c: Ditto.
9734 * coffread.c: Ditto.
9735 * dbxread.c: Ditto.
9736 * dwarf2read.c: Ditto.
9737 * dwarfread.c: Ditto.
8a1dac83 9738 * frv-tdep.c: Ditto.
9ab9195f
EZ
9739 * ia64-tdep.c: Ditto.
9740 * mdebugread.c: Ditto.
9741 * mipsread.c: Ditto.
8a1dac83 9742 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
9743 * s390-tdep.c: Ditto.
9744 * sh-tdep.c: Ditto.
8a1dac83 9745 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
9746 * gdbarch.sh: Remove include of symfile.h.
9747 * gdbarch.c: Regenerate.
9748 * solib-irix.c (enable_break): Use entry_point_address().
9749 Add comment about include file.
9750 * xcoffread.c: Add comment about include file.
8a1dac83
RM
9751 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
9752 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
9753 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
9754 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
9755 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
9756
c4c5b7ba
AC
97572004-02-13 Andrew Cagney <cagney@redhat.com>
9758
9759 * corelow.c (core_xfer_partial): Use "struct bfd_section".
9760 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
9761 copyright.
9762 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
9763
3e7879de
FF
97642004-02-12 Fred Fish <fnf@redhat.com>
9765
9766 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
9767 set_gdbarch_store_return_value.
9768
6a7760b6
AC
97692004-02-12 Andrew Cagney <cagney@redhat.com>
9770
9771 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
9772 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
9773 (interrupt_query): Ditto.
9774 (ofunc): Delete unused variable.
9775 * cris-tdep.c (cris_abi): Delete unused function.
9776 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
9777 (cris_get_wide_opcode, cris_get_short_size): Ditto.
9778 (cris_get_asr_quick_shift_steps): Ditto.
9779 (cris_skip_prologue_frameless_p): Ditto.
9780 * arm-tdep.c (arm_push_return_address): Delete unused function.
9781 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
9782 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
9783 * s390-tdep.c (s390_function_start): Delete unused function.
9784
31687c3c
AC
97852004-02-12 Andrew Cagney <cagney@redhat.com>
9786
9787 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
9788 gdbarch.h, gdbarch.c: Re-generate.
9789 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
9790 to generic_prologue_frameless_p.
9791 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
9792 * arch-utils.c (generic_prologue_frameless_p): Delete function.
9793
6de918a6
DJ
97942004-02-11 Daniel Jacobowitz <drow@mvista.com>
9795
9796 * mips-linux-tdep.c: Include "frame.h".
9797 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
9798 (mips_linux_skip_resolver): New functions.
9799 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
9800 and set_gdbarch_in_solib_call_trampoline.
9801 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
9802 to after set_gdbarch_in_solib_return_trampoline. Only set the
9803 solib hooks to mips16 functions if the OS ABI is unknown.
9804 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
9805 including "config/tm-linux.h".
9806 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
9807 * Makefile.in (mips-linux-tdep.o): Update.
9808
87b3ede8
DC
98092004-02-11 David Carlton <carlton@kealia.com>
9810
9811 * linespec.c (decode_compound): Only look for a class symbol when
9812 considering all but the rightmost component.
9813
5979bc46
AC
98142004-02-11 Andrew Cagney <cagney@redhat.com>
9815
9816 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
9817 abi code are are separatly grouped.
9818
5867a2fb
AC
98192004-02-11 Andrew Cagney <cagney@redhat.com>
9820
9821 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
9822 * gdbarch.h, gdbarch.c: Re-generate.
9823 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9824 * v850-tdep.c (v850_gdbarch_init): Update.
9825 * sh64-tdep.c (sh64_gdbarch_init): Update.
9826 * sh-tdep.c (sh_gdbarch_init): Update.
9827 * s390-tdep.c (s390_gdbarch_init): Update.
9828 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9829 * mips-tdep.c (mips_gdbarch_init): Update.
9830 * mcore-tdep.c (mcore_gdbarch_init): Update.
9831 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9832 * m32r-tdep.c (m32r_gdbarch_init): Update.
9833 * ia64-tdep.c (ia64_gdbarch_init): Update.
9834 * hppa-tdep.c (hppa_gdbarch_init): Update.
9835 * h8300-tdep.c (h8300_gdbarch_init): Update.
9836 * frv-tdep.c (frv_gdbarch_init): Update.
9837 * d10v-tdep.c (d10v_gdbarch_init): Update.
9838 * cris-tdep.c (cris_gdbarch_init): Update.
9839 * avr-tdep.c (avr_gdbarch_init): Update.
9840 * arm-tdep.c (arm_gdbarch_init): Update.
9841 * alpha-tdep.c (alpha_gdbarch_init): Update.
9842
026a72f8
CV
98432004-02-11 Corinna Vinschen <vinschen@redhat.com>
9844
9845 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
9846 comma.
9847 (sh_sh4al_dsp_register_name): Ditto.
9848
3903d437
AC
98492004-02-10 Andrew Cagney <cagney@redhat.com>
9850
9851 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
9852 (mips_init_frame_pc_first): Delete function.
9853 (mips_frame_saved_pc): Delete function.
9854 (mips_frame_chain): Delete function.
9855 (mips_init_extra_frame_info): Delete function.
9856 (mips_xfer_register): Delete unused variable "reg".
9857 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
9858 (mips_n32n64_return_value): Delete unused variable "reg".
9859 (mips_n32n64_return_value): Delete unused variable "pos".
9860 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
9861 (mips_o32_return_value): Delete unused variable "pos".
9862 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
9863 (mips_print_fp_register): Delete unused variable "namelen"
9864 (mips_print_fp_register): Delete unused variable "flt2"
9865 (get_frame_pointer): Delete function.
9866 (cached_proc_desc): Delete static variable.
9867 (mips_pop_frame): Delete function.
9868 (mips_find_saved_regs): Delete function.
9869 (mips_get_saved_register): Delete function.
9870 (mips_saved_pc_after_call): Delete function.
9871 (SIGFRAME_BASE): Delete macro.
9872 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
9873 (SIGFRAME_PC_OFF): Delete macro.
9874 (SIGFRAME_REGSAVE_OFF): Delete macro.
9875 (mips_dump_tdep): Do not print deleted macro definitions.
9876
b9fb98bd
AC
98772004-02-10 Andrew Cagney <cagney@redhat.com>
9878
9879 * Makefile.in (SFILES): Remove explictly listed tui files.
9880 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
9881
78ced177 98822004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 9883
78ced177
JJ
9884 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
9885 to use paddr functions to format ia64 addresses and long values.
9886 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
9887 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
9888 (get_kernel_table, ia64_find_proc_info_x): Ditto.
9889 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
9890 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
9891
6a83354a
AC
98922004-02-10 Andrew Cagney <cagney@redhat.com>
9893
9894 * defs.h: Do not include "tui.h".
9895 * gdb_curses.h: New file.
9896 * tui/tui-hooks.h: New file.
9897 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
9898 (tui_install_hooks, tui_remove_hooks): Delete declarations.
9899 (tui_initialize_io): Delete declaration.
9900 (tui_initialize_readline: Delete redundant declaration.
9901 (struct tui_point): Delete definition.
9902 * tui/tui-data.h (struct tui_point): Define.
9903 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
9904 * utils.c: Include "tui/tui.h".
9905 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
9906 * printcmd.c [TUI]: Include "tui/tui.h".
9907 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
9908 * tui/tui-command.c: Include "gdb_curses.h".
9909 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
9910 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
9911 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
9912 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
9913 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
9914 * Makefile.in: Update all dependencies.
9915 (tui_hooks_h, gdb_curses_h): Define.
9916 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
9917
997470ef
EZ
99182004-02-10 Elena Zannoni <ezannoni@redhat.com>
9919
9920 * objfiles.h (struct objfile): Remove unused fields auxf1 and
9921 auxf2. Add comments about some other rarely used fields.
9922
4ff2cc4d
AC
99232004-02-10 Andrew Cagney <cagney@redhat.com>
9924
9925 * Makefile.in (init.c): Fix script removing duplicates. Problem
9926 reported by Peter Schauer.
9927
1ab21617
EZ
99282004-02-09 Elena Zannoni <ezannoni@redhat.com>
9929
9930 * bcache.c (bcache_xmalloc): Use obstack_init instead of
9931 obstack_specify_allocation.
9932 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 9933 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
9934 (allocate_rt_common_objfile): Ditto.
9935 * symfile.c (reread_symbols): Ditto.
9936 * gdb_obstack.h: Add comment.
9937
17763fd9
EZ
99382004-02-09 Elena Zannoni <ezannoni@redhat.com>
9939
9940 * linespec.c (decode_line_1, locate_first_half)
9941 (decode_compound, lookup_prefix_sym): Update comments. Delete old
9942 commented out code.
9943
ec5cdd75
DJ
99442004-02-09 Daniel Jacobowitz <drow@mvista.com>
9945
9946 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
9947 obstack_free.
9948
43b54b88
AC
99492004-02-09 Andrew Cagney <cagney@redhat.com>
9950
9951 * blockframe.c (find_pc_partial_function): If find_pc_overlay
9952 fails, try find_pc_section. Fix PR c++/1267.
9953 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
9954 instead of find_pc_mapped_section.
9955 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
9956 not default to the section containing PC. Fix PR symtab/1519.
9957
edfae063
AC
99582004-02-09 Andrew Cagney <cagney@redhat.com>
9959
9960 * Makefile.in (mips-tdep.o): Update dependencies.
9961 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
9962 "trad-frame.h".
9963 (mips_unwind_pc): Return the pseudo PC register.
9964 (mips_unwind_dummy_id): New function.
9965 (mips16_fetch_instruction): New function.
9966 (mips32_fetch_instruction): New function.
9967 (struct mips_frame_cache): Define.
9968 (mips_mdebug_frame_cache): New function.
9969 (mips_mdebug_frame_this_id): New function.
9970 (mips_mdebug_frame_prev_register): New function.
9971 (mips_mdebug_frame_unwind): Define.
9972 (mips_mdebug_frame_sniffer): New function.
9973 (mips_mdebug_frame_base_address): New function.
9974 (mips_mdebug_frame_base): Define.
9975 (mips_mdebug_frame_base_sniffer): New function.
9976 (mips_gdbarch_init): Append unwind and base sniffers. Set
9977 unwind_dummy_id.
9978
defc864c
AC
99792004-02-08 Andrew Cagney <cagney@redhat.com>
9980
6764ddad
AC
9981 * frame.c: Print both the register number and name.
9982
defc864c
AC
9983 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
9984 and a sed into a single sed. Make .c and .o patterns more robust.
9985 (OBS): Delete.
9986 (INIT_FILES): Replace OBS with COMMON_OBS.
9987 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
9988
645d6d10
MK
99892004-02-08 Mark Kettenis <kettenis@gnu.org>
9990
9991 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
9992 the PT_WCOOKIE request.
9993
23e3c3fc
AC
99942004-02-08 Andrew Cagney <cagney@redhat.com>
9995
58dfe9ff
AC
9996 * mips-tdep.c (mips_unwind_pc): New function.
9997 (mips_gdbarch_init): Set mips_unwind_pc.
9998
1152e35e
AC
9999 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10000 (get_frame_id): Allow the UNKNOWN_FRAME.
10001 (frame_register_unwind, get_frame_type): Ditto.
10002
31b75dbf
AC
10003 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10004 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
10005 unwind_dummy_id indicates a legacy frame.
10006
3483b318
AC
10007 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10008 * configure: Re-generate.
10009
23e3c3fc
AC
10010 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10011 methods.
10012
33f8ca73
AC
100132004-02-08 Andrew Cagney <cagney@redhat.com>
10014
10015 * configure.in (CONFIG_ALL): Set to Makefile target, and not
10016 makefile macro.
10017 * configure: Re-generate.
10018 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
10019 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
10020 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
10021 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
10022 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
10023 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
10024 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
10025 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
10026 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
10027 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
10028
6ba8e26f 100292004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 10030
20d286a5
AC
10031 * Makefile.in: Update all dependencies.
10032
d836ee13
AC
10033 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
10034 * configure: Re-generate.
10035 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
10036 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10037 (COMMON_OBS): Add "main.o" and "annotate.o".
10038 (ANNOTATE_OBS): Delete.
10039 (OBS): Remove ANNOTATE_OBS.
10040 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10041 CONFIG_INITS.
10042 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10043 against CONFIG_OBS and "main.o".
10044 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10045 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10046
d02c80cd
AC
10047 * tui/tui-command.c: Include "gdb_string.h", delete register
10048 attribute, use ISO-C function signatures.
10049 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10050 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10051 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10052 * tui/tui.c: Ditto.
6ba8e26f
AC
10053
10054 * tui/tui-command.c: Change variable and function names to lower
10055 case.
10056 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10057 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10058 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10059 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10060 * tui/tui-winsource.c, tui/tui.c: Ditto.
10061
4a146b47
EZ
100622004-02-07 Elena Zannoni <ezannoni@redhat.com>
10063
10064 * buildsym.c (free_pending_blocks, finish_block)
10065 (record_pending_block, make_blockvector, end_symtab): Replace
10066 symbol_obstack with objfile_obstack.
8a1dac83 10067 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 10068 (coff_read_enum_type): Ditto.
8a1dac83 10069 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 10070 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 10071 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
10072 (dwarf2_symbol_mark_computed): Ditto.
10073 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10074 * elfread.c (elf_symtab_read): Ditto.
10075 * hpread.c (hpread_symfile_init, hpread_symfile_init)
10076 (hpread_read_enum_type, hpread_read_function_type)
10077 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10078 Ditto.
8a1dac83 10079 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 10080 (java_link_class_type): Ditto.
8a1dac83 10081 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
10082 (new_symbol): Ditto.
10083 * minsyms.c (install_minimal_symbols): Ditto.
10084 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10085 (terminate_minimal_symbol_table): Replace symbol_obstack with
10086 objfile_obstack.
10087 (free_objfile): Remove freeing of symbol_obstack.
10088 * objfiles.h: Remove symbol_obstack field.
10089 * pa64solib.c (add_to_solist): Replace symbol_obstack with
10090 objfile_obstack.
10091 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10092 symbol_obstack.
10093 (solib_add_common_symbols): Replace symbol_obstack with
10094 objfile_obstack.
10095 * somsolib.c (som_solib_add): Ditto.
10096 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10097 (common_block_start, common_block_end): Ditto.
10098 * symfile.c (reread_symbols): Remove freeing and init of
10099 symbol_obstack.
10100 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10101 * symfile.h: Update comment.
10102 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10103 stats printing.
10104 * symtab.c (symbol_set_names): Replace symbol_obstack with
10105 objfile_obstack.
10106 * symtab.h (struct general_symbol_info, struct minimal_symbol):
10107 Update comments.
10108 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10109 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10110 objfile_obstack.
10111
6d012f14
AC
101122004-02-07 Andrew Cagney <cagney@redhat.com>
10113
10114 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10115 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
10116 fields and variables.
10117 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10118 (m_beInvisible): Delete macro.
10119 * tui/tui-data.h: Fix case case fields and variables.
10120 (m_genWinPtrIsNull): Delete macro.
10121 (tui_win_list): Rename winList.
10122 (TUI_SRC_WIN): Rename srcWin.
10123 (TUI_DISASM_WIN): Rename disassemWin.
10124 (TUI_DATA_WIN): Rename dataWin.
10125 (TUI_CMD_WIN): Rename cmdWin.
10126 (m_genWinPtrNotNull): Delete macro.
10127 (m_winPtrIsNull): Delete macro.
10128 (m_winPtrNotNull): Delete macro.
10129 (tui_win_is_source_type): Replace m_winIsSourceType
10130 (tui_win_is_auxillary): Replace m_winIsAuzillary.
10131 (tui_win_has_locator): Replace m_hasLocator.
10132 (tui_set_win_highlight): Replace m_setWinHighlightOn and
10133 m_setWinHighlightOff.
10134 * tui/tui-data.c: Update references.
10135 (tui_win_is_source_type, tui_set_win_highlight): New functions.
10136 (tui_win_has_locator, tui_win_is_auxillary): New functions.
10137 * tui/tui-command.c, tui/tui-disasm.c: Update references.
10138 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10139 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10140 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10141 * tui/tui-winsource.c, tui/tui.c: Ditto.
10142
7d34766b
MK
101432004-02-07 Mark Kettenis <kettenis@gnu.org>
10144
1c800673
MK
10145 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
10146 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
10147 StackGhost.
10148
7d34766b
MK
10149 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
10150 variable `i6' to `i7'.
10151 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10152
22940a24
AC
101532004-02-07 Andrew Cagney <cagney@redhat.com>
10154
10155 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
10156 (TuiPoint, TuiPointPtr): Ditto.
10157 (TuiStatus, TuiStatusPtr): Ditto.
10158 (TuiWinType, TuiWinTypePtr): Ditto.
10159 (struct tui_point): Rename _TuiPoint.
10160 (tui_get_low_disassembly_address): Rename
10161 tuiGetLowDisassemblyAddress.
10162 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
10163 (tuiFree): Delete declaration.
10164 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
10165 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
10166 * tui/tui.c (tuiFree): Delete function.
10167 * cli/cli-cmds.c (disassemble_command): Update references.
10168 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
10169 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10170 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
10171 * tui/tui-winsource.c: Ditto.
10172
8b92e4d5
EZ
101732004-02-07 Elena Zannoni <ezannoni@redhat.com>
10174
10175 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
10176 coffstab_build_psymtabs, elfstab_build_psymtabs)
10177 (stabsect_build_psymtabs): Replace psymbol_obstack with
10178 objfile_obstack.
10179 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
10180 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
10181 Ditto.
10182 * dwarfread.c (scan_compilation_units): Ditto.
10183 * elfread.c (elfstab_offset_sections): Ditto.
10184 * hppa-tdep.c (read_unwind_info): Ditto.
10185 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
10186 (hpread_end_psymtab): Ditto.
10187 * mdebugread.c (mdebug_build_psymtabs, add_pending)
10188 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
10189 Ditto.
10190 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 10191 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
10192 (build_objfile_section_table): Ditto.
10193 (allocate_objfile): Remove init of psymbol_obstack.
10194 (free_objfile): Remove freeing of psymbol_obstack.
10195 * objfiles.h (struct objfile): Remove field
10196 psymbol_obstack. Update comments.
10197 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
10198 psymbol_obstack with objfile_obstack.
10199 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10200 psymbol_obstack.
10201 * somread.c (som_symfile_offsets, init_import_symbols)
10202 (init_export_symbols): Replace psymbol_obstack with
10203 objfile_obstack.
10204 * somsolib.c (som_solib_add_solib_objfile): Ditto.
10205 * symfile.c (default_symfile_offsets, syms_from_objfile)
10206 (reread_symbols): Remove freeing and init of psymbol_obstack.
10207 (cashier_psymtab): Update comment.
10208 * symmisc.c (print_objfile_statistics): Don't report stats for
10209 psymbol obstack.
10210 * symtab.h (struct general_symbol_info, struct partial_symtab):
10211 Update comments.
10212 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
10213 (xcoff_symfile_offsets): Replace psymbol_obstack with
10214 objfile_obstack.
10215
b99607ea
EZ
102162004-02-07 Elena Zannoni <ezannoni@redhat.com>
10217
10218 * objfiles.h (struct objfile): Add objfile_obstack field.
10219 Remove type_obstack field.
10220
10221 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
10222 read_structure_scope read_enumeration, new_symbol): Replace
10223 type_obstack with objfile_obstack.
10224 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 10225 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
10226 (lookup_fundamental_type): Ditto.
10227 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
10228 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
10229 (hpread_read_doc_function_type, hpread_read_struct_type)
10230 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 10231 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 10232 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
10233 (java_link_class_type): Ditto.
10234 * mdebugread.c (parse_type): Ditto.
10235 * objfiles.c (allocate_objfile, free_objfile): Ditto.
10236 * solib-sunos.c (solib_add_common_symbols): Ditto.
10237 * stabsread.c (define_symbol, read_type, read_member_functions,
10238 read_cpp_abbrev, read_one_struct_field): Ditto.
10239 * symfile.c (reread_symbols): Ditto.
10240 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 10241
2a8854a7
AC
102422004-02-07 Andrew Cagney <cagney@redhat.com>
10243
10244 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
10245 (tui_exec_info_content): Rename TuiExecInfoContent.
10246 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
10247 (TuiWinInfo, TuiWinInfoPtr): Ditto.
10248 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
10249 (TuiList, TuiListPtr): Ditto.
10250 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
10251 (TuiDataType, TuiDataTypePtr): Ditto.
10252 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
10253 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
10254 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
10255 (TuiSourceElement, TuiSourceElementPtr): Ditto.
10256 (TuiDataElement, TuiDataElementPtr): Ditto.
10257 (TuiWinElement, TuiWinElementPtr): Ditto.
10258 (TuiDataInfo, TuiDataInfoPtr): Ditto.
10259 (TuiCommandElement, TuiCommandElementPtr): Ditto.
10260 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
10261 (TuiWhichElement, TuiWhichElementPtr): Ditto.
10262 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
10263 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
10264 * tui/tui-command.c, tui/tui-data.c: Update references.
10265 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
10266 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10267 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10268 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 10269
05cbe71a
MK
102702004-02-07 Mark Kettenis <kettenis@gnu.org>
10271
10272 * dwarf2-frame.h: Update copyright.
10273 (enum dwarf2_frame_reg_rule): New.
10274 (struct dwarf2_frame_state_reg): New.
10275 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
10276 * dwarf2-frame.c: Update copyright.
10277 (enum dwarf2_reg_rule): Remove.
10278 (struct dwarf2_frame_state): Remove defenition of `struct
10279 dwarf2_frame_state_reg'.
10280 (read_reg): Call get_frame_arch to get the architecture instead of
10281 using CURRENT_GDBARCH.
10282 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
10283 DWARF2_FRAME_.
10284 (dwarf2_frame_init_reg): New function.
10285 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
10286 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
10287 initialize the register state. Prefix old `enum dwarf2_reg_rule'
10288 tags with DWARF2_FRAME_.
10289 (dwarf2_frame_prev_register): Call get_frame_arch to get the
10290 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
10291 dwarf2_reg_rule' tags with DWARF2_FRAME_.
10292
ec7d9e56
AC
102932004-02-06 Andrew Cagney <cagney@redhat.com>
10294
dd1abb8c
AC
10295 * tui/tui-data.h (struct tui_list): Rename _TuiList.
10296 (enum tui_data_type): Rename _TuiDataType.
10297 (struct tui_layout_def): Rename _TuiLayoutDef.
10298 (struct tui_source_element): Rename _TuiSourceElement.
10299 (struct tui_data_element): Rename _TuiDataElement.
10300 (struct tui_command_element): Rename _TuiCommandElement.
10301 (struct tui_locator_element): Rename _TuiLocatorElement.
10302 (union tui_which_element): Define.
10303 (struct tui_win_element): Rename _TuiWinElement.
10304 (struct tui_data_info): Rename _TuiDataInfo.
10305 (struct tui_source_info): Rename _TuiSourceInfo.
10306 (struct tui_command_info): Rename _TuiCommandInfo.
10307 (tui_initialize_static_data): Rename initializeStaticData.
10308 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
10309 (tui_alloc_win_info): Rename allocWinInfo.
10310 (tui_init_generic_part): Rename initGenericPart.
10311 (tui_init_win_info): Rename initWinInfo.
10312 (tui_alloc_content): Rename allocContent.
10313 (tui_add_content_elements): Rename addContentElements.
10314 (tui_init_content_element): Rename initContentElement.
10315 (tui_free_window): Rename freeWindow.
10316 (tui_free_win_content): Rename freeWinContent.
10317 (tui_free_data_content): Rename freeDataContent.
10318 (tui_free_all_source_wins_content): Rename
10319 freeAllSourceWinsContent.
10320 (tui_del_window): Rename tuiDelWindow.
10321 (tui_del_data_windows): Rename tuiDelDataWindows.
10322 (tui_partial_win_by_name): Rename partialWinByName.
10323 (tui_win_name): Rename winName.
10324 (tui_current_layout): Rename currentLayout.
10325 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
10326 (tui_term_height): Rename termHeight.
10327 (tui_set_term_height_to): Rename setTermHeightTo.
10328 (tui_term_width): Rename termWidth.
10329 (tui_set_term_width_to): Rename setTermWidthTo.
10330 (tui_set_gen_win_origin): Rename setGenWinOrigin.
10331 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
10332 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
10333 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
10334 (tui_source_windows): Rename sourceWindows.
10335 (tui_clear_source_windows): Rename clearSourceWindows.
10336 (tui_clear_source_windows_detail): Rename
10337 clearSourceWindowsDetail.
10338 (tui_clear_win_detail): Rename clearWinDetail.
10339 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
10340 (tui_default_tab_len): Rename tuiDefaultTabLen.
10341 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
10342 (tui_win_with_focus): Rename tuiWinWithFocus.
10343 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
10344 (tui_layout_def): Rename tuiLayoutDef.
10345 (tui_win_resized): Rename tuiWinResized.
10346 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
10347 (tui_next_win): Rename tuiNextWin.
10348 (tui_prev_win): Rename tuiPrevWin.
10349 (tui_add_to_source_windows): Rename addToSourceWindows.
10350 * tui/tui-winsource.c, tui/tui-win.c: Update references.
10351 * tui/tui-layout.c, tui/tui-source.c: Ditto.
10352 * tui/tui-stack.c, tui/tui-io.c: Ditto.
10353 * tui/tui.c, tui/tui-data.c: Ditto.
10354 * tui/tui-interp.c, tui/tui-data.c: Ditto.
10355 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
10356
a358af15
AC
10357 * tui/tui-source.h: Update copyright. Include "tui-data.h".
10358 (struct symtab): Declare.
10359 (tui_set_source_content): Rename tuiSetSourceContent.
10360 (tui_show_symtab_source): Rename tuiShowSource.
10361 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
10362 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
10363 * tui/tui-source.c: Update copyright. Update references.
10364 * tui/tui-win.c, tui/tui-winsource.c: Update references.
10365 * tui/tui-stack.c: Update references.
10366
a21fcd8f
AC
10367 * tui/tui-win.h: Update copyright. Include "tui-data.h".
10368 (struct tui_win_info): Declare.
10369 (tui_scroll_forward): Rename tuiScrollForward.
10370 (tui_scroll_backward): Rename tuiScrollBackward.
10371 (tui_scroll_left): Rename tuiScrollLeft.
10372 (tui_scroll_right): Rename tuiScrollRight.
10373 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
10374 (tui_resize_all): Rename tuiResizeAll.
10375 (tui_refresh_all_win): Rename tuiRefreshAll.
10376 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
10377 * tui/tui-layout.c, * tui/tui-io.c: Update references.
10378 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
10379 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
10380
edae1ccf
AC
10381 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
10382 (tui_erase_data_content): Rename tuiEraseDataContent.
10383 (tui_display_all_data): Rename tuiDisplayAllData.
10384 (tui_check_data_values): Rename tuiCheckDataValues.
10385 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
10386 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
10387 (tui_first_data_element_no_in_line): Rename
10388 tuiFirstDataElementNoInLine.
10389 (tui_delete_data_content_windows): Rename
10390 tuiDeleteDataContentWindows.
10391 (tui_refresh_data_win): Rename tuiRefreshDataWin.
10392 (tui_display_data_from): Rename tuiDisplayDataFrom.
10393 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
10394 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
10395 * tui/tui-win.c, tui/tui-regs.c: Update references.
10396 * tui/tui-layout.c, tui/tui.c: Update references.
10397
ec7d9e56
AC
10398 * tui/tui-wingeneral.h: Update copyright.
10399 (m_allBeVisible): Delete macro.
8a1dac83 10400 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
10401 (struct tui_gen_win_info): Declare.
10402 (struct tui_win_info): Declare.
10403 (tui_unhighlight_win): Rename unhighlightWin.
10404 (tui_make_visible, tui_make_invisible): Replace makeVisible.
10405 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
10406 (tui_make_window): Rename makeWindow.
10407 (tui_copy_win): Rename copyWin.
10408 (tui_box_win): Rename boxWin.
10409 (tui_highlight_win): Rename highlightWin.
10410 (tui_check_and_display_highlight_if_needed): Rename
10411 checkAndDisplayHighlightIfNeeded.
10412 (tui_refresh_all): Rename refreshAll.
10413 (tui_delete_win): Rename tuiDelwin.
10414 (tui_refresh_win): Rename tuiRefreshWin.
10415 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
10416 (tui_make_visible, tui_make_invisible): New functions.
10417 (tui_make_all_visible, tui_make_all_invisible): New functions.
10418 (make_all_visible): Rename makeAllVisible.
10419 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
10420 * tui/tui-data.c, tui/tui-winsource.c: Update references.
10421 * tui/tui-windata.c, tui/tui-win.c: Update references.
10422 * tui/tui-regs.c, tui/tui-layout.c: Update references.
10423 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
10424
1e52e2eb
MK
104252004-02-06 Mark Kettenis <kettenis@gnu.org>
10426
10427 * proc-api.c (write_with_trace): Initialize local variable to
10428 silence compiler warning.
10429
f80bda8e
AC
104302004-02-06 Andrew Cagney <cagney@redhat.com>
10431
10432 * tui/tui-source.h: Do not include "defs.h".
10433 (struct tui_win_info): Declare.
10434 (tui_set_source_content_nil): Declare.
10435 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
10436 (union tui_line_or_address): Rename _TuiLineOrAddress.
10437 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
10438 (tui_update_source_window): Rename tuiUpdateSourceWindow.
10439 (tui_update_source_window_as_is): Rename
10440 tuiUpdateSourceWindowAsIs.
10441 (tui_update_source_windows_with_addr): Rename
10442 tuiUpdateSourceWindowsWithAddr.
10443 (tui_update_source_windows_with_line): Rename
10444 tuiUpdateSourceWindowsWithLine.
10445 (tui_clear_source_content): Rename tuiClearSourceContent.
10446 (tui_erase_source_content): Rename tuiEraseSourceContent.
10447 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
10448 (tui_show_source_content): Rename tuiShowSourceContent.
10449 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
10450 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
10451 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
10452 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
10453 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
10454 (tui_update_exec_info): Rename tuiUpdateExecInfo.
10455 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
10456 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
10457 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
10458 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
10459 (struct tui_win_info): Declare.
10460 * tui/tui-stack.c: Update references.
10461 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
10462 * tui/tui-win.c, tui/tui-source.c: Ditto.
10463 * tui/tui.c, tui/tui-disasm.c: Ditto.
10464
9fbfb822
MK
104652004-02-06 Mark Kettenis <kettenis@gnu.org>
10466
10467 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
10468 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
10469
03cebad2
MK
104702004-02-05 Mark Kettenis <kettenis@gnu.org>
10471
10472 * infrun.c (handle_inferior_event): Allow for breakpoint
10473 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
10474 and SIGEMT. Update comments.
10475 * NEWS (Revised SPARC target): Mention support for non-executable
10476 stack.
10477
290281b1
MK
104782004-02-04 Mark Kettenis <kettenis@gnu.org>
10479
10480 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
10481 * inftarg.c: Update copyright year.
10482 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
10483 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
10484 (sparc_xfer_wcookie): New function.
10485 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10486 * Makefile.in (sparc-nat.o): Update dependencies.
10487 * config/sparc/nm-nbsd.h: Include "target.h".
10488 (NATIVE_XFER_WCOOKIE): New define.
10489 (sparc_xfer_wcookie): New prototype.
10490
212161df
AC
104912004-02-04 Andrew Cagney <cagney@redhat.com>
10492
10493 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
10494 SYSCALL_TRAP function.
10495 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
10496
6e4c6c91
DJ
104972004-02-04 Andrew Cagney <cagney@redhat.com>
10498 Daniel Jacobowitz <drow@mvista.com>
10499
10500 * objfiles.h: Delete comments refering to inside_entry_func and
10501 DEPRECATED_FRAME_CHAIN_VALID.
10502 * defs.h (inside_entry_func): Update prototype..
10503 * blockframe.c (inside_entry_func): Rename to
10504 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
10505 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
10506
cae688ec
JJ
105072004-02-03 Jeff Johnston <jjohnstn@redhat.com>
10508
10509 * breakpoint.c (struct captured_parse_breakpoint_args): Move
10510 outside of #ifdef SOLIB_ADD region.
10511 (do_restore_lang_radix_cleanup): Ditto.
10512 (resolve_pending_breakpoint): Ditto.
10513
19217676
AC
105142004-02-03 Andrew Cagney <cagney@redhat.com>
10515
10516 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
10517 (process_note_abi_tag_sections): Delete unused function.
10518 (ia64_read_fp): Delete unused function.
10519 (gdbarch_extract_struct_value_address): Delete declaration.
10520
876753be
AC
105212004-02-02 Andrew Cagney <cagney@redhat.com>
10522
10523 * vax-tdep.c (vax_frame_chain): Delete call to
10524 deprecated_inside_entry_file.
10525 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
10526
d4f10bf2
MK
105272004-02-02 Mark Kettenis <kettenis@gnu.org>
10528
10529 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
10530 column that's "empty" or "same value" when eliminating REG_RA
10531 rules.
10532
cae688ec
JJ
105332004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10534
10535 * NEWS: Add information about new pending breakpoint support.
10536
0101ce28
JJ
105372004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10538
10539 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
10540 and pending fields for pending breakpoint support.
10541 * breakpoint.c (breakpoint_enabled): Add check for not pending.
10542 (condition_command): Only parse condition if not a pending
10543 breakpoint.
10544 (print_one_breakpoint): Add support for pending breakpoints.
10545 (describe_other_breakpoints): Add checks to verify we are not
10546 dealing with pending breakpoints.
10547 (check_duplicates): Don't check pending breakpoints.
10548 (set_raw_breakpoint): Initialize pending flag.
10549 (do_restore_lang_radix_cleanup): New cleanup routine.
10550 (resolve_pending_breakpoint): New function.
10551 (re_enable_breakpoints_in_shlibs): Try and resolve any
10552 pending breakpoints via resolve_pending_breakpoint.
10553 (mention): Add pending breakpoint support.
10554 (parse_breakpoint_sals): Add new parameter to pass to
10555 decode_line_1 to indicate silent errors when files or functions
10556 are not found. Change all callers.
10557 (do_captured_parse_breakpoint): New function.
10558 (break_command_1): Change prototype to return an rc value and to
10559 take an optional pending breakpoint pointer. Support creating
10560 a pending breakpoint if a "not found" form of error occurs when
10561 parsing the breakpoint. Also support resolving an existing pending
10562 breakpoint and be silent if the resolution fails.
10563 (create_breakpoints): Change prototype to take pending breakpoint
10564 pointer. When resolving a pending breakpoint, use the new pointer
10565 to provide a conditional or commands added by the end-user.
10566 (delete_breakpoint): Add appropriate check for pending.
10567 (breakpoint_re_set_one): Ditto.
10568 (do_enable_breakpoint): Ditto.
10569
8d577d32
DC
105702004-02-02 David Carlton <carlton@kealia.com>
10571
10572 * valops.c (enum oload_classification): New.
10573 (find_overload_match): Break implementation into separate
10574 functions; delete #if 0'd code; look for symbols within
10575 namespaces.
10576 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
10577 (find_oload_champ,oload_method_static,classify_oload_match): New.
10578 * cp-support.h: Add declaration for cp_func_name; update
10579 declaration for make_symbol_overload_list.
10580 * cp-support.c (cp_func_name): New.
10581 (overload_list_add_symbol): Fix comment, use
10582 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
10583 (make_symbol_overload_list): Take a function name and a namespace
10584 instead of a symbol; change implementation.
10585 (make_symbol_overload_list_using): New.
10586 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
10587
22e8e3c7
FF
105882004-02-02 Fred Fish <fnf@redhat.com>
10589
10590 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 10591 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
10592 * remote-sim.c (gdb_os_write_stderr): Write output to
10593 gdb_stdtargerr stream instead of gdb_stdtarg stream.
10594 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 10595 gdb_stderr stream and update copyright years.
22e8e3c7 10596
6b753f60
DJ
105972004-02-01 Daniel Jacobowitz <drow@mvista.com>
10598
10599 * Makefile.in (mips-linux-nat.o): Update dependencies.
10600 * mips-linux-nat.c: Include mips-tdep.h.
10601
106022004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
10603
10604 * sol-thread.c (sol_thread_xfer_partial): New function.
10605 (init_sol_thread_ops): Use that for to_xfer_partial hook.
10606 (init_sol_core_ops): Likewise.
10607
10608 * procfs.c (procfs_xfer_partial): New function.
10609 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
10610 * Makefile.in (procfs.o): Add $(auxv_h) dep.
10611
10612 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
10613 procfs_xfer_auxv function.
10614
10615 * procfs.c (procfs_make_note_section): If we can read
10616 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
10617 * linux-proc.c (linux_make_note_section): Likewise.
10618
10619 * auxv.h: New file.
10620 * auxv.c: New file.
10621 * Makefile.in (auxv_h): New variable.
10622 (COMMON_OBS): Add auxv.o here.
10623 (auxv.o): New target.
10624
10625 * corelow.c (core_xfer_partial): New function.
10626 (init_core_ops): Use it for core_ops.to_xfer_partial.
10627
10628 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
10629 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
10630 macro if that is defined.
10631
fa5281d0
DJ
106322004-02-01 Daniel Jacobowitz <drow@mvista.com>
10633
10634 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
10635 and check the specified thread for each breakpoint.
10636 * breakpoint.h (bpstat_stop_status): Update prototype.
10637 * infrun.c (handle_inferior_event): Update calls to
10638 bpstat_stop_status.
10639
26ee262d
DJ
106402004-02-01 Daniel Jacobowitz <drow@mvista.com>
10641
10642 * Makefile.in (cli-cmds.o): Add $(readline_h).
10643
d9b52655
DJ
106442004-02-01 Daniel Jacobowitz <drow@mvista.com>
10645
10646 * cli/cli-cmds.c: Include readline.h.
10647 (complete_command): Pass the start of the last word to
10648 complete_line.
10649
9709f61c
DJ
106502004-01-31 Daniel Jacobowitz <drow@mvista.com>
10651
10652 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
10653 argument, and change first argument to a CORE_ADDR.
10654 * breakpoint.h (bpstat_stop_status): Update prototype.
10655 * infrun.c (adjust_pc_after_break): Add a new comment.
10656 (handle_inferior_event): Update calls to bpstat_stop_status.
10657
4f1280bb
DJ
106582004-01-31 Daniel Jacobowitz <drow@mvista.com>
10659
10660 * breakpoint.h: Update copyright years.
10661
4fa8626c
DJ
106622004-01-31 Daniel Jacobowitz <drow@mvista.com>
10663
10664 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
10665 (bpstat_stop_status): Don't decrement PC.
10666 * breakpoint.h (software_breakpoint_inserted_here_p): Add
10667 prototype.
10668 * infrun.c (adjust_pc_after_break): New function.
10669 (handle_inferior_event): Call it, early. Remove later references
10670 to DECR_PC_AFTER_BREAK.
10671 (normal_stop): Add commentary.
10672
fad0733a
DJ
106732004-01-31 Daniel Jacobowitz <drow@mvista.com>
10674
10675 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
10676 2004-01-27 double-free fix.
10677
42cdca6c
MK
106782004-01-31 Mark Kettenis <kettenis@gnu.org>
10679
10680 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10681 (sparc32_frame_prev_register): Handle StackGhost.
10682 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10683
932d5416
RM
106842004-01-29 Roland McGrath <roland@redhat.com>
10685
10686 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
10687 * configure: Regenerated.
10688
10689 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
10690 * Makefile.in (procfs.o): Add dep.
10691
47d3492a
AC
106922004-01-28 Andrew Cagney <cagney@redhat.com>
10693
10694 * tui/tui-stack.h: Update copyright.
10695 (struct frame_info): Add opaque declaration.
10696 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
10697 (tui_show_locator_content): Rename tuiShowLocatorContent.
10698 (tui_show_frame_info): Rename tuiShowFrameInfo.
10699 * tui/tui-stack.c: Update copyright. Update references.
10700 * tui/tui-winsource.c: Update references.
10701 * tui/tui-win.c: Update references.
10702 * tui/tui-layout.c: Update references.
10703 * tui/tui-hooks.c: Update copyright, update references.
10704 * tui/tui.c: Update copyright, update references.
10705 * tui/tui-disasm.c: Update references.
10706
5d51ca54
DC
107072004-01-28 David Carlton <carlton@kealia.com>
10708
10709 * dwarf2read.c (add_partial_structure): Use demangled name if
10710 namespace equals "".
10711
086ed43d
JB
107122004-01-27 Jim Blandy <jimb@redhat.com>
10713
10714 Clean up misapplied patch:
10715 * dwarf2read.c (determine_prefix): Change one of the two forward
10716 declarations for 'determine_prefix_aux' to a declaration for this.
10717 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
10718 argument to 'die_specification'.
10719
2a35147e
JB
10720 * dwarf2read.c (read_func_scope): Re-indent comment.
10721
a355c7de 107222004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 10723
a355c7de
AC
10724 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
10725 b->exp to NULL after freeing so that error during re-parsing or
10726 evaluation of expressions associated with breakpoint don't
10727 eventually lead to re-freeing of storage.
10728 Committed by Andrew Cagney.
10729
63ff5125
AC
107302004-01-27 Andrew Cagney <cagney@redhat.com>
10731
10732 * source.c (ambiguous_line_spec): Delete undefined declaration.
10733 * m32r-rom.c (m32r_set_board_address): Delete unused function.
10734 (m32r_set_server_address, m32r_set_download_path): Ditto.
10735 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
10736
e142c38c
DJ
107372004-01-27 Daniel Jacobowitz <drow@mvista.com>
10738
10739 * dwarf2read.c: Update calls to changed and renamed functions, and
10740 references to moved variables.
10741
10742 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
10743 language, language_defn, list_in_scope, and ftypes members.
10744 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
10745 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
10746 (baseaddr): Remove globals.
10747
10748 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
10749 (set_cu_language, die_is_declaration, die_specification)
10750 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
10751 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
10752 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
10753 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
10754
10755 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
10756 cu.list_in_scope. Don't initialize cu_header_offset.
10757 (add_partial_symbol): Add local baseaddr.
10758 (psymtab_to_symtab_1): Add local baseaddr. Use
10759 objfile->section_offsets for consistency. Don't initialize
10760 cu_header_offset; do initialize cu.header.offset and
10761 cu.list_in_scope.
10762 (read_file_scope, read_func_scope, read_lexical_block_scope)
10763 (dwarf_decode_lines, new_symbol): Add local baseaddr.
10764
c6e06ede
MC
107652004-01-27 Michael Chastain <mec.gnu@mindspring.com>
10766
fb328ecc 10767 * PROBLEMS: Add gdb/1516.
c6e06ede 10768
48184fd4
AC
107692003-12-29 Robert Millan <robertmh@gnu.org>
10770
10771 Patch committed by Andrw Cagney.
10772 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
10773 * configure.tgt: Match knetbsd*-gnu.
10774
c1321b30
AC
107752004-01-26 Andrew Cagney <cagney@redhat.com>
10776
f3699be3
AC
10777 * breakpoint.c (catch_command_1): Delete #ifdef code.
10778 (catch_fork_command_1): Delete #ifdef wrapper.
10779 (catch_exec_command_1): Ditto.
10780 (catch_load_command_1): Ditto.
10781 (catch_unload_command_1): Ditto.
10782
c1321b30
AC
10783 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
10784 (catch_breakpoint): Delete #if0ed function.
10785 (disable_catch_breakpoint): Ditto.
10786 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
10787 (disable_catch, enable_catch, delete_catch): Ditto.
10788
b4501125
AC
107892004-01-26 Andrew Cagney <cagney@redhat.com>
10790
10791 * remote.c (echo_check, quit_flag): Delete variables.
10792 (cisco_kernel_mode): Delete variable.
10793 (minitelnet_return, tty_input, escape_count): Delete variables.
10794 (remote_cisco_mode): Delete variable.
10795 (remote_cisco_open, remote_cisco_close): Delete function.
10796 (remote_cisco_mourn, remote_cisco_wait): Delete function.
10797 (init_remote_cisco_ops): Delete function.
10798 (_initialize_remote): Do not install "remote cisco" code.
10799 (read_frame): Delete cisco specific code.
10800 (remote_info_process): Delete function.
10801 (remote_wait): Delete cisco specific code.
10802 (remote_cisco_section_offsets): Delete function.
10803 (remote_cisco_objfile_relocate): Delete function.
10804 (remote_async_wait): Delete cisco specific code.
10805 (minitelnet, readtty, readsocket): Delete function.
10806
74055713
AC
108072004-01-26 Andrew Cagney <cagney@redhat.com>
10808
10809 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
10810 comments mentioning extract_returned_value_address.
10811 * infcmd.c (print_return_value): Update. Add comments on
10812 extract_returned_value_address.
10813 * stack.c (return_command): Add comments on
10814 extract_returned_value_address.
10815 * values.c: Update comment.
10816 * m32r-tdep.c: Update comment.
10817 * sparc-tdep.c: Update comment.
10818 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
10819 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10820 * sh64-tdep.c (sh64_gdbarch_init): Update.
10821 * sh-tdep.c (sh_gdbarch_init): Update.
10822 * s390-tdep.c (s390_gdbarch_init): Update.
10823 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10824 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10825 * m68k-tdep.c (m68k_gdbarch_init): Update.
10826 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10827 * m32r-tdep.c (m32r_gdbarch_init): Update.
10828 * ia64-tdep.c (ia64_gdbarch_init): Update.
10829 * h8300-tdep.c (h8300_gdbarch_init): Update.
10830 * frv-tdep.c (frv_gdbarch_init): Update.
10831 * arm-tdep.c (arm_gdbarch_init): Update.
10832 * alpha-tdep.c (alpha_gdbarch_init): Update.
10833
a67af2b9
AC
108342004-01-26 Andrew Cagney <cagney@redhat.com>
10835
10836 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
10837 SYMBOL_LOCATION_FUNCS
10838 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
10839 "struct symbol_ops".
10840 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
10841 type to "struct symbol_ops".
10842 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
10843 (struct symbol): Replace ".aux_value.loc.funcs" and
10844 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
10845 (SYMBOL_OBJFILE): Delete macro.
10846 (SYMBOL_LOCATION_FUNCS): Delete macro.
10847 (SYMBOL_LOCATION_BATON): Update.
10848 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
10849 intead of SYMBOL_LOCATION_FUNCS.
10850 * ax-gdb.c (gen_var_ref): Ditto.
10851 * printcmd.c (address_info): Ditto.
10852 * findvar.c (read_var_value): Ditto.
10853 (symbol_read_needs_frame): Ditto.
10854
c034e007
AC
108552004-01-26 Andrew Cagney <cagney@redhat.com>
10856
10857 * dwarf2read.c (read_func_scope): Document frame-base hack.
10858
bb472c1e
MK
108592004-01-25 Mark Kettenis <kettenis@gnu.org>
10860
10861 * infcmd.c (print_return_value): Plug memory leak; delete
10862 ui_stream object. Rename argument `structure_return' to
10863 `struct_return'.
10864
c8e737d5
MK
108652004-01-25 Mark Kettenis <kettenis@gnu.org>
10866
f941662f
MK
10867 * infcmd.c (print_return_value): Wrap long lines.
10868 (finish_command_continuation, finish_command): Remove unused
10869 variable `funcaddr'. Fix some coding-standards problems.
10870
c558d81a 10871 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 10872 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
10873 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
10874 TDEP->fpregset to zero.
10875
bf1e5861 10876 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
10877 floating-point registers for traditional NetBSD core files.
10878 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
10879 TDEP->sizeof_fpregset here.
10880
4c72d57a
MK
108812004-01-25 Mark Kettenis <kettenis@gnu.org>
10882
566626fa
MK
10883 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
10884 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
10885 function with code split out from
10886 sparc32nbsd_sigcontext_frame_cache.
10887 (sparc32nbsd_sigcontext_frame_cache): Use
10888 sparc32nbsd_sigcontext_saved_regs.
10889 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
10890 OpenBSD.
10891 * sparcobsd-tdep.c: New file.
10892 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
10893 (sparcobsd-tdep.o): New dependency.
10894 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
10895 * config/sparc/obsd.mt: New file.
10896
4c72d57a
MK
10897 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
10898 TDEP->fpregset to be initialized to enable core file register
10899 sets.
10900
7e5e9f88
MK
109012004-01-24 Mark Kettenis <kettenis@gnu.org>
10902
f0f207fd 10903 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
10904 Add opaque declarations.
10905 (sparc64nbsd_sigcontext_saved_regs): New prototype.
10906 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
10907 function with code split out from
10908 sparc64nbsd_sigcontext_frame_cache.
10909 (sparc64nbsd_sigcontext_frame_cache): Use
10910 sparc64nbsd_sigcontext_saved_regs.
10911 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
10912 OpenBSD.
10913 * sparc64obsd-tdep.c: New file.
10914 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
10915 (sparc64obsd-tdep.o): New dependency.
10916 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
10917 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
10918 * config/sparc/obsd64.mt: New file.
10919
690668cc
MK
10920 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
10921 read the instruction at PC.
10922
7e5e9f88
MK
10923 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
10924 value of GDB_OSABI_DEFAULT.
10925 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
10926 instead of GDB_OSABI_NETBSD_AOUT.
10927
68b6dce9
NR
109282004-01-24 Nick Roberts <nick@nick.uklinux.net>
10929
10930 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
10931 copyright.
10932
080ce8c0
AC
109332004-01-23 Andrew Cagney <cagney@redhat.com>
10934
10935 * printcmd.c (display_command): Replace tui_set_display call with
10936 tui_set_layout_for_display_command.
10937 * tui/tui.h (enum tui_win_type): Define.
10938 (tui_set_layout): Delete declaration.
10939 (tui_set_layout_for_display_command): Rename set_tui_layout.
10940 * tui/tui-data.h (enum tui_layout_type): Define.
10941 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
10942 "tui.h".
10943 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
10944 (tui_default_win_height): Rename tuiDefaultWinHeight.
10945 (tui_default_win_viewport_height): Rename
10946 tuiDefaultWinViewportHeight.
10947 (tui_set_layout): RenametuiSetLayout.
10948 * tui/tui-layout.c: Update references.
10949 * tui/tui.c: Update references.
10950 * tui/tui-disasm.c: Update references.
10951
b368761e
DC
109522004-01-23 David Carlton <carlton@kealia.com>
10953
10954 Partial workaround for PR c++/1511:
10955 * cp-namespace.c: Include frame.h.
10956 (cp_lookup_transparent_type): New
10957 (cp_lookup_transparent_type_loop): New.
10958 * cp-support.h: Declare cp_lookup_transparent_type.
10959 * symtab.c (basic_lookup_transparent_type): Renamed from
10960 lookup_transparent_type.
10961 (lookup_transparent_type): Replace old body by a call to
10962 current_language->la_lookup_transparent_type.
10963 * symtab.h: Update copyright. Declare
10964 basic_lookup_transparent_type.
10965 * language.h: Update copyright.
10966 (struct language_defn): Add la_lookup_transparent_type.
10967 * language.c: Update copyright.
10968 (unknown_language_defn): Add basic_lookup_transparent_type.
10969 (auto_language_defn): Add basic_lookup_transparent_type.
10970 (local_language_defn): Add basic_lookup_transparent_type.
10971 * ada-lang.c: Update copyright.
10972 (ada_language_defn): Add basic_lookup_transparent_type.
10973 * c-lang.c: Update copyright.
10974 (c_language_defn): Add basic_lookup_transparent_type.
10975 (cplus_language_defn): Add basic_lookup_transparent_type.
10976 (asm_language_defn): Add basic_lookup_transparent_type.
10977 (minimal_language_defn): Add basic_lookup_transparent_type.
10978 * f-lang.c: Update copyright.
10979 (f_language_defn): Add basic_lookup_transparent_type.
10980 * jv-lang.c: Update copyright.
10981 (java_language_defn): Add basic_lookup_transparent_type.
10982 * m2-lang.c: Update copyright.
10983 (m2_language_defn): Add basic_lookup_transparent_type.
10984 * objc-lang.c: Update copyright.
10985 (objc_language_defn): Add basic_lookup_transparent_type.
10986 * p-lang.c: Update copyright.
10987 (p_language_defn): Add basic_lookup_transparent_type.
10988 * scm-lang.c: Update copyright.
10989 (scm_language_defn): Add basic_lookup_transparent_type.
10990 * Makefile.in (cp-namespace.o): Depend on frame.h.
10991
fdde2d81
DC
109922004-01-23 David Carlton <carlton@kealia.com>
10993
10994 Patch for PR c++/1520:
10995 * dwarf2read.c (read_func_scope): Set processing_current_prefix
10996 properly if we have a specification die.
10997 (determine_prefix_aux): Rename from determine_prefix.
10998 (determine_prefix): Like the old determine_prefix, but never
10999 returns NULL.
11000
5b828b6b
TR
110012004-01-23 Theodore A. Roth <troth@openavr.org>
11002
11003 * avr-tdep.c: Update copyright.
11004 (avr_iaddr_p): Delete unused function.
11005 (avr_saddr_p): Delete unused function.
11006
a1b8c067
DC
110072004-01-23 David Carlton <carlton@kealia.com>
11008
11009 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11010 Fix for PR symtab/1534.
11011
f2cab569
MK
110122004-01-23 Mark Kettenis <kettenis@gnu.org>
11013
11014 * NEWS (New native configurations): Mention OpenBSD/sparc and
11015 OpenBSD/sparc64.
11016 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
11017 * configure.host: Likewise.
11018 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
11019 handler for OpenBSD.
11020 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
11021
642d8300
MK
110222004-01-22 Mark Kettenis <kettenis@gnu.org>
11023
89aac506
MK
11024 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
11025 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
11026
36662fde
MK
11027 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
11028 * cli/cli-cmds.c (shell_escape): Likewise.
11029
642d8300
MK
11030 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
11031 OpenBSD .note.openbsd.ident sections.
11032
fae299cd
DC
110332004-01-22 David Carlton <carlton@kealia.com>
11034
11035 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
11036 get_scope_pc_bounds.
11037 (read_file_scope): Ditto.
11038 (get_scope_pc_bounds): New function, produced by extracting code
11039 from the above two functions, consolidating it, and adding support
11040 for DW_TAG_namespace.
11041
a49d618c
MK
110422004-01-22 Mark Kettenis <kettenis@gnu.org>
11043
11044 * osabi.c (MAX_NOTESZ): New define.
11045 (check_note): New function.
11046 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11047 check_note.
11048
fe61caab
RM
110492004-01-21 Roland McGrath <roland@redhat.com>
11050
11051 * MAINTAINERS (write after approval): Add myself.
11052
ec145965
EZ
110532004-01-21 Eli Zaretskii <eliz@gnu.org>
11054
11055 * utils.c (init_page_info): Move declarations of `rows' and
11056 `cols' before the __GO32__-specific code. Move the closing brace
11057 outside the #ifdef __GO32__..#endif block.
11058 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11059
877522db
PB
110602004-01-21 Paul Brook <paul@codesourcery.com>
11061
11062 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11063 BPSTAT_WHAT_CHECK_SHLIBS.
11064
dbf5be1c
PB
110652004-01-21 Paul Brook <paul@codesourcery.com>
11066
11067 * MAINTAINERS: Add myself to write-after-approval.
11068
81f08b92
AC
110692004-01-20 Andrew Cagney <cagney@redhat.com>
11070
5a1efed7
AC
11071 * ax-gdb.c (print_axs_value): Delete unused function.
11072 * jv-lang.c (java_lookup_type): Delete unused function.
11073 * cli/cli-dump.c (dump_filetype): Delete unused function.
11074 * remote-mips.c (remote_mips_insert_hw_breakpoint)
11075 (remote_mips_remove_hw_breakpoint): Delete unused functions.
11076 (mips_getstring): Delete unused function.
11077 (pmon_insert_breakpoint): Delete #if0ed function.
11078 (PMON_MAX_BP): Delete #if0ed MACRO.
11079 (mips_pmon_bp_info): Delete #if0ed variable.
11080 (pmon_remove_breakpoint): Delete #if0ed function.
11081 * monitor.c (monitor_write_even_block): Delete unused function.
11082 (monitor_write_memory_block): Delete #if0ed code.
11083 * dink32-rom.c (dink32_load): Delete unused function.
11084 (_initialize_dink32_rom): Delete #if0ed code.
11085 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11086
b0a30fce
AC
11087 * tui/tui-command.c: Update references.
11088 * tui/tui-io.c: Update references.
11089 * tui/tui-command.h: Update copyright.
11090 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11091
81f08b92
AC
11092 * source.c (ambiguous_line_spec): Delete never-defined function.
11093 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11094 * gdbtypes.c (add_name, add_mangled_type): Ditto.
11095 * cli/cli-cmds.c (validate_comname): Ditto.
11096
65f05602
AC
11097 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
11098 "tui-data.h".
11099 (tui_set_disassem_content): Rename tuiSetDisassemContent.
11100 (tui_show_disassem): Rename tuiShowDisassem.
11101 (tui_show_disassem_and_update_source): Rename
11102 tuiVerticalDisassemScroll.
11103 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11104 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11105 * tui/tui.h: Update copyright.
11106 (enum tui_status): Define.
11107 * tui/tui-data.h (enum tui_scroll_direction): Define.
11108 * tui/tui-disasm.c: Update copyright. Update references.
11109 * tui/tui-winsource.c: Update copyright. Update references.
11110 * tui/tui-win.c: Update references.
11111 * tui/tui-layout.c: Update references.
11112
6bb0384f
AC
111132004-01-20 Andrew Cagney <cagney@redhat.com>
11114
11115 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11116 sym2 to start of block.
11117
9175c9a3
MC
111182004-01-19 Michael Chastain <mec.gnu@mindspring.com>
11119
11120 * MAINTAINERS: Delete mmalloc.
11121 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11122 * NEWS: Mention removal of --with-malloc.
11123 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11124 * config.in: Regenerate.
11125 * configure: Regenerate.
6bb0384f
AC
11126 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11127 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
11128 * gdbinit.in: Remove mmalloc.
11129 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11130 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11131 * config/i386/go32.mh: Likewise.
11132 * config/i386/interix.mh: Likewise.
11133 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11134
4fcef00a
JJ
111352004-01-19 Jeff Johnston <jjohnstn@redhat.com>
11136
11137 * linespec.c (decode_variable, symtab_from_filename): Call
11138 error_silent with error message instead of throwing an exception
11139 directly.
11140 * defs.h (error_silent, error_output_message): Add prototypes.
11141 (catch_exceptions_with_msg): Ditto.
11142 * utils.c (error_silent, error_output_message): New functions.
11143 * top.c (catch_exceptions_with_msg): New function.
11144
8e94b928
NR
111452004-01-20 Nick Roberts <nick@nick.uklinux.net>
11146
11147 * mi/mi-cmds.h (enum print_values): Add definition.
11148
11149 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
11150 type and value for simple data types and just the name and type
11151 for complex ones, if required.
11152
11153 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
11154 children, if required.
11155
a02d6af8
KB
111562004-01-19 Kevin Buettner <kevinb@redhat.com>
11157
11158 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
11159 unused declarations.
11160
78a4a9b9
AC
111612004-01-19 Andrew Cagney <cagney@redhat.com>
11162
11163 * top.h (mapped_symbol_files): Delete declaration.
11164 * main.c (captured_main): Delete option "m" and "mapped".
11165 * objfiles.c (mapped_symbol_files): Delete variable.
11166 * symfile.c (symbol_file_command): Delete mmap code.
11167 (symbol_file_add_with_addrs_or_offsets): Ditto.
11168 (add_symbol_file_command, reread_separate_symbols): Ditto.
11169 * objfiles.h (OBJF_MAPPED): Delete.
11170 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
11171 (free_objfile) [USE_MMALLOC]: Ditto.
11172 (open_existing_mapped_file): Delete function.
11173 (open_mapped_file): Delete function.
11174 (map_to_file): Delete function.
11175
2dbd5e30
KB
111762004-01-19 Kevin Buettner <kevinb@redhat.com>
11177
11178 * infrun.c (step_into_function): Account for possible breakpoint
11179 adjustment when computing ``stop_func_start''.
11180
437b434f
KB
111812004-01-19 Kevin Buettner <kevinb@redhat.com>
11182
11183 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
11184 the region size against the size of a pointer, not the size of
11185 a register as given by DEPRECATED_REGISTER_SIZE.
11186
55fb0713
AC
111872004-01-19 Andrew Cagney <cagney@redhat.com>
11188
11189 * tui/tui-regs.h: Include "tui-data.h".
11190 (tuiFirstRegElementNoInLine): Delete declaration.
11191 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
11192 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
11193 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
11194 (tui_calculate_regs_column_count): Rename
11195 tuiCalculateRegsColumnCount.
11196 (tui_check_register_values): Rename tuiCheckRegisterValues.
11197 (tui_show_registers): Rename tuiShowRegisters.
11198 (tui_display_registers_from_line): Rename
11199 tuiDisplayRegistersFromLine.
11200 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
11201 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
11202 (tui_first_reg_element_no_inline): Rename
11203 tuiFirstRegElementNoInLine.
11204 * tui/tui-data.h: Update copyright.
11205 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
11206 * tui/tui-windata.c: Update copyright, update references.
11207 * tui/tui-regs.c: Update copyright, update references.
11208 * tui/tui-win.c: Update copyright, update references.
11209 * tui/tui-layout.c: Update copyright, update references.
fe61caab 11210
cebe9500
AC
112112004-01-18 Andrew Cagney <cagney@redhat.com>
11212
bcdf1568
AC
11213 * tui/tui-io.c: Update copyright.
11214 (key_is_end_sequence, key_is_backspace): New functions.
11215 (key_is_command_char, key_is_start_sequence): New function.
11216 (tui_getc): Update references.
11217 * tui/tui-io.h: Update copyright.
11218 (m_tuiStartNewLine): Delete macro.
11219 (m_isBackspace, m_isDeleteChar): Delete macros.
11220 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
11221 (m_isNextPage, m_isPrevPage): Delete macros.
11222 (m_isLeftArrow, m_isRightArrow): Delete macros.
11223 (m_isXdbStyleCommandChar): Delete macro.
11224 (key_is_start_sequence): Declare, replace m_isStartSequence.
11225 (key_is_end_sequence): Declare, replace m_isEndSequence.
11226 (key_is_backspace): Declare ,replace m_isBackspace.
11227 (key_is_command_char): Declare, replace m_isCommandChar.
11228 * tui/tui-command.c: Update copyright.
11229 (tuiDispatchCtrlChar): Update references.
11230
130d87e6
AC
11231 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
11232 tuiSourceWin.h.
11233
d7b2e967
AC
11234 * tui/tui-command.c: Rename tui/tuiCommand.c.
11235 * tui/tui-command.h: Rename tui/tuiCommand.h.
11236 * tui/tui-data.c: Rename tui/tuiData.c.
11237 * tui/tui-data.h: Rename tui/tuiData.h.
11238 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
11239 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
11240 * tui/tui-io.c: Rename tui/tuiIO.c.
11241 * tui/tui-io.h: Rename tui/tuiIO.h.
11242 * tui/tui-layout.c: Rename tui/tuiLayout.c.
11243 * tui/tui-layout.h: Rename tui/tuiLayout.h.
11244 * tui/tui-regs.c: Rename tui/tuiRegs.c.
11245 * tui/tui-regs.h: Rename tui/tuiRegs.h.
11246 * tui/tui-source.c: Rename tui/tuiSource.c.
11247 * tui/tui-source.h: Rename tui/tuiSource.h.
11248 * tui/tui-stack.c: Rename tui/tuiStack.c.
11249 * tui/tui-stack.h: Rename tui/tuiStack.h.
11250 * tui/tui-win.c: Rename tui/tuiWin.c.
11251 * tui/tui-win.h: Rename tui/tuiWin.h.
11252 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
11253 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
11254 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
11255 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
11256 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
11257 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
11258 * tui/tui-file.c: Update includes.
11259 * tui/tui-hooks.c: Update includes.
11260 * tui/tui-interp.c: Update includes.
11261 * tui/tui.c: Update includes.
11262 * Makefile.in: Update all tui/ dependencies.
11263 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
11264
b2100910
AC
11265 * Makefile.in: Update copyright. Update dependencies.
11266
cebe9500
AC
11267 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
11268 problem.
11269
c6f0559b
AC
112702004-01-18 Andrew Cagney <cagney@redhat.com>
11271
43e9390b
AC
11272 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
11273 instead of register_gdbarch_init.
11274
c6f0559b
AC
11275 * remote-sds.c (tohex): Delete unused function. Update copyright.
11276 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
11277 * v850-tdep.c (v850_register_virtual_size): Ditto.
11278 * target.c (normal_target_post_startup_inferior): Ditto.
11279 * source.c (ambiguous_line_spec): Ditto.
11280 * remote.c (adapt_remote_get_threadinfo): Ditto.
11281 * mi/mi-out.c (out_field_fmt): Ditto.
11282 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
11283 (output_control_change_notification): Ditto.
11284 * m68k-tdep.c (m68k_register_byte): Ditto.
11285 (m68k_remote_breakpoint_from_pc): Ditto.
11286 * ui-out.c (init_ui_out_state): Delete unused declaration.
11287 * stabsread.c (search_value): Ditto.
11288 * mi/mi-cmd-env.c (env_cli_command): Ditto.
11289 * maint.c (print_section_table): Ditto.
11290 * infrun.c (set_follow_fork_mode_command): Ditto.
11291
a8504492
MK
112922004-01-18 Mark Kettenis <kettenis@gnu.org>
11293
11294 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
11295 DW_CFA_def_cfa_exporession. Add support for
11296 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
11297 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
11298
0bd8997e
AC
112992004-01-18 Andrew Cagney <cagney@redhat.com>
11300
11301 * ocd.c: Update copyright.
11302 (bdm_read_register_command): Delete unused function.
11303 (_initialize_remote_ocd): Delete commented out reference.
11304 (get_quoted_char, reset_packet): Delete #if0ed function.
11305 (output_packet, put_quoted_char): Delete #if0ed function.
11306 (stu_put_packet, stu_get_packet): Delete #if0ed function.
11307 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
11308 (BDM_BREAKPOINT): Delete #if0ed macro.
11309 (remote_timeout): Delete #if0ed variable.
11310
31bb40e4
MK
113112004-01-18 Mark Kettenis <kettenis@gnu.org>
11312
11313 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
11314 (core-sol2.o): Remove dependency.
11315 * core-sol2.c: Remove file.
11316
887432a5
AC
113172004-01-17 Andrew Cagney <cagney@redhat.com>
11318
11319 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
11320 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
11321 enums.
11322
29182b13
DJ
113232004-01-17 Daniel Jacobowitz <drow@mvista.com>
11324
11325 * remote.c: Update copyright years.
11326
2963ee1d
DJ
113272004-01-17 Daniel Jacobowitz <drow@mvista.com>
11328
11329 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
11330
79d45cd4
AC
113312004-01-17 Andrew Cagney <cagney@redhat.com>
11332
ee300cd4
AC
11333 * mdebugread.c: Update copyright.
11334 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
11335 (parse_type, parse_procedure): Ditto.
11336 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
11337
fcacc9c2
AC
11338 * cris-tdep.c (cris_store_struct_return): Put back accidently
11339 deleted function.
11340
79d45cd4
AC
11341 * gdbarch.sh: Update copyright year.
11342 * gdbarch.h, gdbarch.c: Re-generate.
11343
b263358a
DJ
113442004-01-17 Daniel Jacobowitz <drow@mvista.com>
11345
11346 Suggested by George Anzinger.
11347 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
11348 correct stack offset. Include unknown opcode numbers in the error
11349 message.
11350
931aecf5
AC
113512004-01-17 Andrew Cagney <cagney@redhat.com>
11352
11353 * x86-64-tdep.c (x86_64_init_abi): No need to clear
11354 extract_struct_value_address, i386 does not set it.
11355 * sparc64-tdep.c (sparc64_init_abi): Do not set
11356 extract_struct_value_address, never called.
11357 (sparc64_extract_struct_value_address): Delete function.
11358 * m68hc11-tdep.c: Update copyright.
11359 (m68hc11_gdbarch_init): Delete redundant assignment of
11360 extract_struct_value_address.
11361 * i386-tdep.c: Update copyright.
11362 (i386_gdbarch_init): Do not set extract_struct_value_address,
11363 never called.
11364 (i386_extract_struct_value_address): Delete function.
11365 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
11366 extract_struct_value_address, never called.
11367 (sparc32_extract_struct_value_address): #if 0 function. Add
11368 comments explaining its future.
11369
756fe439
DJ
113702004-01-17 Daniel Jacobowitz <drow@mvista.com>
11371
11372 * arm-tdep.c (arm_write_pc): New function.
11373 (arm_gdbarch_init): Call set_gdbarch_write_pc.
11374
e74f0f02
DJ
113752004-01-17 Daniel Jacobowitz <drow@mvista.com>
11376
11377 * breakpoint.c (must_shift_inst_regs): Delete.
11378 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
11379 and SHIFT_INST_REGS.
11380 * infcmd.c (step_1, step_1_continuation): Delete references to
11381 SHIFT_INST_REGS.
11382 * infrun.c (keep_going): Likewise.
11383 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
11384 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
11385
b6cb9035
AC
113862004-01-17 Andrew Cagney <cagney@redhat.com>
11387
444a1e2e
AC
11388 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11389 * gdbarch.h, gdbarch.c: Re-generate.
11390 * infcmd.c (print_return_value): Delete reference to
11391 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
11392
def7e6ed
AC
11393 * cris-tdep.c (cris_gdbarch_init): Do not set
11394 deprecated_extract_struct_value_address.
11395
07be497a
AC
11396 * xstormy16-tdep.c: Update copyright.
11397 (xstormy16_extract_struct_value_address): Update to current
11398 extract struct value address interface.
11399 (xstormy16_gdbarch_init): Set extract_struct_value_address.
11400 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
11401 current extract struct value address interface.
11402 (sh64_gdbarch_init): Set extract_struct_value_address.
11403
6b4d5c91
AC
11404 * cris-tdep.c: Update copyright.
11405 (cris_extract_struct_value_address): Delete function.
11406 (struct_return_address): Delete variable.
11407 (cris_store_struct_return): Do not set struct_return_address.
11408
464e0365
AC
11409 * mcore-tdep.c: Update copyright.
11410 (mcore_extract_struct_value_address): Delete function. Update
11411 comments.
11412 (mcore_gdbarch_init): Update.
11413 * mn10300-tdep.c: Update copyright.
11414 (mn10300_extract_struct_value_address): Delete function.
11415 (mn10300_gdbarch_init): Update.
11416 * v850-tdep.c: Update copyright.
11417 (v850_extract_struct_value_address): Delete.
11418 (v850_gdbarch_init): Update.
11419 * ns32k-tdep.c: Update copyright.
11420 (ns32k_extract_struct_value_address): Delete.
11421 (ns32k_gdbarch_init): Update.
11422 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
11423 (hppa_gdbarch_init): Update.
11424 * vax-tdep.c: Update copyright.
11425 (vax_extract_struct_value_address): Delete.
11426 (vax_gdbarch_init): Update.
11427
afb18d0f
AC
11428 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
11429 * gdbarch.h, gdbarch.c: Re-generate.
11430 * procfs.c (procfs_fetch_registers): Delete reference to
11431 DEPRECATED_NPC_REGNUM.
11432 (procfs_store_registers): Ditto.
11433 * regcache.c (generic_target_write_pc): Simplify.
11434 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
11435
a698f53e
AC
11436 * core-sol2.c (fetch_core_registers): Replace
11437 DEPRECATED_NPC_REGNUM with equivalent tdep value.
11438
adc11376
AC
11439 * hppa-tdep.c: Update copyright year.
11440 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
11441 NPC_REGNUM.
11442 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
11443
b6cb9035
AC
11444 * mips-tdep.c (mips_write_pc): New function.
11445 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
11446 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
11447 (mips_find_saved_regs, mips_software_single_step: Ditto.
11448 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
11449 mips_init_extra_frame_info, mips_pop_frame): Ditto.
11450
6d82d43b
AC
114512004-01-17 Andrew Cagney <cagney@redhat.com>
11452
11453 * mips-tdep.c: Re-indent. Group functions by ABI.
11454
71bd6bd4
AC
114552004-01-17 Andrew Cagney <cagney@redhat.com>
11456
11457 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
11458 * gdbarch.c: Re-generate.
11459 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11460 DECR_PC_AFTER_BREAK to zero.
11461 * vax-tdep.c (vax_gdbarch_init): Ditto.
11462 * v850-tdep.c (v850_gdbarch_init): Ditto.
11463 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11464 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11465 * sh-tdep.c (sh_gdbarch_init): Ditto.
11466 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11467 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11468 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11469 * mips-tdep.c (mips_gdbarch_init): Ditto.
11470 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11471 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11472 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11473 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11474 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11475 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11476 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11477 * frv-tdep.c (frv_gdbarch_init): Ditto.
11478 * cris-tdep.c (cris_gdbarch_init): Ditto.
11479 * avr-tdep.c (avr_gdbarch_init): Ditto.
11480 * arm-tdep.c (arm_gdbarch_init): Ditto.
11481 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
11482
a02abb62
JB
114832004-01-17 J. Brobecker <brobecker@gnat.com>
11484
11485 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
11486 Delete, no longer used.
11487 (read_subrange_type): New function, mostly extracted from
11488 read_array_type().
11489 (read_array_type): Replace extracted code by call to
11490 read_subrange_type().
11491 (dwarf2_get_attr_constant_value): New function.
11492 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
11493 (add_partial_symbol): Likewise.
11494 (process_die): Likewise.
11495 (new_symbol): Likewise.
11496 (read_type_die): Likewise.
11497
cf5b2f1b
AC
114982004-01-16 Andrew Cagney <cagney@redhat.com>
11499
11500 * symfile.c: Update copyright year.
11501 (compare_symbols): Delete unused function.
11502 * stabsread.c: Update copyright year.
11503 (lrs_general_complaint): Delete unused function.
11504 (ref_search_value): Ditto.
11505 (get_substring): Delete declaration.
11506 * sh64-tdep.c: Update copyright year.
11507 (sh64_get_gdb_regnum): Delete unused function.
11508 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
11509 Delete unused function.
11510
d33b9831
MK
115112004-01-17 Mark Kettenis <kettenis@gnu.org>
11512
11513 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
11514 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
11515
7aea86e6
AC
115162004-01-16 Andrew Cagney <cagney@redhat.com>
11517
11518 Changes from Peter Schauer.
11519 * rs6000-tdep.c: Update copyright year.
11520 (rs6000_push_dummy_call): Update the stack pointer before
11521 accessing the corresponding stack region.
11522 * rs6000-nat.c: Update copyright year.
11523 (set_host_arch): Set "info.abfd" to "exec_bfd".
11524
26b0da32
MK
115252004-01-15 Mark Kettenis <kettenis@gnu.org>
11526
11527 * blockframe.c: Update copyright year.
11528 (inside_entry_func): Don't treat a zero PC specially.
11529
86fbe6cc
EZ
115302004-01-14 Elena Zannoni <ezannoni@redhat.com>
11531
11532 * gcore.c (gcore_copy_callback): Use paddr_d to print size
11533 variable.
11534 (gcore_create_callback): Ditto. Skip any memory segment that has
11535 no permissions set.
11536
63d06c5c
DC
115372004-01-14 David Carlton <carlton@kealia.com>
11538
11539 Change symbols for C++ nested types to contain the fully qualified
11540 name, if possible. (At least in the DWARF-2 case.) Partial fix
11541 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
11542 c++/895.
11543 * c-exp.y (qualified_type): Handle types nested within classes.
11544 * cp-namespace.c: Update comments.
11545 (cp_set_block_scope): Delete #if 0.
11546 (cp_lookup_nested_type): Handle types nested within classes.
11547 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
11548 when appropriate.
11549 (add_partial_symbol): Add the name of the enclosing namespace to
11550 types.
11551 (pdi_needs_namespace): New.
11552 (add_partial_namespace): Tweak comment.
11553 (add_partial_structure): New.
11554 (psymtab_to_symtab_1): Initialize processing_current_prefix
11555 here...
11556 (process_die): instead of here.
11557 (read_structure_scope): Try to figure out the name of the class or
11558 namespace that the structure might be defined within.
11559 (read_enumeration): Generate fully-qualified names, if possible.
11560 (read_namespace): Don't set name to NULL.
11561 (die_specification): New.
11562 (new_symbol): Generate fully-qualified names for types.
11563 (read_type_die): Determine appropriate prefix.
11564 (determine_prefix): New.
11565 (typename_concat): New.
11566 (class_name): New.
11567 * valops.c (value_aggregate_elt): Pass NOSIDE to
11568 value_struct_elt_for_reference.
11569 (value_struct_elt_for_reference): Make static, add NOSIDE
11570 parameter, call value_maybe_namespace_elt as a last resort.
11571 (value_namespace_elt): Break out code into
11572 value_maybe_namespace_elt.
11573 (value_maybe_namespace_elt): New.
11574
87783b8b
AC
115752004-01-12 Andrew Cagney <cagney@redhat.com>
11576
11577 * mips-tdep.c (mips_convert_register_p): Handle both raw and
11578 cooked floating-point registers.
11579 (mips_gdbarch_init): Set convert_register_p, register_to_value,
11580 and value_to_register.
11581
6503b91e
AC
115822004-01-13 Andrew Cagney <cagney@redhat.com>
11583
11584 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
11585 * gdbarch.c: Re-generate.
11586 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11587 FUNCTION_START_OFFSET.
11588 * v850-tdep.c (v850_gdbarch_init): Ditto.
11589 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11590 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11591 * sh-tdep.c (sh_gdbarch_init): Ditto.
11592 * s390-tdep.c (s390_gdbarch_init): Ditto.
11593 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11594 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11595 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11596 * mips-tdep.c (mips_gdbarch_init): Ditto.
11597 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11598 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11599 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11600 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11601 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11602 * i386-tdep.c (i386_gdbarch_init): Ditto.
11603 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11604 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11605 * frv-tdep.c (frv_gdbarch_init): Ditto.
11606 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11607 * cris-tdep.c (cris_gdbarch_init): Ditto.
11608 * avr-tdep.c (avr_gdbarch_init): Ditto.
11609 * arm-tdep.c (arm_gdbarch_init): Ditto.
11610 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11611
ea1dd7bc
DJ
116122004-01-13 Daniel Jacobowitz <drow@mvista.com>
11613
11614 * infrun.c (follow_fork_mode_ask): Remove.
11615 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
11616 (follow_fork): Simplify and remove internal error for
11617 follow_fork_mode_ask.
11618 (_initialize_infrun): Update "set follow-fork-mode" help text.
11619
0f0cffd2
AC
116202004-01-13 Andrew Cagney <cagney@redhat.com>
11621
11622 * configure.in: Update copyright year.
11623 (build_warnings): Add -Wunused-label.
11624 * configure: Re-generate.
11625
de38af99
AC
116262004-01-12 Andrew Cagney <cagney@redhat.com>
11627
954a7fba
AC
11628 * exec.h (exec_ops): Make "extern".
11629
de38af99
AC
11630 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
11631 the function is void.
11632 (mips_pseudo_register_write): Ditto.
11633
1a111ce3
AC
116342004-01-12 Andrew Cagney <cagney@redhat.com>
11635
11636 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
11637 call. Never defined.
11638 * sparc-tdep.h (struct frame_info): Add opaque declaration.
11639 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
11640 (struct sparc_gregset, struct regcache): Ditto.
11641 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
11642
48efe704
AC
116432004-01-12 Andrew Cagney <cagney@redhat.com>
11644
11645 * mi/ChangeLog: Delete file. Renamed to ...
11646 * mi/ChangeLog-1999-2003: New file.
11647 * tui/ChangeLog: Delete file. Renamed to ...
11648 * tui/ChangeLog-1998-2003: New file.
fe61caab 11649
a54124c5
MK
116502004-01-11 Mark Kettenis <kettenis@gnu.org>
11651
2ca62865
MK
11652 * sparc64nbsd-tdep.c: Include "regset.h".
11653 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
11654 Remove variables.
11655 (fetch_core_registers): Remove function.
11656 (sparc64nbsd_core_fns): Remove variable.
11657 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
11658 functions.
11659 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
11660 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11661 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
11662
ca9d58e9
MK
11663 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
11664 sparc_extract_struct_value_address.
11665 (sparc32_gdbarch_init): Set extract_struct_value_address.
11666 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
11667 function.
11668 (sparc64_init_abi): Set extract_struct_value_address. Don't set
11669 return_value_on_stack.
11670
3cc87ec0
MK
11671 * NEWS: Mention that %cs and %ss have been added to the AMD64
11672 configurations
11673
5bf00f29
MK
11674 * frame.c: Update copyright year.
11675 (get_prev_frame): Improve comment.
11676
4f7ec84e
MK
11677 * sparc64fbsd-tdep.c: Include "regset.h".
11678 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11679 Remove variables.
11680 (fetch_core_registers): Remove function.
11681 (sparc64fbsd_core_fns): Remove variable.
11682 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
11683 functions.
11684 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
11685 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 11686 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 11687
4e7b0cd3
MK
11688 * sparcnbsd-tdep.c: Include "regset.h".
11689 (fetch_core_registers): Remove function.
11690 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
11691 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
11692 functions.
11693 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
11694 TDEP->fpregset.
46b58ce9 11695 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 11696
a54124c5
MK
11697 * sparc-tdep.h (struct regset): Provide opaque declaration.
11698 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
11699 fpregset and sizeof_fpregset members.
11700 * sparc-tdep.c (struct regset): Provide opaque declaration.
11701 (sparc_regset_from_core_section): New function.
11702 (sparc32_gdbarch_init): Initialize TDEP->gregset,
11703 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
11704 Set regset_from_core_section when appropriate.
11705
29ff87c5
MK
117062004-01-10 Mark Kettenis <kettenis@gnu.org>
11707
79b1ab3d
MK
11708 * x86-64-tdep.c (amd64_non_pod_p): New function.
11709 (amd64_classify_aggregate): Return class memory for non-POD
11710 C++ structure types.
11711
6470d250
MK
11712 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
11713 argument. Use it to reserve a register if necessary.
11714 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
11715 amd64_push_arguments.
11716
562c50c2
MK
11717 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
11718
af233647
MK
11719 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
11720 register numbers in comments.
11721 * x86-64-tdep.h: Update copyright year.
11722 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
11723 Adjust for addition of %cs and %ss.
11724 * amd64fbsd-nat.c: Update copyright year.
11725 (reg_offset): Add register offsets for %cs and %ss.
11726 * amd64fbsd-tdep.c: Update copyright year.
11727 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
11728 (amd64fbsd_sc_reg_offset): Likewise.
11729 * x86-64-linux-nat.c: Update copyright year.
11730 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
11731 and %ss.
11732 * amd64nbsd-nat.c: Update copyright year.
11733 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
11734 * amd64nbsd-tdep.c: Update copyright year.
11735 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
11736 * x86-64-linux-tdep.c: Update copyright year.
11737 (user_to_gdb_regmap): Add mapping for %cs and %ss.
11738 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
11739 * regformats/reg-x86-64.dat: Add %cs and %ss.
11740
29ff87c5
MK
11741 * blockframe.c (inside_entry_func): Reformat. Introduce new local
11742 variables to prevent long lines. Update comments to reflect
11743 reality.
11744
38d518c9
EZ
117452004-01-09 David Carlton <carlton@kealia.com>
11746
11747 Checked in by Elena Zannoni <ezannoni@redhat.com>.
11748 * dwarf2read.c (read_namespace): Pull out name-generating code
11749 into namespace_name. Rename previous_namespace to previous_prefix
11750 and processing_current_namespace to processing_current_prefix..
11751 (namespace_name): New function.
11752 (add_partial_symbol): Substitute uses of pdi->name with
11753 actual_name.
11754 * cp-support.h: Rename processing_current_namespace to
11755 processing_current_prefix.
11756 Update copyright year.
11757 * cp-namespace.c: Rename processing_current_namespace to
11758 processing_current_prefix.
11759 Update copyright year.
fe61caab 11760
1e4728e7
AC
117612004-01-09 Andrew Cagney <cagney@redhat.com>
11762
11763 * jv-valprint.c, ser-unix.c: Add missing copyright years.
11764
c77c642a
MK
117652004-01-09 Mark Kettenis <kettenis@gnu.org>
11766
11767 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
11768 complaining.
11769 (process_one_symbol): Deal with N_PATCH stabs.
11770
b44e9041
EZ
117712004-01-09 Elena Zannoni <ezannoni@redhat.com>
11772
11773 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
11774 ifdeffed code.
11775 Update copyright year.
38d518c9 11776
eccfb640
MC
117772004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11778
11779 * config/pa/tm-hppa.h: Update extern declarations for
11780 hppa32_hpux_frame_saved_pc_in_sigtramp,
11781 hppa32_hpux_frame_base_before_sigtramp, and
11782 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
11783
848c5feb
MC
117842004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11785
11786 * config/pa/tm-hppah.h: Update copyright years.
11787
3cc5d663
AC
117882004-01-08 Andrew Cagney <cagney@redhat.com>
11789
11790 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
11791 (mips_o32_reg_struct_has_addr): Delete function.
11792 (mips_gdbarch_init): Update.
11793 (mips_extract_struct_value_address): Delete function.
11794
bfec0b41
JJ
117952004-01-08 David Mosberger <davidm@hpl.hp.com>
11796
11797 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
11798 reality.
11799
16e109ca
AC
118002004-01-07 Andrew Cagney <cagney@redhat.com>
11801
6214a8a1
AC
11802 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
11803 architecture's elf flags (when available).
11804
8d5838b5
AC
11805 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
11806 FPU to the start, check the MIPS FPU when looking for an old
11807 architecture.
11808 (set_mipsfpu_single_command): Update the architecture.
11809 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
11810
480d3dd2
AC
11811 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
11812 (mips_mask_address_p): Add "tdep" parameter.
11813 (show_mask_address, mips_addr_bits_remove): Update.
11814 (mips_dump_tdep): Update.
11815 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
11816 (MIPS_STACK_ARGSIZE): Delete macro.
11817 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
11818 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
11819 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
11820 (mips_dump_tdep): Update.
11821 (MIPS_SAVED_REGSIZE): Delete macro.
11822 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
11823 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
11824 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
11825 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
11826 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
11827 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
11828 (mips_pop_frame, return_value_location): Update.
11829 (mips_n32n64_return_value, mips_dump_tdep): Update.
11830
ec03c1ac
AC
11831 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
11832 MIPS ABI.
11833
16e109ca
AC
11834 * mips-tdep.c: Update copyright.
11835 (mips_gdbarch_init): Merge two code blocks handling the register
11836 name and number layout.
11837
15255275
MS
118382004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
11839
11840 * tracepoint.c (validate_actionline): Fix segv at EOF
11841
9f9057da
MC
118422004-01-07 Michael Chastain <mec.gnu@mindspring.com>
11843
11844 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
11845 properly for static fields.
11846
0127c0d3 118472004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 11848 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
11849
11850 * disasm.c: Update copyright to include 2004.
11851 (do_mixed_source_and_assembly): For uiout asm list
11852 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 11853 NULL and do so prior to loop. Only reset when we close off
0127c0d3 11854 the tuple/list. Move check for whether to close off the
fe61caab 11855 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
11856 on each loop iteration.
11857
5269965e
AC
118582004-01-05 Andrew Cagney <cagney@redhat.com>
11859
54f1137d
AC
11860 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
11861 should be a switch case and not a label.
11862 * mips-tdep.c (mips32_next_pc): Delete unused labels
11863 "greater_equal_branch" and "less_zero_branch".
11864 * jv-valprint.c (java_print_value_fields): Delete unused label
11865 "flush_it".
11866
5269965e
AC
11867 * target.c (unpush_target): Only close a target that is in the
11868 target stack.
11869
dbc22fa1
MK
118702004-01-05 Mark Kettenis <kettenis@gnu.org>
11871
9515395e
MK
11872 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
11873 address from [sp + 64] instead of %o2.
11874
dbc22fa1
MK
11875 * frame.c (get_prev_frame): Don't try to unwind the PC. This
11876 fixes PR backtrace/1476.
11877
5439edaa
AC
118782004-01-05 Andrew Cagney <cagney@redhat.com>
11879
11880 * libunwind-frame.h (struct frame_id): Add opaque declaration,
11881 move to start of file.
11882 * i386-tdep.h (struct regcache): Add opaque declaration.
11883 * config/ia64/nm-linux.h (struct target_ops): Add opaque
11884 declaration.
11885 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
11886 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
11887 * win32-nat.c (fake_create_process): Use ISO C style definition.
11888 * stabsread.c (define_symbol): Delete #ifndef
11889 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
11890 stabs_argument_has_addr call, macro never defined.
11891
19061abe
MC
118922004-01-04 Michael Chastain <mec.gnu@mindspring.com>
11893
11894 * op50-rom.c: Delete.
11895 * w89k-rom.c: Delete.
11896 * Makefile.in: Remove references.
11897
e53bef9f
MK
118982004-01-04 Mark Kettenis <kettenis@gnu.org>
11899
11900 * x86-64-tdep.c: Update copyright year.
11901 (struct amd64_register_info): Rename from x86_64_register_info.
11902 (amd64_register_info): Rename from x86_64_register_info.
11903 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
11904 (amd64_register_name): Rename from x86_64_register_name.
11905 (amd64_register_type): Rename from x86_64_register_type.
11906 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
11907 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
11908 (amd64_dwarf_reg_to_regnum): Rename from
11909 x86_64_dwarf_reg_to_regnum.
11910 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
11911 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
11912 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
11913 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
11914 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
11915 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
11916 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
11917 (amd64_frame_cache): Rename from x86_64_frame_cache.
11918 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
11919 (amd64_frame_prev_register): Rename from
11920 x86_64_frame_prev_register.
11921 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
11922 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
11923 (amd64_sigtramp_frame_cache): Rename from
11924 x86_64_sigtramp_frame_cache.
11925 (amd64_sigtramp_frame_prev_register): Rename from
11926 x86_64_sigtramp_frame_prev_register.
11927 (amd64_sigtramp_frame_unwind): Rename from
11928 x86_64_sigtramp_frame_unwind.
11929 (amd64_sigtramp_frame_sniffer): Rename from
11930 x86_64_sigtramp_frame_sniffer.
11931 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
11932 (amd64_frame_base): Rename from x86_64_frame_base.
11933 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
11934 (amd64_frame_align): Rename from x86_64_frame_align.
11935 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
11936 (amd64_regset_from_core_section): Rename from
11937 x86_64_regset_from_core_section.
11938 (x86_64_init_abi): Update comments.
11939
fca6aa58
NR
119402004-01-04 Nick Roberts <nick@nick.uklinux.net>
11941
11942 * MAINTAINERS (write after approval): Add myself.
11943
8ada74e3
MK
119442004-01-04 Mark Kettenis <kettenis@gnu.org>
11945
11946 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
11947 `float' arguments.
11948
5154b0cd
MK
119492004-01-04 Mark Kettenis <kettenis@gnu.org>
11950
11951 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
11952 such that it mentions a specific version of GCC that exhibits this
11953 bug.
11954
fb316966
MK
119552004-01-03 Mark Kettenis <kettenis@gnu.org>
11956
200cc553
MK
11957 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
11958 structure that has a single `float' member, store it in %f1 in
11959 addition to %f0.
11960
e226a4a0
MK
11961 * sparc-sol2-nat.c: Add missing '\'.
11962
b9d4c5ed
MK
11963 * sparc-tdep.c (sparc32_return_value): New function.
11964 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
11965 Remove functions.
11966 (sparc32_gdbarch_init): Set return_value, don't set
11967 extract_return_value, store_return_value, use_struct_convention
11968 and return_value_on_stack.
11969
fb316966
MK
11970 * sparc-sol2-nat.c: Add missing ')'.
11971
1af510a8
JB
119722004-01-03 J. Brobecker <brobecker@gnat.com>
11973
11974 * infrun.c (handle_step_into_function): New function.
11975 (handle_inferior_event): Extract out some code into the new
11976 function above.
11977
5cf4d23a
JB
119782004-01-03 J. Brobecker <brobecker@gnat.com>
11979
11980 * infrun.c (handle_inferior_event): Move the declaration of
11981 real_stop_pc inside the if blocks where it is used.
11982
60af1db2
MK
119832004-01-03 Mark Kettenis <kettenis@gnu.org>
11984
11985 * sparc64-tdep.c (sparc64_16_byte_align_p)
11986 (sparc64_store_floating_fields, sparc64_store_floating_fields):
11987 Use check_typedef to get subtypes of structures and unions.
11988 (sparc64_store_return_value): Fix calculation of the appropriate
11989 offset into VALBUF when storing a structure or union.
11990 (sparc64_return_value): New function.
11991 (sparc64_use_struct_convention): Remove function.
11992 (sparc64_init_abi): Set return_value, don't set
11993 extract_return_value, store_return_value and
11994 use_struct_convention.
11995
1a901d3f
EZ
119962004-01-03 Eli Zaretskii <eliz@elta.co.il>
11997
11998 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
11999 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12000 gdb/config/alpha/xm-alphaosf.h,
12001 gdb/config/powerpc/tm-ppcle-eabi.h,
12002 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12003 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12004 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12005 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12006 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12007 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12008 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12009 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12010 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12011 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12012 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12013 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12014 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
12015 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
12016 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
12017 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
12018 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
12019 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
12020 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
12021 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
12022 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
12023 Remove lines for .cvsignore files.
12024
ef52e463
JB
120252004-01-03 J. Brobecker <brobecker@gnat.com>
12026
12027 * infrun.c: Back out the previous change.
12028
cb1bf9dc
MK
120292004-01-03 Mark Kettenis <kettenis@gnu.org>
12030
f0424ef6
MK
12031 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
12032 sparc-*-sunos4* to the list of REMOVED configurations.
12033
cb1bf9dc
MK
12034 * configure.tgt: Add back sparc-*-vxworks*.
12035 * remote-vxsparc.c: Remove all includes except for "defs.h",
12036 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12037 Include "sparc-tdep.h".
12038 (SPARC_R_G1): New define.
12039 (vxsparc_gregset): New variable.
12040 (ext_format_sparc): Remove extern declaration.
12041 (vx_read_register): Rewrite to use sparc32_supply_gregset and
12042 sparc32_supply_fpregset.
12043 (vx_write_register): Rewrite to use sparc32_collect_gregset,
12044 sparc_collect_rwindow and sparc32_collect_fpregset.
12045 * config/sparc/tm-vxworks.h: New file, based on recently removed
12046 tm-vxsparc.h.
12047 * config/sparc/vxworks.mt: New file, based on recently removed
12048 vxworks.mt.
fe61caab 12049
5e938f9f
JB
120502004-01-03 J. Brobecker <brobecker@gnat.com>
12051
12052 * infrun.c (handle_step_into_function): New function.
12053 (handle_inferior_event): Extract out some code into the new
12054 function above.
12055
386c036b
MK
120562004-01-02 Mark Kettenis <kettenis@gnu.org>
12057
12058 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12059 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12060 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12061 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12062 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12063 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12064 (sparc_nat_h): New variable.
12065 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12066 (tm-sun4os4.h): Remove dependency.
12067 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12068 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12069 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12070 sparc-tdep.o): Update dependencies.
12071 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12072 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12073 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12074 dependencies.
12075 * configure.host: Remove existing sparc-*-lynxos*,
12076 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12077 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12078 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
12079 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12080 triplets.
12081 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12082 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12083 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12084 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
12085 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12086 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12087 sparc64-*-solaris2* and sparc64-*-* triplets.
12088 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
12089 "symtab.h" and "objfiles.h".
12090 (BIAS): Remove define.
12091 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12092 (X_DISP19): Remove macros.
12093 (sparc_fetch_instruction): Remove function.
12094 (struct gdbarch_tdep): Remove definition.
12095 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12096 (sparc_breakpoint_from_pc): Remove function.
12097 (struct sparc64_frame_cache): Remove definition.
12098 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12099 sparc64_unwind_pc): Remove functions.
12100 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12101 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
12102 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
12103 (sparc64_frame_cache): Change return type to `struct
12104 sparc_frame_cache *'. Simply call sparc_frame_cache.
12105 (sparc64_frame_this_id, sparc64_frame_prev_register,
12106 sparc64_frame_base_address): Use `struct sparc_frame_cache'
12107 instead of `struct sparc64_frame_cache.
12108 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12109 sparc_analyze_control_transfer, sparc_software_single_step,
12110 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12111 _initialize_sparc64_tdep): Remove functions.
12112 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12113 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12114 macros.
12115 (sparc64_supply_gregset, sparc64_collect_gregset,
12116 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12117 (sparc64_init_abi): New function.
12118 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
12119 inclusion guard. Include "sparc-tdep.h".
12120 (BIAS): Define.
12121 (r_tstate_offset, r_fprs_offset): New defines.
12122 (enum sparc_regnum): Remove defenition.
12123 (enum sparc64_regnum): Reformat.
12124 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12125 (sparc64_init_abi, sparc64_supply_gregset,
12126 sparc64_collect_gregset, sparc64_supply_fpregset,
12127 sparc64_collect_fpregset): New prototypes.
12128 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12129 Add extern declarations.
12130 (sparc64_sol2_init_abi): New prototype.
12131 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12132 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12133 prototypes.
12134 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12135 "sparnbsd-nat.h".
12136 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12137 functions.
12138 (_initialize_sparc64fbsd_nat): Remove initialization of
12139 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12140 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 12141 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
12142 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
12143 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
12144 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
12145 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
12146 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
12147 (sparc64fbsd_r_y_offset): Remove variables.
12148 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12149 Make static and const.
12150 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12151 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12152 functions.
12153 (sparc64fbsd_gregset): New variable.
12154 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
12155 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
12156 and sparc64_supply_fpregset.
12157 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
12158 (sparc64fbsd_sigtramp_frame_this_id)
12159 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
12160 (sparc64fbsd_sigtramp_frame_unwind): New variable.
12161 (sparc64fbsd_sigtramp_frame_sniffer): New function.
12162 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
12163 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
12164 * sparcnbsd-tdep.c: Update copyright year. Include
12165 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
12166 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
12167 "value.h" and "sparcnbsd-tdep.h".
12168 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
12169 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
12170 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
12171 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
12172 defines.
12173 (sparcnbsd_gregset): New variable.
12174 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
12175 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
12176 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
12177 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
12178 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
12179 variables.
12180 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
12181 (sparc32nbsd_sigcontext_frame_this_id)
12182 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
12183 (sparc32nbsd_sigcontext_frame_unwind): New variable.
12184 (sparc32nbsd_sigtramp_frame_sniffer): New function.
12185 (sparcnbsd_get_longjmp_target_32,
12186 sparcnbsd_get_longjmp_target_64): Remove functions.
12187 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
12188 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
12189 sparcnbsd_init_elf): Remove.
12190 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
12191 (sparcnbsd_elf_init_abi): New functions.
12192 (_initialize_sparcnbsd_tdep): New prototype.
12193 (_initialize_sparnbsd_tdep): Update.
12194 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
12195 corelow.o. Add sparc64-nat.o and sparc-nat.o.
12196 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
12197 * config/sparc/linux.mh: Update comment.
12198 (XM_FILE, HOST_IPC): Remove variables.
12199 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
12200 sparc-linux-nat.o.
12201 * config/sparc/linux.mt: Update comment.
12202 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
12203 * config/sparc/nbsd.mt: Reformat.
12204 * config/sparc/nbsd64.mh: Update comment.
12205 (NATDEPFILES): Add sparc-nat.o.
12206 * config/sparc/nbsd64.mt: Update comment.
12207 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
12208 (TM_FILE): Set to tm-nbsd.h.
12209 * config/sparc/nbsdelf.mh: Update comment.
12210 (NATDEPFILES): Add sparc-nat.o.
12211 (XM_FILE): Delete.
12212 * config/sparc/nbsdaout.mh: Update comment.
12213 (NATDEPFILES): Add sparc-nat.o
12214 (XM_FILE): Delete.
12215 * config/sparc/nm-linux.h: Update copyright year. Don't include
12216 "config/nm-svr4.h" and "solib.h". Add protection against multiple
12217 inclusion.
12218 (KERNEL_U_SIZE): Remove define.
12219 (kernel_u_size): Remove prototype.
12220 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
12221 * config/sparc/nm-nbsd.h: Update copyright. Don't include
12222 "regcache.h".
12223 (CHILD_PREPARE_TO_STORE): Remove define.
12224 * config/sparc/nm-nbsdaout.h: Tweak some comments.
12225 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
12226 sparcnbsd-nat.c: Rewrite files.
12227 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
12228 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
12229 sparcnbsd-tdep.h: Remove files.
12230 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
12231 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
12232 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
12233 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
12234 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
12235 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
12236 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
12237 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
12238 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
12239 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
12240 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
12241 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
12242 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
12243 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
12244 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
12245 * config/sparc/linux64.mh, config/sparc/linux64.mt,
12246 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
12247 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
12248 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
12249
ee84457a
AC
122502004-01-02 Andrew Cagney <cagney@redhat.com>
12251
12252 From 2003-12-18 Kazuhiro Inaoka:
12253 * configure.host: Add m32r-linux target.
12254
0bc2134e
MC
122552004-01-02 Michael Chastain <mec.gnu@mindspring.com>
12256
12257 * top.c (print_gdb_version): Update year to 2004.
12258
89a72f9c
MM
122592004-01-02 Mark Mitchell <mark@codesourcery.com>
12260
12261 * MAINTAINERS: Add myself to the write-after-approval category.
12262
86b013ed
DJ
122632004-01-02 Daniel Jacobowitz <drow@mvista.com>
12264
12265 From Bernardo Innocenti <bernie@develer.com>:
12266 * configure.tgt: Add uClinux target.
12267
e42c9534
AC
122682004-01-02 Andrew Cagney <cagney@redhat.com>
12269
12270 * utils.c (do_my_cleanups): Make static, add forward declaration.
12271 * defs.h (do_my_cleanups): Delete declaration.
12272
162467d3
EZ
122732004-01-02 Eli Zaretskii <eliz@elta.co.il>
12274
12275 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
12276 bfd/ChangeLog-0203.
12277
78434e59
MK
122782004-01-02 Mark Kettenis <kettenis@gnu.org>
12279
12280 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
12281 in <machine/reg.h>.
12282 * configure, config.in: Regenerate.
12283
48efe704
AC
12284For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
12285tui/ChangeLog-1998-2003.
c906108c
SS
12286\f
12287Local Variables:
12288mode: change-log
12289left-margin: 8
12290fill-column: 74
12291version-control: never
12292End:
This page took 1.161981 seconds and 4 git commands to generate.