* amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
315c4276
MK
12004-06-27 Mark Kettenis <kettenis@gnu.org>
2
3 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
4 "bsd-kvm.h".
5 (amd64fbsd_supply_pcb): New funcion.
6 (_initialize_amd64fbsd_nat): Enable libkvm interface.
7
399cfac6
DL
82004-06-27 <david@streamline-computing.com>
9
10 Partial fix for PR cli/1056.
11 * valarith.c: Check for zero in division and remainder
12 evaluation.
13
6235f9c8
MK
142004-06-27 Mark Kettenis <kettenis@gnu.org>
15
16 * i387-tdep.c: Remove excessive whitespace.
17
2726dafc
AC
182004-06-26 Andrew Cagney <cagney@gnu.org>
19
20 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
21 * gdb-events.h, gdb-events.c: Re-generate.
22 * tui/tui-hooks.c (tui_install_hooks): Update.
23 (tui_remove_hooks): Update.
24 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
25
0e56aeaf
MK
262004-06-26 Mark Kettenis <kettenis@gnu.org>
27
cb461069
MK
28 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
29 (gregset_t, fpregset_t): Remove typedefs.
30 (REG_OFFSET): Rename argument.
31 (amd64bsd_r_reg_offset): Rename from reg_offset.
32 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
33 Remove functions.
34 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
35 of reg_offset.
36 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
37
ecba89de
MK
38 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
39
4cd80476
MK
40 * vax-tdep.c: Tweak comment.
41
0e56aeaf
MK
42 Add OpenBSD/hppa support.
43 * NEWS (New native configurations): Mention OpenBSD/hppa.
44 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
45 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
46 files.
47 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
48 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
49 * configure.host: Add hppa*-*-openbsd*.
50 * configure.tgt: Add hppa*-*-openbsd*.
51
98bbd631
AC
522004-06-25 Andrew Cagney <cagney@gnu.org>
53
54 * defs.h (deprecated_ui_loop_hook): Deprecated.
55 * wince.c (child_wait): Update.
56 * win32-nat.c (child_wait): Update.
57 * v850ice.c (v850ice_wait): Update.
58 * top.c (deprecated_ui_loop_hook): Update.
59 * serial.h: Update.
60 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
61 (do_unix_readchar): Update.
62 * ser-tcp.c (net_open): Update.
63 * remote-sim.c (gdb_os_poll_quit): Update.
64 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
65
769d7dc4
AC
662004-06-24 Andrew Cagney <cagney@gnu.org>
67
68 * defs.h (deprecated_pre_add_symbol_hook)
69 (deprecated_post_add_symbol_hook): Deprecated.
70 * symfile.c (symbol_file_add_with_addrs_or_offsets)
71 (symbol_file_add_with_addrs_or_offsets): Update references.
72
11c949aa
AC
732004-06-24 Andrew Cagney <cagney@gnu.org>
74
75 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
76 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
77 * wince.c (ui_loop_hook): Delete extern declaration.
78 * win32-nat.c (ui_loop_hook): Delete extern declaration..
79 * v850ice.c (ui_loop_hook): Delete extern declaration..
80 * ser-unix.c (ui_loop_hook): Delete extern declaration..
81 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
82 * remote-sim.c (ui_loop_hook): Delete extern declaration..
83 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
84 ui_loop_hook declaration.
85
eedc19af
AC
862004-06-24 Andrew Cagney <cagney@gnu.org>
87
88 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
89 entry_func_highpc fields.
90 * objfiles.c (init_entry_point_info): Do not clear
91 entry_func_lowpc and entry_func_highpc.
92 (objfile_relocate): Do not relocate entry_func_lowpc and
93 entry_func_highpc.
94 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
95 entry_func_highpc.
96 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
97 entry_func_highpc.
98 * blockframe.c (legacy_frame_chain_valid): Replace tests against
99 entry_func_lowpc and entry_func_highpc with call to
100 inside_entry_func.
101
d47079be
MK
1022004-06-24 Mark Kettenis <kettenis@gnu.org>
103
104 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
105 quad-precision floating point arguments in registers.
106
2107e348
MK
1072004-06-24 Mark Kettenis <kettenis@gnu.org>
108
109 From Michael Mueller <m.mueller99@kay-mueller.de>:
110 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
111 account.
112
46587c42
JJ
1132004-06-22 Jeff Johnston <jjohnstn@redhat.com>
114
115 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
116 to -1.
117 * breakpoint.c (bpstat_stop_status): Move check for ignoring
118 untriggered watchpoints to a separate if clause. Update function
119 comment regarding STOPPED_BY_WATCHPOINT argument.
120
226f5cf4
JB
1212004-06-22 Jim Blandy <jimb@redhat.com>
122
123 * gdbarch.sh: Doc fix.
124
f10683bb
MH
1252004-06-21 Martin Hunt <hunt@redhat.com>
126 Kevin Buettner <kevinb@redhat.com>
127
128 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
129 * mips-tdep.h (MIPS_SP_REGNUM): Define.
130 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
131 to set_gdbarch_sp_regnum(). Use cooked register number.
132 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
133
412d5987
AC
1342004-06-21 Andrew Cagney <cagney@gnu.org>
135
136 * gdbarch.sh: When the macro field is empty, do not generate a
137 macro definition. When the macro field is "=", generate the macro
138 name from the upper-case function name.
139 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
140 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
141 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
142 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
143 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
144 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
145 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
146 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
147 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
148 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
149 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
150 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
151 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
152 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
153 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
154 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
155 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
156 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
157 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
158 (DEPRECATED_USE_STRUCT_CONVENTION)
159 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
160 (DEPRECATED_FRAME_INIT_SAVED_REGS)
161 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
162 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
163 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
164 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
165 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
166 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
167 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
168 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
169 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
170 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
171 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
172 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
173 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
174 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
175 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
176 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
177
68908a3e
AC
1782004-06-21 Andrew Cagney <cagney@gnu.org>
179
48f7351b
AC
180 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
181 macro name, and the function rather than macro value. Only wrap
182 macro print statements in #ifdef. Move format logic to where it
183 is needed.
184 * gdbarch.c: Re-generate.
185
283354d8
AC
186 * gdbarch.sh (read): Delete "print_p" and "description", add
187 "garbage_at_eol". Check for non-empty garbage at end-of-line.
188 Delete references to print_p.
189 (TARGET_ARCHITECTURE): Delete print predicate.
190 * gdbarch.c: Re-generate.
191
68908a3e
AC
192 * gdbarch.sh: Check that multi-arch methods do not provide a
193 macro.
194 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
195 (print_registers_info, print_float_info, print_vector_info)
196 (adjust_breakpoint_address, remote_translate_xfer_address)
197 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
198 (address_class_type_flags_to_name, unwind_sp): Remove the macro
199 name from the multi-arch definition.
200
a2428dbe
AC
2012004-06-20 Andrew Cagney <cagney@gnu.org>
202
203 * gdbarch.sh: Sort by the function, instead of macro name.
204 * gdbarch.c: Re-generate.
205
750eb019
AC
2062004-06-20 Andrew Cagney <cagney@gnu.org>
207
66d659b1
AC
208 * gdbarch.sh: Use the function, instead of macro name in
209 errors and the log file.
210 (return_value): Remove stray ":" in spec.
211
750eb019
AC
212 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
213 * gdbarch.h, gdbarch.c: Re-generate.
214 * Makefile.in (arch-utils.o): Update dependencies.
215 * values.c (using_struct_return): Move code calling
216 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
217 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
218 to legacy_return_value, simplify.
219 * infcmd.c (print_return_value): Move code calling
220 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
221 to legacy_return_value, simplify.
222 * infcall.c (call_function_by_hand): Move code calling
223 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
224 * arch-utils.c: Update copyright. Include "gdbcore.h".
225 (legacy_return_value): New function.
226 * arch-utils.h: Update copyright.
227 (legacy_return_value): Declare.
228
b5622e8d
AC
2292004-06-20 Andrew Cagney <cagney@gnu.org>
230
231 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
232 * gdbarch.h, gdbarch.c: Re-generate.
233 * values.c (using_struct_return): Update call.
234 * mcore-tdep.c: Update comment.
235 * infcall.c (call_function_by_hand): Update comment.
236 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
237 * arch-utils.h (always_use_struct_convention): Update.
238 * v850-tdep.c (v850_gdbarch_init): Update.
239 * sh64-tdep.c (sh64_gdbarch_init): Update.
240 * sh-tdep.c (sh_gdbarch_init): Update.
241 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
242 * mips-tdep.c (mips_gdbarch_init): Update.
243 * mcore-tdep.c (mcore_gdbarch_init): Update.
244 * m32r-tdep.c (m32r_gdbarch_init): Update.
245 * ia64-tdep.c (ia64_gdbarch_init): Update.
246 * h8300-tdep.c (h8300_gdbarch_init): Update.
247 * frv-tdep.c (frv_gdbarch_init): Update.
248 * cris-tdep.c (cris_gdbarch_init): Update.
249 * arm-tdep.c (arm_gdbarch_init): Update.
250 * alpha-tdep.c (alpha_gdbarch_init): Update.
251
5191de37
MC
2522004-06-18 Michael Chastain <mec.gnu@mindspring.com>
253
254 * PROBLEMS: Add more specific information, and a work-around,
255 for PR gdb/1458.
256
782263ab
AC
2572004-06-18 Andrew Cagney <cagney@gnu.org>
258
259 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
260 * gdbarch.h, gdbarch.c: Re-generate.
261 * ada-lang.c (ada_finish_decode_line_1): Update.
262 * infrun.c (handle_inferior_event): Update.
263 * infcall.c (find_function_addr): Update.
264 * linespec.c (minsym_found): Update.
265 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
266 Update.
267 * blockframe.c (legacy_frameless_look_for_prologue): Update.
268 * cli/cli-cmds.c (disassemble_command): Update.
269 * vax-tdep.c (vax_gdbarch_init): Update.
270
2f305df1
MK
2712004-06-18 Mark Kettenis <kettenis@gnu.org>
272
273 * i386-tdep.c (i386_collect_fpregset): Fix comment.
274
e5fe55f7
AC
2752004-06-17 Andrew Cagney <cagney@gnu.org>
276
277 GDB 6.1.1 released from the GDB 6.1 branch.
278 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
279 * PROBLEMS: Ditto.
280
473b7be6
DJ
2812004-06-16 Daniel Jacobowitz <dan@debian.org>
282
283 PR gdb/1658
284 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
285 operation as a uleb128. Found by Michael Coulter.
286
96d887e8
PH
2872004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
288
289 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
290 make it non-static.
291 * ada-lang.h (task_control_block): declaration moved from ada-task.c
292 to ada-lang.h; this is needed to be able to implement the kill command
293 in multi-task mode.
294 (task_ptid): Ditto.
295 (task_entry): Ditto.
296 (task_list): Ditto.
297 (ada_build_task_list): Ditto.
298
299 * ada-lang.c: Conditionalize routines and data structures related
300 to breakpoints, exceptions, completion, and symbol caching on
301 GNAT_GDB, since these are not yet used in the submitted public sources.
302 (ada_main_name): Editorial: Move definition out of exception-related
303 code.
304
31eef181
AC
3052004-06-15 Andrew Cagney <cagney@gnu.org>
306
307 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
308 deprecated_pc_in_call_dummy.
309
2c500098
AM
3102004-06-15 Alan Modra <amodra@bigpond.net.au>
311
312 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
313 bfd_get_section_size_before_reloc or _raw_size.
314 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
315 * dwarf2read.c (dwarf2_locate_sections): Likewise.
316 (dwarf2_read_section): Likewise.
317 * elfread.c (elf_locate_sections): Likewise.
318 * gcore.c (derive_heap_segment): Likewise.
319 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
320 * remote-e7000.c (e7000_load): Likewise.
321 * remote-m32r-sdi.c (m32r_load): Likewise.
322 * remote-mips.c (mips_load_srec): Likewise.
323 (pmon_load_fast): Likewise.
324 * remote.c (compare_sections_command): Likewise.
325 * symfile.c (add_section_size_callback): Likewise.
326 (load_section_callback): Likewise.
327 (pc_in_unmapped_range): Likewise.
328 (pc_in_mapped_range): Likewise.
329 (sections_overlap): Likewise.
330 (list_overlays_command): Likewise.
331 (simple_overlay_update_1): Likewise.
332 (simple_overlay_update): Likewise.
333 * tracepoint.c (remote_set_transparent_ranges): Likewise.
334 * win32-nat.c (core_section_load_dll_symbols): Likewise.
335
90f943f1
RC
3362004-06-14 Randolph Chung <tausq@debian.org>
337
338 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
339 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
340 static.
341 (hppa_hpux_inferior_created): New function.
342 (hppa_hpux_init_abi): Register observer.
343 * symfile.c (hp_cxx_exception_support_initialized)
344 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
345 (symbol_file_add_main_1, symbol_file_clear): Likewise.
346
700c15aa
RC
3472004-06-14 Randolph Chung <tausq@debian.org>
348
3973a7d3
AC
349 * MAINTAINERS (Write After Approval): Alphabetize my entry
350 correctly.
700c15aa 351
cea4838c
AC
3522004-06-14 Andrew Cagney <cagney@gnu.org>
353
354 * MAINTAINERS (testsuite): List Michael Chastain as the lead
355 testsuite maintainer.
356
97092415
AC
3572004-06-13 Andrew Cagney <cagney@gnu.org>
358
e8c3165b
AC
359 * infcmd.c (print_return_value): Fix logic, allow
360 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
361
bceabdd8
AC
362 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
363 defining any macros.
364 * gdbarch.h: Re-generate.
365
57010b1c
AC
366 * gdbarch.sh: Delete "level" attribute. Only check for a macro
367 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
368 * gdbarch.h: Re-generate.
369
bc87dfa0
AC
370 * values.c (generic_use_struct_convention): Don't check gcc_p.
371
15ac804d
AC
372 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
373 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
374 * gdbarch.h, gdbarch.c: Regenerate.
375 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
376 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
377 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
378 deprecated_max_register_raw_size and
379 deprecated_max_register_virtual_size.
380 * v850-tdep.c (v850_gdbarch_init): Ditto.
381 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
382 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
383 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
384 * cris-tdep.c (cris_gdbarch_init): Ditto.
385
97092415
AC
386 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
387 * gdbarch.h, gdbarch.c: Re-generate.
388 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
389 (m68hc11_use_struct_convention): Delete function.
390 (m68hc11_extract_struct_value_address): Delete function.
391 (m68hc11_return_value): New function.
392 (m68hc11_gdbarch_init): Instead of store_return_value,
393 extract_return_value, return_value_on_stack,
394 deprecated_extract_struct_value_address and use_struct_convention,
395 set return_value.
396 * values.c (using_struct_return): Do not call
397 RETURN_VALUE_ON_STACK.
398 * arch-utils.h (generic_return_value_on_stack_not): Delete
399 declaration.
400 * arch-utils.c (generic_return_value_on_stack_not): Delete
401 function.
402
44e5158b
AC
4032004-06-12 Andrew Cagney <cagney@gnu.org>
404
405 * values.c (register_value_being_returned): Delete function.
406 * infcmd.c (legacy_return_value): Delete function.
407 * infcall.c (call_function_by_hand): Inline
408 "register_value_being_returned", simplify.
409 * values.c (using_struct_return): Update comment, refer to
410 print_return_value instead of register_value_being_returned.
411 * infcmd.c (print_return_value): Inline calls to
412 register_value_being_returned and legacy_return_value. Simplify.
413
b887c273
RC
4142004-06-11 Randolph Chung <tausq@debian.org>
415
416 * somread.c (som_symtab_read): Exclude gcc local symbols.
417
1b2bfbb9
RC
4182004-06-11 Randolph Chung <tausq@debian.org>
419
3973a7d3
AC
420 * infrun.c (handle_inferior_event): Handle the case when a
421 trampoline ends up in the runtime resolver, and if the trampoline
422 has no name. Rearrange the code so that all the trampoline
423 processing happens before other step-out-of-range handling.
1b2bfbb9 424
a9d61c86
MH
4252004-06-11 Martin Hunt <hunt@redhat.com>
426
427 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
428 has no fpu.
429
2c87cf5a
AC
4302004-06-10 Andrew Cagney <cagney@gnu.org>
431
432 * blockframe.c (legacy_inside_entry_func): Delete.
433 (legacy_frame_chain_valid): Inline call to
434 legacy_inside_entry_func, simplify.
435
0b67b468 4362004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
437
438 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
439 * dwarf2read.c (partial_die_info): Add dirname field.
440 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
441 (read_partial_die): Save away DW_AT_comp_dir.
442 * defs.h (symtab_to_filename): Removed.
443 * source.c (find_and_open_source): Added.
57c22c6c 444 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
445 (symtab_to_filename): Removed.
446 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
447 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
448 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
449 symtab_to_filename.
450 * symtab.h (partial_symtab): Add dirname field.
451 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
452 (mi_cmd_file_list_exec_source_file): Call new function
453 symtab_to_fullname to find fullname.
57c22c6c 454 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 455 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
456 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
457
9a1dd1ad
AC
4582004-06-10 Andrew Cagney <cagney@gnu.org>
459
239ae8c7
AC
460 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
461 to generic_use_struct_convention, the default value.
462
fc720350
AC
463 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
464 of abort.
465
9a1dd1ad
AC
466 * ns32k-tdep.c (ns32k_push_arguments): New function.
467 (ns32k_gdbarch_init): Set deprecated_push_arguments.
468 * infcall.c (call_function_by_hand): Call error instead of
469 legacy_push_arguments.
470 * value.h (legacy_push_arguments): Delete declaration.
471 * valops.c (legacy_push_arguments): Delete function.
472 (value_push): Delete function.
473
fea25152
BF
4742004-06-10 Brian Ford <ford@vss.fsi.com>
475
476 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
477 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
478 info.
479 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
480
30a4a8e0
AC
4812004-06-10 Andrew Cagney <cagney@gnu.org>
482
483 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
484 * gdbarch.h, gdbarch.c: Re-generate.
485 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
486 parameters.
487 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
488 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
489 deprecated_pc_in_call_dummy instead of
490 DEPRECATED_PC_IN_CALL_DUMMY.
491 (arm_skip_prologue): Ditto.
492 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
493 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
494 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
495 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
496 Ditto.
497 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
498 (sh64_init_extra_frame_info, sh64_get_saved_register)
499 (sh64_pop_frame): Ditto.
500 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
501 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
502 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
503 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
504 (h8300_pop_frame): Ditto.
505 * blockframe.c (legacy_inside_entry_func)
506 (legacy_frame_chain_valid): Ditto.
507 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
508 to deprecated_pc_in_call_dummy.
509
81cfbe54
AC
5102004-06-09 Andrew Cagney <cagney@gnu.org>
511
a1f4a1b6
AC
512 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
513 provide a default value.
514 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
515 * gdbarch.h, gdbarch.c: Re-generate.
516 * arch-utils.c (generic_convert_register_p): Rename
517 legacy_convert_register_p
518 (legacy_register_to_value, legacy_value_to_register): Delete
519 functions.
520 * arch-utils.h (generic_convert_register_p): Rename
521 legacy_convert_register_p.
522 (legacy_register_to_value, legacy_value_to_register): Delete
523 declarations.
524
9730f241
AC
525 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
526 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
527 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
528 * gdbarch.h, gdbarch.c: Re-generate.
529 * infcmd.c (default_print_registers_info): Simplify.
530 * findvar.c (value_of_register): Simplify.
531 * mi/mi-main.c (get_register): Simplify.
532 * arch-utils.c (legacy_convert_register_p): Always return 0.
533 (legacy_register_to_value, legacy_value_to_register): Always call
534 internal_error.
535
8a1bf479
AC
536 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
537 #ifdef CLEAR_INSN_CACHE code.
538 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
539 Delete #ifdef CLEAR_DEFERRED_STORES code.
540
4b38d6f1
AC
541 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
542
2d62ecc7
AC
543 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
544 copyright.
545 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
546
be4f7469
AC
547 * config/mips/mipsv4.mh: Delete file.
548
81cfbe54
AC
549 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
550 unreferenced macro.
551 (hpread_adjust_stack_address): Delete declaration.
552
d966f0cb
AC
5532004-06-08 Andrew Cagney <cagney@gnu.org>
554
555 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
556 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
557 PTRACE_ATTACH / PTRACE_DETACH available call error.
558 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
559 * infttrace.c (update_thread_state_after_attach, attach, detach):
560 Remove #ifdef wrappers.
561 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
562 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
563 * config/nm-bsd.h (ATTACH_DETACH): Delete.
564 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
565 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
566 * config/nm-linux.h (ATTACH_DETACH): Delete.
567 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
568 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
569 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
570 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
571 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
572
d91670b9
CV
5732004-06-08 Corinna Vinschen <vinschen@redhat.com>
574
575 * configure.in: Set $configdir to the right OS specific value.
576 Use value when setting $tcldir and $tkdir.
577 * configure: Regenerate.
578
28ba0b33
PB
5792004-06-06 Paul Brook <paul@codesourcery.com>
580
581 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
582 records.
583
f26caa11
PH
5842004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
585
586 * ada-lang.c (lookup_symbol_in_language): New function to allow
587 re-use of another language's symbol lookup code. (Placed here
588 temporarily while Ada support is being integrated into the public
589 tree).
590 (restore_language): New auxiliary function for
591 lookup_symbol_in_language.
592 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
593 temporarily while Ada support is being integrated into the public
594 tree).
595
d560a54b
AO
5962004-06-08 Alexandre Oliva <aoliva@redhat.com>
597
e75d110c
AO
598 * Makefile.in (check//%): New.
599
d560a54b
AO
600 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
601 (mn10300_store_return_value): Rewrite.
602 (mn10300_type_align): New.
603 (mn10300_use_struct_convention): Rewrite.
604 (mn10300_return_value): New, using all of the above.
605 (mn10300_pop_frame_regular): Add saved_regs_size.
606 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
607
a72fbdb7
AO
608 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
609 regs if PC is on movm.
610
01904826
JB
6112004-06-07 Jim Blandy <jimb@redhat.com>
612
613 Add native Linux support for the PowerPC E500.
614 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
615 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
616 all architectures except the E500.
617 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
618 #definitions.
619 (struct gdb_evrregset_t): New type.
620 (have_ptrace_getsetevrregs): New variable.
621 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
622 fetch_spe_registers): New functions.
623 (fetch_register): Call fetch_spe_register as appropriate.
624 Assert that we're only passed raw register numbers.
625 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
626 Don't fetch gprs if they're pseudoregisters.
627 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
628 store_spe_registers): New functions.
629 (store_register): Call store_spe_register as appropriate.
630 Assert that we're only passed raw register numbers.
631 (store_ppc_registers): Call store_spe_registers as appropriate.
632 Don't store gprs if they're pseudoregisters.
633
f90ef764
JJ
6342004-06-07 Jeff Johnston <jjohnstn@redhat.com>
635
636 * thread-db.c (thread_get_info_callback): Fill in the thread_info
637 struct if one exists, even if we are dealing with a zombie thread.
638
45b75230
AC
6392004-06-07 Andrew Cagney <cagney@gnu.org>
640
641 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
642 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
643 Rename PC_REQUIRES_RUN_BEFORE_USE.
644 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
645 #ifdef.
646
1658da49
RC
6472004-06-07 Randolph Chung <tausq@debian.org>
648
649 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
650 unwinding after sp has been saved to the stack but before the end
651 of the prologue, and after the fp has been modified but before it has
652 been saved to the stack.
653 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
654 Remove superfluous definitions.
655 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
656
9a727a3c
RC
6572004-06-07 Guy Martin <gmsoft@gentoo.org>
658
659 Committed by Randolph Chung.
660 * hppa-linux-nat.c: Include the correct version of the header file
661 depending on the kernel version.
662
9e500012
RC
6632004-06-06 Randolph Chung <tausq@debian.org>
664
665 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
666 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
667
3388d7ff
RC
6682004-06-06 Randolph Chung <tausq@debian.org>
669
670 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
671 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
672 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
673 * hppa-tdep.c (hppa_symbol_address): New function definition.
674 * hppa-tdep.h (hppa_symbol_address): New function declaration.
675
d49771ef
RC
6762004-06-06 Randolph Chung <tausq@debian.org>
677
678 * hppa-tdep.h (struct value): Forward declaration.
679 (gdbarch_tdep): Define tdep find_global_pointer method.
680 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
681 associated with the function we are trying to call, and write it
682 to the gp register.
683 (hppa32_convert_from_funct_ptr_addr): New function.
684 (hppa_find_global_pointer): New function.
685 (hppa_gdbarch_init): Set default find_global_pointer method; set
686 convert_from_func_ptr_addr method.
687 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
688 (hppa_linux_init_abi): Set find_global_pointer method.
689 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
690
7d9b040b
RC
6912004-06-06 Randolph Chung <tausq@debian.org>
692
693 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
694 to struct value *function.
695 * gdbarch.c: Regenerate.
696 * gdbarch.h: Likewise.
697 * infcall.c (call_function_by_hand): Pass entire function value
698 to push_dummy_call.
699
700 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
701 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
702 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
703 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
704 * arm-tdep.c (arm_push_dummy_call): Likewise.
705 * avr-tdep.c (avr_push_dummy_call): Likewise.
706 * cris-tdep.c (cris_push_dummy_call): Likewise.
707 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
708 * frv-tdep.c (frv_push_dummy_call): Likewise.
709 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
710 * hppa-tdep.c (hppa32_push_dummy_call)
711 (hppa64_push_dummy_call): Likewise.
712 * i386-tdep.c (i386_push_dummy_call): Likewise.
713 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
714 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
715 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
716 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
717 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
718 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
719 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
720 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
721 (ppc64_sysv_abi_push_dummy_call): Likewise.
722 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
723 (ppc64_sysv_abi_push_dummy_call): Likewise.
724 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
725 * s390-tdep.c (s390_push_dummy_call): Likewise.
726 * sh-tdep.c (sh_push_dummy_call_fpu)
727 (sh_push_dummy_call_nofpu): Likewise.
728 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
729 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
730 * vax-tdep.c (vax_push_dummy_call): Likewise.
731
4a19ea35
JB
7322004-06-04 Jim Blandy <jimb@redhat.com>
733
8327ccee
JB
734 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
735 gdbarch argument to register_size.
736
a3c001ce
JB
737 * rs6000-tdep.c (rs6000_store_return_value): Use
738 regcache_cooked_write_part instead of
739 deprecated_write_register_bytes.
740 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
741 not gdbarch_deprecated_store_return_value.
742
4a19ea35
JB
743 * ppc-linux-nat.c (store_register, fetch_register): Remove
744 incorrect assertions. Simplify and generalize handling of
745 transfers whose sizes are not multiples of, or less than, sizeof
746 (PTRACE_XFER_TYPE).
747
b9b5d7ea
JJ
7482004-06-04 Jeff Johnston <jjohnstn@redhat.com>
749
750 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
751 as a new thread event.
720c7d64 752 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 753 zombie, return TD_THR_ZOMBIE.
720c7d64 754 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
755 TD_THR_ZOMBIE, check if the thread is still on the thread list
756 and return a -1 ptid if not found.
757 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
758 change the status to TARGET_WAITKIND_SPURIOUS.
759
c8a3b559
CV
7602004-06-03 Corinna Vinschen <vinschen@redhat.com>
761
762 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
763 double values in little endian mode.
764
20605361
AC
7652004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
766
767 Committed by Andrew Cagney.
768 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
769 after last enum constant to avoid error from IBM C
770 compiler.
771
bc97b3ba
JB
7722004-06-02 Jim Blandy <jimb@redhat.com>
773
774 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
775 to 'message', and make it local to the lone block that uses it.
776
1da28ab0
JB
777 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
778
4c4b4cd2
PH
7792004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
780
781 * ada-exp.y: Synchronize with current ACT sources.
782 * ada-lang.c: Ditto.
783 * ada-lang.h: Ditto.
784 * ada-lex.l: Ditto.
785 * ada-tasks.c: Ditto.
786 * ada-typeprint.c: Ditto.
787 * ada-valprint.c: Ditto.
788
f65f91b5
JB
7892004-06-01 Jim Blandy <jimb@redhat.com>
790
791 * ppc-tdep.h: Delete unused 'regoff' member.
792 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
793
d4687fa0
MC
7942004-06-01 Michael Chastain <mec.gnu@mindspring.com>
795
796 Fix PR symtab/1661.
797 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
798 (hpread_read_struct_type): Likewise.
799
de169ec9
AC
8002004-06-01 Andrew Cagney <cagney@gnu.org>
801
c6902d46
AC
802 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
803 instead of xasprintf.
804 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
805 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
806 (mi_cmd_data_list_register_names)
807 (mi_cmd_data_list_changed_registers)
808 (mi_cmd_data_list_register_values)
809 (get_register, mi_cmd_data_write_register_values)
810 (mi_cmd_data_write_register_values)
811 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
812 (mi_cmd_target_download, mi_cmd_target_select)
813 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
814 (mi_execute_cli_command, mi_execute_async_cli_command)
815 (mi_execute_async_cli_command): Ditto.
816 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
817 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
818
6085fc2d
AC
819 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
820 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
821 error_last_message instead of mi_error_last_message.
822 * mi/mi-main.c (mi_error_last_message): Delete function.
823
de169ec9
AC
824 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
825 "invalid number of columns" error. Delete redundant "out of
826 memory" check.
827
1fc7d519
MK
8282004-05-31 Mark Kettenis <kettenis@gnu.org>
829
6cfb2041
MK
830 * i386bsd-nat.c: Don't include <sys/procfs.h>.
831 (gregset_t, fpregset_t): Remove typedefs.
832 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
833 (REG_OFFSET): Rename argument.
834 (i386bsd_r_reg_offset): Rename from reg_offset.
835 (REG_ADDR): Remove macro.
836 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
837 functions.
838 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
839 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
840 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
841 instead of supply_gregset.
842 (store_inferior_registers): Use `struct reg' and `struct fpreg'
843 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
844 instead of fill_gregset.
845 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
846
1fc7d519
MK
847 * i386bsd-nat.c: Don't include "gregset.h".
848 (supply_gregset, fill_gregset): Make static.
849 (supply_fpregset, fill_fpregset): Remove.
850 * Makefile.in (i386bsd-nat.o): Update dependencies.
851
2c34abbe
MK
8522004-05-30 Mark Kettenis <kettenis@gnu.org>
853
448724fb
MK
854 * fbsd-proc.c: Include "regcache.h", "regset.h" and
855 "gdb_assert.h". Con't include "gregset.h".
856 (fbsd_make_corefile_notes): Use regset-based core file support
857 instead off fill_gregset and fill_fpregset.
858 * Makefile.in (fbsd-proc.o): Update dependencies.
859
5ca8ca7c
MK
860 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
861 instructions.
862 (m88k_frame_prev_register): Simplify code a bit.
863
593adc23
MK
864 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
865 (amd64_collect_fpregset): New function.
866 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
867
8d1b517b
MK
868 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
869
7fdafb5a
MK
870 * i386-tdep.c (i386_supply_gregset): Adjust comment.
871 (i386_collect_gregset): New function.
872 (i386_supply_fpregset): Adjust comment.
873 (i386_collect_fpregset): New function.
874 (i386_regset_from_core_section): Use i386_collect_gregset and
875 i386_collect_fpregset.
876
8693c419
MK
877 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
878 handle VALUEP being null.
879
2c34abbe
MK
880 * regset.h (collect_regset_ftype): Unconstify fourth argument.
881
45d134d8
MK
8822004-05-29 Mark Kettenis <kettenis@gnu.org>
883
1698f4e7
MK
884 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
885
45d134d8
MK
886 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
887 assembler in OpenBSD 3.5-current.
888 (amd64obsd_sigcontext_addr): Likewise.
889
691d145a
JB
8902004-05-28 Jim Blandy <jimb@redhat.com>
891
892 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
893 register set, so our regcache isn't declared "legacy" and our E500
894 pseudoregister read and write functions aren't ignored.
895 (rs6000_register_byte, rs6000_register_raw_size,
896 rs6000_register_virtual_type, rs6000_register_convertible,
897 rs6000_register_convert_to_virtual,
898 rs6000_register_convert_to_raw): Deleted.
899 (rs6000_register_type, rs6000_convert_register_p,
900 rs6000_register_to_value, rs6000_value_to_register): New
901 functions.
902 (rs6000_gdbarch_init): Don't register
903 gdbarch_deprecated_register_size,
904 gdbarch_deprecated_register_bytes,
905 gdbarch_deprecated_register_byte,
906 gdbarch_deprecated_register_raw_size,
907 gdbarch_deprecated_register_virtual_type,
908 gdbarch_deprecated_register_convertible,
909 gdbarch_deprecated_register_convert_to_virtual, or
910 gdbarch_deprecated_register_convert_to_raw methods. Instead,
911 register gdbarch_register_type, gdbarch_convert_register_p,
912 gdbarch_register_to_value, and gdbarch_value_to_register methods.
913
18ed0c4e
JB
9142004-05-26 Jim Blandy <jimb@redhat.com>
915
916 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
917 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
918 functions, updated to match the register numberings used in GCC.
919 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
920 rs6000_dwarf2_reg_to_regnum as register number conversions
921 functions for STABS and Dwarf2.
922
779af9e3
RC
9232004-05-26 Randolph Chung <tausq@debian.org>
924
925 * infttrace.h (target_waitkind): Forward declare type instead of pulling
926 in header file.
927
c23968a2
JB
9282004-05-25 Joel Brobecker <brobecker@gnat.com>
929
930 * NEWS: Document new "start" command.
931
3a7d1c27
RC
9322004-05-25 Randolph Chung <tausq@debian.org>
933
934 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
935 hppa-linux.
936
43613416
RC
9372004-05-25 Randolph Chung <tausq@debian.org>
938
939 * hppa-hpux-tdep.c (offsetof): Define.
940 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
941 (hppa32_hpux_frame_base_before_sigtramp)
942 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
943 (hppa64_hpux_frame_saved_pc_in_sigtramp)
944 (hppa64_hpux_frame_base_before_sigtramp)
945 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
946 functions.
947 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
948 (hppa_hpux_sigtramp_frame_unwind_cache)
949 (hppa_hpux_sigtramp_frame_this_id)
950 (hppa_hpux_sigtramp_frame_prev_register)
951 (hppa_hpux_sigtramp_frame_unwind)
952 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
953 (hppa_hpux_init_abi): Register sigtramp unwinder.
954 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
955
6d1be3f1
RC
9562004-05-25 Randolph Chung <tausq@debian.org>
957
958 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
959 and multiple stack unwinds.
960 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
961
97c34f65
AC
9622004-05-25 Andrew Cagney <cagney@gnu.org>
963
964 * symfile.h (symbol_file_add_from_memory): Delete declaration.
965 * symfile-mem.h: Delete file.
966 * symfile-mem.c: Do not include "symfile-mem.h".
967 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
968 "struct bfd_section". When an error do not bother returning NULL.
969 (add_symbol_file_from_memory_command): Use "struct bfd" and
970 "struct bfd_section".
971 * Makefile.in (symfile_mem_h): Delete.
972 (symfile-mem.o): Update dependencies.
973
e23cbd82
NR
9742004-05-25 Nick Roberts <nickrob@gnu.org>
975
976 * gdb-mi.el: New file.
977
20d2ca3e
AC
9782004-05-25 Andrew Cagney <cagney@gnu.org>
979
980 * inftarg.c: Include "observer.h".
981 (child_attach, child_create_inferior): Notify inferior_created.
982 * corelow.c: Include "observer.h".
983 (core_open): Notify inferior_created.
984 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
985
c27cda74
AC
9862004-05-25 Andrew Cagney <cagney@gnu.org>
987
988 * target.h (struct target_ops): Add from_tty to
989 to_create_inferior.
990 (target_create_inferior, find_default_create_inferior): Update.
991 * infcmd.c (run_command): Update.
992 * wince.c (child_create_inferior): Update.
993 * win32-nat.c (child_create_inferior): Update.
994 * uw-thread.c (uw_thread_create_inferior): Update.
995 * thread-db.c (thread_db_create_inferior): Update.
996 * target.c (debug_to_create_inferior)
997 (find_default_create_inferior): Update.
998 (maybe_kill_then_create_inferior): Update.
999 * sol-thread.c (sol_thread_create_inferior): Update.
1000 * remote.c (extended_remote_async_create_inferior)
1001 (extended_remote_create_inferior): Update.
1002 * remote-vx.c (vx_create_inferior): Update.
1003 * remote-st.c (st2000_create_inferior): Update.
1004 * remote-sim.c (gdbsim_create_inferior): Update.
1005 * remote-sds.c (sds_create_inferior): Update.
1006 * remote-rdp.c (remote_rdp_create_inferior): Update.
1007 * remote-rdi.c (arm_rdi_create_inferior): Update.
1008 * remote-m32r-sdi.c (m32r_create_inferior): Update.
1009 * remote-e7000.c (e7000_create_inferior): Update.
1010 * procfs.c (procfs_create_inferior): Update.
1011 * ocd.c (ocd_create_inferior): Update.
1012 * ocd.h (ocd_create_inferior): Update.
1013 * nto-procfs.c (procfs_create_inferior): Update.
1014 * monitor.c (monitor_create_inferior): Update.
1015 * lin-lwp.c (lin_lwp_create_inferior): Update.
1016 * inftarg.c (child_create_inferior): Update.
1017 * hpux-thread.c (hpux_thread_create_inferior): Update.
1018 * gnu-nat.c (gnu_create_inferior): Update.
1019
1db2a798
AC
10202004-05-25 Andrew Cagney <cagney@gnu.com>
1021
1022 * MAINTAINERS: Update e-mail address.
1023
007d08bb
RC
10242004-05-24 Randolph Chung <tausq@debian.org>
1025
1026 * thread.c (info_threads_command, thread_apply_all_command)
1027 (thread_apply_command, thread_command, do_captured_thread_select):
1028 Remove HPUXHPPA-specific code.
1029
69e7b95e
RC
10302004-05-24 Randolph Chung <tausq@debian.org>
1031
1032 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
1033 unused symbols.
1034 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
1035 references.
1036
a4d5f2e0
JB
10372004-05-24 Joel Brobecker <brobecker@gnat.com>
1038
1039 * infcmd.c (kill_if_already_running): New function, extracted
1040 from run_command().
1041 (run_command): Replace extracted code by call to
1042 kill_if_already_running().
1043 (start_command): New function.
1044 (_initialize_infcmd): Add "start" command.
1045
bf2ca189
MK
10462004-05-24 Mark Kettenis <kettenis@gnu.org>
1047
1048 Add OpenBSD/m88k support.
1049 * NEWS (New native configurations): Mention OpenBSD/m88k.
1050 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
1051 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
1052 * Makefile.in (m88k_tdep_h): New variable.
1053 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
1054 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
1055 * configure.host: Add m88*-*-openbsd*.
1056 * configure.tgt: Add m88*-*-openbsd*.
1057
80fadb11
JB
10582004-05-24 Jim Blandy <jimb@redhat.com>
1059
1060 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
1061 to approve changes.
1062
19e2d14b
KB
10632004-05-24 Kevin Buettner <kevinb@redhat.com>
1064
1065 * symtab.c (fixup_section): Search section table when lookup by
1066 name fails.
1067
1b07b470
RC
10682004-05-24 Randolph Chung <tausq@debian.org>
1069
1070 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
1071 be "small_struct".
1072
368702b1
MK
10732004-05-24 Mark Kettenis <kettenis@gnu.org>
1074
5df97fde
MK
1075 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
1076 register number in regcache_raw_collect call.
1077 (m68kbsd_collect_fpregset): Likewise.
1078 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
1079
368702b1
MK
1080 * regset.h (struct regset): Add back `regset' member.
1081
a770d4ec
MK
10822004-05-23 Mark Kettenis <kettenis@gnu.org>
1083
70f9f479
MK
1084 * configure.in: Check for td_pcb in `struct thread'.
1085 * configure, config.in: Regenerated.
1086
2e16d79e
MK
1087 * dpx2-nat.c: Remove file.
1088 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
1089 (dpx2-nat.o): Remove dependencies.
1090
492cf391
MK
1091 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
1092 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
1093 (amd64obsd_supply_pcb): New function.
1094 (_initialize_amd64obsd_nat): Enable libkvm interface.
1095 * Makefile.in (amd64obsd-nat.o): Update dependencies.
1096 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
1097 (LOADLIBES): New variable.
1098
a770d4ec
MK
1099 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
1100 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
1101 (sparc32nbsd_supply_pcb): New function.
1102 (_initialize_sparcnbsd_nat): Enable libkvm interface.
1103 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
1104 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1105 (LOADLIBES): New variable.
1106
9ea75c57
MK
11072004-05-22 Mark Kettenis <kettenis@gnu.org>
1108
2e0c3539
MK
1109 * bsd-kvm.c, bsd-kvm.h: New files.
1110 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
1111 "bsd-kvm.h".
1112 (i386fbsd_supply_pcb): New function.
1113 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
1114 (i386fbsd-nat.o): Update dependencies.
1115 (bsd_kvm_h): New variable.
1116 (bsd-kvm.o): New dependency.
1117 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1118 (LOADLIBES): New variable.
1119
9ea75c57
MK
1120 * regset.c: Tweak comment.
1121 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
1122 macro.
1123 * regset.h: Update copyright year.
1124 (struct regset): Remove `descr' member, add `gdbarch' member.
1125 (regset_alloc): Adjust prototype and comment.
1126 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
1127 (i386_supply_fpregset): Likewise.
1128 (i386_regset_from_core_section): Update call to regset_alloc.
1129 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
1130 REGSET->arch.
1131 (i386obsd_aout_regset_from_core_section): Update call to
1132 regset_alloc.
1133 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
1134 REGSET->arch.
1135 (i386nbsd_aout_regset_from_core_section): Update call to
1136 regset_alloc.
1137 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
1138 REGSET->arch.
1139 (amd64_regset_from_core_section): Update call to regset_alloc.
1140 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
1141 REGSET->arch.
1142 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
1143 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
1144 &sparc32nbsd_gregset in sparc32_supply_gregset call.
1145 (sparc32nbsd_init_abi): Update call to regset_alloc.
1146 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
1147 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
1148 (sparc64obsd_init_abi): Update call to regset_alloc.
1149 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
1150 &sparc64nbsd_gregset in sparc64_supply_gregset call.
1151 (sparc64nbsd_init_abi): Update call to regset_alloc.
1152 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
1153 &sparc64fbsd_gregset in sparc64_supply_gregset call.
1154 (sparc64fbsd_init_abi): Update call to regset_alloc.
1155
867e2dc5
JB
11562004-05-22 Jim Blandy <jimb@redhat.com>
1157
1158 * ppc-tdep.h (spe_register_p): New declaration.
1159 (struct gdbarch_tdep): New members: ppc_acc_regnum and
1160 ppc_spefscr_regnum.
1161 * rs6000-tdep.c (spe_register_p): New function.
1162 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
1163 spefscr.
1164 (rs6000_gdbarch_init): Initialize the new members of the tdep
1165 structure.
1166
617a4cba
JB
11672004-05-21 Jim Blandy <jimb@redhat.com>
1168
0397dee1
JB
1169 * ppc-linux-nat.c (fetch_register): Move code back to be next
1170 to the comment that describes it. (Moved code, instead of
1171 comment, for symmetry with store_register.)
1172
617a4cba
JB
1173 Allocate regset structures in the gdbarch's obstack, not using
1174 xmalloc.
1175 * regset.c (regset_alloc): Renamed from regset_xmalloc.
1176 Add 'arch' argument. Allocate the regset on arch's obstack, not
1177 using xmalloc.
1178 * regset.h (regset_alloc): Update declaration.
1179 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
1180 gdbarch argument.
1181 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
1182 * i386-tdep.c (i386_regset_from_core_section): Same.
1183 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
1184 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
1185 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
1186 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
1187 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
1188 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
1189
9aa3914d
JB
11902004-05-21 Joel Brobecker <brobecker@gnat.com>
1191
1192 * config/djgpp/fnchange.lst: Undo previous change, was useless.
1193
99c87dab
JB
11942004-05-21 Jim Blandy <jimb@redhat.com>
1195
1196 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
1197 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
1198
c2b6b4aa
JB
11992004-05-20 Jim Blandy <jimb@redhat.com>
1200
1201 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
1202
144529d0
MK
12032004-05-20 Mark Kettenis <kettenis@gnu.org>
1204
1205 * regset.h: Make prototype const-correct.
1206 * regset.c (regset_xmalloc): Make const-correct.
1207
4725b721
PH
12082004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
1209
1210 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
1211 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
1212 (symbol_search_name): Declare.
1213
1214 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
1215 (iter_name_next_hashed): Ditto.
1216 (iter_name_next_linear): Ditto.
1217 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
1218
1219 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
1220 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
1221 (symbol_search_name): New function.
1222
1223 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
1224
1225 * minsyms.c (build_minimal_symbol_hash_tables): Change
1226 test for adding to demangled hash table to check for difference
1227 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
1228
be07a590
JB
12292004-05-19 Jim Blandy <jimb@redhat.com>
1230
1231 Use a constructor function to create regset structures.
1232 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
1233 (struct regset): Use supply_regset_ftype. Add new
1234 'collect_regset' member.
1235 (regset_xmalloc): New declaration.
1236 * regset.c: New file.
1237 * am64-tdep.c (amd64_regset_from_core_section): Use
1238 regset_xmalloc to construct regset structures.
1239 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
1240 * i386-tdep.c (i386_regset_from_core_section): Same.
1241 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
1242 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
1243 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
1244 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
1245 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
1246 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
1247 * Makefile.in (COMMON_OBS): Add regset.o.
1248 (regset.o): New rule.
1249
604368f5
JB
12502004-05-19 Joel Brobecker <brobecker@gnat.com>
1251
1252 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
1253 and pthread_cond_wait.c.
1254
82d69f8b
JB
12552004-05-18 Jim Blandy <jimb@redhat.com>
1256
1257 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
1258 before the mach-specific switch, and then let the individual cases
1259 override the defaults, rather than leaving them uninitialized
1260 until the switch and then setting them in each case.
1261
5859efe5
RC
12622004-05-18 Randolph Chung <tausq@debian.org>
1263
1264 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
1265 millicode functions.
1266
9ca80cf8
RC
12672004-05-18 Randolph Chung <tausq@debian.org>
1268
1269 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
1270 references to dld_flags_buffer consistent.
1271
ed70ba00
RC
12722004-05-18 Randolph Chung <tausq@debian.org>
1273
1274 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
1275 it for unwinding the stack.
1276
63100632
RC
12772004-05-18 Randolph Chung <tausq@debian.org>
1278
1279 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
1280 Undefine these so we can overide them using gdbarch.
1281
090ccbb7
RC
12822004-05-18 Randolph Chung <tausq@debian.org>
1283
1284 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
1285 handling for 64-bit HPUX (elf).
1286
594706e6
DJ
12872004-05-18 Daniel Jacobowitz <dan@debian.org>
1288
1289 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
1290 constants.
1291 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1292 * ia64-tdep.c (examine_prologue): Likewise.
1293 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
1294 * v850-tdep.c (v850_fix_call_dummy): Likewise.
1295
e5483145
MK
12962004-05-18 Mark Kettenis <kettenis@gnu.org>
1297
1298 * vax-tdep.c (vax_return_value): Implement
1299 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1300
caed1a45
MK
13012004-05-17 Mark Kettenis <kettenis@gnu.org>
1302
1303 * vax-tdep.c (vax_return_value): Fix typo.
1304
3c0b7db2
AC
13052004-05-17 Andrew Cagney <cagney@redhat.com>
1306
5aae53e5
AC
1307 * MAINTAINERS: Mark Salter was also responsible for
1308 testsuite/config/
1309
3c0b7db2
AC
1310 * NEWS: Mention signal fixes.
1311
22b0923d
RC
13122004-05-17 Randolph Chung <tausq@debian.org>
1313
1314 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
1315 check to see if we are unwinding an export stub. Export stubs clobber
1316 the %rp in the call path and stores the original rp in a stack slot.
1317
22f2b2f3
JB
13182004-05-17 Jim Blandy <jimb@redhat.com>
1319
1320 * MAINTAINERS: Update address for J.T. Conklin.
1321
cea96d64
RC
13222004-05-17 Randolph Chung <tausq@debian.org>
1323
1324 * hppa-tdep.c: Remove superfluous #include's.
1325 * Makefile.in (hppa-tdep.o): Update dependencies.
1326
f08f6a4a
RC
13272004-05-17 Randolph Chung <tausq@debian.org>
1328
1329 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
1330 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
1331 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
1332 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
1333 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
1334 Remove static function declarations.
1335
51da707a
MK
13362004-05-17 Mark Kettenis <kettenis@gnu.org>
1337
caed1a45
MK
1338 * alphabsd-nat.c: Update copyright year.
1339 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
1340
c0c2b0db
MK
1341 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
1342 and M68K_A2_REGNUM.
1343
51da707a
MK
1344 * m68k-tdep.c (m68k_svr4_return_value): Implement
1345 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1346
8d027a04
MK
13472004-05-16 Mark Kettenis <kettenis@gnu.org>
1348
1349 * sol-thread.c Update copyright year. Fix various coding
1350 standards violations. Tweak a few comments.
1351 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
1352 Delete prototypes.
1353
0d99fdb9
RC
13542004-05-15 Randolph Chung <tausq@debian.org>
1355
1356 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
1357 as pointer instead of array reference since HPUX compiler does
1358 not accept unsized array arguments.
1359 * somsolib.c (dld_flags_buffer): Use constant array size.
1360
f7e3843a
MK
13612004-05-15 Mark Kettenis <kettenis@gnu.org>
1362
0fe85704
MK
1363 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
1364 offset with decimal offset.
1365 (amd64obsd_sigcontext_addr): Return correct address for entire
1366 signal trampoline.
1367
a54f9a00
MK
1368 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
1369 instead of get_frame_base.
1370
feae6502
MK
1371 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
1372 (fill_gregset): Use regcache_raw_collect.
1373
0382d099
MK
1374 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
1375 ppcobsd-tdep.c.
1376
f7e3843a
MK
1377 * config/sparc/tm-nbsd64.h: Remove file.
1378 * config/tm-sunos.h: Remove file.
1379
773df3e5
JB
13802004-05-15 Joel Brobecker <brobecker@gnat.com>
1381
1382 * rs6000-tdep.c (store_param_on_stack_p): New function,
1383 an improved version of some code extracted from skip_prologue().
1384 (skip_prologue): Use store_param_on_stack_p() to detect
1385 instructions saving a parameter on the stack. Detect when r0
1386 is used to save a parameter.
1387 Do not mark "li rx, SIMM" instructions as part of the prologue,
1388 unless the following instruction is also part of the prologue.
1389
95918acb
AC
13902004-05-14 Andrew Cagney <cagney@redhat.com>
1391
06f32659
AC
1392 * infrun.c (handle_inferior_event): Simplify
1393 STEP_OVER_UNDEBUGGABLE.
1394
95918acb
AC
1395 * infrun.c (handle_step_into_function): Delete function.
1396 (handle_inferior_event): Inline calls to
1397 handle_step_into_function.
1398
42203e46
JG
13992004-05-14 Jerome Guitton <guitton@rome.act-europe.fr>
1400
1401 * rs6000-nat.c: Fix a comment.
1402
02f60eae
JB
14032004-05-12 David Anderson <davea@sgi.com>
1404
1405 Committed by Jim Blandy <jimb@redhat.com>:
1406 * regcache.c (struct regcache_descr): fix comment spelling.
1407
552e377b
JB
14082004-05-13 J. Brobecker <brobecker@gnat.com>
1409
1410 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
1411 Fixes a link link failure.
1412
349766b2
JB
14132004-05-13 J. Brobecker <brobecker@gnat.com>
1414
1415 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
1416 error that was causing the build to fail.
1417
0d4d5484
JB
14182004-05-13 J. Brobecker <brobecker@gnat.com>
1419
1420 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
1421 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
1422
0b30808c
AC
14232004-05-13 Andrew Cagney <cagney@redhat.com>
1424
1425 * infrun.c (handle_inferior_event): Check for
1426 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
1427 calls. Update comments.
1428
cdf2c5f5
JB
14292004-05-13 Jim Blandy <jimb@redhat.com>
1430
063715bf
JB
1431 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
1432 (fetch_regs_user_thread, fetch_regs_kernel_thread)
1433 (store_regs_user_thread, store_regs_kernel_thread): Use
1434 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
1435 * ppc-linux-nat.c (fill_gregset): Same.
1436 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1437 (ppc_linux_sigtramp_cache): Same.
1438 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
1439 (ppcnbsd_sigtramp_cache_init): Same.
1440 * rs6000-nat.c (fetch_core_registers): Same.
1441 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
1442 (rs6000_frame_cache): Same.
1443
cdf2c5f5
JB
1444 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
1445 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
1446 of assuming that the gprs are numbered starting with zero.
1447 * ppc-linux-nat.c (fill_gregset): Same.
1448 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
1449 * ppcnbsd-nat.c (getregs_supplies): Same.
1450 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
1451 * rs6000-nat.c (fetch_core_registers): Same.
1452 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
1453
450bd37b
MS
14542004-05-07 Michael Snyder <msnyder@redhat.com>
1455
1456 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
1457 LOC_COMPUTED_ARG, and LOC_INDIRECT.
1458
4a72a2a6
AC
14592004-05-13 Andrew Cagney <cagney@redhat.com>
1460
1461 * infrun.c (handle_inferior_event): Use frame_unwind_id.
1462
8edfa926
BM
14632004-05-13 Bryce McKinlay <mckinlay@redhat.com>
1464
1465 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
1466 base_address for shared libraries.
1467
723e0e3d
BM
14682004-05-13 Bryce McKinlay <mckinlay@redhat.com>
1469
1470 * MAINTAINERS (write after approval): Add myself.
1471
00d4360e
UW
14722004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
1473
1474 * breakpoint.c (bpstat_stop_status): Add new argument
1475 STOPPED_BY_WATCHPOINT. Use it instead of testing
1476 target_stopped_data_address agaist 0 to check whether
1477 or not we stopped due to a hardware watchpoint.
1478 * breakpoint.h (bpstat_stop_status): Adapt prototype.
1479 * infrun.c (handle_inferior_event): Call bpstat_stop_status
1480 with new argument.
1481
ec76baa5
JB
14822004-05-12 Jim Blandy <jimb@redhat.com>
1483
1484 * configure.in: When checking whether we should use the -bbigtoc
1485 option, don't forget to restore the original value of LDFLAGS.
1486 * configure: Regenerated.
1487
f2c9ca08
AC
14882004-05-12 Andrew Cagney <cagney@redhat.com>
1489
1490 * thread.c (load_infrun_state): Delete step_sp.
1491 * infrun.c (context_switch): Ditto.
1492 * inferior.h (step_sp): Ditto.
1493 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
1494 * gdbthread.h (struct thread_info, save_infrun_state)
1495 (restore_infrun_state): Ditto.
1496
090ddb2a
UW
14972004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
1498
1499 * MAINTAINERS (write after approval): Add myself.
1500
8aad930b
AC
15012004-05-12 Andrew Cagney <cagney@redhat.com>
1502
1503 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
1504 eliminate reference to step_sp.
1505 (struct execution_control_state, init_execution_control_state)
1506 (handle_inferior_event, keep_going): Delete update_step_sp and
1507 step_sp.
1508 * infcmd.c (step_sp): Note that variable is unused.
1509
922d5ae0
AC
15102004-05-11 Andrew Cagney <cagney@redhat.com>
1511
1512 * infrun.c (step_over_function): Delete function.
1513 (handle_step_into_function): Use insert_step_resume_breakpoint.
1514 (insert_step_resume_breakpoint): Fix assertion.
1515
017c5ca5
NR
15162004-05-11 Nick Roberts <nickrob@gnu.org>
1517
1518 * utils.c (defaulted_query): Just use the normal query input type
1519 when printing the annotations.
1520
42edda50
AC
15212004-05-11 Andrew Cagney <cagney@redhat.com>
1522
1523 * infrun.c (handle_inferior_event): Simplify code handling
1524 step-into or return-from a signal trampoline.
1525
d28b44a7
AC
15262004-05-11 Andrew Cagney <cagney@redhat.com>
1527
1528 * ppcnbsd-tdep.c: Include "gdb_assert.h".
1529 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
1530
383f0f5b
JB
15312004-05-10 Jim Blandy <jimb@redhat.com>
1532
d0b57c3a
JB
1533 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
1534 with a call to internal_error.
1535
383f0f5b
JB
1536 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
1537 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
1538 processor variant lacks those registers.
1539 (ppc_floating_point_unit_p): Change description to make it clear
1540 that this returns info about the ISA, not the ABI.
1541 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
1542 return true or false by checking tdep->ppc_fp0_regnum and
1543 tdep->ppc_fpscr_regnum. The original code replicated the BFD
1544 arch/mach switching done in rs6000_gdbarch_init; it's better to
1545 keep that logic there, and just check the results here.
1546 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
1547 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
1548 floating-point registers.
1549 (ppc_supply_fpregset, ppc_collect_fpregset)
1550 (rs6000_push_dummy_call, rs6000_extract_return_value)
1551 (rs6000_store_return_value): Assert that we have floating-point
1552 registers.
1553 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
1554 (rs6000_frame_cache): Don't note the locations at which
1555 floating-point registers were saved if we have no fprs.
1556 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
1557 registers.
1558 (fetch_regs_user_thread, fetch_regs_kernel_thread)
1559 (store_regs_user_thread, store_regs_kernel_thread): Only call
1560 supply_fprs / fill_fprs if we actually have floating-point
1561 registers.
1562 (special_register_p): Check ppc_fpscr_regnum before matching
1563 against it.
1564 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
1565 supply / collect fpscr if we don't have it.
1566 * ppc-bdm.c: #include "gdb_assert.h".
1567 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
1568 have floating-point registers, since I can't test this code on
1569 FP-free systems to adapt it.
1570 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
1571 fpscr and floating point register numbers if they don't exist.
1572 (fetch_register): Assert that we have floating-point registers
1573 before we reach the code that handles them.
1574 (store_register): Same. And use tdep instead of calling
1575 gdbarch_tdep again.
1576 (fill_fpregset): Don't try to collect FP registers and fpscr if we
1577 don't have them.
1578 (ppc_linux_sigtramp_cache): Don't record the saved locations of
1579 fprs and fpscr if we don't have them.
1580 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
1581 don't have them.
1582 * ppcnbsd-nat.c: #include "gdb_assert.h".
1583 (getfpregs_supplies): Assert that we have floating-point registers.
1584 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
1585 * ppcobsd-tdep.c: #include "gdb_assert.h".
1586 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
1587 have floating-point registers.
1588 * rs6000-nat.c (regmap): Don't match against the fpscr and
1589 floating point register numbers if they don't exist.
1590 (fetch_inferior_registers, store_inferior_registers,
1591 fetch_core_registers): Only fetch / store / supply the
1592 floating-point registers and the fpscr if we have them.
1593 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
1594 (ppcobsd-tdep.o): Update dependencies.
1595
15960608
AC
15962004-05-10 Andrew Cagney <cagney@redhat.com>
1597
1598 * infrun.c (through_sigtramp_breakpoint): Delete variable.
1599 (context_switch): Do not switch through_sigtramp_breakpoint.
1600 * gdbthread.h (save_infrun_state, load_infrun_state)
1601 (struct thread_info): Delete through_sigtramp_breakpoint parameter
1602 and structure member.
1603 * thread.c (load_infrun_state, save_infrun_state): Update.
1604
5ab5aa0f
MK
16052004-05-10 Mark Kettenis <kettenis@gnu.org>
1606
1607 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
1608
da78b0e7
DJ
16092004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1610
1611 * acinclude.m4: Quote macro names being defined by AC_DEFUN
1612 throughout.
1613 * aclocal.m4: Regenerate.
1614
cca0d3b0
NW
16152004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
1616
1617 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
1618
d303a6c7
AC
16192004-05-10 Andrew Cagney <cagney@redhat.com>
1620
1621 * infrun.c (check_sigtramp2): Delete function.
1622 (handle_inferior_event): When single stepping, and taking a
1623 signal, set a breakpoint at the signal return address. Delete
1624 redundant calls to check_sigtramp2.
1625 (insert_step_resume_breakpoint): New function.
1626 (through_sigtramp_breakpoint, handle_inferior_event)
1627 (follow_exec, wait_for_inferior, fetch_inferior_event)
1628 (currently_stepping, keep_going): Delete most uses of
1629 through_sigtramp_breakpoint, not that it should be deleted.
1630 (delete_breakpoint_current_contents): Delete function.
1631
03f4cc20
RC
16322004-05-10 Randolph Chung <tausq@debian.org>
1633
1634 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
1635 target.
1636 * config/pa/tm-linux.h: New file.
1637
37fc812e
DJ
16382004-05-10 Daniel Jacobowitz <drow@mvista.com>
1639
1640 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
1641 of prefixes. Don't print the prefix twice in the CLI.
1642
26c0b942
JB
16432004-05-10 Jim Blandy <jimb@redhat.com>
1644
2e56e9c1
JB
1645 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
1646 collect all the gprs.
1647
26c0b942
JB
1648 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
1649 loop collecting gprs.
1650
dc497459
AC
16512004-05-09 Andrew Cagney <cagney@redhat.com>
1652
1653 * remote-vx.c (net_step): Delete step-range code.
1654 * remote.c (remote_resume, init_all_packet_configs)
1655 (set_remote_protocol_E_packet_cmd)
1656 (show_remote_protocol_E_packet_cmd)
1657 (remote_protocol_E, show_remote_cmd, _initialize_remote)
1658 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
1659 (show_remote_protocol_e_packet_cmd): Ditto.
1660
0543f387
MK
16612004-05-09 Mark Kettenis <kettenis@gnu.org>
1662
c481d1ca
MK
1663 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
1664
f626a069
MK
1665 * hppa-tdep.h: Update copyright year.
1666 (struct trad_frame_saved_reg): Add opaque declaration.
1667
6fa57a7d
MK
1668 * amd64-tdep.c (amd64_return_value): Implement
1669 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1670
e47577ab
MK
1671 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
1672 (m68k_value_to_register): New functions.
1673 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
1674 value_to_register.
1675
31db7b6c
MK
1676 * defs.h (enum return_value_convention): Add
1677 RETURN_VALUE_ABI_RETURNS_ADDRESS and
1678 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
1679 * infcmd.c (legacy_return_value): New function.
1680 (print_return_value): Rwerite to implement
1681 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1682 * values.c (using_struct_return): Check for inequality to
1683 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
1684 RETURN_VALUE_STRUCT_CONVENTION.
1685 * i386-tdep.c (i386_return_value): Implement
1686 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1687
0543f387
MK
1688 * vax-tdep.c: Tweak comments. Reorder include files. Don't
1689 include "symtab.h", "opcode/vax.h" and "inferior.h".
1690 (vax_skip_prologue): Replace calls to read_memory_integer by calls
1691 to read_memory_unsigned_integer.
1692 (vax_gdbarch_init): Reorder.
1693 (_initialize_vax_tdep): Spell out prototype.
1694 * Makefile.in (vax-tdep.o): Update dependencies.
1695
0c93b7b6
AC
16962004-05-08 Andrew Cagney <cagney@redhat.com>
1697
e6b55ae2
AC
1698 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
1699 * target.c (target_detach, target_disconnect): Ditto.
1700
1ac839b8
AC
1701 * infcall.c (call_function_by_hand): When no
1702 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
1703 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
1704 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
1705 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1706 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1707
28954179
AC
1708 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
1709 * gdbarch.h, gdbarch.c: Re-generate.
1710 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
1711 deprecated_fix_call_dummy.
1712 * v850-tdep.c (v850_gdbarch_init): Ditto.
1713 * infcall.c (call_function_by_hand): Do not call
1714 DEPRECATED_FIX_CALL_DUMMY.
1715
434b87dd
AC
1716 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
1717 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
1718 * gdbarch.h, gdbarch.c: Re-generate.
1719 * arm-linux-tdep.c (arm_linux_call_dummy_words)
1720 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
1721 deprecated_sizeof_call_dummy_words.
1722 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
1723 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1724 * v850-tdep.c (v850_gdbarch_init): Ditto.
1725 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1726 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
1727 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1728 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1729 * arch-utils.h (legacy_call_dummy_words)
1730 (legacy_sizeof_call_dummy_words): Delete declarations.
1731 * arch-utils.c (legacy_call_dummy_words)
1732 (legacy_sizeof_call_dummy_words): Delete variables.
1733
58d28df8
AC
1734 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
1735 * gdbarch.h, gdbarch.c: Re-generate.
1736 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
1737 * infcall.c (call_function_by_hand): Eliminate call to
1738 DEPRECATED_PUSH_DUMMY_FRAME.
1739 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
1740 push_dummy_frame.
1741 (ns32k_push_dummy_frame): Delete function.
1742
e4a2df64
AC
1743 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
1744 deprecated_call_dummy_breakpoint_offset or
1745 deprecated_call_dummy_start_offset.
1746 * dummy-frame.c, arm-tdep.c: Update comments.
1747 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
1748 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
1749 * gdbarch.h, gdbarch.c: Re-generate.
1750
d3712828
AC
1751 * infcall.c (legacy_push_dummy_code): Delete function.
1752 (push_dummy_code): Delete call.
1753
7a882905
AC
1754 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
1755 * gdbarch.h, gdbarch.c: Re-generate.
1756 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
1757 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
1758 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
1759 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
1760
0ec5872b
AC
1761 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
1762 (struct frame_info): Delete opaque declaration.
1763 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
1764 * frame.c (get_frame_type): Delete call.
1765
0c93b7b6
AC
1766 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
1767 pc_in_call_dummy.
1768 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
1769 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
1770
75536971
MK
17712004-05-08 Mark Kettenis <kettenis@gnu.org>
1772
527ca6bb
MK
1773 * alphanbsd-tdep.c: Include "gdb_string.h".
1774 * armnbsd-tdep.c: Update copyright year.
1775 Include "gdb_string.h".
1776 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
1777 dependencies.
1778
d39fdc61
MK
1779 * delta68-nat.c: Remove file.
1780 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
1781 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
1782 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
1783 (delta68-nat.o): Remove dependency.
1784
75536971
MK
1785 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
1786 function.
1787 (m68k_gdbarch_init): Don't set
1788 deprecated_frameless_function_invocation.
1789
f4ca1d1f
RC
17902004-05-07 Randolph Chung <tausq@debian.org>
1791
1792 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
1793 read_memory_nobpt for code reading when doing frame unwinding.
1794 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
1795
2f0e8c7a
RC
17962004-05-07 Randolph Chung <tausq@debian.org>
1797
1798 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
1799 instead of sp, handle sigaltstack case.
1800 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
1801 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
1802 signal handler and not that of the caller.
1803 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
1804 hppa_linux_sigtramp_find_sigcontext.
1805
959464ff
RC
18062004-05-07 Randolph Chung <tausq@debian.org>
1807
1808 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
1809 hppa-linux-nat.c.
1810 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
1811 * hppa-linux-nat.c (fetch_register, store_register): Define.
1812 (fetch_inferior_registers, store_inferior_registers): Define.
1813 (supply_gregset): Add comment and clean up some unneeded code.
1814 (fill_gregset): Add comment and fix so that it saves registers in
1815 the right place in the gregset.
1816 (fill_fpregset): Fix buffer overrun problem.
1817 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
1818
0da28f8a
RC
18192004-05-07 Randolph Chung <tausq@debian.org>
1820
1821 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
1822 do common handling of the pcoqt register.
1823 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
1824 to use helper function.
1825 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
1826 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
1827 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
1828 generic fallback unwinder when all else fails.
1829 (hppa_gdbarch_init): Add fallback sniffer.
1830 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
1831 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
1832 to use helper function.
1833
b9ec757a
JB
18342004-05-08 Joel Brobecker <brobecker@gnat.com>
1835
1836 * config/djgpp/fnchange.lst: Add translation rules for
1837 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
1838
756e95f1
MK
18392004-05-08 Mark Kettenis <kettenis@gnu.org>
1840
1841 * frame.c (get_prev_frame_1): Work around GCC bug.
1842 * frame.h: Add comment about GCC bug.
1843
2b4855ab
AC
18442004-05-07 Andrew Cagney <cagney@redhat.com>
1845
1846 * observer.c: Include "commands.h" and "gdbcmd.h".
1847 (observer_debug, _initialize_observer): Add the
1848 command "set/show debug observer".
1849 * observer.sh: When observer debugging, log notify calls.
1850 * Makefile.in (observer.o): Update dependencies.
1851
ba3e8e46
JM
18522004-05-07 Jason Molenda (jmolenda@apple.com)
1853
1854 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
1855
16796152
JB
18562004-05-07 Jim Blandy <jimb@redhat.com>
1857
daf6dc85
JB
1858 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
1859 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
1860 to recognize gpr regnums, instead of assuming that
1861 tdep->ppc_fp0_regnum marks the end of the general-purpose
1862 registers.
1863
16796152
JB
1864 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
1865 the given architecture has floating-point registers.
1866
c69b8bfc
AC
18672004-05-07 Andrew Cagney <cagney@redhat.com>
1868
1869 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
1870 macro defined to 1.
1871 * gdbarch.h, gdbarch.c: Re-generate.
1872 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
1873 deprecated_use_generic_dummy_frames.
1874
7243600a
BF
18752004-05-07 Brian Ford <ford@vss.fsi.com>
1876
1877 * NEWS: Mention Cygwin DWARF 2 support.
1878
73c1e0a1
AC
18792004-05-07 Andrew Cagney <cagney@redhat.com>
1880
1881 * objfiles.h (struct entry_info): Delete unused fields
1882 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
1883 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
1884 * mipsread.c (mipscoff_symfile_read): Update.
1885 * mdebugread.c (parse_partial_symbols): Update.
1886 * dwarfread.c (read_file_scope): Update.
1887 * dwarf2read.c (read_file_scope): Update.
1888 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
1889 * coffread.c (complete_symtab): Update.
1890
1d3056ac
MK
18912004-05-07 Mark Kettenis <kettenis@gnu.org>
1892
1893 * infcall.c (_initialize_infcall): Fix typo.
1894
15170568
AC
18952004-05-07 Andrew Cagney <cagney@redhat.com>
1896
1897 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
1898 * command.h (add_setshow_zinteger_cmd): Declare.
1899
34f75cc1
RC
19002004-05-06 Randolph Chung <tausq@debian.org>
1901
1902 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
1903 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
1904 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
1905 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
1906 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
1907 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
1908 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
1909 definitions ...
1910 * hppa-tdep.h: ... to here, with HPPA_ prefix.
1911 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
1912 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
1913 (hppa64_hpux_frame_find_saved_regs_in_sig)
1914 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
1915 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
1916 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
1917 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
1918 (hppa_linux_sigtramp_frame_prev_register): Likewise.
1919 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
1920 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
1921 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
1922 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
1923 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
1924 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
1925 (hppa32_register_type, hppa_cannot_store_register)
1926 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
1927 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
1928 * hpread.c (hpread_process_one_debug_symbol): Likewise.
1929 * pa64solib.c (pa64_solib_have_load_event)
1930 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
1931 (pa64_solib_unloaded_library_pathname): Likewise.
1932 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
1933 (som_solib_library_pathname): Likewise.
1934
0a5e7efe
JI
19352004-05-05 Jim Ingham <jingham@apple.com>
1936
1937 * breakpoint.c (create_breakpoints): Copy the ignore count and
1938 thread id over from the pended breakpoint to the actual
1939 breakpoint.
1940
10a4b113
AC
19412004-05-05 Andrew Cagney <cagney@redhat.com>
1942
1943 * gdbarch.sh (PARM_BOUNDARY): Delete.
1944 gdbarch.h, gdbarch.c: Re-generate.
1945 * valops.c (PARM_BOUNDARY): Delete macro.
1946 (value_push): Delete PARM_BOUNDARY code.
1947 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
1948
366f009f
JB
19492004-05-04 Jim Blandy <jimb@redhat.com>
1950
32b99774
JB
1951 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
1952 Don't assume that the gprs, fprs, and UISA sprs are
1953 contiguous, start at register number zero, and end with fpscr.
1954 Instead, use the numbers from the tdep structure.
1955
366f009f
JB
1956 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
1957 should no longer be used in code specific to the RS6000 and its
1958 derivatives.
1959 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
1960 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
1961 tdep->ppc_fp0_regnum.
1962 (ppc_supply_fpregset, ppc_collect_fpregset)
1963 (rs6000_push_dummy_call, rs6000_extract_return_value)
1964 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
1965 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
1966 FP0_REGNUM.
1967 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
1968 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
1969 Same.
1970 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
1971 bdm_ppc_store_registers): Same.
1972 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
1973 (store_register, fill_fpregset): Same.
1974 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
1975 (ppc_linux_supply_fpregset): Same.
1976 * ppcnbsd-nat.c (getfpregs_supplies): Same.
1977 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
1978 Same.
1979 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
1980 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
1981 ppc64_sysv_abi_return_value): Same.
1982 * rs6000-nat.c (regmap, fetch_inferior_registers)
1983 (store_inferior_registers, fetch_core_registers): Same.
1984
827f338d
MK
19852004-05-01 Mark Kettenis <kettenis@gnu.org>
1986
1987 * m68knbsd-nat.c: Remove file.
1988 * m68knbsd-tdep.c: Remove file.
1989 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
1990 dependencies.
1991 * configure.host: Add m68k-*-netbsdelf*.
1992 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
1993 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
1994 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
1995 (XM_FILE): Remove.
1996 * config/m68k/nbsdelf.mh: New file.
1997 * config/m68k/nbsd.mt: New file.
1998 * config/m68k/nbsdaout.mt: Remove file.
1999 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
2000 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
2001 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
2002 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
2003 (use_struct_convention): Remove prototype.
2004 (USE_STRUCT_CONVENTION): Remove define.
2005 * config/m68k/xm-nbsd.h: Remove file.
2006
66894781
MS
20072004-05-04 Michael Snyder <msnyder@redhat.com>
2008
2009 * m68k-tdep.c (m68k_gdbarch_init): Default to using
2010 reg_struct_return method (as gcc usually does for cross targets).
2011
f0f63663
AC
20122004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2013
2014 Committed by Andrew Cagney.
2015 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
2016 alignment padding when accessing ucontext struct members.
2017
edf61169
JB
20182004-05-04 Jim Blandy <jimb@redhat.com>
2019
8bf659e8
JB
2020 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
2021 'ppc_gplast_regnum' member.
2022 (ppc_num_gprs): New enum constant.
2023 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
2024 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
2025 * rs6000-nat.c (regmap, fetch_inferior_registers,
2026 store_inferior_registers): Same.
2027 * rs6000-tdep.c (e500_pseudo_register_read)
2028 (e500_pseudo_register_write): Same.
2029 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
2030
b967e06f
JB
2031 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
2032 * ppc-tdep.h (ppc_num_fprs): New enum constant.
2033 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
2034 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
2035 FPLAST_REGNUM.
2036 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
2037 Same.
2038 * ppc-linux-nat.c (ppc_register_u_addr): Same.
2039 * rs6000-nat.c (regmap, fetch_inferior_registers)
2040 (store_inferior_registers): Same.
2041
edf61169
JB
2042 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
2043 with FPLAST_REGNUM.
2044
58a9656e
JB
20452004-05-03 Joel Brobecker <brobecker@gnat.com>
2046
2047 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
2048 failure detected by recent versions of GCC.
2049 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
2050 to be consistent with the usage in dwarf2_create_include_psymtab.
2051
dc305454
MS
20522004-05-03 Michael Snyder <msnyder@redhat.com>
2053
2054 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
2055 (heuristic_proc_start): Whitespace cleanup.
2056
29972665
MK
20572004-05-04 Mark Kettenis <kettenis@gnu.org>
2058
6b57680d
MK
2059 * sun3-nat.c: Remove file.
2060 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
2061 dependencies.
2062 (ALLDEPFILES): Remove sun3-nat.c.
2063 (sun3-nat.o): Remove dependencies.
2064
29972665
MK
2065 * i386-interix-nat.c, i386-interix-tdep.c,
2066 config/i386/nm-interix.h, config/i386/interix.mh,
2067 config/i386/interix.mt: Remove files.
2068 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
2069 dependencies.
2070
f595cb19
MK
20712004-05-03 Mark Kettenis <kettenis@gnu.org>
2072
2073 * m68k-tdep.h (struct gdbarch_tdep): Add member
2074 struct_value_regnum.
2075 (m68k_svr4_init_abi): New prototype.
2076 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
2077 different calling conventions.
2078 (m68k_extract_return_value): Remove code dealing with single-field
2079 structs.
2080 (m68k_store_return_value): Remove code dealing with single-field
2081 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
2082 (m68k_extract_struct_value_address): Remove function.
2083 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
2084 (m68k_reg_struct_return_p, m68k_return_value)
2085 (m68k_svr4_return_value): New functions.
2086 (m68k_use_struct_convention): Remove function.
2087 (m68k_push_dummy_call): Use new struct_value_regnum member of
2088 `struct gdbarch_tdep' instead of hardcoded register number to
2089 store STRUCT_ADDR.
2090 (m68k_svr4_init_abi): New function.
2091 (m68k_gdbarch_init): Don't set extract_return_value,
2092 store_return_values, deprecated_extract_struct_value_address and
2093 use_struct_convention. Set return_value instead. Initialize new
2094 struct_value_regnum member of `struct gdbarch_tdep'.
2095 * m68klinux-tdep.c: Update copyright year.
2096 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
2097 (m68k_linux_extract_struct_value_address): Remove function.
2098 (m68k_linux_init_abi): Don't set extract_return_value,
2099 store_return_values, deprecated_extract_struct_value_address and
2100 use_struct_convention. Call m68k_svr4_init_abi but override the
2101 new struct_value_regnum member of `struct gdbarch_tdep'.
2102 * Makefile.in (m68k-tdep.o): Update dependencies.
2103
aaa75496
JB
21042004-05-03 J. Brobecker <brobecker@gnat.com>
2105
2106 * dwarf2read.c (line_header): Add new included_p field in
2107 field file_names.
2108 (partial_die_info): New field has_stmt_list. New field line_offset.
2109 (dwarf2_create_include_psymtab): New function.
2110 (dwarf2_build_include_psymtabs): New function.
2111 (add_file_name): Add forward declaration. Initialize new field.
2112 (dwarf_decode_lines): Add new parameter. Enhance this procedure
2113 to be able to determine the list of files included by the
2114 given unit, and build their associated psymtabs.
2115 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
2116 files as well.
2117 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
2118 (read_file_scope): Update call to dwarf_decode_lines.
2119 (read_partial_die): Handle DW_AT_stmt_list attributes.
2120
c848556f
MC
21212004-05-02 Michael Chastain <mec.gnu@mindspring.com>
2122
2123 Unfix PR gdb/1626.
2124 * configure.in: Revert special case for osf5.*.
2125 * configure: Regenerate.
2126
eb4556d7
JB
21272004-05-02 Jim Blandy <jimb@redhat.com>
2128
2129 Move the symbol-file-from-memory functions into their own file.
2130 * symfile-mem.c, symfile-mem.h: New files.
2131 * symfile.c (symbol_file_add_from_bfd): New function.
2132 (symbol_file_add): Call symbol_file_add_from_bfd.
2133 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
2134 Moved to symfile-mem.c.
2135 (_initialize_symfile): Move definition of
2136 add-symbol-file-from-memory command to symfile-mem.c.
2137 * symfile.h (symbol_file_add_from_bfd): New declaration.
2138 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
2139 * config/powerpc/linux.mt (TDEPFILES): Same.
2140 * Makefile.in (SFILES): Add symfile-mem.c.
2141 (symfile_mem_h): New variable.
2142 (HFILES_NO_SRCDIR): Add symfile-mem.h.
2143 (symfile-mem.o): New rule.
2144
80bb239e
AC
21452004-05-01 Andrew Cagney <cagney@redhat.com>
2146
7789d0fa
AC
2147 * breakpoint.c (insert_bp_location): Use get_frame_id, and
2148 frame_find_by_id instead of frame_relative_level.
2149 (do_enable_breakpoint): Ditto.
2150 * thread.c: Update copyright.
2151 (info_threads_command): Ditto, simplify.
2152
80bb239e
AC
2153 * frame.c (deprecated_generic_get_saved_register): Delete
2154 function, moved to "xstormy16-tdep.c".
2155 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
2156 deprecated_generic_get_saved_register from "frame.c".
2157 (xstormy16_frame_saved_register): Call
2158 xstormy16_get_saved_register.
2159 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
2160 static.
2161 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
2162 * frame.h (deprecated_generic_get_saved_register): Delete.
2163
b2a871dd
MC
21642004-05-01 Michael Chastain <mec.gnu@mindspring.com>
2165
2166 * dwarfread.c: Update documentation on the state of dwarf-1.
2167
0e100dab
AC
21682004-05-01 Andrew Cagney <cagney@redhat.com>
2169
acd8056e
AC
2170 * stack.c (select_frame_command): Delete call to
2171 frame_relative_level.
2172 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
2173 Delete #if0 code.
2174 (frame_info): Do not print FRAMELESS.
2175 (print_block_frame_labels): Replace DEPRECATED_STREQ.
2176 (catch_info): Delete #if0 code.
2177
0e100dab
AC
2178 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
2179 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
2180 of frame_relative_level.
2181 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
2182 to SENTINEL_FRAME.
2183 * frame.h (enum frame_type): Add SENTINEL_FRAME.
2184 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
2185 frame_relative_level.
2186
55699d59
AC
2187 * frame.h (deprecated_set_frame_type): Delete declaration.
2188 * frame.c (deprecated_set_frame_type): Delete function, update
2189 comments.
2190
fcf70625
AC
2191 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
2192 * gdbarch.h, gdbarch.c: Re-generate.
2193 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
2194 (shnbsd_pc_in_sigtramp): Delete.
2195 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
2196 pc_in_sigtramp.
2197 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
2198 pc_in_sigtramp.
2199 * frame.h: Update comments.
2200 * ppc-linux-tdep.c: Update comments.
2201 * breakpoint.c (bpstat_what): Update comments.
2202
ac5eccb7
AC
2203 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
2204 m68klinux-tdep.o's dependencies, were previously added to
2205 m68klinux-nat.o.
2206
f2524b93
AC
2207 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
2208 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
2209 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
2210 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
2211 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
2212
17e20bce
AC
2213 * Makefile.in (m68klinux-nat.o): Update dependencies.
2214 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
2215 (m68k_linux_sigtramp_frame_cache)
2216 (m68k_linux_sigtramp_frame_this_id)
2217 (m68k_linux_sigtramp_frame_prev_register)
2218 (m68k_linux_sigtramp_frame_unwind)
2219 (m68k_linux_sigtramp_frame_sniffer)
2220 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
2221 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
2222 names, use trad-frame.h.
2223 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
2224 (struct m68k_sigtramp_info): Delete.
2225 * m68k-tdep.c (m68k_sigtramp_frame_cache)
2226 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
2227 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
2228 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
2229 "m68klinux-tdep.c".
2230
c8864fa2
AC
2231 * infrun.c (check_sigtramp2): Delete check for
2232 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
2233
511dd2cd
MK
22342004-05-01 Mark Kettenis <kettenis@gnu.org>
2235
2236 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
2237
8c6b0e06
AC
22382004-05-01 Andrew Cagney <cagney@redhat.com>
2239
9df0bb3f
AC
2240 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
2241 (frv_linux_sigtramp_frame_cache)
2242 (frv_linux_sigtramp_frame_this_id)
2243 (frv_linux_sigtramp_frame_prev_register)
2244 (frv_linux_sigtramp_frame_unwind)
2245 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
2246 include "linux" in function and variable names, directly call
2247 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
2248 the latest trad-frame code.
2249 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
2250 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
2251 * Makefile.in (frv-linux-tdep.o): Update dependencies.
2252 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
2253 * frv-tdep.c (frv_sigtramp_frame_cache)
2254 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
2255 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
2256 frv-linux-tdep.c.
2257 (frv_gdbarch_init): Do not append a sigtramp sniffer.
2258 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
2259 (frv_set_sigcontext_reg_addr): Delete function.
2260
8c6b0e06
AC
2261 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
2262 (DEPRECATED_SIGTRAMP_END): Delete.
2263 * gdbarch.h, gdbarch.c: Re-generate.
2264 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
2265 * config/vax/tm-vaxbsd.h: Update copyright.
2266 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
2267 (DEPRECATED_IN_SIGTRAMP): Define.
2268 * config/m68k/tm-nbsd.h: Update copyright.
2269 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
2270 (DEPRECATED_IN_SIGTRAMP): Define.
2271
50ea7769
MK
22722004-05-01 Mark Kettenis <kettenis@gnu.org>
2273
03ac2a74
MK
2274 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
2275 encondings. Fixes PR gdb/1628.
2276
50ea7769
MK
2277 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
2278 DW_CFA_restore state without a matching DW_CFA_remember_state
2279 instead of aborting. Fixes PR backtrace/1589.
2280
9a5d7be1
JB
22812004-04-30 Joel Brobecker <brobecker@gnat.com>
2282
2283 * MAINTAINERS: Add self as AIX maintainer.
2284 Update my e-mail address in write-after-approval section.
2285
2593d1cd
AC
22862004-04-30 Andrew Cagney <cagney@redhat.com>
2287
ce12bbf9
AC
2288 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
2289 (legacy_get_prev_frame): Ditto.
2290
36710c63
AC
2291 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
2292 (mips_gdbarch_init): Do not set pc_in_sigtramp.
2293 * mipsread.c (sigtramp_address): Delete extern variable.
2294 (mipscoff_new_init): Delete reference.
2295 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
2296 (fixup_sigtramp): Delete function.
2297 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
2298 (fixup_sigtramp): Delete declarations.
2299
2593d1cd
AC
2300 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
2301 deprecated_pc_in_sigtramp.
2302 (ppcnbsd_pc_in_sigtramp): Delete function.
2303
2a25f91c
MK
23042004-05-01 Mark Kettenis <kettenis@gnu.org>
2305
2306 * config/m68k/nm-nbsd.h: Tweak comments.
2307 * config/m68k/nm-nbsdaout.h: Likewise.
2308
0b281939
AC
23092004-04-30 Andrew Cagney <cagney@redhat.com>
2310
2311 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
2312 legacy_pc_in_sigtramp.
2313 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
2314
8f2d3ea0
MK
23152004-05-01 Mark Kettenis <kettenis@gnu.org>
2316
2317 Add OpenBSD/m68k support.
2318 * NEWS (New native configurations): Mention OpenBSD/m68k.
2319 * m68kbsd-tdep.c: New file.
2320 * m68kbsd-nat.c: New file.
2321 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
2322 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
2323 * configure.host: Add m68k-*-openbsd.
2324 * configure.tgt: Add m68k-*-openbsd.
2325 * config/m68k/tm-obsd.h: New file.
2326 * config/m68k/obsd.mt: New file.
2327 * config/m68k/obsd.mh: New file.
2328 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
2329 m68kbsd-tdep.c.
2330
c40f49a4
AC
23312004-04-30 Andrew Cagney <cagney@redhat.com>
2332
2333 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
2334 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
2335
e81554cd
MK
23362004-04-30 Mark Kettenis <kettenis@gnu.org>
2337
2338 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
2339 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
2340
d4dc1a91
BF
23412004-04-30 Brian Ford <ford@vss.fsi.com>
2342
2343 Revert 2004-04-16 change.
2344 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
2345 (i386_coff_init_abi): Remove.
2346 * i386-tdep.h (i386_coff_init_abi): Remove.
2347 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
2348
2f72f850
AC
23492004-04-30 Andrew Cagney <cagney@redhat.com>
2350
e492f9d6
AC
2351 * blockframe.c (find_pc_partial_function): Delete use of
2352 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
2353 DEPRECATED_SIGTRAMP_END.
2354
7b7adad0
AC
2355 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
2356 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
2357 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
2358 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
2359 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
2360
2f72f850
AC
2361 * defs.h (deprecated_inside_entry_file): Delete declaration.
2362 * blockframe.c (deprecated_inside_entry_file): Delete function.
2363 (legacy_frame_chain_valid): Delete call.
2364 * sh64-tdep.c (sh64_frame_chain): Delete call.
2365 * objfiles.h: Update comments.
2366 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
2367 call.
2368 * frame.c (get_prev_frame): Delete call, update comments.
2369
283f90a7
BF
23702004-04-30 Brian Ford <ford@vss.fsi.com>
2371
2372 * MAINTAINERS (Write After Approval): Add myself.
2373
8ee56bcf
AC
23742004-04-30 Andrew Cagney <cagney@redhat.com>
2375
2376 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
2377 * gdbarch.h, gdbarch.c: Re-generate.
2378 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
2379 code.
2380
ee27e1b6
AC
23812004-04-30 Andrew Cagney <cagney@redhat.com>
2382
2383 * gdb-events.sh (selected_thread_changed)
2384 (selected_frame_level_changed, target_changed): Delete.
2385 * gdb-events.h, gdb-events.c: Re-generate.
2386 * valops.c (value_assign): Update.
2387 * stack.c (select_frame_command, up_silently_base)
2388 (down_silently_base): Update.
2389
d5ac5a39
AC
23902004-04-29 Andrew Cagney <cagney@redhat.com>
2391
2392 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
2393 registers correctly.
2394 (print_gp_register_row, mips32_heuristic_proc_desc)
2395 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
2396 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
2397 references to mips_isa_regsize.
2398
ceae6e75
AC
23992004-04-29 Andrew Cagney <cagney@redhat.com>
2400
2401 * mips-tdep.c (struct gdbarch_tdep): Delete
2402 mips_fp_register_double.
2403 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
2404 mips_abi_regsize.
2405 (mips_gdbarch_init): Do not set mips_fp_register_double.
2406 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
2407
a587af0b
AC
24082004-04-29 Joel Brobecker <brobecker@gnat.com>
2409
2410 Committed by Andrew Cagney.
2411 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
2412 function calls.
2413
13326b4e
AC
24142004-04-29 Andrew Cagney <cagney@redhat.com>
2415
2416 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
2417 gdbarch, use mips_abi, update callers.
2418 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
2419 mips_abi_regsize, update callers.
2420 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
2421 mips_default_abi_regsize.
2422 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
2423 mips_default_abi_regsize.
2424
711cc5cd
AC
24252004-04-29 Andrew Cagney <cagney@redhat.com>
2426
1b13c4f6
AC
2427 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
2428 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
2429 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
2430 mips_default_abi_regsize.
2431 (mips_isa_regsize): Rename mips_regisze.
2432 * mipsnbsd-tdep.c: Update.
2433 * mips-linux-tdep.c: Update.
2434 * irix5-nat.c: Update.
2435 * mips-tdep.h (mips_isa_regsize): Update.
2436
711cc5cd
AC
2437 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
2438 Delete all disabled code.
2439 * gdb-events.h, gdb-events.c: Re-generate.
2440
e63bbc88
MK
24412004-04-19 Jerome Guitton <guitton@gnat.com>
2442 Mark Kettenis <kettenis@gnu.org>
2443
2444 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
2445 the function begins with a branch instruction.
2446
fd35795f
MK
24472004-04-29 Mark Kettenis <kettenis@gnu.org>
2448
2449 * i386-tdep.c: Fix spelling mistakes.
2450
c960c18f
AC
24512004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2452 Andrew Cagney <cagney@redhat.com>
2453
2454 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
2455 <sys/proc.h>.
2456 * acconfig.h: Provide default _KMEMUSER value.
2457 * config.in, configure: Re-generate.
2458 * NEWS: Mention fix.
2459
50306a9d
RC
24602004-04-24 Randolph Chung <tausq@debian.org>
2461
2462 * configure.host (hppa*-*-linux*): New target.
2463 * configure.tgt (hppa*-*-linux*): Likewise.
2464 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
2465 gdbarch_init_osabi() call earlier so that osabi-specific frame
2466 unwinders can be registered first.
2467 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
2468 hppa-linux-nat.c.
2469 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
2470 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
2471 * config/pa/linux.mh: New file.
2472 * config/pa/linux.mt: New file.
2473 * config/pa/nm-linux.h: New file.
2474 * config/pa/xm-linux.h: New file.
2475 * hppa-linux-nat.c: New file.
2476 * hppa-linux-tdep.c: New file.
2477
2a6228ef
RC
24782004-04-28 Randolph Chung <tausq@debian.org>
2479
2480 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
2481 return values.
2482 (hppa32_push_dummy_call): Fix small struct and floating point argument
2483 passing, and make sure the stack frame is properly aligned.
2484
82c10df6
AC
24852004-04-28 Andrew Cagney <cagney@redhat.com>
2486
d762c46a
AC
2487 * stack.c (print_stack_frame): Fix description.
2488
82c10df6
AC
2489 * NEWS: Mention gdb/gdbserver/configure execute permission
2490 changed. PR server/519.
2491
0faf0076
AC
24922004-04-28 Andrew Cagney <cagney@redhat.com>
2493
2494 * stack.c (print_stack_frame_stub): Delete declaration.
2495 (struct print_stack_frame_args, print_stack_frame)
2496 (print_frame_info, print_frame): Replace "source" with print what.
2497 Replace "print" with "print_level". Replace "args" with
2498 "print_args".
2499 * frame.h (show_and_print_stack_frame, print_stack_frame)
2500 (print_frame_info): Update declarations.
2501 * stack.c (select_and_print_frame, frame_command)
2502 (current_frame_command, up_command, down_command): Update calls -
2503 use get_selected_frame, pass "enum print_what" for source, do not
2504 call frame_relative_level.
2505 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
2506 * remote-rdp.c (remote_rdp_open): Ditto.
2507 * remote-mips.c (common_open): Ditto.
2508 * remote-e7000.c (e7000_start_remote): Ditto.
2509 * ocd.c (ocd_start_remote): Ditto.
2510 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
2511 * infrun.c (normal_stop): Ditto.
2512 * inflow.c (kill_command): Ditto.
2513 * infcmd.c (finish_command): Ditto.
2514 * corelow.c (core_open): Ditto.
2515 * tracepoint.c (finish_tfind_command): Ditto.
2516 * thread.c (info_threads_command, info_threads_command)
2517 (restore_current_thread, do_captured_thread_select): Ditto.
2518 * ada-tasks.c (task_command): Ditto.
2519
f4c5303c
OF
25202004-04-26 Orjan Friberg <orjanf@axis.com>
2521
2522 * frame.c: Include "observer.h".
2523 (frame_observer_target_changed): New function.
2524 (_initialize_frame): Attach target_changed observer.
2525 * regcache.c: Include "observer.h".
2526 (regcache_observer_target_changed): New function.
2527 (_initialize_regcache): Attach target_changed observer.
2528 * valops.c: Include "observer.h".
2529 (value_assign): Notify target_changed event when modifying register.
2530 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
2531
7270d8f2
OF
25322004-04-26 Orjan Friberg <orjanf@axis.com>
2533
2534 From Paul Koning <pkoning@equallogic.com>:
2535 * breakpoint.c (free_valchain): New function.
2536 (insert_bp_location, delete_breakpoint): Use free_valchain.
2537 (remove_breakpoint): Do not remove the valchain.
2538 (bpstat_stop_status): If not stopped by watchpoint, skip
2539 watchpoints when generating stop status list.
2540 * infrun.c (handle_inferior_event): Make
2541 stepped_after_stopped_by_watchpoint a global variable.
2542 * remote.c (remote_stopped_data_address): Return watch data
2543 address rather than zero if stepped_after_stopped_by_watchpoint is
2544 set.
2545
02d62932
MC
25462004-04-25 Michael Chastain <mec.gnu@mindspring.com>
2547
2548 Fix PR gdb/1626.
2549 * configure.in: Check for curses after termcap.
2550 On osf5.*, do not check for ncurses.
2551 * configure: Regenerate.
2552
3e9a183c
MK
25532004-04-25 Mark Kettenis <kettenis@gnu.org>
2554
c79ac407
MK
2555 * ppcobsd-nat.c: Include "ppc-tdep.h".
2556 * Makefile.in (ppcobsd-nat.o): Update dependencies.
2557
3e9a183c
MK
2558 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
2559 Fixes PR tdep/1623 and PR tdep/1624.
2560
38cc9c28
MC
25612004-04-24 Michael Chastain <mec.gnu@mindspring.com>
2562
2563 * xmodem.h, xmodem.c: Remove files.
2564 * Makefile.in: Remove references to xmodem.h, xmodem.c.
2565
7f07c5b6
RC
25662004-04-23 Randolph Chung <tausq@debian.org>
2567
2568 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
2569 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
2570 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
2571 for handling stackless frames.
2572 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
2573
9f7194c3
RC
25742004-04-23 Randolph Chung <tausq@debian.org>
2575
2576 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
2577 starts at a pc before the frame is created.
2578
dcff6009
JB
25792004-04-23 Joel Brobecker <brobecker@gnat.com>
2580
2581 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
2582
65951cd9
JG
25832004-04-23 Jerome Guitton <guitton@gnat.fr>
2584
2585 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
2586 use convert_typed_floating to get the appropriate format.
2587
abc485a1
RC
25882004-04-22 Randolph Chung <tausq@debian.org>
2589
2590 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
2591 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
2592 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
2593 (hppa_sign_extend): Add prototype.
2594 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
2595 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
2596 (sign_extend): Rename with hppa_ prefix and make non-static. Other
2597 hppa targets will also use these functions.
2598 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
2599 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
2600 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
2601 (hppa_gdbarch_init): Remove gdbarch setting of
2602 skip_trampoline_code, in_solib_call_trampoline and
2603 in_solib_return_trampoline.
2604 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
2605 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
2606 hppa_in_solib_call_trampoline.
2607 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
2608 Moved from hppa-tdep.c.
2609 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
2610 in_solib_call_trampoline and in_solib_return_trampoline.
2611
369aa520
RC
26122004-04-22 Randolph Chung <tausq@debian.org>
2613
2614 * hppa-tdep.c (hppa_debug): New variable.
2615 (find_unwind_entry, hppa_frame_cache): Add debug output.
2616 (_initialize_hppa_tdep): Add command to set debug flag.
2617
476be15e
AC
26182004-04-22 Andrew Cagney <cagney@redhat.com>
2619
2620 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
2621 "trad-frame.h".
2622 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
2623 signal trampoline unwinder.
2624 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
2625
d195bc9f
MK
26262004-04-22 Mark Kettenis <kettenis@gnu.org>
2627
2628 Add OpenBSD/powerpc support.
2629 * NEWS (New native configurations): Mention OpenBSD/powerpc.
2630 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
2631 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
2632 (ppc_collect_fpregset): New prototypes.
2633 * ppcobsd-nat.c: New file.
2634 * ppcobsd-tdep.c: New file.
2635 * ppcobsd-tdep.h: New file.
2636 * rs6000-tdep.c: Include "regset.h".
2637 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
2638 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
2639 New functions.
2640 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
2641 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
2642 (rs6000-tdep.o): Update dependencies.
2643 * configure.host: Add powerpc-*-openbsd.
2644 * configure.tgt: Add powerpc-*-openbsd.
2645 * config/powerpc/obsd.mh: New file.
2646 * config/powerpc/nm-obsd.h: New file.
2647 * config/powerpc/obsd.mt: New file.
2648
6f14cc33
AC
26492004-04-22 Andrew Cagney <cagney@redhat.com>
2650
fcf29e5f
AC
2651 * frame.h (show_frame_info): Delete declaration.
2652
6f14cc33
AC
2653 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
2654 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
2655 * m32r-tdep.c (m32r_frame_this_id): Ditto.
2656 * frv-tdep.c (frv_frame_this_id): Ditto.
2657 * avr-tdep.c (avr_frame_this_id): Ditto.
2658
e5786a5c
EZ
26592004-04-22 Elena Zannoni <ezannoni@redhat.com>
2660
2661 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
2662
26e75e5c
JB
26632004-04-22 Jim Blandy <jimb@redhat.com>
2664
2665 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
2666 register number zero.
2667
d8d65dd3
MS
26682004-04-21 Michael Snyder <msnyder@redhat.com>
2669
2670 * mips-tdep.c (heuristic_proc_start):
2671 Warning() already prefixes "Warning: ".
2672
9a4105ab
AC
26732004-04-21 Andrew Cagney <cagney@redhat.com>
2674
2675 * annotate.h (deprecated_annotate_starting_hook)
2676 (deprecated_annotate_stopped_hook)
2677 (deprecated_annotate_exited_hook)
2678 (deprecated_annotate_signal_hook)
2679 (deprecated_annotate_signalled_hook): Deprecate.
2680 * tracepoint.h (deprecated_create_tracepoint_hook)
2681 (deprecated_delete_tracepoint_hook)
2682 (deprecated_modify_tracepoint_hook)
2683 (deprecated_trace_find_hook)
2684 (deprecated_trace_start_stop_hook): Deprecate.
2685 * target.h (deprecated_target_new_objfile_hook): Deprecate.
2686 * remote.h (deprecated_target_resume_hook)
2687 (deprecated_target_wait_loop_hook): Deprecate.
2688 * gdbcore.h (deprecated_exec_file_display_hook)
2689 (deprecated_file_changed_hook): Deprecate.
2690 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
2691 * defs.h (deprecated_modify_breakpoint_hook)
2692 (deprecated_command_loop_hook, deprecated_show_load_progress)
2693 (deprecated_print_frame_info_listing_hook)
2694 (deprecated_query_hook, deprecated_warning_hook)
2695 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
2696 (deprecated_delete_breakpoint_hook)
2697 (deprecated_interactive_hook, deprecated_registers_changed_hook)
2698 (deprecated_readline_begin_hook, deprecated_readline_hook)
2699 (deprecated_readline_end_hook, deprecated_register_changed_hook)
2700 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
2701 (deprecated_context_hook, deprecated_target_wait_hook)
2702 (deprecated_attach_hook, deprecated_detach_hook)
2703 (deprecated_call_command_hook, deprecated_set_hook)
2704 (deprecated_error_hook, deprecated_error_begin_hook)
2705 (deprecated_ui_load_progress_hook): Deprecate.
2706 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
2707 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
2708 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
2709 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
2710 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
2711 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
2712 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
2713 * annotate.c, aix-thread.c: Update.
2714
62cf13cc
AC
27152004-04-21 Andrew Cagney <cagney@redhat.com>
2716
b2e31a62
AC
2717 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
2718 * vaxnbsd-tdep.c: Include "gdb_string.h".
2719
62cf13cc
AC
2720 * symfile.c (symbol_file_add_from_memory): #if 0 function.
2721 (add_symbol_file_from_memory_command): #if 0 function body, call
2722 error instead.
2723
00e32a35
AC
27242004-04-21 Andrew Cagney <cagney@redhat.com>
2725
2726 * gdbcore.h: Update copyright.
2727 (deprecated_add_core_fns): Rename add_core_fns.
2728 * win32-nat.c (_initialize_core_win32): Update.
2729 * sun3-nat.c (_initialize_core_sun3): Update.
2730 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
2731 * rs6000-nat.c (_initialize_core_rs6000): Update.
2732 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
2733 * nto-tdep.c (_initialize_nto_tdep): Update.
2734 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
2735 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
2736 * mips-nat.c (_initialize_core_mips): Update.
2737 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
2738 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
2739 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
2740 * lynx-nat.c (_initialize_core_lynx): Update.
2741 * irix5-nat.c (_initialize_core_irix5): Update.
2742 * i386-interix-nat.c (_initialize_core_interix): Update.
2743 * cris-tdep.c (_initialize_cris_tdep): Update.
2744 * corelow.c (deprecated_add_core_fns): Update.
2745 * core-regset.c (_initialize_core_regset): Update.
2746 * core-aout.c (_initialize_core_aout): Update.
2747 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
2748 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
2749 * alpha-nat.c (_initialize_core_alpha): Update.
2750
13c7b1ca
JB
27512004-04-21 Jim Blandy <jimb@redhat.com>
2752
2753 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
2754
7b5a2f43
DJ
27552004-04-19 Daniel Jacobowitz <drow@mvista.com>
2756
2757 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
2758 Delete.
2759 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
2760 (read_attribute_value): Update calls to dwarf_alloc_block.
2761 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
2762 dwarf2_tmp_obstack.
2763 (psymtab_to_symtab_1): Likewise. Clean up using
2764 free_stack_comp_unit.
2765 (add_to_cu_func_list): Use the comp_unit_obstack.
2766
05cf31d1
JB
27672004-04-19 Joel Brobecker <brobecker@gnat.com>
2768
2769 * dwarf2read.c (dwarf2_flag_true_p): New function.
2770 (die_is_declaration): Use the function above. Add some comments.
2771
adf93a2f
MK
27722004-04-19 Mark Kettenis <kettenis@gnu.org>
2773
2774 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
2775 architecture when registering sparcnbsd_core_osabi_sniffer.
2776 Adjust comment.
2777
748894bf
MK
27782004-04-18 Mark Kettenis <kettenis@gnu.org>
2779
f622ad42
MK
2780 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
2781 return value.
2782
c4fc7f1b
MK
2783 Based on a patch from Brian Ford <ford@vss.fsi.com>:
2784 * i386-tdep.c: Correct register numbering scheme comments
2785 throughout.
2786 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
2787 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
2788 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
2789 (i386_gdb_arch_init): Likewise.
2790
b4ead1bd
MK
2791 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
2792 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
2793 ppcnbsd-tdep.o.
2794
748894bf
MK
2795 * m68k-tdep.h: Tweak comments.
2796 * m68k-tdep.c: Tweak comment.
2797
fdd72f95
RC
27982004-04-17 Randolph Chung <tausq@debian.org>
2799
2800 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
2801 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
2802 (hppa_hpux_som_init_abi): Set is_elf to 0.
2803 (hppa_hpux_elf_init_abi): Set is_elf to 1.
2804 * hppa-tdep.c (low_text_segment_address): Remove global.
2805 (record_text_segment_lowaddr): Pass in low address as parameter. Use
2806 section offset to calculate segment address.
2807 (internalize_unwinds): Define low_text_segment_address as local and
2808 pass to record_text_segment_lowaddr for ELF targets.
2809 (hppa_gdbarch_init): Zero fill tdep structure.
2810 (hppa_dump_tdep): Print tdep structure.
2811 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
2812
0f8d9d59
RC
28132004-04-17 Randolph Chung <tausq@debian.org>
2814
2815 * hppa-tdep.c (hppa_pseudo_register_read): Define.
2816 (hppa_gdbarch_init): Set pseudo_register_read.
2817 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
2818 * regcache.c (supply_register): Remove check for
2819 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
2820
7c46b9fb
RC
28212004-04-17 Randolph Chung <tausq@debian.org>
2822
2823 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
2824 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
2825 (hpread_adjust_stack_address): Move to hpread.c.
2826 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
2827 obj_private_struct): Move from tm-hppa.h.
2828 * hpread.c (hppa-tdep.h): Include.
2829 (hpread_adjust_stack_address): Move from hppa-tdep.c.
2830 (hpread_read_function_type, hpread_read_doc_function_type)
2831 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
2832 directly.
2833 * pa64solib.c (hppa-tdep.h): Include.
2834 * somsolib.c (hppa-tdep.h): Include.
2835 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
2836 inferior_status): Remove unused forward declarations.
2837 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
2838 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
2839 obj_private_struct): Move to hppa-tdep.h.
2840 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
2841
8d153463
RC
28422004-04-17 Randolph Chung <tausq@debian.org>
2843
2844 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
2845 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
2846 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
2847 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
2848 Remove forward declaration and make static.
2849 (hppa_reg_struct_has_addr): Remove.
2850
350c2e5b
JB
28512004-04-16 Joel Brobecker <brobecker@gnat.com>
2852
2853 * observer.sh: Move comments in sed command to first column.
2854
bbde78fa
JM
28552004-04-16 Jason Molenda (jmolenda@apple.com)
2856
2857 * frame.c: Minor typeo corrections in comments.
2858
e0270fd9
JB
28592004-04-16 Joel Brobecker <brobecker@gnat.com>
2860
2861 * observer.c (observer_test_first_notification_function): Update
2862 function profile.
2863 (observer_test_second_notification_function): Likewise.
2864 (observer_test_third_notification_function): Likewise.
2865
3d049254
MK
28662004-04-16 Mark Kettenis <kettenis@gnu.org>
2867
2868 From Brian Ford <ford@vss.fsi.com>:
2869 * i386-tdep.c (i386_coff_init_abi): New function.
2870 * i386-tdep.h (i386_coff_init_abi): New prototype.
2871 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
2872 register number translation functions for DWARF and DWARF 2.
2873
7867684d
JB
28742004-04-16 Joel Brobecker <brobecker@gnat.com>
2875
2876 * dwarf2read.c: Back out my previous change, it was incorrect.
2877
72bf9492
DJ
28782004-04-16 Daniel Jacobowitz <drow@mvista.com>
2879
2880 * dwarf2read.c: Include "hashtab.h".
2881 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
2882 has_namespace_info.
2883 (struct partial_die_info): Add comments. Use bitfields to reduce
2884 memory footprint. Add scope, scope_set, has_specification,
2885 spec_offset, die_parent, die_child, and die_sibling.
2886 (peek_die_abbrev): Add prototype.
2887 (partial_read_comp_unit_head): New function, broken out from
2888 dwarf2_build_psymtabs_hard.
2889 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
2890 Use partial_read_comp_unit_head. Initialize the CU and
2891 comp_unit_obstack. Update calls to read_partial_die and
2892 scan_partial_symbols. Use free_stack_comp_unit and
2893 load_partial_dies.
2894 (scan_partial_symbols): Change PDI to a pointer. Use the child and
2895 sibling pointers to walk partial DIEs. Call fixup_partial_die.
2896 Update calls to helper functions. Remove NAMESPACE argument.
2897 Update comments.
2898 (partial_die_parent_scope, partial_die_full_name): New functions.
2899 (add_partial_symbol): Remove namespace argument. Update call to
2900 pdi_needs_namespace. Use partial_die_full_name. Handle
2901 DW_TAG_namespace. Check has_namespace_info flag.
2902 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
2903 tag. Handle namespaces.
2904 (add_partial_namespace, add_partial_enumeration): Simplify.
2905 (guess_structure_name): New function, derived from
2906 add_partial_structure.
2907 (add_partial_structure): Remove.
2908 (determine_class_name): Update comment.
2909 (dwarf2_read_abbrevs): Set has_namespace_info flag.
2910 (is_type_tag_for_partial, load_partial_dies): New functions.
2911 (read_partial_die): Pass abbrev and abbrev_len as arguments.
2912 Record specifications instead of following them immediately.
2913 (find_partial_die_in_comp_unit, find_partial_die)
2914 (fixup_partial_die, free_stack_comp_unit)
2915 (hashtab_obstack_allocate, dummy_obstack_deallocate)
2916 (partial_die_hash, partial_die_eq): New functions.
2917 * Makefile.in (hashtab_h): Define.
2918 (dwarf2read.o): Update dependencies.
2919 (observer_inc, observer_h): Move to the correct section.
2920
fdc860a3
JB
29212004-04-15 Joel Brobecker <brobecker@gnat.com>
2922
2923 * dwarf2read.c (dwarf2_attribute_true_p): New function.
2924 (die_is_declaration): Use the function above. Add comment.
2925
dc718098
JB
29262004-04-15 Joel Brobecker <brobecker@gnat.com>
2927
2928 * dwarf2read.c (read_structure_scope): Identify stub types
2929 using die_is_declaration() only.
2930
8718a420
RM
29312004-04-15 Roland McGrath <roland@redhat.com>
2932
2933 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
2934 argument instead of NAME.
2935 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
2936 in call to symbol_file_add_with_addrs_or_offsets.
2937 (build_addr_info): New function, helper for ...
2938 (symbol_file_add_from_memory): New function.
2939 (add_symbol_file_from_memory_command): New function using that.
2940 (_initialize_symfile): Register it for add-symbol-file-from-memory.
2941 (pre_add_symbol_hook): Add const to argument type.
2942 * symfile.h (symbol_file_add_from_memory): Declare it.
2943
8b910bab
MK
29442004-04-15 Mark Kettenis <kettenis@gnu.org>
2945
9f076e7a
MK
2946 * NEWS (New native configurations): Mention OpenBSD/vax.
2947 * configure.host: Add vax-*-openbsd*.
2948 * config/vax/obsd.mh: New file.
2949 * config/vax/nm-obsd.h: New file.
2950
8b910bab
MK
2951 * vax-tdep.c: Include "regset.h".
2952 (vax_supply_gregset): New function.
2953 (vax_gregset): New variable.
2954 (vax_regset_from_core_section): New function.
2955 (vax_gdbarch_init): Set regset_from_core_section.
2956 * Makefile.in (vax-tdep.o): Update dependencies.
2957
7a464420
AC
29582004-04-15 Andrew Cagney <cagney@redhat.com>
2959
2960 * observer.c (normal_stop_subject, observer_notify_normal_stop)
2961 (observer_normal_stop_notification_stub)
2962 (observer_attach_normal_stop, observer_detach_normal_stop):
2963 Delete, replaced by #include "observer.inc".
2964 * infrun.c (normal_stop): Pass "stop_bpstat" to
2965 observer_notify_normal_stop.
2966 * Makefile.in (observer_inc): Define.
2967 (observer.o): Update dependencies.
2968 (observer.h, observer.inc): New rules.
2969 * observer.h: Delete file.
2970 * observer.sh: New file.
2971
e36ad527
MK
29722004-04-15 Mark Kettenis <kettenis@gnu.org>
2973
2974 * vax-tdep.c (vax_frame_cache): Fix typo.
2975
67b441e1
MK
29762004-04-14 Mark Kettenis <kettenis@gnu.org>
2977
6f606e1c
MK
2978 * NEWS (New native configurations): Mention NetBSD/vax.
2979 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
2980 * config/vax/nbsdelf.mh: New file.
2981 * config/vax/nbsdaout.mh: New file.
2982 * config/vax/nm-nbsd.h: New file.
2983 * config/vax/nm-nbsdaout.h: New file.
2984
9c5519a5
MK
2985 * vaxnbsd-tdep.c: New file.
2986 * Makefile.in (vaxnbsd-tdep.o): New dependency.
2987 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
2988 * config/vax/nbsd.mt: New file.
2989 * config/vax/tm-nbsd.h: New file.
2990
4844a614
MK
2991 * Makefile.in (vaxbsd-nat.o): New dependency.
2992
67b441e1
MK
2993 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
2994 * vax-tdep.c (vax_store_arguments): Remove struct_return and
2995 struct_addr arguments. Don't push return value address.
2996 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
2997 arguments to vax_store_arguments. Store return value address in
2998 R1.
2999 (vax_store_struct_return, vax_extract_return_value)
3000 (vax_store_return_value): Remove functions.
3001 (vax_return_value): New function.
3002 (vax_gdbarch_init): Set return value. Don't set
3003 deprecated_store_struct_return, deprecated_extract_struct_return
3004 and deprecated_store_return_value.
3005
6672f2ae
AS
30062004-04-14 Andreas Schwab <schwab@suse.de>
3007
3008 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
3009 value buffer.
3010 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
3011
7346c184
MK
30122004-04-14 Mark Kettenis <kettenis@gnu.org>
3013
3014 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
3015 (vax_unwind_dummy_id): New functions.
3016 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
3017 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
3018 variables.
3019 (vax_fix_call_dummy): Remove function.
3020 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
3021 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
3022 call_dummy_location, deprecated_call_dummy_words,
3023 deprecated_sizeof_call_dummy_words,
3024 deprecated_call_dummy_breakpoint_offset,
3025 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
3026 and deprecated_dummy_write_sp.
3027
58e23df4
DC
30282004-04-13 David Carlton <carlton@kealia.com>
3029
3030 * MAINTAINERS: Move myself to "paper trail" section.
3031
5e6b39ff
MK
30322004-04-12 Mark Kettenis <kettenis@gnu.org>
3033
7def7fef
MK
3034 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
3035 "trad-frame.h".
3036 (vax_frame_init_saved_regs): Remove function.
3037 (vax_sigtramp_saved_pc): Remove function.
3038 (vax_frame_saved_pc): Remove function.
3039 (vax_frame_args_address): Remove function.
3040 (vax_frame_num_args): Rewrite.
3041 (vax_frame_chain): Remove function.
3042 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
3043 VAX_FP_REGNUM.
3044 (vax_pop_frame): Likewise.
3045 (vax_saved_pc_after_call): Remove function.
3046 (struct vax_frame_cache): New structure.
3047 (vax_frame_cache): New function.
3048 (vax_frame_this_id): New function.
3049 (vax_frame_prev_register): New function.
3050 (vax_frame_unwind): New variable.
3051 (vax_frame_sniffer): New function.
3052 (vax_frame_base_address): New function.
3053 (vax_frame_args_address): New function.
3054 (vax_frame_base): New variable.
3055 (vax_unwind_pc): New function.
3056 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
3057 deprecated_fp_regnum, deprecated_saved_pc_after_call,
3058 deprecated_frame_chain, deprecated_frame_saved_pc,
3059 deprecated_frame_args_address and
3060 deprecated_frame_init_saved_regs.
3061 * Makefile.in (vax-tdep.o): Update dependencies.
3062
53284fc1
MK
3063 * vaxbsd-nat.c: New file.
3064
5e6b39ff
MK
3065 * vax-tdep.h: Update copyright year. Adjust comments.
3066 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
3067 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
3068 (vax_regnum): New enum. Replacing...
3069 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
3070 (VAX_PS_REGNUM): ... these removed macros.
3071 * vax-tdep.c (vax_register_name): Remove prototype.
3072 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
3073 (vax_register_byte, vax_register_raw_size,
3074 vax_register_virtual_size, vax_register_virtual_type): Remove
3075 functions.
3076 (vax_register_type): New function.
3077 (vax_breakpoint_from_pc): Reorganize.
3078 (vax_gdbarch_init): Set register_type. Don't set
3079 deprecated_register_size, deprecated_register_bytes,
3080 deprecated_register_byte, deprecated_register_raw_size,
3081 deprecated_max_register_raw_size,
3082 deprecated_register_virtual_size,
3083 deprecated_max_register_virtual_size and
3084 deprecated_register_virtual_type. Add comment on stack direction.
3085
e9c71e9f
MK
30862004-04-11 Mark Kettenis <kettenis@gnu.org>
3087
3088 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
3089 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 3090 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 3091
d46f1176 30922004-04-10 Randolph Chung <tausq@debian.org>
8718a420 3093
d46f1176
RC
3094 * MAINTAINERS (write after approval): Add myself.
3095
a2a84a72
RC
30962004-04-07 Randolph Chung <tausq@debian.org>
3097
3098 * hppa-tdep.c (hppa_inner_than): Remove.
3099 (is_pa_2): Remove unused static variable.
8718a420 3100 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 3101
e85c3284
PH
31022004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
3103
3104 * language.h (language_defn): Add new la_post_parser field.
3105 * parser-defs.h (null_post_parser): New declaration (default for
3106 la_post_parser).
8718a420 3107
e85c3284
PH
3108 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
3109 insert call to that function.
3110 (parse_exp_in_context): New function, including code formerly in
8718a420 3111 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
3112 prefixification.
3113 (parse_expression_in_context): New exported function.
3114 (null_post_parser): New definition.
3115 * expression.h (parse_expression_in_context): Add declaration.
8718a420 3116
e85c3284
PH
3117 * p-lang.c (pascal_language_defn): Add trivial post-parser.
3118 * c-lang.c (c_language_defn): Ditto.
3119 (cplus_language_defn): Ditto.
3120 (asm_language_defn): Ditto.
3121 (minimal_language_defn): Ditto.
3122 * f-lang.c (f_language_defn): Ditto.
3123 * jv-lang.c (java_language_defn): Ditto.
3124 * language.c (unknown_language_defn): Ditto.
3125 (auto_language_defn): Ditto.
3126 (local_language_defn): Ditto.
3127 * m2-lang.c (m2_language_defn): Ditto.
3128 * scm-lang.c (scm_language_defn): Ditto.
3129 * obj-lang.c (objc_language_defn): Ditto.
8718a420 3130
d9f8c85b
MK
31312004-04-10 Mark Kettenis <kettenis@gnu.org>
3132
fa34704a
MK
3133 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
3134 (amd64nbsd_mcontext_addr): New function.
3135 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
3136 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
3137 with amd64nbsd_r_reg_offset, instead of building it on the fly.
3138
403e1656
MK
3139 * corelow.c (core_xfer_partial): Fix coding standards violation.
3140 Add support for TARGET_OBJECT_WCOOKIE.
3141
a57e5a95
MK
3142 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
3143 deprecated_pc_in_sigtramp.
3144 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
3145 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
3146 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
3147 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
3148 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
3149 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
3150 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
3151
377d9ebd
MK
3152 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
3153 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
3154 Fix typo.
3155
f0ef85a5
MK
3156 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
3157 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
3158 (amd64_collect_fxsave): Likewise.
3159
d9f8c85b
MK
3160 * i386-sol2-tdep.c: Include "gdb_string.h".
3161 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
3162 name.
3163 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
3164
75f501b5
MK
31652004-04-10 Mark Kettenis <kettenis@gnu.org>
3166
3167 * i386-sol2-tdep.c: Include "solib-svr4.h".
3168 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
3169 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
3170 * config/i386/tm-i386sol2.h: Include :solib.h".
3171 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
3172 solib-svr4.o and solib-legacy.o.
3173 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
3174 solib-svr4.o.
3175
b31bc724
MK
31762004-04-09 Mark Kettenis <kettenis@gnu.org>
3177
18bbbd9e
MK
3178 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
3179 whether a register is supplied by PTRACE_GETFPREGS.
3180 (store_inferior_registers): Likewise.
3181 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
3182 whether a register is supplied by PT_GETFPREGS.
3183 (store_inferior_registers): Likewise.
3184
3c30bf1b
MK
3185 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
3186 * config/i386/linux64.mt (TDEPFILES): Likewise.
3187
a4194092
MK
3188 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
3189
911bc6ee
MK
3190 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
3191 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
3192 the program counter is in the range specified by `struct
3193 gdbarch_tdep'.
3194 * amd64-linux-tdep.c: Include "symtab.h".
3195 (amd64_linux_pc_in_sigtramp): Remove function.
3196 (amd64_linux_sigtramp_p): New function.
3197 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
3198 deprecated_pc_in_sigtramp.
3199 * amd64nbsd-tdep.c: Include "symtab.h".
3200 (amd64nbsd_sigtramp_p): New function.
3201 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
3202 deprecated_pc_in_sigtramp.
3203 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
3204 few comments.
3205 (amd64obsd_pc_in_sigtramp): Remove function.
3206 (amd64obsd_sigtramp_p): New function.
3207 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
3208 deprecated_pc_in_sigtramp.
3209 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
3210 (i386bsd_pc_ins_sigtramp): Remove prototype.
3211 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
3212 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
3213 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
3214 the program counter is in the range specified by `struct
3215 gdbarch_tdep'.
3216 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
3217 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
3218 (i386_go32_pc_in_sigtramp): Remove function.
3219 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
3220 Initialize TDEP->sigtramp_p.
3221 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
3222 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
3223 deprecated_pc_in_sigtramp.
3224 * i386-linux-tdep.c: Adjust comments.
3225 (i386_linux_pc_in_sigtramp): Remove function.
3226 (i386_linux_sigtramp_p): New function.
3227 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
3228 deprecated_pc_in_sigtramp.
3229 * i386-nto-tdep.c: Update copyright year.
3230 (i386nto_pc_in_sigtramp): Remove function.
3231 (i386nto_sigtramp_p): New function.
3232 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
3233 SP_REGNUM.
3234 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
3235 deprecated_pc_in_sigtramp.
3236 * i386-sol2-tdep.c: Update copyright year.
3237 (i386_sol2_pc_in_sigtramp): Remove function.
3238 (i386_sol2_sigtramp_p): New function.
3239 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
3240 deprecated_pc_in_sigtramp.
3241 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
3242 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
3243 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
3244 deprecated_sigtramp_start and deprecated_sigtramp_end.
3245 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
3246 (i386nbsd_pc_in_sigtramp): Remove function.
3247 (i386nbsd_sigtramp_p): New function.
3248 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
3249 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
3250 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
3251 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
3252 (i386obsd_pc_in_sigtramp): Remove function.
3253 (i386obsd_sigtramp_p): New function.
3254 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
3255 functions.
3256 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
3257 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
3258 TDEP->sigtramp_p.
3259 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
3260 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
3261 dependencies.
3262
e083e6ec
MK
3263 * config/i386/i386aout.mt: Remove file.
3264
bd153b94
MK
3265 * configure.tgt: Remove i[34567]86-*-go32*,
3266 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
3267 and i[34567]86-*-isc*. Set gdb_target to i386 for
3268 i[34567]86-*-netware* and i[34567]86-*-*.
3269 * config/i386/i386.mt: New file.
3270 * config/i386/embed.mt: Remove file.
3271 * config/i386/go32.mt: Remove file.
3272 * config/i386/i386nw.mt: Remove file.
3273 * config/i386/i386v.mt: Remove file.
3274 * config/i386/tm-go32.h: Remove file.
3275
4a1bcc8c
MK
3276 * tui/tui-hooks.c: Include "readline/readline.h" after
3277 "gdb_curses.h" instead of before.
3278 * tui/tui-io.c: Likewise.
3279
f9a79064
MK
3280 * tui/tui.c: Fix typo in comment.
3281
b31bc724
MK
3282 * sparc64-tdep.c (sparc_address_from_register): Remove function.
3283
f83f82bc
AC
32842004-04-08 Andrew Cagney <cagney@redhat.com>
3285
3286 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
3287 (deprecated_exception_support_initialized): Declare.
8718a420 3288 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
3289 (initialize_hp_cxx_exception_support)
3290 (child_enable_exception_callback): Update.
3291 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
3292 (deprecated_exception_support_initialized): Rename
3293 deprecated_exception_catchpoints_are_fragile and
3294 deprecated_exception_support_initialized.
3295 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
3296
3297 * symtab.c (deprecated_hp_som_som_object_present): Rename
3298 hp_som_som_object_present.
3299 * symtab.h (deprecated_hp_som_som_object_present): Declare.
3300 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
3301 Update. Delete extern declaration.
3302 * valops.c (hp_som_som_object_present): Ditto.
8718a420 3303 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
3304 (parse_nested_classes_for_hpacc): Ditto.
3305 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 3306 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
3307 (initialize_hp_cxx_exception_support): Ditto.
3308 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 3309 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 3310 (cp_print_class_method): Ditto.
8718a420 3311 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
3312 (c_type_print_base): Ditto.
3313 * c-exp.y (hp_som_som_object_present): Ditto.
3314
fb2be677
AC
33152004-04-08 Andrew Cagney <cagney@redhat.com>
3316
3317 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
3318 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
3319 (frame_unwind_find_by_frame): Re-implement the unwind code so
3320 that it can both prepend and append sniffers. Replace
3321 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
3322 * tramp-frame.c (tramp_frame_append): Use
3323 frame_unwind_prepend_unwinder.
3324 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
3325 frame_unwind_register_unwinder.
3326 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
3327 tramp_frame_append.
3328 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 3329 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
3330 (mips_linux_init_abi): Update.
3331
67faf007
KB
33322004-04-08 Kevin Buettner <kevinb@redhat.com>
3333
3334 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
3335 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
3336 file support.
3337
8973ff21
KB
33382004-04-07 Kevin Buettner <kevinb@redhat.com>
3339
3340 * ia64-tdep.c (elf.h): Don't include.
3341 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
3342
4a0e2f88
JM
33432004-04-07 Jason Molenda (jmolenda@apple.com)
3344
3345 * frame.h: Typeo corrections in comments.
3346
9872ad24
JB
33472004-04-07 Jim Blandy <jimb@redhat.com>
3348
3349 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
3350 %esp and %ebp
3351
70b216c8
MK
33522004-04-07 Mark Kettenis <kettenis@gnu.org>
3353
11d5789c
MK
3354 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
3355 * config/sparc/linux64.mt (TDEPFILES): Likewise.
3356 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3357 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
3358 and solib-legacy.o.
3359 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
3360 solib-svr4.o.
3361 * config/sparc/tm-sol2.h: Update copyright year. Include
3362 "solib.h".
3363
70b216c8
MK
3364 * sparc-sol2-tdep.c: Update copyright year. Include
3365 "solib-svr4.h".
3366 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
3367 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
3368 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 3369 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
3370 dependencies.
3371
6339dc9e
AC
33722004-04-06 Andrew Cagney <cagney@redhat.com>
3373
3374 * infttrace.c: Include "infttrace.h".
3375 * infttrace.h: Include "target.h".
3376 * Makefile.in (infttrace_h): Update.
3377 (infttrace.o): Update.
8718a420 3378
93449403
AC
33792004-04-06 Andrew Cagney <cagney@redhat.com>
3380
6d518969
AC
3381 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
3382 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
3383 move extern declarations from here ...
3384 * infttrace.h: ... to here.
3385 * Makefile.in (hppah-nat.o): Update dependencies.
3386
85f4f2d8
AC
3387 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
3388 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 3389 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
3390 (hppa_breakpoint_from_pc): Delete.
3391
93449403
AC
3392 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
3393
71456ec6
AC
33942004-04-05 Andrew Cagney <cagney@redhat.com>
3395
3396 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
3397 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
3398 <sys/file.h>.
8718a420 3399
4c02c60c
AC
34002004-04-06 Randolph Chung <tausq@debian.org>
3401
3402 Committed by Andrew Cagney (mechanical change).
3403 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
3404 exception_catchpoints_are_fragile, find_stub_with_shl_get,
3405 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
3406 child_enable_exception_callback, current_ex_event,
3407 null_symtab_and_line, child_get_current_exception_event,
3408 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
3409 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
3410 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
3411 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
3412 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
3413 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
3414 Move hpux-specific definitions ...
3415 * hppa-hpux-tdep.c: ... to here.
3416
3a515653
AC
34172004-04-05 Andrew Cagney <cagney@redhat.com>
3418
3419 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
3420 skip_prologue_using_sal.
3421
c1730d02
AC
34222004-04-05 Andrew Cagney <cagney@redhat.com>
3423
3424 * config/i386/tm-i386.h: Delete file.
3425 * config/i386/tm-vxworks.h: Update copyright, do not include
3426 "tm-i386.h".
3427 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
3428 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
3429 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
3430 * config/i386/ncr3000.mt (TM_FILE): Delete.
3431 * config/i386/interix.mt (TM_FILE): Delete.
3432 * config/i386/i386v.mt (TM_FILE): Delete.
3433 * config/i386/i386nw.mt (TM_FILE): Delete.
3434 * config/i386/i386gnu.mt (TM_FILE): Delete.
3435 * config/i386/i386aout.mt (TM_FILE): Delete.
3436 * config/i386/embed.mt (TM_FILE): Delete.
3437
8b67aa36
KB
34382004-04-05 Kevin Buettner <kevinb@redhat.com>
3439
3440 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
3441 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
3442 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
3443 (accg7_regnum): New constants.
3444 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
3445 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
3446 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
3447 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
3448 for accg registers.
3449 (frv_register_sim_regno): Update spr_map[].
3450
3c7012f5
AC
34512004-04-04 Andrew Cagney <cagney@redhat.com>
3452
3453 * config/mips/xm-riscos.h: Delete.
3454 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
3455 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
3456 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
3457 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
3458 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
3459 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
3460 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
3461 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
3462 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
3463 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
3464 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
3465 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
3466 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
3467 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
3468 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
3469 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
3470 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
3471 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
3472 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
3473 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
3474 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
3475 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
3476 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
3477 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
3478 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
3479 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 3480
3c7012f5
AC
3481 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
3482 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
3483 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
3484 * configure.host: Remove m680[01]0-sun-sunos3*,
3485 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
3486 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
3487 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
3488 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
3489 mips-*-riscos*.
3490 * NEWS: Mention removed systems.
3491
99d16a21
AC
34922004-04-04 Andrew Cagney <cagney@redhat.com>
3493
3494 GDB 6.1 release created from 6.1 branch.
3495
6cdf9d98
AC
34962004-04-04 Andrew Cagney <cagney@redhat.com>
3497
98d346c3
AC
3498 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
3499 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3500 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
3501
6cdf9d98
AC
3502 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
3503 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
3504 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
3505
859a326d
JB
35062004-04-03 Jim Blandy <jimb@redhat.com>
3507
3508 * MAINTAINERS: Chris Faylor has changed employers; add him to
3509 "paper trail" section, and update his E-mail address.
3510
b87178c3
AC
35112004-04-03 Andrew Cagney <cagney@redhat.com>
3512
4ea2acf0
AC
3513 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
3514 generic dummy frames.
3515 * dummy-frame.c: Update copyright.
3516 (dummy_frame_sniffer): Delete check for generic dummy frames.
3517
d0bd2d18 3518 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 3519 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
3520 (REG_PARM_STACK_SPACE): Delete.
3521 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
3522 Inline reference to REG_PARM_STACK_SPACE.
3523
b87178c3
AC
3524 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
3525 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
3526 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
3527 (FRAME_BASE_BEFORE_SIGTRAMP)
3528 (hppa32_hpux_frame_base_before_sigtramp)
3529 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
3530 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
3531 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
3532 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
3533 (FRAME_BASE_BEFORE_SIGTRAMP)
3534 (hppa64_hpux_frame_base_before_sigtramp)
3535 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
3536
43e2e1a0
AC
35372004-04-03 Andrew Cagney <cagney@redhat.com>
3538
3539 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
3540
ddc135a4
AC
35412004-04-02 Andrew Cagney <cagney@redhat.com>
3542
3543 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
3544 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
3545 * dummy-frame.h: Delete out-of-date comments.
3546 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
3547 * gdbarch.h, gdbarch.c: Re-generate.
3548
d15bfd3a 35492004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 3550
d15bfd3a
AC
3551 Committed by Andrew Cagney <cagney@redhat.com>.
3552 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
3553 into account an instruction saving a register if we have already
3554 seen an earlier instruction saving that same register.
3555
f04ceafa
AC
35562004-04-02 Andrew Cagney <cagney@redhat.com>
3557
08be3abd
AC
3558 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
3559 * gdbarch.h, gdbarch.c: Re-generate.
3560 * frame.c (legacy_get_prev_frame): Delete references to
3561 DEPRECATED_INIT_FRAME_PC_FIRST.
3562
f04ceafa
AC
3563 * infrun.c (pc_in_sigtramp): Delete function.
3564 (check_sigtramp2): Inline call to pc_in_sigtramp, use
3565 get_frame_type.
3566
08e69816
AC
35672004-04-02 Andrew Cagney <cagney@redhat.com>
3568
3569 * infrun.c (handle_step_into_function): Delete code conditional on
3570 legacy_frame_p.
3571 (handle_inferior_event, step_over_function): Ditto.
3572
adb54772
AC
35732004-04-02 Andrew Cagney <cagney@redhat.com>
3574
3575 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
3576 "previous frame inner to this frame" test.
3577
304396fb
AC
35782004-04-02 Andrew Cagney <cagney@redhat.com>
3579
3580 * frame.c (safe_frame_unwind_memory): New function.
3581 * frame.h (safe_frame_unwind_memory): Declare. Update description
3582 of /safe_/ methods.
3583 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
3584 "next_frame". Use safe_frame_unwind_memory.
3585 (tramp_frame_sniffer): Update call to tramp_frame_start.
3586
6502dd73
DJ
35872004-04-01 Daniel Jacobowitz <drow@mvista.com>
3588
3589 * dwarf2read.c (dwarf2_objfile_data_key): New.
3590 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
3591 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
3592 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
3593 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
3594 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
3595 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
3596 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
3597 Remove variables.
3598 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
3599 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
3600 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
3601 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
3602 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
3603 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
3604 Remove macros.
3605 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
3606 data.
3607 (dwarf2_locate_sections, dwarf2_build_psymtabs)
3608 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
3609 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
3610 (read_partial_die, read_full_die, read_indirect_string)
3611 (dwarf_decode_line_header, dwarf_decode_macros)
3612 (dwarf2_symbol_mark_computed): Remove use of removed macros.
3613 Update uses of removed variables.
3614 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
3615 of removed macros.
3616 (_initialize_dwarf2_read): New function.
3617 * symfile.h (dwarf2_has_info): Update prototype.
3618 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
3619 * elfread.c (elf_symfile_read): Likewise.
3620
408752b0
JB
36212004-04-01 Jim Blandy <jimb@redhat.com>
3622
9f744501
JB
3623 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
3624 function for register numbers on all the rs6000-derived targets.
3625 (rs6000_gdbarch_init): Don't register a separate
3626 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
3627 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
3628 variants.
3629
408752b0
JB
3630 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
3631 numbering.
3632
2de41bce
PH
36332004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3634
3635 * valarith.c: Update copyright notice.
3636 (value_add): Handle range types.
3637 (value_sub): Ditto.
3638 (value_equal): Ditto.
3639 (value_less): Ditto.
3640 (value_neg): Ditto.
3641 (value_complement): Ditto.
8718a420 3642 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 3643 eliminiating unnecessary COERCE_ENUMs.
8718a420 3644
5613d8d3
AC
36452004-03-31 Andrew Cagney <cagney@redhat.com>
3646
3647 * frame.h (frame_unwind_id): Declare.
3648 * frame.c (frame_unwind_id): New function.
3649 (get_prev_frame_1): New function.
3650 (frame_debug_got_null_frame): New function.
3651 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
3652 code proper to prev_frame, update description.
3653 * infrun.c (step_over_function): Use frame_unwind_id.
3654
c4557624
JB
36552004-04-31 J. Brobecker <brobecker@gnat.com>
3656
3657 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
3658 (hppa64_push_dummy_call): Likewise.
3659
3e6bb910
JB
36602004-03-30 Jim Blandy <jimb@redhat.com>
3661
3662 From Ulrich Weigand:
3663 * utils.c (query): Do not use a va_list variable multiple times.
3664
a2f23071
DJ
36652004-03-29 Daniel Jacobowitz <drow@mvista.com>
3666
3667 * Makefile.in (linux_nat_h): Update dependencies.
3668 * configure.in: Check for <gnu/libc-version.h>.
3669 * configure: Regenerate.
3670 * config.in: Regenerate.
3671 * linux-nat.h: Include "target.h". Add waitstatus field to
3672 struct lwp_info.
3673 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
3674 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
3675 to.
3676 (lin_lwp_handle_extended): New function. Handle clone events.
3677 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
3678 thread exit events.
3679 (child_wait): Handle clone events.
3680 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
3681 * linux-nat.c (linux_enable_event_reporting): Turn on
3682 PTRACE_O_TRACECLONE.
3683 (linux_handle_extended_wait): Handle clone events.
3684 * thread-db.c: Include <gnu/libc-version.h>.
3685 (struct private_thread_info): Add dying flag.
3686 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
3687 higher.
3688 (attach_thread): Update comments. Handle dying threads.
3689 (detach_thread): Set the dying flag.
3690 (check_event): Always call attach_thread.
3691
8d5f9dcb
DJ
36922004-03-29 Daniel Jacobowitz <drow@mvista.com>
3693
3694 * mips-tdep.c (mips_pdr_data): New.
3695 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
3696 (_initialize_mips_tdep): Initialize mips_pdr_data.
3697
66337bb1
CV
36982004-03-29 Corinna Vinschen <vinschen@redhat.com>
3699
3700 * minsyms.c (install_minimal_symbols): Move dropping leading
3701 char from linkage name from here...
3702 (prim_record_minimal_symbol_and_info): ...to here. Simplify
3703 test for "__gnu_compiled*" symbols.
3704
e802b915
JB
37052004-03-28 Jim Blandy <jimb@redhat.com>
3706
3707 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
3708 registers to temp register r0 and byte stores as prologue
3709 instructions.
3710
72b56458
AC
37112004-03-28 Andrew Cagney <cagney@redhat.com>
3712
3713 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
3714 arm*-*-*.
3715
0bfbda3b
SC
37162004-03-28 Stephane Carrez <stcarrez@nerim.fr>
3717
3718 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
3719 and switch the layout to force a display of register window.
3720
5a7225ed
JB
37212004-02-26 J. Brobecker <brobecker@gnat.com>
3722
3723 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
3724 of the INTEGER class.
3725
81a07a45
JB
37262004-03-26 Jim Blandy <jimb@redhat.com>
3727
3728 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
3729 bytes long on PPC GNU/Linux.
3730
8c691c7a
DC
37312004-03-26 David Carlton <carlton@kealia.com>
3732
3733 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
3734
103a0089
AC
37352004-03-25 Andrew Cagney <cagney@redhat.com>
3736
3737 * PROBLEMS: Add general section titles, remove references to
3738 specific releases.
3739
7a5ea0d4
DJ
37402004-03-25 Daniel Jacobowitz <drow@mvista.com>
3741
3742 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
3743 INT_REGISTER_SIZE.
3744 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
3745 FP_REGISTER_VIRTUAL_SIZE.
3746 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
3747 of DEPRECATED_REGISTER_RAW_SIZE.
3748 (arm_register_type): Add gdbarch argument.
3749 (arm_register_raw_size, arm_register_virtual_size): Delete.
3750 (arm_register_byte, arm_extract_return_value)
3751 (arm_store_return_value, arm_get_longjmp_target): Update references
3752 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
3753 (arm_gdbarch_init): Likewise. Don't set
3754 deprecated_register_raw_size, deprecated_register_virtual_size,
3755 deprecated_max_register_raw_size,
3756 deprecated_max_register_virtual_size, or
3757 deprecated_max_register_virtual_type. Do set register_type.
3758 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
3759 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
3760 (FP_REGISTER_VIRTUAL_SIZE): Delete.
3761 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
3762 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
3763 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
3764 INT_REGISTER_SIZE.
3765 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
3766 (remote_rdp_store_register): Likewise.
3767
5792a79b
DJ
37682004-03-24 Daniel Jacobowitz <drow@mvista.com>
3769
3770 * Makefile.in (mips-linux-tdep.o): Update dependencies.
3771 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
3772 to after osabi initialization.
3773 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
3774 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
3775 functions.
3776 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
3777 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
3778 variables.
3779 (mips_linux_init_abi): Append signal trampoline unwinders.
3780
1196bfda
AC
37812004-03-24 Andrew Cagney <cagney@redhat.com>
3782
3783 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
3784 * tramp-frame.c: Include "gdb_assert.h".
3785 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
3786 correct sizeof.
3787 (tramp_frame_append): Validate the tramp frame's instructions.
3788 * Makefile.in (tramp-frame.o): Update dependencies.
3789
4be282b4
AC
37902004-03-23 Andrew Cagney <cagney@redhat.com>
3791
3792 * trad-frame.h (trad_frame_set_reg_addr): Declare.
3793
69aec09b
AC
37942004-03-23 Andrew Cagney <cagney@redhat.com>
3795
3796 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
3797 Nasser as past testsuite/lib/ (and other) maintainers.
3798
63ed89b4
DJ
37992004-03-23 Daniel Jacobowitz <drow@mvista.com>
3800
3801 * infcmd.c (attach_command): Reread symbols if we already have
3802 an exec file.
3803
f3b36427
AC
38042004-03-23 Andrew Cagney <cagney@redhat.com>
3805
3806 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
3807
aa2a3f87
AC
38082004-03-23 Andrew Cagney <cagney@redhat.com>
3809
3810 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
3811 * gdbarch.h, gdbarch.c: Re-generate.
3812 * i386obsd-tdep.c (i386obsd_init_abi): Update.
3813 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
3814 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 3815 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 3816 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 3817 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
3818 (DEPRECATED_SIGTRAMP_START): Update.
3819 * blockframe.c (find_pc_sect_partial_function): Update.
3820 * arch-utils.c (legacy_pc_in_sigtramp): Update.
3821
00cac895
DJ
38222004-03-23 Daniel Jacobowitz <drow@mvista.com>
3823
3824 * remote.c (remote_open_1): Reopen the exec file and reread symbols
3825 if necessary.
3826
f561f026
AC
38272004-03-23 Andrew Cagney <cagney@redhat.com>
3828
3829 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
3830 predicate, deprecate.
3831 * gdbarch.h, gdbarch.c: Re-generate.
3832 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
3833 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
3834 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
3835 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
3836 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
3837 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
3838 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
3839 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
3840 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
3841 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
3842 * blockframe.c (find_pc_partial_function): Update.
3843 * breakpoint.c (bpstat_what): Update.
3844 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
3845 * frv-linux-tdep.c (frv_linux_init_abi): Update.
3846 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
3847 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
3848 * i386-interix-tdep.c (i386_interix_init_abi): Update.
3849 * i386-linux-tdep.c (i386_linux_init_abi): Update.
3850 * i386-nto-tdep.c (i386nto_init_abi): Update.
3851 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
3852 * i386-tdep.c (i386_sigtramp_frame_sniffer)
3853 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
3854 * i386bsd-tdep.c (i386bsd_init_abi): Update.
3855 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
3856 * i386obsd-tdep.c (i386obsd_init_abi): Update.
3857 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
3858 * infrun.c (pc_in_sigtramp): Update.
3859 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
3860 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
3861 * mips-tdep.c (mips_gdbarch_init): Update.
3862 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
3863 * ppc-linux-tdep.c: Update comment.
3864 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
3865 * shnbsd-tdep.c (shnbsd_init_abi): Update.
3866 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
3867 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
3868 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
3869 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
3870 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
3871 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
3872 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
3873 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 3874
8050c72f
AC
38752004-03-23 Andrew Cagney <cagney@redhat.com>
3876
d2259dd3
AC
3877 * tramp-frame.h, tramp-frame.h: New files.
3878 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
3879 Update rules to include "tramp-frame.h" and "tramp-frame.c".
3880
8050c72f
AC
3881 * Makefile.in: Update all dependencies.
3882
0db9b4b7
AC
38832004-03-23 Andrew Cagney <cagney@redhat.com>
3884
3885 * Makefile.in (trad_frame_h): Add $(frame_h).
3886 * trad-frame.h: Update copyright. Include "frame.h".
3887 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
3888 (trad_frame_set_id, trad_frame_get_id): Declare.
3889 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
3890 * trad-frame.c: Update copyright.
3891 (struct trad_frame_cache): Define.
3892 (trad_frame_cache_zalloc): New function.
3893 (trad_frame_set_id, trad_frame_get_id): New functions.
3894 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 3895
8e645ae7
AC
38962004-03-22 Andrew Cagney <cagney@redhat.com>
3897
3898 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
3899 s390_pltstub_unwind_cache.
3900 (s390_stub_frame_unwind_cache): Rename
3901 s390_pltstub_frame_unwind_cache.
3902 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
3903 (s390_stub_frame_prev_register): Rename
3904 s390_pltstub_frame_prev_register.
3905 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
3906 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
3907
3908 From Ulrich Weigand:
3909 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
3910 pointer calls like PLT calls.
3911
34fcf120
DJ
39122004-03-22 Daniel Jacobowitz <drow@mvista.com>
3913
3914 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
3915 PC rather than the partial function start address. Use the start
3916 address to sanity check the found PDR.
3917
5b917078
DJ
39182004-03-22 Daniel Jacobowitz <drow@mvista.com>
3919
3920 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
3921 linux_handle_extended_wait.
3922
8adf9e78
AC
39232004-03-22 Andrew Cagney <cagney@redhat.com>
3924
c3122434
AC
3925 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
3926 function.
3927
8adf9e78
AC
3928 * frame.h (generic_pop_current_frame): Delete declaration.
3929 (deprecate_pop_dummy_frame): Deprecate
3930 generic_pop_dummy_frame.
3931 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
3932 (generic_pop_current_frame): Delete function.
3933 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
3934 generic_pop_current_frame.
3935 * v850-tdep.c (v850_pop_frame): Update.
3936 * mcore-tdep.c (mcore_pop_frame): Update.
3937 * sh64-tdep.c (sh64_pop_frame): Update.
3938 * h8300-tdep.c (h8300_pop_frame): Update.
3939
90ba813f
AC
39402004-03-22 Andrew Cagney <cagney@redhat.com>
3941
3942 * frame.h (deprecated_pc_in_call_dummy): Rename
3943 generic_pc_in_call_dummy.
3944 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
3945 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
3946 generic_pc_in_call_dummy.
3947 (pc_in_dummy_frame): Make static.
3948 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
3949 * gdbarch.h, gdbarch.c: Re-generate.
3950 * dummy-frame.c (dummy_frame_sniffer): Simplify.
3951 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
3952 (legacy_get_prev_frame): Ditto.
3953 * inferior.h: Delete reference to generic_pc_in_call_dummy in
3954 comment.
8718a420 3955
ca4bb888
AC
39562004-03-21 Andrew Cagney <cagney@redhat.com>
3957
244675f9
AC
3958 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
3959 declaration and out-of-date comment.
3960 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3961 Delete function.
3962 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
3963 deprecated_pc_in_call_dummy.
3964
ca4bb888
AC
3965 * infrun.c (handle_inferior_event): For non legacy frames, use the
3966 frame ID and frame type to identify a signal trampoline. Update
3967 comments.
3968
1777c7b4
NW
39692004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
3970
3971 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
3972 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
3973
82417da5
AC
39742004-03-21 Andrew Cagney <cagney@redhat.com>
3975
3976 * frame-unwind.h: Update copyright.
3977 (struct frame_data): Add opaque declaration.
3978 (frame_sniffer_ftype): Declare.
3979 (struct frame_unwind): Add "unwind_data" and "sniffer".
3980 (frame_unwind_register_unwinder): Declare.
3981 (frame_unwind_find_by_frame): Add parameter "this_cache".
3982 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
3983 (legacy_get_prev_frame, legacy_get_prev_frame)
3984 (get_frame_type): Pass the prologue_cache to
3985 frame_unwind_find_by_frame.
3986 * frame-unwind.c (struct frame_unwind_table_entry): Add field
3987 "unwinder".
3988 (frame_unwind_register_unwinder): New function.
3989 (frame_unwind_find_by_frame): Handle an unwind sniffer.
3990
b2ba182e
PH
39912004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
3992
3993 * bcache.c (print_percentage): Use floating point to avoid
3994 incorrect results when portion*100 overflows.
3995
81332287
KB
39962004-03-19 Kevin Buettner <kevinb@redhat.com>
3997
3998 * ppc_tdep.h (ppc_linux_frame_saved_pc)
3999 (ppc_linux_init_extra_frame_info)
4000 (ppc_linux_frameless_function_invocation)
4001 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
4002 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
4003 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
4004 (rs6000_frame_chain): Delete declarations.
4005 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
4006 (ppc_linux_init_extra_frame_info)
4007 (ppc_linux_frameless_function_invocation)
4008 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
4009 (ppc_linux_init_abi): Remove registration of above deleted functions.
4010 * rs6000-tdep.c (rs6000_init_extra_frame_info)
4011 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
4012 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
4013 (rs6000_pop_frame, rs6000_frameless_function_invocation)
4014 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
4015 (rs6000_gdbarch_init): Remove registration of above deleted functions.
4016 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
4017 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
4018 frame management for all OSABIs.
4019
61a65099
KB
40202004-03-19 Andrew Cagney <cagney@redhat.com>
4021
4022 Committed by Kevin Buettner <kevinb@redhat.com>.
4023
4024 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
4025 Update copyright.
4026 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
4027 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
4028 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
4029 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
4030 unwinders. #ifdef legacy frame code.
4031 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
4032 "frame-base.h".
4033 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
4034 (struct rs6000_frame_cache, rs6000_frame_cache)
4035 (rs6000_frame_this_id, rs6000_frame_prev_register)
4036 (rs6000_frame_sniffer, rs6000_frame_unwind)
4037 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
4038 (rs6000_frame_base): Implement a traditional frame unwinder.
4039 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
4040 frame unwinder.
4041
88f7da05
KB
40422004-03-19 Kevin Buettner <kevinb@redhat.com>
4043
4044 * breakpoint.c (adjust_breakpoint_address): Don't adjust
4045 breakpoint address for watchpoints or the catch eventpoints.
4046 Add new paramter ``bptype''. Adjust all callers.
4047
f826dce1
AC
40482004-03-19 Andrew Cagney <cagney@redhat.com>
4049
33cb8b0f
AC
4050 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
4051
f826dce1
AC
4052 * PROBLEMS: Delete note that ARM does not use frame code, problem
4053 fixed.
4054
43b1ab88
AC
40552004-03-18 Andrew Cagney <cagney@redhat.com>
4056
292ab034
AC
4057 * stack.c (return_command): Delete code wrapped in #ifdef
4058 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
4059
43b1ab88
AC
4060 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
4061
dbfe4626
AC
40622004-03-18 Andrew Cagney <cagney@redhat.com>
4063
4064 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
4065 DEPRECATED_IN_SIGTRAMP.
4066 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4067 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
4068 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4069 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4070 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4071 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4072 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4073 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4074 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
4075 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
4076
0cad6aec
AC
40772004-03-18 Andrew Cagney <cagney@redhat.com>
4078
4079 * frame-base.c: Update copyright. Include "gdb_obstack.h".
4080 (struct frame_base_table_entry): Define.
4081 (struct frame_base_table): Re-implement as a linked list.
4082 (frame_base_init): Re-implement.
4083 (frame_base_table): Delete function.
4084 (append_predicate): Delete function.
4085 (frame_base_append_sniffer): Update.
4086 (frame_base_set_default): Update.
4087 (frame_base_find_by_frame): Update.
4088 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
4089 * Makefile.in (frame-base.o): Update dependencies.
4090
9982c2e7
AC
40912004-03-17 Andrew Cagney <cagney@redhat.com>
4092
4093 * frame.c (legacy_get_prev_frame): Pass correct frame to
4094 frame_unwind_find_by_frame.
4095
8dfe8985
DC
40962004-03-17 David Carlton <carlton@kealia.com>
4097
4098 * NEWS: Mention C++ nested types and namespaces
4099
ed47347a
MC
41002004-03-16 Michael Chastain <mec.gnu@mindspring.com>
4101
4102 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
4103 and "Regressions since gdb 5.3.". Add known regressions since
4104 gdb 6.0.
4105
90aeadfc
DC
41062004-03-16 David Carlton <carlton@kealia.com>
4107
4108 * dwarf2read.c (process_structure_scope): Process children even
4109 when we're a declaration.
4110
73912b9b
AC
41112004-03-16 Andrew Cagney <cagney@redhat.com>
4112
4113 * symtab.h (find_pc_sect_partial_function): Delete declaration.
4114 * blockframe.c (find_pc_partial_function)
4115 (find_pc_sect_partial_function): Merge into a single
4116 find_pc_partial_function.
4117
283accbc
MK
41182004-03-16 Mark Kettenis <kettenis@gnu.org>
4119
4120 * i386bsd-nat.c: s/regno/regnum/g.
4121 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
4122 FP0_REGNUM.
4123 (store_inferior_registers): Likewise.
4124
f5b1afdf
MK
41252004-03-16 Mark Kettenis <kettenis@gnu.org>
4126
4127 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
4128 of i387_fill_fsave.
4129 (store_inferior_registers): Call i387_collect_fsave and
4130 i387_collect_fxsave instead of i387_fill_fsave and
4131 i387_fill_fxsave.
4132
41fe5eb3
AC
41332004-03-15 Andrew Cagney <cagney@redhat.com>
4134
4135 * Makefile.in (frame-unwind.o): Update dependencies.
4136 * frame-unwind.c: Include "gdb_obstack.h".
4137 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
4138 parameter.
4139 (append_predicate): Delete function.
4140 (struct frame_unwind_table_entry): New structure.
4141 (struct frame_unwind_table): Replace "sniffer" with "head" and
4142 "tail".
4143 (frame_unwind_append_sniffer): Update.
4144 (frame_unwind_find_by_frame): Update.
4145 (_initialize_frame_unwind): Registe frame_unwind_init using
4146 gdbarch_data_register_pre_init.
4147
3f63813d
MK
41482004-03-15 Mark Kettenis <kettenis@gnu.org>
4149
4150 * i386bsd-nat.c: Update copyright year.
4151 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
4152 define unconditionally.
4153
3248c325 41542004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
4155
4156 * i387-tdep.h (i387_collect_fsave): New prototype.
4157 * i387-tdep.c (i387_collect_fsave): New function containing most
4158 of the code from i387_fill_fsave.
3248c325 4159 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 4160
871fbe6a
MK
41612004-03-15 Mark Kettenis <kettenis@gnu.org>
4162
4163 * i386-linux-tdep.c: Update copyright year.
4164 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
4165 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
4166 svr4_ilp32_link_map_offsets instead of
4167 i386_linux_svr4_fetch_link_map_offsets.
4168
8176b9b8
DC
41692004-03-15 David Carlton <carlton@kealia.com>
4170
4171 Fix for PR c++/1553:
4172 * dwarf2read.c (read_structure_type): Determine type name by
4173 calling determine_class_name.
4174 (determine_class_name): New.
4175 (determine_prefix): Look at TYPE_TAG_NAME and call
4176 determine_class_name when appropriate.
4177 (determine_prefix_aux, class_name): Delete.
9d58e29d 4178 (read_namespace): Set die->type.
8176b9b8 4179
fe8bf7d7
KB
41802004-03-15 Kevin Buettner <kevinb@redhat.com>
4181
4182 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
4183 unused macro definition. The definition in target.h (or perhaps
4184 elsewhere) takes precedence.
4185
ed6edd9b
AC
41862004-03-15 Andrew Cagney <cagney@redhat.com>
4187
f9be684a
AC
4188 * ppc-tdep.h: Update copyright.
4189 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
4190 function signatures to match "regsets.h".
4191 * ppc-linux-tdep.c: Include "regset.h".
4192 (ELF_GREGSET_SIZE): Delete.
4193 (right_supply_register): New function.
4194 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
4195 using right_supply_register.
4196 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
4197 functions.
4198 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
4199 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
4200 (_initialize_ppc_linux_tdep): Do not register
4201 ppc_linux_regset_core_fns.
4202 (ppc_linux_regset_from_core_section): Replace
4203 fetch_core_registers.
4204 (ppc_linux_regset_core_fns): Delete.
4205 * ppc-linux-nat.c: (right_fill_reg): New function.
4206 (supply_gregset): Update call to ppc_linux_supply_gregset.
4207 (fill_gregset): Clear the register set, use right_fill_reg.
4208 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
4209 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
4210
ed6edd9b
AC
4211 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
4212 unsigned.
4213
030f20e1
AC
42142004-03-15 Andrew Cagney <cagney@redhat.com>
4215
4216 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
4217 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
4218 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
4219 and register_gdbarch_data.
4220 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
4221 (struct gdbarch_data): Replace "init" by "pre_init" and
4222 "post_init".
4223 * gdbarch.h, gdbarch.c: Re-generate.
4224 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
4225 with"obstack", use OBSTACK_ZALLOC.
4226 (dwarf2_frame_ops): Delete.
4227 (dwarf2_frame_set_init_reg): Use gdbarch_data.
4228 (dwarf2_frame_init_reg): Use gdbarch_data.
4229 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 4230 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
4231 (_initialize_svr4_solib): Update.
4232 * user-regs.c (_initialize_user_regs): Update.
4233 * reggroups.c (_initialize_reggroup): Update.
4234 * regcache.c (_initialize_regcache): Update.
4235 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
4236 * libunwind-frame.c (_initialize_libunwind_frame): Update.
4237 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4238 * frame-unwind.c (_initialize_frame_unwind): Update.
4239 * frame-base.c (_initialize_frame_base): Update.
4240 * user-regs.c (user_reg_add): Update.
4241 * reggroups.c (reggroup_add): Update.
4242 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
4243 * libunwind-frame.c (libunwind_frame_set_descr): Update.
4244 * frame-unwind.c (frame_unwind_append_sniffer): Update.
4245 * frame-base.c (frame_base_table): Update.
4246 * remote.c (_initialize_remote): Update.
4247 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 4248
3111a3fc
AC
42492004-03-15 Andrew Cagney <cagney@redhat.com>
4250
4251 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
4252
5ecb7103
KB
42532004-03-15 Kevin Buettner <kevinb@redhat.com>
4254
4255 * Makefile.in (frv-linux-tdep.o): Add dependencies.
4256 * frv-linux-tdep.c: New file.
4257 * frv-tdep.c (struct gdbarch_tdep): Add new field
4258 ``sigcontext_reg_addr''.
4259 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
4260 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
4261 (frv_sigramp_frame_sniffer): New functions.
4262 (frv_sigtramp_frame_unwind): New static global.
4263 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
4264 sniffers.
4265 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
4266 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
4267
1ccda5e9
KB
42682004-03-15 Kevin Buettner <kevinb@redhat.com>
4269
4270 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
4271 but not via a call to error(), when unable to read memory.
4272
b375a0a5
KB
42732004-03-15 Kevin Buettner <kevinb@redhat.com>
4274
4275 * frv-tdep.c (frv_call_dummy_words): Delete.
4276 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
4277
4fdf6121
AC
42782004-03-15 Andrew Cagney <cagney@redhat.com>
4279
4280 * infrun.c (handle_step_into_function, step_over_function): Only
4281 update and use STEP_FRAME_ID when the system is using legacy
4282 frames. Update comments.
4283
34021503
MK
42842004-03-14 Mark Kettenis <kettenis@gnu.org>
4285
187e21d1
MK
4286 * amd64-linux-tdep.h: Remove file.
4287 * amd64-linux-tdep.c: Don't include "inferior.h" and
4288 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
4289 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
4290 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
4291 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
4292 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
4293 macros.
4294 (user_to_gdb_regmap): Remove variable.
4295 (amd64_linux_gregset_reg_offset): New variable.
4296 (amd64_core_fns): Remove variable.
4297 (fetch_core_registers): Remove function.
4298 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
4299 functions.
4300 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
4301 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
4302 * Makefile.in (amd64_linux_tdep_h): Remove.
4303 (amd64-linux-nat.o): Update dependencies.
4304 (amd64-linux-tdep.o): Update dependencies.
4305
99679982
MK
4306 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
4307 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
4308 functions.
4309 (fetch_inferior_registers, store_inferior_registers): Rewrite.
4310
34021503
MK
4311 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
4312 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
4313
134d01f1
DJ
43142004-03-14 Daniel Jacobowitz <drow@mvista.com>
4315
4316 * dwarf2read.c (read_structure_type): Rename from
8718a420 4317 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
4318 Return immediately if die->type is set. Call read_type_die before
4319 dwarf2_add_member_fn.
4320 (process_structure_scope): New function.
4321 (read_enumeration_type, process_enumeration_scope): New functions,
4322 broken out from read_enumeration. Don't create the enumeration
4323 type if it has already been created.
4324 (read_enumeration): Removed.
4325 (process_die): Call read_structure_type, process_structure_scope,
4326 read_enumeration_type, and process_enumeration_scope. Just call
4327 new_symbol for base and subrange types. Add a comment about other
4328 type dies.
4329 (read_type_die): Call read_enumeration_type.
4330 (add_partial_structure, new_symbol): Update comments.
4331
65760afb
SC
43322004-03-13 Stephane Carrez <stcarrez@nerim.fr>
4333
4334 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
4335
10f59415
SC
43362004-03-13 Stephane Carrez <stcarrez@nerim.fr>
4337
4338 * tui/tui-win.h (tui_get_cmd_list): Declare.
4339 * tui/tui-win.c (tui_command): New function.
4340 (tui_get_cmd_list): New function.
4341 (_initialize_tui_win): Moved initialization of tui command in
4342 tui_get_cmd_list.
4343
4344 * tui/tui-data.c (init_content_element): Setup new data members.
4345 (init_win_info): Likewise.
4346 (free_content_elements): Free it.
4347 * tui/tui-data.h (struct tui_data_element): Store the register
4348 content to print.
4349 (struct tui_data_info): Keep the current register group.
4350
4351 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
4352
4353 * tui/tui-regs.h (tui_show_registers): Update prototype.
4354 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
4355 (tui_resize_all): No need to calculate anything for register window.
4356 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
4357 (tui_set_register_element, tui_set_general_regs_content): Remove.
4358 (tui_set_special_regs_content): Remove.
4359 (tui_set_general_and_special_regs_content): Remove.
4360 (tui_set_float_regs_content): Remove.
4361 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
4362 (tui_set_regs_content): Remove.
4363 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
4364 (tui_v_show_registers_command_support): Remove.
4365 (tui_show_registers): Use a reggroup to specify the registers to show.
4366 (tui_show_register_group): New function.
4367 (tui_display_registers_from): Compute the layout of register window
4368 and refresh with new API; be sure to delete old register windows.
4369 (tui_check_register_values): Update to use tui_get_register and
4370 tui_display_data.
4371 (tui_display_register): Just refresh the register window part.
4372 (tui_register_format): Format registers and save in tui_data_element.
4373 (tui_get_register): New to combine tui_reg_value_has_changed and
4374 tui_get_register_raw_value; fix to use the new gdb API.
4375 (tui_show_float_command): Renamed tui_reg_float_command.
4376 (tui_show_general_command): Renamed tui_reg_general_command.
4377 (tui_show_special_command): Renamed tui_reg_system_command.
4378 (_initialize_tui_regs): Remove unused commands.
4379
c3364ea4
MK
43802004-03-13 Mark Kettenis <kettenis@gnu.org>
4381
27d1e716
MK
4382 * NEWS (New native configurations): Mention OpenBSD/amd64.
4383
c3364ea4
MK
4384 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
4385 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
4386 Remove defines.
4387 * config/i386/nm-fbsd64.h: Likewise.
4388 * config/i386/nm-obsd.h: Likewise.
4389 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
4390 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
4391
b2d6d697
KB
43922004-03-12 Kevin Buettner <kevinb@redhat.com>
4393
4394 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
4395 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
4396 New constants.
4397
76e43199
KB
4398 From Richard Sandiford <rsandifo@redhat.com>:
4399 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
4400
34ce532e
KB
44012004-03-12 Kevin Buettner <kevinb@redhat.com>
4402
4403 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
4404 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
4405 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
4406 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
4407 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
4408 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
4409 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
4410 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
4411 definitions from frv-tdep.c to frv-tdep.h.
4412
c4d10515
KB
44132004-03-12 Kevin Buettner <kevinb@redhat.com>
4414
4415 Add shared library support for FR-V FDPIC ABI:
4416 * Makefile.in (solib-frv.o): Add dependencies.
4417 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
4418 New functions.
4419 (frv_push_dummy_call): Add support for FDPIC ABI.
4420 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
4421 for FDPIC ABI.
4422 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
4423 (frv_fdpic_find_canonical_descriptor): Declare.
4424 * solib-frv.c: New file.
4425 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
4426 * config/frv/tm-frv.h (solib.h): Include.
4427
ed1bd989
KB
44282004-03-12 Kevin Buettner <kevinb@redhat.com>
4429
4430 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
4431 (frv-tdep.o): Update dependencies.
4432 * frv-tdep.h: New file.
4433 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
4434 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
4435 constants.
4436 (struct gdbarch_tdep): Add new member ``frv_abi''.
4437 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
4438 functions.
4439 (new_variant): Set ``frv_abi'' field.
4440 (gdb_arch_init): Detect FDPIC executables.
4441
82b38f72
MK
44422004-03-12 Mark Kettenis <kettenis@gnu.org>
4443
4444 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
4445 wrapper.
4446
db1ea9ba
AC
44472004-03-11 Andrew Cagney <cagney@redhat.com>
4448
4449 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
4450
f8766ec1
KB
44512004-03-11 Kevin Buettner <kevinb@redhat.com>
4452
4453 * solist.h (master_so_list): New function.
4454 * solib.c (master_so_list): Likewise.
4455 * solib-svr4.c (enable_break): Iterate over so_list entries
4456 obtained from master list instead of entries obtained directly
4457 via svr4_current_sos().
4458
523f6a27
BE
44592004-03-10 Ben Elliston <bje@gnu.org>
4460
4461 * MAINTAINERS: Update my mail address.
4462
37814c18
KI
44632004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
4464
4465 * remote-m32r-sdi.c: Support hardware watchpoint.
4466
8b9740d8
DJ
44672004-03-09 Daniel Jacobowitz <drow@mvista.com>
4468
4469 * user-regs.c: Update copyright years.
4470 (struct user_regs): Rename to gdb_user_regs.
4471 (append_user_reg, builtin_user_regs, user_regs_init)
4472 (user_reg_add, user_reg_map_name_to_regnum)
4473 (usernum_to_user_reg): Update.
4474
4bb7a0a7
DJ
44752004-03-09 Daniel Jacobowitz <drow@mvista.com>
4476
4477 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
4478 (skip_children): New functions.
4479 (locate_pdi_sibling): Call skip_children.
4480
44e1a9eb
DJ
44812004-03-09 Daniel Jacobowitz <drow@mvista.com>
4482
4483 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
4484 * gdbtypes.c (check_typedef): Update comments.
4485
f3dd6933
DJ
44862004-03-09 Daniel Jacobowitz <drow@mvista.com>
4487
4488 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
4489 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
4490 pointer. Update comment about comp_unit_head.
4491 (struct abbrev_info): Shorten two int flags.
4492 (dwarf_alloc_abbrev): Take a CU argument.
4493 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
4494 each time through the loop. Update cleanup argument.
4495 (psymtab_to_symtab_1): Update cleanup call.
4496 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
4497 abbrev_obstack.
4498 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
4499 Just call obstack_free and clear the pointer.
4500
b40c7d58
DJ
45012004-03-09 Daniel Jacobowitz <drow@mvista.com>
4502
4503 * infrun.c (handle_inferior_event): Remove short-circuit code for
4504 events in a different thread.
4505
333dabeb
DJ
45062004-03-09 Daniel Jacobowitz <drow@mvista.com>
4507
4508 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
4509 print the whole transfer.
4510 (initialize_targets): Update description of "set debug target".
4511
aa17d93e
DJ
45122004-03-09 Daniel Jacobowitz <drow@mvista.com>
4513
4514 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
4515
0b71f08f
NW
45162004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
4517
4518 * MAINTAINERS (write after approval): Add myself.
4519
3930f270
CV
45202004-03-08 Corinna Vinschen <vinschen@redhat.com>
4521
4522 * sh-tdep.c (sh_print_registers_info): Use for loop.
4523 Don't skip multiple registers when a float register is encountered.
4524
a2b4a96c
CV
45252004-03-08 Corinna Vinschen <vinschen@redhat.com>
4526
4527 Fix PR tdep/1291.
4528 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
4529 to official SH documentation.
4530
f15a4bc0
AC
45312004-03-07 Andrew Cagney <cagney@redhat.com>
4532
4533 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
4534 unused function.
4535
9498281f
DJ
45362004-03-07 Daniel Jacobowitz <drow@mvista.com>
4537
4538 * arm-tdep.c (thumb_get_next_pc): Handle BX.
4539 (arm_get_next_pc): Handle BX and BLX.
4540
449e1137
AC
45412004-03-07 Andrew Cagney <cagney@redhat.com>
4542
eded0a31
AC
4543 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
4544 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
4545 HPPA_SP_REGNUM.
4546 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
4547 (hppa_target_read_fp): Delete.
4548 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
4549 register_virtual_size, max_register_raw_size,
4550 max_register_virtual_size, register_byte, register_size,
4551 target_read_fp, fp_regnum, and register_bytes. Set register_type
4552 instead of register_virtual_type.
4553 (hppa32_register_type, hppa64_register_type): Replace
4554 hppa32_register_virtual_type and hppa64_register_virtual_type.
4555 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
4556 (HPPA_FP_REGNUM): Define.
4557
f5f907e2
AC
4558 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
4559
69b4bbe4
AC
4560 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
4561 (pa_do_registers_info): Delete.
4562 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 4563 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 4564 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 4565
78161e48
AC
4566 * infcall.c (legacy_push_dummy_code): Delete #ifdef
4567 GDB_TARGET_IS_HPPA code.
4568 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 4569 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
4570 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
4571 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
4572 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
4573 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
4574 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 4575 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
4576 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
4577 (hppa_frameless_function_invocation, hppa64_store_return_value)
4578 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 4579 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 4580 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 4581 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
4582 (find_proc_framesize, deposit_21, restore_pc_queue)
4583 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 4584 (rp_saved, pc_in_linker_stub): Delete.
78161e48 4585
782eae8b
AC
4586 Unconditionally enable 64-bit frame and ABI code.
4587 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
4588 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
4589 push_dummy_frame, fix_call_dummy, push_arguments,
4590 call_dummy_location, extract_return_value, use_struct_convention,
4591 store_return_value, store_struct_return, saved_pc_after_call,
4592 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
4593 frame_chain, frame_chain_valid, frameless_function_invocation,
4594 frame_saved_pc, and pop_frame.
78161e48 4595
449e1137
AC
4596 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
4597 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
4598 (hppa_gdbarch_init): Do not set PC_REGNUM.
4599
12507572
MK
46002004-03-06 Mark Kettenis <kettenis@gnu.org>
4601
4602 * config/alpha/tm-fbsd.h: Remove file.
4603 * config/alpha/fbsd.mt: Tweak comment.
4604 (TM_FILE): Set to tm-alpha.h.
4605
c107cc1b
AC
46062004-03-05 Andrew Cagney <cagney@redhat.com>
4607
4608 * infrun.c (step_over_function): When non-legacy code, and no
4609 step_frame_id, use the unwinder to get the caller's frame ID.
4610
f2e7c15d
MK
46112004-03-05 Mark Kettenis <kettenis@gnu.org>
4612
8b0c3633
MK
4613 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
4614 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
4615 bfd_arch_unknown. Adjust comment.
4616
f2e7c15d
MK
4617 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
4618 * i386obsd-tdep.c: Correct spelling in comment.
4619 * i386nbsd-tdep.c: Correct spelling in comment.
4620 * sparc-tdep.c: Correct spelling in comments.
4621
1198ecbe
DC
46222004-03-05 David Carlton <carlton@kealia.com>
4623
4624 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
4625 bug.
4626
9eb42ed1
MK
46272004-03-05 Mark Kettenis <kettenis@gnu.org>
4628
4629 * sparc-tdep.c: Fix typo in comment.
4630
52b5e991
JB
46312004-03-04 J. Brobecker <brobecker@gnat.com>
4632
4633 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
4634
d8151005
DJ
46352004-03-04 Daniel Jacobowitz <drow@mvista.com>
4636
4637 * dwarf2read.c: Add comment describing memory lifetimes.
4638 (struct dwarf2_pinfo): Update comment.
4639 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
4640 (read_enumeration, new_symbol): Don't use obsavestring.
4641
cbeae229
MK
46422004-03-04 Mark Kettenis <kettenis@gnu.org>
4643
722d18c2
MK
4644 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
4645 instead of amd64_fill_fxsave.
4646 * amd64bsd-nat.c (store_inferior_registers): Likewise.
4647 * amd64fbsd-nat.c (fill_fpregset): Likewise.
4648
cbeae229
MK
4649 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
4650 Reorganize code a bit.
4651
b4206d25
OF
46522004-03-04 Orjan Friberg <orjanf@axis.com>
4653
4654 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
4655 when the frame pointer is pushed. Don't set the frame pointer's
4656 address on the stack unless it's actually located there.
b4206d25
OF
4657 Set the SRP's address on the stack correctly when the PC is still in
4658 the prologue.
4659 (cris_return_value): New function.
4660 (cris_gdbarch_init): Clear deprecated store_return_value,
4661 extract_return_value.
4662
49b0b195
JB
46632004-03-02 Jim Blandy <jimb@redhat.com>
4664
4665 * stabsread.c (reg_value_complaint): The maximum register number
4666 is one less than the number of registers.
4667
e9ff708b
AC
46682004-03-02 Andrew Cagney <cagney@redhat.com>
4669
4670 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
4671 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
4672 trailing comma and redundant assignment of I386_ST0_REGNUM.
4673 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
4674 32-bit segment registers.
4675
d4715e41
AC
46762004-03-01 Andrew Cagney <cagney@redhat.com>
4677
4678 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
4679 use frame_relative_level and get_next_frame.
4680
3ce2bf18
AC
46812004-02-29 Andrew Cagney <cagney@redhat.com>
4682
4683 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
4684 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
4685 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
4686 Delete macro.
4687
2da6aac3
DJ
46882004-02-29 Daniel Jacobowitz <drow@mvista.com>
4689
4690 * inflow.c (terminal_inferior): Don't give up the terminal if we
4691 previously couldn't get the inferior's terminal state.
4692
6ba34a8d
DJ
46932004-02-29 Daniel Jacobowitz <drow@mvista.com>
4694
4695 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
4696 PC_REGNUM.
4697
faae5abe
AC
46982004-02-28 Andrew Cagney <cagney@redhat.com>
4699
4700 * NEWS: Refer to GDB 6.1.
4701 * README: Refer to GDB 6.1.
4702 * PROBLEMS: Refer to GDB 6.1.
4703
2227a3c5
DJ
47042004-02-28 Daniel Jacobowitz <drow@mvista.com>
4705
4706 * thread-db.c (disable_thread_signals): Remove unused function.
4707
80571bff
MK
47082004-02-28 Mark Kettenis <kettenis@gnu.org>
4709
041bd74b
MK
4710 * amd64-nat.c: Include "gdb_string.h".
4711 (amd64_collect_native_gregset): Zero-extend the 32-bit
4712 general-purpose registers and %eip.
4713
3c017e40
MK
4714 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
4715 * amd64-tdep.c (amd64_collect_fxsave): New function.
4716 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
4717
80571bff
MK
4718 * i387-tdep.h: Update copyright year.
4719 (i387_collect_fxsave): New prototype.
4720 * i387-tdep.c: Update copyright year.
4721 (i387_collect_fxsave): New function containing most of the code
4722 from i387_fill_fxsave.
4723 (i387_fill_fxsave): Call i387_collect_fxsave.
4724
50d71875
AC
47252004-02-28 Andrew Cagney <cagney@redhat.com>
4726
4727 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
4728 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
4729
4a28816e
MK
47302004-02-28 Mark Kettenis <kettenis@gnu.org>
4731
4732 * amd64-tdep.c (amd64_frame_cache): Fix comment.
4733
dbda9972
AC
47342004-02-28 Andrew Cagney <cagney@redhat.com>
4735
4736 * utils.c: Use "", instead of <>, to include readline.
4737 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
4738 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
4739 * source.c, solib.c, exec.c, event-top.c: Ditto.
4740 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
4741 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
4742 * Makefile.in: Update all dependencies.
4743 (readline_tilde_h, readline_history_h): Define.
4744 (readline_headers): Delete.
4745
83277a99
MK
47462004-02-28 Mark Kettenis <kettenis@gnu.org>
4747
91ae4303
MK
4748 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
4749 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
4750 "config/i386/tm-lx64.h".
4751
83277a99
MK
4752 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
4753 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
4754 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
4755
6e1d7d6c
AC
47562004-02-28 Andrew Cagney <cagney@redhat.com>
4757
ecc9ac84
AC
4758 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
4759
6e1d7d6c
AC
4760 * breakpoint.c (_initialize_breakpoint): Use
4761 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
4762 Add help to show command.
4763
9671aeef
MK
47642004-02-28 Mark Kettenis <kettenis@gnu.org>
4765
7fa2737c
MK
4766 * i386-nat.c: Reformat to be closer to coding standards.
4767 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
4768 `retval'. Make variables `align' and `size' local to while-loop.
4769 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
4770 (_initialize_i386_nat): New prototype.
4771
9671aeef
MK
4772 * tui/tui.c: Include <readline/readline.h> instead of
4773 "readline/readline.h". Include it after <term.h> and
4774 "gdb_curses.h".
4775
fca7aa43
AC
47762004-02-27 Andrew Cagney <cagney@redhat.com>
4777
412275d5
AC
4778 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
4779 the new frame unwind code.
4780 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
4781 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
4782 PCOQ_HEAD_REGNUM.
4783
fca7aa43
AC
4784 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
4785 "return_value" and "push_dummy_call".
4786 (hppa32_use_struct_convention): Delete unused function.
4787 (hppa32_store_return_value): Delete unused function.
4788 (hppa32_extract_return_value): Delete unused function.
4789 (hppa32_stack_align): Delete function.
4790
e6a8a7d2
EZ
47912004-02-27 Eli Zaretskii <eliz@elta.co.il>
4792
4793 * coffread.c (enter_linenos): Don't let rawptr reference memory
4794 outside linetab[]'s limits.
4795
1797a8f6
AC
47962004-02-27 Andrew Cagney <cagney@redhat.com>
4797
4798 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
4799 inferior stack space - the stack needs to grow upwards.
4800 (hppa32_frame_align): New function.
4801 (hppa64_frame_align): Replace hppa_frame_align.
4802 (hppa_gdbarch_init): Update.
4803
2e4b5889
OF
48042004-02-26 Orjan Friberg <orjanf@axis.com>
4805
4806 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
4807 (dwarf2-frame.h): Include.
4808 (enum cris_regnums): New enum CRIS_FP_REGNUM.
4809 Remove static variables related to ABI setting.
4810 (struct gdbarch_tdep): Remove cris_abi member.
4811 (struct frame_extra_info): Remove.
4812 (cris_unwind_cache, stack_item): New structs.
4813 (cris_frame_unwind, cris_frame_base): New variables.
4814 (push_stack_item, pop_stack_item)
4815 (cris_frame_unwind_cache, cris_frame_this_id)
4816 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
4817 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
4818 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
4819 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
4820 (cris_reg_struct_has_addr): New functions.
4821 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 4822 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
4823 (cris_store_struct_return, cris_frameless_function_invocation)
4824 (cris_pop_frame, cris_skip_prologue_main)
4825 (cris_abi_original_store_return_value)
4826 (cris_abi_v2_store_return_value)
4827 (cris_abi_original_extract_return_value)
4828 (cris_abi_v2_extract_return_value)
4829 (cris_abi_original_reg_struct_has_addr)
4830 (cris_abi_v2_reg_struct_has_addr)
4831 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
4832 (cris_push_return_address, cris_abi_update): Remove.
4833 (_initialize_cris_tdep): Remove ABI command.
4834 (cris_dump_tdep): Ditto.
8718a420 4835 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
4836 Set store_return_value, extract_return_value, push_dummy_code,
4837 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
4838 frame_unwind_append_sniffer, frame_base_set_default.
4839 Clear deprecated init_frame_pc, push_arguments, store_return_value,
4840 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
4841 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 4842 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
4843 init_extra_frame_info, frameless_function_invocation, frame_chain,
4844 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
4845 dummy_write_sp.
8718a420 4846
6b9acc27
JJ
48472004-02-26 Jeff Johnston <jjohnstn@redhat.com>
4848
4849 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
4850 * valprint.c (print_hex_chars): Change from static to external.
4851 (print_char_chars): New function.
4852 * printcmd.c (print_scalar_formatted): For integer and enum types
4853 that are longer than LONGEST, perform processing via appropriate
4854 print_*_chars routines.
4855
a431654a
AC
48562004-02-26 Andrew Cagney <cagney@redhat.com>
4857
4858 * Makefile.in: Update dependencies.
4859 Changes from Ulrich Weigand,
4860 * s390-tdep.c: Include "dwarf2-frame.h".
4861 (s390_dwarf2_frame_init_reg): New function.
4862 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
4863 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
4864
fa8d40ab
JJ
48652004-02-26 Jeff Johnston <jjohnstn@redhat.com>
4866
4867 * breakpoint.c (pending_break_support): New setting variable.
4868 (break_command_1): Account for pending_break_support setting
4869 when creating pending breakpoints.
4870 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
4871 (_initialize_breakpoint): Add "set breakpoint pending" and
4872 "show breakpoint pending" commands.
4873
0dcd613f
AC
48742004-02-26 Andrew Cagney <cagney@redhat.com>
4875
4876 Fix PR i18n/1570.
4877 * charset.c (backslashable, backslashed, represented): Remove 'e'
4878 from list of escaped characters, not part of ISO-C.
4879
479272a3
JB
48802004-02-25 J. Brobecker <brobecker@gnat.com>
4881
4882 From Peter Schauer <schauer@pdf.de>:
4883 * tui/tui.c: Move system header includes after local includes.
4884 Fixes a build failure on solaris systems.
4885
7613d933
JB
48862004-02-25 J. Brobecker <brobecker@gnat.com>
4887
4888 * configure.in: Refine the previous change.
4889 * configure: Regenerate.
4890
9c1488cb
MK
48912004-02-25 Mark Kettenis <kettenis@gnu.org>
4892
4893 * amd64-tdep.h: Renamed from x86-64-tdep.h.
4894 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
4895 "amd64-tdep.h" instead of "x86-64-tdep.h".
4896 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
4897 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
4898 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
4899 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
4900 and "x86-64-tdep.c".
4901 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
4902 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
4903 and "x86-64-tdep.c".
4904 * amd64bsd-nat.c: Update copyright year.
4905 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
4906 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
4907 "x86-64-tdep.h".
4908 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
4909 "x86-64-tdep.h".
4910 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
4911 "x86-64-tdep.h".
4912 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
4913 "x86-64-tdep.h".
4914 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
4915 "x86-64-tdep.h".
4916 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
4917 "x86-64-tdep.h".
8718a420 4918 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
4919 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
4920 * Makefile.in (amd64_linux_tdep_h): Renamed from
4921 x86_64_linux_tdep_h.
4922 (amd64_tdep_h): Renamed from x86_64_tdep_h.
4923 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
4924 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
4925 (amd64obsd-tdep.o): Update dependencies.
4926 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
4927 dependencies.
4928 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
4929 dependencies.
4930 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
4931 amd64-linux-nat.c amd64-linux-tdep.c.
4932 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
4933 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
4934 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
4935 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
4936 amd64-tdep.o and amd64-linux-tdep.o.
4937 (TM_FILE): Set to tm-linux64.h.
4938 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
4939 (NAT_FILE): Set to nm-linux64.h.
4940 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
4941 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
4942 amd64-tdep.o.
4943 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
4944 amd64-tdep.o.
4945 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
4946 amd64-tdep.o.
4947
4b8dad4a
RM
49482004-02-25 Roland McGrath <roland@redhat.com>
4949
4950 * remote.c (remote_protocol_qPart_auxv): New variable.
4951 (init_all_packet_configs): Initialize it.
4952 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
4953 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
4954 (show_remote_cmd): Call it.
4955 (_initialize_remote): Initialize commands.
4956 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
4957 service TARGET_OBJECT_AUXV requests.
4958
66745969
JB
49592004-02-25 J. Brobecker <brobecker@gnat.com>
4960
4961 * configure.in: Make sure that the wborder function is available.
4962 Otherwise, search for it in the cur_colr library.
4963 * configure: Regenerate.
4964
79508e1e
AC
49652004-02-25 Andrew Cagney <cagney@redhat.com>
4966
4967 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
4968
571ee600
MK
49692004-02-25 Mark Kettenis <kettenis@gnu.org>
4970
4971 * config/i386/tm-x86-64linux.h: Tweak comments.
4972
2b1b322f 49732004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
4974
4975 * MAINTAINERS: Add self to write-after-approval list.
4976
4d2acc65
AC
49772004-02-25 Andrew Cagney <cagney@redhat.com>
4978
4b8dad4a 4979 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
4980 * cli/cli-script.c (execute_control_command): Unconditionally
4981 install a cleanup. Default "ret" to "invalid_control". Use
4982 "break" instead of "return" to escape from the switch.
4983
4cfcaf21
JB
49842004-02-24 J. Brobecker <brobecker@gnat.com>
4985
4986 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
4987 with the lines macro defined in term.h on AiX.
4988 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
4989 a collision with the label_width macro defined in term.h on AiX.
4990
54a5c8d8
KB
49912004-02-23 David Mosberger <davidm@hpl.hp.com>
4992
4993 Committed by Kevin Buettner <kevinb@redhat.com>.
4994
4995 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
4996 * ia64-tdep.c (ia64_write_pc): Make it a global function.
4997 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
4998 instead of ia64_write_pc().
4999 * ia64-linux-tdep.c (regcache.h): Include.
5000 (ia64_linux_write_pc): New function.
4b8dad4a 5001
8a1dac83
RM
50022004-02-23 Roland McGrath <roland@redhat.com>
5003
5004 * auxv.c (info_auxv_command): Fix typos in error messages.
5005
90f90721
MK
50062004-02-23 Mark Kettenis <kettenis@gnu.org>
5007
8a1dac83 5008 * x86-64-tdep.h: Tweak comment.
90f90721
MK
5009 (enum amd64_regnum): New.
5010 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
5011 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
5012 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
5013 (X86_64_XMM1_REGNUM): Removed.
5014 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
5015 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
5016 prototypes for renamed functions.
5017 * x86-64-tdep.c: Fix typo.
5018 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
5019 register numbers.
5020 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
5021 Use constants from `enum amd64_regnum' for register numbers.
5022 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
5023 (amd64_analyze_prologue, amd64_frame_cache,
5024 amd64_sigtramp_frame_cache): Use constants from `enum
5025 amd64_regnum' for register numbers.
5026 (amd64_supply_fpregset): Adjust for renamed functions.
5027 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
5028 `enum amd64_regnum' for register numbers.
5029 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
5030 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
5031 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
5032 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
5033 (amd64_linux_fill_gregset): Adjust for renamed macros.
5034 (fetch_core_registers): Adjust for renamed functions.
5035 (amd64_linux_init_abi): Adjust for renamed functions.
5036 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
5037 renamed functions.
5038 * amd64-nat.c: Adjust for renamed macros.
5039 * amd64bsd-nat.c (fetch_inferior_registers)
5040 (store_inferior_registers): Use constants from `enum amd64_regnum'
5041 for register numbers. Adjust for renamed variables.
5042 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
5043 renamed variables.
5044 (_initialize_amd64fbsd_nat): Use constants from `enum
5045 amd64_regnum' for register numbers.
5046 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
5047 `enum amd64_regnum' for register numbers.
5048 (amd64fbsd_init_abi): Adjust for renamed functions.
5049 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
5050 `enum amd64_regnum' for register numbers.
5051 (amd64nbsd_init_abi): Adjust for renamed functions.
5052 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
5053 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
5054 `enum amd64_regnum' for register numbers.
5055 (amd64obsd_init_abi): Adjust for renamed functions.
5056 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
5057
d5479188
JJ
50582004-02-23 Jeff Johnston <jjohnstn@redhat.com>
5059
5060 * breakpoint.c (print_one_breakpoint): Do not output spaces
5061 after printing <PENDING> for a pending breakpoint.
5062
81cb7cc9
JJ
50632004-02-23 Jeff Johnston <jjohnstn@redhat.com>
5064
5065 * printcmd.c (print_scalar_formatted): Initialize val_long
5066 to remove compiler warning message.
5067
cbdeadca
JJ
50682004-02-23 Jeff Johnston <jjohnstn@redhat.com>
5069
5070 * defs.h (nquery, yquery): New prototypes.
5071 * breakpoint.c (break_command_1): Use new nquery interface.
5072 * utils.c (defaulted_query, nquery, yquery): New functions.
5073
da6bab63
AC
50742004-02-23 Andrew Cagney <cagney@redhat.com>
5075
2f690297
AC
5076 * hppa-tdep.c (hppa_frame_align): New function.
5077 (hppa32_push_dummy_call): New function.
5078 (hppa64_push_dummy_call): New function.
5079 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
5080 disabled.
8a1dac83 5081
da6bab63
AC
5082 * infcall.c (legacy_push_dummy_code): Don't call deprecated
5083 FIX_CALL_DUMMY when push_dummy_call is available.
5084 (call_function_by_hand, push_dummy_code): Ditto.
5085
abf9b42d
AC
50862004-02-22 Andrew Cagney <cagney@redhat.com>
5087
5088 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
5089 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
5090 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
5091 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
5092 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
5093 call_dummy_location to ON_STACK.
5094
10fc94a4
MK
50952004-02-22 Mark Kettenis <kettenis@gnu.org>
5096
51433e4b
MK
5097 * x86-64-linux-tdep.c: Tweak comment.
5098 (amd64_linux_supply_gregset): Renamed from
5099 x86_64_linux_supply_gresget.
5100 (amd64_linux_fill_gregset): Renamed from
5101 x86_64_linux_fill_gregset.
5102 (fetch_core_registers): Adjust for renamed functions.
5103 (amd64_core_fns): Renamed from x86_64_core_fns.
5104 (amd64_linux_sigtramp_start): Renamed from
5105 x86_64_linux_sigtramp_start.
5106 (amd64_linux_pc_in_sigtramp): Renamed from
5107 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
5108 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
5109 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
5110 (amd64_linux_sigcontext_addr): Renamed from
5111 x86_64_linux_sigcontext_addr.
5112 (amd64_linux_sc_reg_offset): Renamed from
5113 x86_64_linux_sc_reg_offset.
5114 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
5115 Adjust for renamed functions and variables.
5116 (_initialize_amd64_linux_tdep): Renamed from
5117 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
5118 variables.
5119 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
5120 Adjust for renamed functions.
5121
430eaf2e
MK
5122 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
5123 from x86_64_linux_gregset64_reg_offset.
5124 (amd64_linux_gregset32_reg_offset): Rename from
5125 x86_64_linux_gregset64_reg_offset.
5126 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
5127 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
5128 (amd64_linux_dr_set_control): Renamed from
5129 x86_64_linux_dr_set_control. Adjust for renamed functions.
5130 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
5131 Adjust for renamed functions.
5132 (amd64_linux_dr_reset_addr): Renamed from
5133 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
5134 (amd64_linux_dr_get_status): Renamed from
5135 x86_64_linux_dr_get_status. Adjust for renamed functions.
5136 (_initialize_amd64_linux_nat): Renamed from
5137 _initialize_x86_64_linux_nat. Adjust for renamed variables and
5138 functions.
5139 * config/i386/nm-x86-64linux.h: Update copyright year.
5140 Adjust for renamed functions.
5141
10fc94a4
MK
5142 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
5143 amd64fbsd_sigtramp_start.
5144 (amd64fbsd_sigtramp_end_addr): Renamed from
5145 amd64fbsd_sigtramp_end.
5146 (amd64fbsd_init_abi): Adjust for renamed variables.
5147 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
5148 variables.
5149 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
5150 amd64fbsd_sigtramp_start.
5151 (amd64fbsd_sigtramp_end_addr): Renamed from
5152 amd64fbsd_sigtramp_end.
5153
343af405
AC
51542004-02-22 Andrew Cagney <cagney@redhat.com>
5155
537987fc
AC
5156 * hppa-tdep.c (hppa32_return_value): New function.
5157 (hppa64_return_value): New function.
5158 (hppa_gdbarch_init): Set return_value; keep disabled.
5159
fad850b2
AC
5160 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
5161 struct-return and inferior function call methods.
5162
26d08f08
AC
5163 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
5164 "frame-base.h".
5165 (struct hppa_frame_cache): Define.
5166 (hppa_frame_cache, hppa_frame_this_id): New functions.
5167 (hppa_frame_prev_register): New function.
5168 (hppa_frame_unwind, hppa_frame_base): New variables.
5169 (hppa_frame_unwind_sniffer): New function.
5170 (hppa_frame_base_address, hppa_unwind_pc): New function.
5171 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
5172 sniffer, and frame base sniffer; keep disabled.
5173 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
5174 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
5175
e7d7bd65
AC
5176 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
5177 to predicates for "seriously old code".
5178
e963316f
AC
5179 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
5180 runtime if(0).
5181
56132691
AC
5182 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
5183 unsigned.
5184 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 5185
343af405
AC
5186 * config/pa/tm-hppa.h: Update copyright.
5187 (DEPRECATED_INIT_FRAME_PC): Delete macro.
5188 (deprecated_init_frame_pc_default): Delete declaration.
5189 (hppa_frame_init_saved_regs): Delete declaration.
5190 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
5191 * hppa-tdep.c: Include "arch-utils.h".
5192 (hppa_gdbarch_init): Set deprecated init_frame_pc
5193 and deprecated frame_init_saved_regs.
5194 (hppa_frame_init_saved_regs): Make static.
5195
f5859b4d
MK
51962004-02-22 Mark Kettenis <kettenis@gnu.org>
5197
86f6f8e7 5198 Remove old 386BSD support.
cf7c5c23 5199 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
5200 * configure.host: Remove i[34567]86-*-bsd*.
5201 * configure.tgt: Remove i[34567]86-*-bsd*.
5202 * i386b-nat.c: Removed.
5203 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
5204 (i386b-nat.o): Remove dependencies.
5205
86f6f8e7
MK
5206 * config/i386/i386bsd.mh: Removed.
5207 * config/i386/i386bsd.mt: Removed.
5208 * config/i386/nm-i386bsd.h: Removed.
5209 * config/i386/tm-i386bsd.h: Removed.
5210 * config/i386/xm-i386bsd.h: Removed.
5211
971218cd
MK
5212 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
5213
7e654c37
MK
5214 * amd64fbsd-tdep.c: Include "solib-svr4.h".
5215 (amd64fbsd_init_abi): Set link map offsets.
5216 * amd64nbsd-tdep.c: Include "slib-svr4.h".
5217 (amd64nbsd_init_abi): Set link map offsets.
5218 * amd64obsd-tdep.c: Include "solib-svr4.h".
5219 (amd64obsd_init_abi): Set link map offsets.
5220 * i386fbsd-tdep.c: Include "solib-svr4.h".
5221 (i386fbsd_init_abi): Set link map offsets.
5222 * i386nbsd-tdep.c: Include "solib-svr4.h".
5223 (i386nbsdelf_init_abi): Set link map offsets.
5224 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
5225 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
5226 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
5227 solib-legacy.o and core-aout.o. Reformat.
5228 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
5229 solib-svr4.o, solib-legacy.o. Reformat.
5230 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
5231 * config/i386/nbsdelf.mh: Reformat.
5232 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
5233 solib-svr4.o, solib-legacy.o and corelow.o.
5234 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
5235 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
5236 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
5237 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
5238 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
5239 (TM_FILE): Set to tm-fbsd.h.
5240 * config/i386/nbsd.mt (TDEPFILES): Reformat.
5241 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
5242 solib-svr4.o.
5243 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
5244 solib-svr4.o.
5245 (TM_FILE): Set to nm-nbsd.h.
5246 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
5247 Simplify shared library support. Don't include "elf/common.h".
5248 (SVR4_SHARED_LIBS): Don't define.
5249 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
5250 "solib.h".
5251 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
5252 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
5253 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
5254 Don't include "i386/tm-i386.h". Include "solib.h".
5255 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
5256 Don't include "i386/tm-i386.h".
5257 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
5258 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
5259 Include "i386/xm-i386.h".
5260 (HOST_LONG_DOUBLE_FORMAT): Remove.
5261
5d93ae8c
MK
5262 Fix OpenBSD/i386 sigtramp recognition.
5263 * i386-tdep.h: Update copyright year.
5264 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
5265 (i386bsd_sigtramp_end): New prototypes.
5266 (i386fbsd_sigtramp_start_addr): Renamed from
5267 i386fbsd_sigtramp_start.
5268 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
5269 (i386obsd_sigtramp_start_addr): Renamed from
5270 i386obsd_sigtramp_start.
5271 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
5272 * i386bsd-tdep.c: Update copyright year.
5273 (i386bsd_pc_in_sigtramp): Make public.
5274 * i386fbsd-nat.c: Update copyright year.
5275 (_initialize_i386fbsd_nat): Adjust for renamed variables.
5276 * i386fbsd-tdep.c: Update copyright year.
5277 (i386fbsd_sigtramp_start_addr): Renamed from
5278 i386fbsd_sigtramp_start.
5279 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
5280 (i386fbsdaout_init_abi): Adjust for renamed variables.
5281 * i386obsd-nat.c: Update copyright year.
5282 (_initialize_i386obsd_nat): Adjust for renamed variables.
5283 * i386obsd-tdep.c: Include "target.h".
5284 (i386obsd_page_size): New variable.
5285 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
5286 (i386obsd_sigtramp_end): New functions.
5287 (i386obsd_sigtramp_start_addr): Renamed from
5288 i386obsd_sigtramp_start.
5289 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
5290 (i386obsd_init_abi): Adjust for renamed variables. Set
5291 pc_in_sigtramp, sigtramp_start and sigtramp_end.
5292 * Makefile.in (i386obsd-tdep.o): Update dependencies.
5293
84d04465
MK
5294 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
5295 trampoline change in OpenBSD kernel.
5296
b053aceb
MK
5297 * amd64-nat.c: Update copyright year.
5298 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
5299 architecture from REGCACHE.
5300
f5859b4d
MK
5301 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
5302 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
5303
e4bbbda8
MK
53042004-02-21 Mark Kettenis <kettenis@gnu.org>
5305
ba361932
MK
5306 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
5307 i[34567]86-*-openbsd3.[0-3].
5308 * config/i386/obsdaout.mh: New file.
5309
d3e48264
MK
5310 * config/i386/obsd.mh (MH_FLAGS): Remove.
5311
60a6eeb6
MK
5312 Fix PR build/1549.
5313 * i386obsd-tdep.c: Update copyright years. Include
5314 "solib-svr4.h".
5315 (i386obsd_init_abi): Don't set regset_from_core_section here.
5316 (i386obsd_aout_init_abi): New function. Set
5317 regset_from_core_section here.
5318 (i386obsd_elf_init_abi): New function.
5319 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
5320 * Makefile.in (i386obsd-tdep.o): Update dependecies.
5321 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
5322 (TM_FILE): Set to tm-nbsd.h.
5323
5324 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
5325 solib-sunos.o.
5326
e4bbbda8
MK
5327 * solib-svr4.h: Update copyright year.
5328 (svr4_ilp32_fetch_link_map_offsets)
5329 (svr4_lp64_fetch_link_map_offsets): New prototype.
5330 * solib-svr4.c: Update copyright year.
5331 (svr4_ilp32_fetch_link_map_offsets)
5332 (svr4_lp64_fetch_link_map_offsets): New function.
5333
f6fe98ef
DJ
53342004-02-20 Daniel Jacobowitz <drow@mvista.com>
5335
5336 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
5337 to the partial symbol table.
5338
589ca796
JB
53392004-02-20 J. brobecker <brobecker@gnat.com>
5340
5341 * PROBLEMS: Add description of problem documented under gdb/1560.
5342
2031c21a
MK
53432004-02-20 Mark Kettenis <kettenis@gnu.org>
5344
30b344b1
MK
5345 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
5346 comments.
5347 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
5348 functions.
5349 (amd64obsd_init_abi): Reorder initializations. Use
5350 amd64obsd_r_reg_offset to initialize the general-purpose register
5351 set details. Set regset_from_core_section.
5352 (_initialize_amd64obsd_tdep): Rename from
5353 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
5354 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
5355 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
5356
2031c21a
MK
5357 * NEWS (New native configurations): Mention OpenBSD/alpha.
5358 * configure.tgt: Add alpha*-*-openbsd*.
5359 * configure.host: Add alpha*-*-openbsd*.
5360 * alphanbsd-tdep.c: Update copyright year.
5361 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
5362
42471775
AC
53632004-02-20 Andrew Cagney <cagney@redhat.com>
5364
5365 Fix PR tdep/1372.
5366 * configure.tgt: Delete target "none-*-*".
5367 * configure.host: Delete host "none-*-*".
5368 * config/none/none.mh: Delete file.
5369 * config/none/none.mt: Delete file.
5370 * config/none/xm-none.h: Delete file.
5371 * config/none/tm-none.h: Delete file.
5372 * config/none/nm-none.h: Delete file.
5373
960ccd7d
FF
53742004-02-19 Fred Fish <fnf@redhat.com>
5375
5376 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
5377 cache->uses_fp prior to setting it.
5378
5f883edd
FF
53792004-02-19 Fred Fish <fnf@redhat.com>
5380
5381 Fix for PR breakpoint/1558.
5382 * sh-tdep.c (IS_JSR): New macro.
5383 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
5384
f98c22d5
JB
53852004-02-19 Jim Blandy <jimb@redhat.com>
5386
5387 * findvar.c (value_from_register): Doc fix.
5388
95051d27
JJ
53892004-02-19 Jeff Johnston <jjohnstn@redhat.com>
5390
5391 * printcmd.c (print_scalar_formatted): Do not check for sizeof
5392 type being greater than sizeof of host's LONGEST. Always use
5393 unpack_long() unless format 'f' chosen.
5394
ccefbec3
EZ
53952004-02-19 Joel Brobecker <brobecker@gnat.com>
5396
5397 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 5398
ccefbec3
EZ
5399 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
5400 contains a symbol wich is the best, non-exact match for the given
5401 pc. Update comments.
5402
54032004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 5404
2ede629f
EZ
5405 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
5406 macro, which was part of the now removed Mach 3 port.
5407 * utils.c (request_quit): Ditto.
5408
567ee972
MK
54092004-02-18 Mark Kettenis <kettenis@gnu.org>
5410
5411 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
5412 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
5413
50cca7bb
MK
54142004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5415
5416 Committed by Mark Kettenis <kettenis@gnu.org>.
5417
5418 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
5419 Define.
5420
226361c4
AC
54212004-02-18 Andrew Cagney <cagney@redhat.com>
5422
5423 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
5424 CONFIG_INSTALL and CONFIG_UNINSTALL.
5425 * configure: Re-generate.
5426 * interps.h (INTERP_TUI): Define.
5427 * Makefile.in: Update dependencies.
5428 (TUI): New macro.
5429 (tui-main.o): Specify dependencies.
5430 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
5431 * tui/tui-main.c: New file.
5432
49cfa46f
MK
54332004-02-18 Mark Kettenis <kettenis@gnu.org>
5434
e2879ccb
MK
5435 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
5436 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
5437 dependencies.
5438 * configure.host: Add x86_64-*-openbsd*.
5439 * configure.tgt: Add x86_64-*-openbsd*.
5440 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
5441
c43f4bec
MK
5442 * tui/tui.c: Don't include <malloc.h>.
5443
09ae75b6
MK
5444 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
5445 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
5446 amd64nbsd-tdep.c.
5447
49cfa46f 5448 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 5449 static. Remove extraneous whitespace.
49cfa46f
MK
5450 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
5451 static.
5452
05957fdb
JB
54532004-02-17 Jim Blandy <jimb@redhat.com>
5454
5455 * findvar.c (value_from_register): Doc fix.
5456
d0f54f9d
JB
54572004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5458
5459 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 5460
8a1dac83 5461 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
5462 CORE_ADDR as type for selectors. Correct types for GNU run time
5463 message lookup function to use double indirection.
5464 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
5465 * objc-lang.h (lookup_child_selector): Adapt prototype.
5466
9cbd5950
JB
5467 * s390-nat.c (SUBOFF): New macro.
5468 (supply_gregset, fill_gregset): Use it to handle debugging
5469 of 32-bit exectuables running under a 64-bit kernel.
5470 * s390-tdep.c: Include "solib-svr4.h".
5471 (s390_svr4_fetch_link_map_offset): New function.
5472 (s390x_svr_fetch_link_map_offset): Likewise.
5473 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
5474 * Makefile.in (s390-tdep.o): Update dependencies.
5475
a8c99f38
JB
5476 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
5477 "frame-unwind.h".
5478 (s390_readinstruction): Reformat. Use read_memory_nobpt.
5479 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
5480 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
5481 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
5482 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
5483 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 5484 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
5485 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
5486 (struct frame_extra_info): Remove.
5487 (s390_memset_extra_info): Remove.
f73b1eff
JB
5488 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
5489 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
5490 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
5491 (is_rse): Renamed to ...
5492 (is_rsy): ... this. Support long displacements.
5493 (is_rxe): Renamed to ...
5494 (is_rxy): ... this. Support long displacements.
5495 (compute_x_addr): Support long displacements.
5496 (struct s390_prologue_data): New data type.
5497 (s390_on_stack): Change API to use struct s390_prologue_data.
5498 (s390_store): Reimplement.
5499 (s390_load): New function.
5500 (s390_get_signal_frame_info): Remove.
5501 (s390_get_frame_info): Remove, replace by ...
5502 (s390_analyze_prolog): ... this new function.
5503 (s390_check_function_end): Remove.
5504 (s390_function_start): Remove.
5505 (s390_frameless_function_invokation): Remove.
5506 (s390_is_sigreturn): Remove.
5507 (s390_init_frame_pc_first): Remove.
5508 (s390_init_frame_extra_info): Remove.
5509 (s390_frame_init_saved_regs): Remove.
5510 (s390_frame_saved_pc_nofix): Remove.
5511 (s390_frame_saved_pc): Remove.
5512 (s390_frame_chain): Remove.
5513 (s390_fp_regnum, s390_read_fp): Remove.
5514 (s390_pop_frame_regular, s390_pop_frame): Remove.
5515 (s390_saved_pc_after_call): Remove.
5516 (s390_skip_prologue): Reimplement.
5517 (s390_in_function_epilogue_p): Support long displacements.
5518 (struct s390_unwind_cache): New data structure.
5519 (s390_frame_unwind_cache): New function.
5520 (s390_prologue_frame_unwind_cache): Likewise.
5521 (s390_backchain_frame_unwind_cache): Likewise.
5522 (s390_frame_this_id, s390_frame_prev_register): Likewise.
5523 (s390_frame_unwind): Define.
5524 (s390_frame_sniffer): New function.
5525 (struct s390_pltstub_unwind_cache): New data structure.
5526 (s390_pltstub_frame_unwind_cache): New function.
5527 (s390_pltstub_frame_this_id): Likewise.
5528 (s390_pltstub_frame_prev_register): Likewise.
5529 (s390_pltstub_frame_unwind): Define.
5530 (s390_pltstub_frame_sniffer): New function.
5531 (struct s390_sigtramp_unwind_cache): New data structure.
5532 (s390_sigtramp_frame_unwind_cache): New function.
5533 (s390_sigtramp_frame_this_id): Likewise.
5534 (s390_sigtramp_frame_prev_register): Likewise.
5535 (s390_sigtramp_frame_unwind): Define.
5536 (s390_sigtramp_frame_sniffer): New function.
5537 (s390_frame_base_address, s390_local_base_address): New functions.
5538 (s390_frame_base): Define.
5539 (s390_unwind_pc, s390_unwind_sp): New function.
5540 (s390_push_dummy_call): Use new frame base location.
5541 (s390_unwind_dummy_id): Likewise.
5542 (s390_gdbarch_init): Remove calls to:
5543 set_gdbarch_frameless_function_invocation,
5544 set_gdbarch_deprecated_init_frame_pc,
5545 set_gdbarch_deprecated_frame_chain,
5546 set_gdbarch_deprecated_frame_init_saved_regs,
5547 set_gdbarch_deprecated_pop_frame,
5548 set_gdbarch_deprecated_init_extra_frame_info,
5549 set_gdbarch_deprecated_init_frame_pc_first,
5550 set_gdbarch_deprecated_target_read_fp,
5551 set_gdbarch_deprecated_frame_saved_pc,
5552 set_gdbarch_deprecated_saved_pc_after_call,
5553 set_gdbarch_deprecated_fp_regnum.
5554 Add calls to:
5555 set_gdbarch_in_solib_call_trampoline,
5556 frame_unwind_append_sniffer,
5557 frame_base_set_default,
5558 set_gdbarch_unwind_pc,
5559 set_gdbarch_unwind_sp.
5560 * Makefile.in (s390-tdep.o): Update dependencies.
5561
b0cf273e
JB
5562 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
5563 (S390_STACK_FRAME_OVERHEAD): Remove.
5564 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
5565 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
5566 (s390_promote_integer_argument): Remove.
5567 (s390_cannot_extract_struct_value_address): Remove.
5568 (s390_use_struct_convention, s390_store_struct_return): Remove.
5569 (s390_extract_return_value, s390_store_return_value): Remove.
5570 (s390_return_value_convention, s390_return_value): New functions.
5571 (is_float_singleton): Handle typedefs.
8a1dac83 5572 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
5573 Remove, replace by ...
5574 (s390_function_arg_pass_by_reference, s390_function_arg_float,
5575 s390_function_arg_integer): ... these new functions.
5576 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
5577 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
5578 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
5579 Fill in tdep->abi.
5580 Remove calls to:
5581 set_gdbarch_deprecated_store_struct_return,
5582 set_gdbarch_deprecated_extract_return_value,
5583 set_gdbarch_deprecated_store_return_value,
5584 set_gdbarch_use_struct_convention,
5585 set_gdbarch_extract_struct_value_address,
5586 set_gdbarch_deprecated_pc_in_call_dummy,
5587 set_gdbarch_deprecated_push_arguments,
5588 set_gdbarch_deprecated_save_dummy_frame_tos,
5589 set_gdbarch_deprecated_push_return_address,
5590 set_gdbarch_deprecated_sizeof_call_dummy_words,
5591 set_gdbarch_deprecated_call_dummy_words,
5592 set_gdbarch_deprecated_dummy_write_sp.
5593 Add calls to:
5594 set_gdbarch_push_dummy_call,
5595 set_gdbarch_unwind_dummy_id,
5596 set_gdbarch_return_value.
8a1dac83 5597
e1457d83
JB
5598 * config/s390/nm-linux.h: Update comments.
5599 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
5600 (STOPPED_BY_WATCHPOINT): Redefine.
5601 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
5602 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
5603 (s390_stopped_by_watchpoint): Likewise.
5604 (watch_area_cnt): Remove.
5605 * s390-nat.c: Update comments.
5606 (watch_area): Remove typedef.
5607 Global replace watch_area by struct watch_area.
5608 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 5609 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
5610 use s390_inferior_tid. Add short-cut for the no watchpoint case.
5611 (s390_fix_watch_points): Remove pid argument,
5612 use s390_inferior_tid. Recompute area spanned by watchpoints.
5613 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
5614 argument. Reimplement.
5615
d0f54f9d
JB
5616 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
5617 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
5618 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 5619 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
5620 core-regset.o.
5621 * config/s390/s390x.mt: Remove.
5622 * config/s390/tm-s390.h: Remove.
5623 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
5624 (TARGET_ELF64): Remove.
5625 (SKIP_TRAMPOLINE_CODE): Do not undefine.
5626 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
5627 s390*-*-* case; always set gdb_target to s390.
5628 * regformats/reg-s390.dat: Remove control registers.
5629 * regformats/reg-s390x.dat: Likewise.
5630 * s390-tdep.h: New file.
8a1dac83 5631 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
5632 Include "inferior.h" and "s390-tdep.h".
5633 Remove private definition of offsetof.
5634 (s390_register_u_addr): Remove.
5635 (regmap_gregset, regmap_fpregset): Define.
5636 (supply_gregset, fill_gregset): Reimplement.
5637 (supply_fpregset, fill_fpregset): Likewise.
5638 (s390_inferior_tid): New function.
5639 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
5640 (fetch_inferior_registers, store_inferior_registers): Likewise.
5641 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
5642 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
5643 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
5644 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
5645 (struct gdbarch_tdep): Define.
5646 (struct s390_register_info): Define.
5647 (s390_register_info): New variable.
5648 (s390_register_name): Reimplement.
5649 (s390_register_type): New function.
5650 (s390_register_raw_size, s390x_register_raw_size): Remove.
5651 (s390_cannot_fetch_register): Remove.
5652 (s390_register_byte): Remove.
5653 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
5654 (s390_dwarf_regmap): New variable.
5655 (s390_dwarf_reg_to_regnum): New function.
5656 (s390_stab_reg_to_regnum): Remove.
5657 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
5658 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
5659 (s390_convert_register_p): Likewise.
5660 (s390_register_to_value, s390_value_to_register): Likewise.
5661 (s390_register_reggroup_p): Likewise.
5662 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
5663 s390_gregset, s390x_gregset, s390_fpregset): New variables.
5664 (s390_supply_regset, s390_regset_from_core_section): New functions.
5665 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
5666 (S390_FPR_SIZE): Likewise.
5667 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
5668 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
5669 (S390_NUM_GPRS): Move here from tm-s390.h.
5670 (S390_NUM_FPRS): Likewise.
5671 (s390_in_function_epilogue_p): New function.
5672 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
5673 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
5674 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
5675 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
5676 Replace S390_FP_REGNUM by S390_SP_REGNUM.
5677 Remove calls to:
5678 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
5679 set_gdbarch_deprecated_max_register_virtual_size,
5680 set_gdbarch_deprecated_register_byte,
d0f54f9d 5681 set_gdbarch_cannot_fetch_register,
8a1dac83 5682 set_gdbarch_cannot_store_register,
d0f54f9d
JB
5683 set_gdbarch_deprecated_register_size,
5684 set_gdbarch_deprecated_register_raw_size,
5685 set_gdbarch_deprecated_register_virtual_size,
5686 set_gdbarch_deprecated_register_virtual_type,
5687 set_gdbarch_deprecated_register_bytes.
5688 Add calls to:
5689 set_gdbarch_num_pseudo_regs,
5690 set_gdbarch_register_type,
5691 set_gdbarch_convert_register_p,
5692 set_gdbarch_register_to_value,
5693 set_gdbarch_value_to_register,
5694 set_gdbarch_register_reggroup_p,
5695 set_gdbarch_regset_from_core_section,
5696 set_gdbarch_pseudo_register_read,
5697 set_gdbarch_pseudo_register_write,
5698 set_gdbarch_in_function_epilogue_p.
5699 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
5700 (s390_tdep_h): New variable.
5701
8cfe231d
JB
57022004-02-17 Jim Blandy <jimb@redhat.com>
5703
4589a601
JB
5704 * findvar.c (value_from_register): If the type has no length, just
5705 return an acceptable value --- don't report an internal error.
5706
8cfe231d
JB
5707 * stabsread.c (read_type): If we find any type numbers that are
5708 forward references, complain if the references aren't resolved by
5709 the time we're finished reading.
5710 (cleanup_undefined_types): Make error message more appropriate for
5711 a complaint.
5712
5bf0017e
EZ
57132004-02-17 Elena Zannoni <ezannoni@redhat.com>
5714
9d62932d
EZ
5715 * Makefile.in (defs_h): Remove dependency on progress_h.
5716 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
5717 progress.h.
5718 * main.c (captured_main): Delete use of START_PROGRESS and
5719 END_PROGRESS.
5720
57212004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 5722
5bf0017e
EZ
5723 * objfiles.c (terminate_minimal_symbol_table): Add back
5724 initialization of MSYMBOL_TYPE.
5725
9fc9f5e2
AC
57262004-02-17 David Mosberger <davidm@hpl.hp.com>
5727
5728 Committed by Andrew Cagney.
5729 * Makefile.in (ia64_tdep_h): New macro.
5730 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
5731 (ia64-tdep.o): Likewise.
5732 * ia64-tdep.h: New file.
5733 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
5734 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
5735 (ia64_aix_sigcontext_register_address): Likewise.
5736 (ia64_linux_getunwind_table): Delete declaration.
5737 * ia64-linux-tdep.c: Likewise.
5738
76cd2bd9
CV
57392004-02-17 Corinna Vinschen <vinschen@redhat.com>
5740
5741 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
5742 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
5743 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
5744
634aa483
AC
57452004-02-17 Andrew Cagney <cagney@redhat.com>
5746
5747 * symtab.c (skip_prologue_using_sal): New function.
5748 * symtab.h (skip_prologue_using_sal): Declare.
5749 * frv-tdep.c: Include "symtab.h".
5750 (skip_prologue_using_sal): Delete function.
5751 * mips-tdep.c (skip_prologue_using_sal): Delete function.
5752 * rs6000-tdep.c (refine_prologue_limit): Mention
5753 skip_prologue_using_sal.
5754 * ia64-tdep.c (refine_prologue_limit): Ditto.
5755 * Makefile.in: Update dependencies.
5756
57572004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 5758
39ce7b3f
AC
5759 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
5760 START_INFERIOR_TRAPS_EXPECTED.
5761 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
5762 START_INFERIOR_TRAPS_EXPECTED.
5763 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
5764 Delete macro.
5765 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
5766 macro, moved to "nm-osf.h". Update copyright.
5767 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
5768 update copyright.
5769
19772a2c
AC
5770 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
5771 and function replacing FRAMELESS_FUNCTION_INVOCATION.
5772 * blockframe.c (legacy_frameless_look_for_prologue): Rename
5773 frameless_look_for_prologue.
5774 * frame.h (legacy_frameless_look_for_prologue): Rename
5775 frameless_look_for_prologue.
5776 * gdbarch.h, gdbarch.c: Re-generate.
5777 * sh64-tdep.c (sh64_gdbarch_init): Update.
5778 * sh-tdep.c (sh_gdbarch_init): Update.
5779 * s390-tdep.c (s390_gdbarch_init): Update.
5780 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5781 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
5782 * m68k-tdep.c (m68k_gdbarch_init): Update.
5783 (delta68_frame_args_address): Update.
5784 * m32r-tdep.c (m32r_gdbarch_init): Update.
5785 * hppa-tdep.c (hppa_gdbarch_init): Update.
5786 * h8300-tdep.c (h8300_gdbarch_init): Update.
5787 * frv-tdep.c (frv_gdbarch_init): Update.
5788 (frv_frameless_function_invocation): Update.
5789 * cris-tdep.c (cris_gdbarch_init): Update.
5790 (cris_frameless_function_invocation): Update.
5791 * avr-tdep.c (avr_gdbarch_init): Update.
5792 * arm-tdep.c (arm_gdbarch_init): Update.
5793 * stack.c (frame_info): Update, call predicate.
5794 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
5795 * frame.c (legacy_get_prev_frame): Update, call predicate..
5796 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
5797 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
5798 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
5799 invocation.
5800 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5801 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5802 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
5803
5804 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
5805 function.
5806
7dcaac91
DJ
58072004-02-16 Daniel Jacobowitz <drow@mvista.com>
5808
5809 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
5810 initializations.
5811
88289b6e
AC
58122004-02-16 Andrew Cagney <cagney@redhat.com>
5813
5814 * tui/tui-windata.c: Include "gdb_string.h".
5815 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
5816 * tui/tui-layout.c, tui/tui-command.c: Ditto.
5817 * Makefile.in: Update dependencies.
5818
9f976b41
DJ
58192004-02-16 Daniel Jacobowitz <drow@mvista.com>
5820
5821 * Makefile.in (infrun.o): Add $(gdb_assert_h).
5822 * infrun.c: Include "gdb_assert.h".
5823 (singlestep_ptid, saved_singlestep_ptid)
5824 (stepping_past_singlestep_breakpoint): New variables.
5825 (resume): Set singlestep_ptid. Check for singlestep thread
5826 hop.
5827 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
5828 (handle_inferior_event): Handle singlestep thread hop.
5829
c324d747
AC
58302004-02-16 Andrew Cagney <cagney@redhat.com>
5831
f090b9b1
AC
5832 * dwarf2-frame.c (dwarf2_frame_ops): New function.
5833 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
5834 (dwarf2_frame_init_reg): Ditto.
5835
fd33e6cb
AC
5836 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
5837 suggested by Joshua Neuheisel
5838
c324d747
AC
5839 * configure.in: Always check for curses, including pdcurses.
5840 Warn, instead of error, when no curses are found. Enable TUI when
5841 curses is available.
5842 * configure: Re-generate.
5843
b66ba949
CV
58442004-02-16 Corinna Vinschen <vinschen@redhat.com>
5845
5846 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
5847 sh_sh4_register_convert_to_virtual.
5848 (sh_register_convert_to_raw): Rename from
5849 sh_sh4_register_convert_to_raw.
5850 (sh_pseudo_register_read): Accomodate above name change.
5851 (sh_pseudo_register_write): Ditto.
5852
b58cbbf2
CV
58532004-02-16 Corinna Vinschen <vinschen@redhat.com>
5854
5855 * sh-tdep.c (sh_generic_register_name): Remove.
5856 (sh_gdbarch_init): Use sh_sh_register_name in default case.
5857
5929a910
AC
58582004-02-15 Andrew Cagney <cagney@redhat.com>
5859
4566dfcf
AC
5860 * configure.in (build_warnings): Add -Wunused-function.
5861 * configure: Re-generate.
5862
db11ed55
AC
5863 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
5864 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
5865
46ac7a5d
AC
5866 * procfs.c (procfs_init_inferior): Assume that
5867 START_INFERIOR_TRAPS_EXPECTED is defined.
5868 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
5869 * config/ns32k/tm-nbsd.h: Delete file,
5870 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
5871
ba801595
AC
5872 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
5873 * config/vax/tm-vax.h: Delete file.
5874
5929a910
AC
5875 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5876 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5877 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5878 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5879 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
5880 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5881 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
5882
8f22cb90
MK
58832004-02-15 Mark Kettenis <kettenis@gnu.org>
5884
5885 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
5886 * dwarf2-frame.c (dwarf2_frame_data): New variable.
5887 (struct dwarf2_frame_ops): New.
5888 (dwarf2_frame_default_init_reg): New function, based on
5889 dwarf2_frame_init_reg.
5890 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
5891 (dwarf2_frame_init_reg): Call architecture-specific function.
5892 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
5893 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
5894 instead of dwarf2_frame_data.
5895 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
5896 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
5897
8132723e
AC
58982004-02-15 Andrew Cagney <cagney@redhat.com>
5899
046a4708
AC
5900 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
5901 register_gdbarch_swap.
5902 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
5903 * f-lang.c (_initialize_f_language): Update, use
5904 DEPRECATED_REGISTER_GDBARCH_SWAP.
5905 * remote.c (_initialize_remote): Ditto.
5906 * regcache.c (_initialize_regcache): Ditto.
5907 * parse.c (_initialize_parse): Ditto.
5908 * infrun.c (_initialize_infrun): Ditto.
5909 * mi/mi-main.c (_initialize_mi_main): Ditto.
5910 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 5911
549c1eea
AC
5912 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
5913 poking .cacheable directly.
5914 * symfile.c (symfile_bfd_open): Ditto.
5915
0c0b39de
AC
5916 * Makefile.in: Update all dependencies.
5917
8132723e
AC
5918 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
5919 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
5920 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
5921 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
5922 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 5923
b9d26eb9
AC
59242004-02-14 Andrew Cagney <cagney@redhat.com>
5925
8e1f669a
AC
5926 * arch-utils.c (legacy_convert_register_p): Check
5927 DEPRECATED_REGISTER_CONVERTIBLE_P.
5928 * findvar.c (value_of_register): Ditto.
5929
cd0bfa36
AC
5930 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
5931 * gdbarch.h, gdbarch.c: Re-generate.
5932 * arch-utils.c (deprecated_register_convertible_not): Delete.
5933 * arch-utils.h (deprecated_register_convertible_not): Delete.
5934 * mi/mi-main.c (get_register): Update. Update copyright.
5935 * infcmd.c (default_print_registers_info): Update.
5936
b9d26eb9
AC
5937 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
5938 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
5939 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 5940 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
5941 * frame.c (deprecated_get_next_frame_hack): Delete function.
5942 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
5943 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
5944 Update.
5945 * infcall.c (call_function_by_hand): Update.
5946
9ab9195f
EZ
59472004-02-14 Elena Zannoni <ezannoni@redhat.com>
5948
5949 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 5950 from here...
9ab9195f
EZ
5951 * objfiles.c (init_entry_point_info, entry_point_address):..to
5952 here.
5953 * symfile.h (init_entry_point_info, entry_point_address): Remove
5954 prototypes.
5955 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 5956 prototypes.
9ab9195f
EZ
5957 * cris-tdep.c: Remove include of symfile.h. Add include of
5958 objfiles.h.
5959 * infcall.c: Ditto.
5960 * mcore-tdep.c: Ditto.
5961 * mn10300-tdep.c: Ditto.
5962 * sh64-tdep.c: Ditto.
5963 * v850-tdep.c: Ditto.
5964 * arm-tdep.c: Remove include of symfile.h.
5965 * blockframe.c: Ditto.
5966 * coffread.c: Ditto.
5967 * dbxread.c: Ditto.
5968 * dwarf2read.c: Ditto.
5969 * dwarfread.c: Ditto.
8a1dac83 5970 * frv-tdep.c: Ditto.
9ab9195f
EZ
5971 * ia64-tdep.c: Ditto.
5972 * mdebugread.c: Ditto.
5973 * mipsread.c: Ditto.
8a1dac83 5974 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
5975 * s390-tdep.c: Ditto.
5976 * sh-tdep.c: Ditto.
8a1dac83 5977 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
5978 * gdbarch.sh: Remove include of symfile.h.
5979 * gdbarch.c: Regenerate.
5980 * solib-irix.c (enable_break): Use entry_point_address().
5981 Add comment about include file.
5982 * xcoffread.c: Add comment about include file.
8a1dac83
RM
5983 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
5984 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
5985 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
5986 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
5987 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
5988
c4c5b7ba
AC
59892004-02-13 Andrew Cagney <cagney@redhat.com>
5990
5991 * corelow.c (core_xfer_partial): Use "struct bfd_section".
5992 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
5993 copyright.
5994 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
5995
3e7879de
FF
59962004-02-12 Fred Fish <fnf@redhat.com>
5997
5998 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
5999 set_gdbarch_store_return_value.
6000
6a7760b6
AC
60012004-02-12 Andrew Cagney <cagney@redhat.com>
6002
6003 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
6004 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
6005 (interrupt_query): Ditto.
6006 (ofunc): Delete unused variable.
6007 * cris-tdep.c (cris_abi): Delete unused function.
6008 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
6009 (cris_get_wide_opcode, cris_get_short_size): Ditto.
6010 (cris_get_asr_quick_shift_steps): Ditto.
6011 (cris_skip_prologue_frameless_p): Ditto.
6012 * arm-tdep.c (arm_push_return_address): Delete unused function.
6013 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
6014 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
6015 * s390-tdep.c (s390_function_start): Delete unused function.
6016
31687c3c
AC
60172004-02-12 Andrew Cagney <cagney@redhat.com>
6018
6019 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
6020 gdbarch.h, gdbarch.c: Re-generate.
6021 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
6022 to generic_prologue_frameless_p.
6023 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
6024 * arch-utils.c (generic_prologue_frameless_p): Delete function.
6025
6de918a6
DJ
60262004-02-11 Daniel Jacobowitz <drow@mvista.com>
6027
6028 * mips-linux-tdep.c: Include "frame.h".
6029 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
6030 (mips_linux_skip_resolver): New functions.
6031 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
6032 and set_gdbarch_in_solib_call_trampoline.
6033 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
6034 to after set_gdbarch_in_solib_return_trampoline. Only set the
6035 solib hooks to mips16 functions if the OS ABI is unknown.
6036 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
6037 including "config/tm-linux.h".
6038 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
6039 * Makefile.in (mips-linux-tdep.o): Update.
6040
87b3ede8
DC
60412004-02-11 David Carlton <carlton@kealia.com>
6042
6043 * linespec.c (decode_compound): Only look for a class symbol when
6044 considering all but the rightmost component.
6045
5979bc46
AC
60462004-02-11 Andrew Cagney <cagney@redhat.com>
6047
6048 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
6049 abi code are are separatly grouped.
6050
5867a2fb
AC
60512004-02-11 Andrew Cagney <cagney@redhat.com>
6052
6053 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
6054 * gdbarch.h, gdbarch.c: Re-generate.
6055 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6056 * v850-tdep.c (v850_gdbarch_init): Update.
6057 * sh64-tdep.c (sh64_gdbarch_init): Update.
6058 * sh-tdep.c (sh_gdbarch_init): Update.
6059 * s390-tdep.c (s390_gdbarch_init): Update.
6060 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6061 * mips-tdep.c (mips_gdbarch_init): Update.
6062 * mcore-tdep.c (mcore_gdbarch_init): Update.
6063 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6064 * m32r-tdep.c (m32r_gdbarch_init): Update.
6065 * ia64-tdep.c (ia64_gdbarch_init): Update.
6066 * hppa-tdep.c (hppa_gdbarch_init): Update.
6067 * h8300-tdep.c (h8300_gdbarch_init): Update.
6068 * frv-tdep.c (frv_gdbarch_init): Update.
6069 * d10v-tdep.c (d10v_gdbarch_init): Update.
6070 * cris-tdep.c (cris_gdbarch_init): Update.
6071 * avr-tdep.c (avr_gdbarch_init): Update.
6072 * arm-tdep.c (arm_gdbarch_init): Update.
6073 * alpha-tdep.c (alpha_gdbarch_init): Update.
6074
026a72f8
CV
60752004-02-11 Corinna Vinschen <vinschen@redhat.com>
6076
6077 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
6078 comma.
6079 (sh_sh4al_dsp_register_name): Ditto.
6080
3903d437
AC
60812004-02-10 Andrew Cagney <cagney@redhat.com>
6082
6083 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
6084 (mips_init_frame_pc_first): Delete function.
6085 (mips_frame_saved_pc): Delete function.
6086 (mips_frame_chain): Delete function.
6087 (mips_init_extra_frame_info): Delete function.
6088 (mips_xfer_register): Delete unused variable "reg".
6089 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
6090 (mips_n32n64_return_value): Delete unused variable "reg".
6091 (mips_n32n64_return_value): Delete unused variable "pos".
6092 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
6093 (mips_o32_return_value): Delete unused variable "pos".
6094 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
6095 (mips_print_fp_register): Delete unused variable "namelen"
6096 (mips_print_fp_register): Delete unused variable "flt2"
6097 (get_frame_pointer): Delete function.
6098 (cached_proc_desc): Delete static variable.
6099 (mips_pop_frame): Delete function.
6100 (mips_find_saved_regs): Delete function.
6101 (mips_get_saved_register): Delete function.
6102 (mips_saved_pc_after_call): Delete function.
6103 (SIGFRAME_BASE): Delete macro.
6104 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
6105 (SIGFRAME_PC_OFF): Delete macro.
6106 (SIGFRAME_REGSAVE_OFF): Delete macro.
6107 (mips_dump_tdep): Do not print deleted macro definitions.
6108
b9fb98bd
AC
61092004-02-10 Andrew Cagney <cagney@redhat.com>
6110
6111 * Makefile.in (SFILES): Remove explictly listed tui files.
6112 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
6113
78ced177 61142004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 6115
78ced177
JJ
6116 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
6117 to use paddr functions to format ia64 addresses and long values.
6118 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
6119 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
6120 (get_kernel_table, ia64_find_proc_info_x): Ditto.
6121 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
6122 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
6123
6a83354a
AC
61242004-02-10 Andrew Cagney <cagney@redhat.com>
6125
6126 * defs.h: Do not include "tui.h".
6127 * gdb_curses.h: New file.
6128 * tui/tui-hooks.h: New file.
6129 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
6130 (tui_install_hooks, tui_remove_hooks): Delete declarations.
6131 (tui_initialize_io): Delete declaration.
6132 (tui_initialize_readline: Delete redundant declaration.
6133 (struct tui_point): Delete definition.
6134 * tui/tui-data.h (struct tui_point): Define.
6135 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
6136 * utils.c: Include "tui/tui.h".
6137 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
6138 * printcmd.c [TUI]: Include "tui/tui.h".
6139 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
6140 * tui/tui-command.c: Include "gdb_curses.h".
6141 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
6142 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
6143 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
6144 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
6145 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
6146 * Makefile.in: Update all dependencies.
6147 (tui_hooks_h, gdb_curses_h): Define.
6148 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
6149
997470ef
EZ
61502004-02-10 Elena Zannoni <ezannoni@redhat.com>
6151
6152 * objfiles.h (struct objfile): Remove unused fields auxf1 and
6153 auxf2. Add comments about some other rarely used fields.
6154
4ff2cc4d
AC
61552004-02-10 Andrew Cagney <cagney@redhat.com>
6156
6157 * Makefile.in (init.c): Fix script removing duplicates. Problem
6158 reported by Peter Schauer.
6159
1ab21617
EZ
61602004-02-09 Elena Zannoni <ezannoni@redhat.com>
6161
6162 * bcache.c (bcache_xmalloc): Use obstack_init instead of
6163 obstack_specify_allocation.
6164 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 6165 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
6166 (allocate_rt_common_objfile): Ditto.
6167 * symfile.c (reread_symbols): Ditto.
6168 * gdb_obstack.h: Add comment.
6169
17763fd9
EZ
61702004-02-09 Elena Zannoni <ezannoni@redhat.com>
6171
6172 * linespec.c (decode_line_1, locate_first_half)
6173 (decode_compound, lookup_prefix_sym): Update comments. Delete old
6174 commented out code.
6175
ec5cdd75
DJ
61762004-02-09 Daniel Jacobowitz <drow@mvista.com>
6177
6178 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
6179 obstack_free.
6180
43b54b88
AC
61812004-02-09 Andrew Cagney <cagney@redhat.com>
6182
6183 * blockframe.c (find_pc_partial_function): If find_pc_overlay
6184 fails, try find_pc_section. Fix PR c++/1267.
6185 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
6186 instead of find_pc_mapped_section.
6187 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
6188 not default to the section containing PC. Fix PR symtab/1519.
6189
edfae063
AC
61902004-02-09 Andrew Cagney <cagney@redhat.com>
6191
6192 * Makefile.in (mips-tdep.o): Update dependencies.
6193 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
6194 "trad-frame.h".
6195 (mips_unwind_pc): Return the pseudo PC register.
6196 (mips_unwind_dummy_id): New function.
6197 (mips16_fetch_instruction): New function.
6198 (mips32_fetch_instruction): New function.
6199 (struct mips_frame_cache): Define.
6200 (mips_mdebug_frame_cache): New function.
6201 (mips_mdebug_frame_this_id): New function.
6202 (mips_mdebug_frame_prev_register): New function.
6203 (mips_mdebug_frame_unwind): Define.
6204 (mips_mdebug_frame_sniffer): New function.
6205 (mips_mdebug_frame_base_address): New function.
6206 (mips_mdebug_frame_base): Define.
6207 (mips_mdebug_frame_base_sniffer): New function.
6208 (mips_gdbarch_init): Append unwind and base sniffers. Set
6209 unwind_dummy_id.
6210
defc864c
AC
62112004-02-08 Andrew Cagney <cagney@redhat.com>
6212
6764ddad
AC
6213 * frame.c: Print both the register number and name.
6214
defc864c
AC
6215 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
6216 and a sed into a single sed. Make .c and .o patterns more robust.
6217 (OBS): Delete.
6218 (INIT_FILES): Replace OBS with COMMON_OBS.
6219 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
6220
645d6d10
MK
62212004-02-08 Mark Kettenis <kettenis@gnu.org>
6222
6223 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
6224 the PT_WCOOKIE request.
6225
23e3c3fc
AC
62262004-02-08 Andrew Cagney <cagney@redhat.com>
6227
58dfe9ff
AC
6228 * mips-tdep.c (mips_unwind_pc): New function.
6229 (mips_gdbarch_init): Set mips_unwind_pc.
6230
1152e35e
AC
6231 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
6232 (get_frame_id): Allow the UNKNOWN_FRAME.
6233 (frame_register_unwind, get_frame_type): Ditto.
6234
31b75dbf
AC
6235 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
6236 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
6237 unwind_dummy_id indicates a legacy frame.
6238
3483b318
AC
6239 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
6240 * configure: Re-generate.
6241
23e3c3fc
AC
6242 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
6243 methods.
6244
33f8ca73
AC
62452004-02-08 Andrew Cagney <cagney@redhat.com>
6246
6247 * configure.in (CONFIG_ALL): Set to Makefile target, and not
6248 makefile macro.
6249 * configure: Re-generate.
6250 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
6251 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
6252 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
6253 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
6254 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
6255 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
6256 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
6257 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
6258 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
6259 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
6260
6ba8e26f 62612004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 6262
20d286a5
AC
6263 * Makefile.in: Update all dependencies.
6264
d836ee13
AC
6265 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
6266 * configure: Re-generate.
6267 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
6268 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
6269 (COMMON_OBS): Add "main.o" and "annotate.o".
6270 (ANNOTATE_OBS): Delete.
6271 (OBS): Remove ANNOTATE_OBS.
6272 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
6273 CONFIG_INITS.
6274 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
6275 against CONFIG_OBS and "main.o".
6276 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
6277 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
6278
d02c80cd
AC
6279 * tui/tui-command.c: Include "gdb_string.h", delete register
6280 attribute, use ISO-C function signatures.
6281 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
6282 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
6283 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
6284 * tui/tui.c: Ditto.
6ba8e26f
AC
6285
6286 * tui/tui-command.c: Change variable and function names to lower
6287 case.
6288 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
6289 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
6290 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
6291 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
6292 * tui/tui-winsource.c, tui/tui.c: Ditto.
6293
4a146b47
EZ
62942004-02-07 Elena Zannoni <ezannoni@redhat.com>
6295
6296 * buildsym.c (free_pending_blocks, finish_block)
6297 (record_pending_block, make_blockvector, end_symtab): Replace
6298 symbol_obstack with objfile_obstack.
8a1dac83 6299 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 6300 (coff_read_enum_type): Ditto.
8a1dac83 6301 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 6302 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 6303 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
6304 (dwarf2_symbol_mark_computed): Ditto.
6305 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
6306 * elfread.c (elf_symtab_read): Ditto.
6307 * hpread.c (hpread_symfile_init, hpread_symfile_init)
6308 (hpread_read_enum_type, hpread_read_function_type)
6309 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
6310 Ditto.
8a1dac83 6311 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 6312 (java_link_class_type): Ditto.
8a1dac83 6313 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
6314 (new_symbol): Ditto.
6315 * minsyms.c (install_minimal_symbols): Ditto.
6316 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
6317 (terminate_minimal_symbol_table): Replace symbol_obstack with
6318 objfile_obstack.
6319 (free_objfile): Remove freeing of symbol_obstack.
6320 * objfiles.h: Remove symbol_obstack field.
6321 * pa64solib.c (add_to_solist): Replace symbol_obstack with
6322 objfile_obstack.
6323 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
6324 symbol_obstack.
6325 (solib_add_common_symbols): Replace symbol_obstack with
6326 objfile_obstack.
6327 * somsolib.c (som_solib_add): Ditto.
6328 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6329 (common_block_start, common_block_end): Ditto.
6330 * symfile.c (reread_symbols): Remove freeing and init of
6331 symbol_obstack.
6332 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
6333 * symfile.h: Update comment.
6334 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
6335 stats printing.
6336 * symtab.c (symbol_set_names): Replace symbol_obstack with
6337 objfile_obstack.
6338 * symtab.h (struct general_symbol_info, struct minimal_symbol):
6339 Update comments.
6340 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
6341 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
6342 objfile_obstack.
6343
6d012f14
AC
63442004-02-07 Andrew Cagney <cagney@redhat.com>
6345
6346 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
6347 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
6348 fields and variables.
6349 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
6350 (m_beInvisible): Delete macro.
6351 * tui/tui-data.h: Fix case case fields and variables.
6352 (m_genWinPtrIsNull): Delete macro.
6353 (tui_win_list): Rename winList.
6354 (TUI_SRC_WIN): Rename srcWin.
6355 (TUI_DISASM_WIN): Rename disassemWin.
6356 (TUI_DATA_WIN): Rename dataWin.
6357 (TUI_CMD_WIN): Rename cmdWin.
6358 (m_genWinPtrNotNull): Delete macro.
6359 (m_winPtrIsNull): Delete macro.
6360 (m_winPtrNotNull): Delete macro.
6361 (tui_win_is_source_type): Replace m_winIsSourceType
6362 (tui_win_is_auxillary): Replace m_winIsAuzillary.
6363 (tui_win_has_locator): Replace m_hasLocator.
6364 (tui_set_win_highlight): Replace m_setWinHighlightOn and
6365 m_setWinHighlightOff.
6366 * tui/tui-data.c: Update references.
6367 (tui_win_is_source_type, tui_set_win_highlight): New functions.
6368 (tui_win_has_locator, tui_win_is_auxillary): New functions.
6369 * tui/tui-command.c, tui/tui-disasm.c: Update references.
6370 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
6371 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
6372 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
6373 * tui/tui-winsource.c, tui/tui.c: Ditto.
6374
7d34766b
MK
63752004-02-07 Mark Kettenis <kettenis@gnu.org>
6376
1c800673
MK
6377 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
6378 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
6379 StackGhost.
6380
7d34766b
MK
6381 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
6382 variable `i6' to `i7'.
6383 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
6384
22940a24
AC
63852004-02-07 Andrew Cagney <cagney@redhat.com>
6386
6387 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
6388 (TuiPoint, TuiPointPtr): Ditto.
6389 (TuiStatus, TuiStatusPtr): Ditto.
6390 (TuiWinType, TuiWinTypePtr): Ditto.
6391 (struct tui_point): Rename _TuiPoint.
6392 (tui_get_low_disassembly_address): Rename
6393 tuiGetLowDisassemblyAddress.
6394 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
6395 (tuiFree): Delete declaration.
6396 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
6397 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
6398 * tui/tui.c (tuiFree): Delete function.
6399 * cli/cli-cmds.c (disassemble_command): Update references.
6400 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
6401 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
6402 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
6403 * tui/tui-winsource.c: Ditto.
6404
8b92e4d5
EZ
64052004-02-07 Elena Zannoni <ezannoni@redhat.com>
6406
6407 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
6408 coffstab_build_psymtabs, elfstab_build_psymtabs)
6409 (stabsect_build_psymtabs): Replace psymbol_obstack with
6410 objfile_obstack.
6411 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
6412 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
6413 Ditto.
6414 * dwarfread.c (scan_compilation_units): Ditto.
6415 * elfread.c (elfstab_offset_sections): Ditto.
6416 * hppa-tdep.c (read_unwind_info): Ditto.
6417 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
6418 (hpread_end_psymtab): Ditto.
6419 * mdebugread.c (mdebug_build_psymtabs, add_pending)
6420 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
6421 Ditto.
6422 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 6423 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
6424 (build_objfile_section_table): Ditto.
6425 (allocate_objfile): Remove init of psymbol_obstack.
6426 (free_objfile): Remove freeing of psymbol_obstack.
6427 * objfiles.h (struct objfile): Remove field
6428 psymbol_obstack. Update comments.
6429 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
6430 psymbol_obstack with objfile_obstack.
6431 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
6432 psymbol_obstack.
6433 * somread.c (som_symfile_offsets, init_import_symbols)
6434 (init_export_symbols): Replace psymbol_obstack with
6435 objfile_obstack.
6436 * somsolib.c (som_solib_add_solib_objfile): Ditto.
6437 * symfile.c (default_symfile_offsets, syms_from_objfile)
6438 (reread_symbols): Remove freeing and init of psymbol_obstack.
6439 (cashier_psymtab): Update comment.
6440 * symmisc.c (print_objfile_statistics): Don't report stats for
6441 psymbol obstack.
6442 * symtab.h (struct general_symbol_info, struct partial_symtab):
6443 Update comments.
6444 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
6445 (xcoff_symfile_offsets): Replace psymbol_obstack with
6446 objfile_obstack.
6447
b99607ea
EZ
64482004-02-07 Elena Zannoni <ezannoni@redhat.com>
6449
6450 * objfiles.h (struct objfile): Add objfile_obstack field.
6451 Remove type_obstack field.
6452
6453 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
6454 read_structure_scope read_enumeration, new_symbol): Replace
6455 type_obstack with objfile_obstack.
6456 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 6457 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
6458 (lookup_fundamental_type): Ditto.
6459 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
6460 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
6461 (hpread_read_doc_function_type, hpread_read_struct_type)
6462 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 6463 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 6464 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
6465 (java_link_class_type): Ditto.
6466 * mdebugread.c (parse_type): Ditto.
6467 * objfiles.c (allocate_objfile, free_objfile): Ditto.
6468 * solib-sunos.c (solib_add_common_symbols): Ditto.
6469 * stabsread.c (define_symbol, read_type, read_member_functions,
6470 read_cpp_abbrev, read_one_struct_field): Ditto.
6471 * symfile.c (reread_symbols): Ditto.
6472 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 6473
2a8854a7
AC
64742004-02-07 Andrew Cagney <cagney@redhat.com>
6475
6476 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
6477 (tui_exec_info_content): Rename TuiExecInfoContent.
6478 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
6479 (TuiWinInfo, TuiWinInfoPtr): Ditto.
6480 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
6481 (TuiList, TuiListPtr): Ditto.
6482 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
6483 (TuiDataType, TuiDataTypePtr): Ditto.
6484 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
6485 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
6486 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
6487 (TuiSourceElement, TuiSourceElementPtr): Ditto.
6488 (TuiDataElement, TuiDataElementPtr): Ditto.
6489 (TuiWinElement, TuiWinElementPtr): Ditto.
6490 (TuiDataInfo, TuiDataInfoPtr): Ditto.
6491 (TuiCommandElement, TuiCommandElementPtr): Ditto.
6492 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
6493 (TuiWhichElement, TuiWhichElementPtr): Ditto.
6494 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
6495 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
6496 * tui/tui-command.c, tui/tui-data.c: Update references.
6497 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
6498 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
6499 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
6500 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 6501
05cbe71a
MK
65022004-02-07 Mark Kettenis <kettenis@gnu.org>
6503
6504 * dwarf2-frame.h: Update copyright.
6505 (enum dwarf2_frame_reg_rule): New.
6506 (struct dwarf2_frame_state_reg): New.
6507 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
6508 * dwarf2-frame.c: Update copyright.
6509 (enum dwarf2_reg_rule): Remove.
6510 (struct dwarf2_frame_state): Remove defenition of `struct
6511 dwarf2_frame_state_reg'.
6512 (read_reg): Call get_frame_arch to get the architecture instead of
6513 using CURRENT_GDBARCH.
6514 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
6515 DWARF2_FRAME_.
6516 (dwarf2_frame_init_reg): New function.
6517 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
6518 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
6519 initialize the register state. Prefix old `enum dwarf2_reg_rule'
6520 tags with DWARF2_FRAME_.
6521 (dwarf2_frame_prev_register): Call get_frame_arch to get the
6522 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
6523 dwarf2_reg_rule' tags with DWARF2_FRAME_.
6524
ec7d9e56
AC
65252004-02-06 Andrew Cagney <cagney@redhat.com>
6526
dd1abb8c
AC
6527 * tui/tui-data.h (struct tui_list): Rename _TuiList.
6528 (enum tui_data_type): Rename _TuiDataType.
6529 (struct tui_layout_def): Rename _TuiLayoutDef.
6530 (struct tui_source_element): Rename _TuiSourceElement.
6531 (struct tui_data_element): Rename _TuiDataElement.
6532 (struct tui_command_element): Rename _TuiCommandElement.
6533 (struct tui_locator_element): Rename _TuiLocatorElement.
6534 (union tui_which_element): Define.
6535 (struct tui_win_element): Rename _TuiWinElement.
6536 (struct tui_data_info): Rename _TuiDataInfo.
6537 (struct tui_source_info): Rename _TuiSourceInfo.
6538 (struct tui_command_info): Rename _TuiCommandInfo.
6539 (tui_initialize_static_data): Rename initializeStaticData.
6540 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
6541 (tui_alloc_win_info): Rename allocWinInfo.
6542 (tui_init_generic_part): Rename initGenericPart.
6543 (tui_init_win_info): Rename initWinInfo.
6544 (tui_alloc_content): Rename allocContent.
6545 (tui_add_content_elements): Rename addContentElements.
6546 (tui_init_content_element): Rename initContentElement.
6547 (tui_free_window): Rename freeWindow.
6548 (tui_free_win_content): Rename freeWinContent.
6549 (tui_free_data_content): Rename freeDataContent.
6550 (tui_free_all_source_wins_content): Rename
6551 freeAllSourceWinsContent.
6552 (tui_del_window): Rename tuiDelWindow.
6553 (tui_del_data_windows): Rename tuiDelDataWindows.
6554 (tui_partial_win_by_name): Rename partialWinByName.
6555 (tui_win_name): Rename winName.
6556 (tui_current_layout): Rename currentLayout.
6557 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
6558 (tui_term_height): Rename termHeight.
6559 (tui_set_term_height_to): Rename setTermHeightTo.
6560 (tui_term_width): Rename termWidth.
6561 (tui_set_term_width_to): Rename setTermWidthTo.
6562 (tui_set_gen_win_origin): Rename setGenWinOrigin.
6563 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
6564 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
6565 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
6566 (tui_source_windows): Rename sourceWindows.
6567 (tui_clear_source_windows): Rename clearSourceWindows.
6568 (tui_clear_source_windows_detail): Rename
6569 clearSourceWindowsDetail.
6570 (tui_clear_win_detail): Rename clearWinDetail.
6571 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
6572 (tui_default_tab_len): Rename tuiDefaultTabLen.
6573 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
6574 (tui_win_with_focus): Rename tuiWinWithFocus.
6575 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
6576 (tui_layout_def): Rename tuiLayoutDef.
6577 (tui_win_resized): Rename tuiWinResized.
6578 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
6579 (tui_next_win): Rename tuiNextWin.
6580 (tui_prev_win): Rename tuiPrevWin.
6581 (tui_add_to_source_windows): Rename addToSourceWindows.
6582 * tui/tui-winsource.c, tui/tui-win.c: Update references.
6583 * tui/tui-layout.c, tui/tui-source.c: Ditto.
6584 * tui/tui-stack.c, tui/tui-io.c: Ditto.
6585 * tui/tui.c, tui/tui-data.c: Ditto.
6586 * tui/tui-interp.c, tui/tui-data.c: Ditto.
6587 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
6588
a358af15
AC
6589 * tui/tui-source.h: Update copyright. Include "tui-data.h".
6590 (struct symtab): Declare.
6591 (tui_set_source_content): Rename tuiSetSourceContent.
6592 (tui_show_symtab_source): Rename tuiShowSource.
6593 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
6594 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
6595 * tui/tui-source.c: Update copyright. Update references.
6596 * tui/tui-win.c, tui/tui-winsource.c: Update references.
6597 * tui/tui-stack.c: Update references.
6598
a21fcd8f
AC
6599 * tui/tui-win.h: Update copyright. Include "tui-data.h".
6600 (struct tui_win_info): Declare.
6601 (tui_scroll_forward): Rename tuiScrollForward.
6602 (tui_scroll_backward): Rename tuiScrollBackward.
6603 (tui_scroll_left): Rename tuiScrollLeft.
6604 (tui_scroll_right): Rename tuiScrollRight.
6605 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
6606 (tui_resize_all): Rename tuiResizeAll.
6607 (tui_refresh_all_win): Rename tuiRefreshAll.
6608 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
6609 * tui/tui-layout.c, * tui/tui-io.c: Update references.
6610 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
6611 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
6612
edae1ccf
AC
6613 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
6614 (tui_erase_data_content): Rename tuiEraseDataContent.
6615 (tui_display_all_data): Rename tuiDisplayAllData.
6616 (tui_check_data_values): Rename tuiCheckDataValues.
6617 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
6618 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
6619 (tui_first_data_element_no_in_line): Rename
6620 tuiFirstDataElementNoInLine.
6621 (tui_delete_data_content_windows): Rename
6622 tuiDeleteDataContentWindows.
6623 (tui_refresh_data_win): Rename tuiRefreshDataWin.
6624 (tui_display_data_from): Rename tuiDisplayDataFrom.
6625 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
6626 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
6627 * tui/tui-win.c, tui/tui-regs.c: Update references.
6628 * tui/tui-layout.c, tui/tui.c: Update references.
6629
ec7d9e56
AC
6630 * tui/tui-wingeneral.h: Update copyright.
6631 (m_allBeVisible): Delete macro.
8a1dac83 6632 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
6633 (struct tui_gen_win_info): Declare.
6634 (struct tui_win_info): Declare.
6635 (tui_unhighlight_win): Rename unhighlightWin.
6636 (tui_make_visible, tui_make_invisible): Replace makeVisible.
6637 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
6638 (tui_make_window): Rename makeWindow.
6639 (tui_copy_win): Rename copyWin.
6640 (tui_box_win): Rename boxWin.
6641 (tui_highlight_win): Rename highlightWin.
6642 (tui_check_and_display_highlight_if_needed): Rename
6643 checkAndDisplayHighlightIfNeeded.
6644 (tui_refresh_all): Rename refreshAll.
6645 (tui_delete_win): Rename tuiDelwin.
6646 (tui_refresh_win): Rename tuiRefreshWin.
6647 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
6648 (tui_make_visible, tui_make_invisible): New functions.
6649 (tui_make_all_visible, tui_make_all_invisible): New functions.
6650 (make_all_visible): Rename makeAllVisible.
6651 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
6652 * tui/tui-data.c, tui/tui-winsource.c: Update references.
6653 * tui/tui-windata.c, tui/tui-win.c: Update references.
6654 * tui/tui-regs.c, tui/tui-layout.c: Update references.
6655 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
6656
1e52e2eb
MK
66572004-02-06 Mark Kettenis <kettenis@gnu.org>
6658
6659 * proc-api.c (write_with_trace): Initialize local variable to
6660 silence compiler warning.
6661
f80bda8e
AC
66622004-02-06 Andrew Cagney <cagney@redhat.com>
6663
6664 * tui/tui-source.h: Do not include "defs.h".
6665 (struct tui_win_info): Declare.
6666 (tui_set_source_content_nil): Declare.
6667 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
6668 (union tui_line_or_address): Rename _TuiLineOrAddress.
6669 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
6670 (tui_update_source_window): Rename tuiUpdateSourceWindow.
6671 (tui_update_source_window_as_is): Rename
6672 tuiUpdateSourceWindowAsIs.
6673 (tui_update_source_windows_with_addr): Rename
6674 tuiUpdateSourceWindowsWithAddr.
6675 (tui_update_source_windows_with_line): Rename
6676 tuiUpdateSourceWindowsWithLine.
6677 (tui_clear_source_content): Rename tuiClearSourceContent.
6678 (tui_erase_source_content): Rename tuiEraseSourceContent.
6679 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
6680 (tui_show_source_content): Rename tuiShowSourceContent.
6681 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
6682 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
6683 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
6684 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
6685 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
6686 (tui_update_exec_info): Rename tuiUpdateExecInfo.
6687 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
6688 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
6689 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
6690 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
6691 (struct tui_win_info): Declare.
6692 * tui/tui-stack.c: Update references.
6693 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
6694 * tui/tui-win.c, tui/tui-source.c: Ditto.
6695 * tui/tui.c, tui/tui-disasm.c: Ditto.
6696
9fbfb822
MK
66972004-02-06 Mark Kettenis <kettenis@gnu.org>
6698
6699 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
6700 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
6701
03cebad2
MK
67022004-02-05 Mark Kettenis <kettenis@gnu.org>
6703
6704 * infrun.c (handle_inferior_event): Allow for breakpoint
6705 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
6706 and SIGEMT. Update comments.
6707 * NEWS (Revised SPARC target): Mention support for non-executable
6708 stack.
6709
290281b1
MK
67102004-02-04 Mark Kettenis <kettenis@gnu.org>
6711
6712 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
6713 * inftarg.c: Update copyright year.
6714 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
6715 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
6716 (sparc_xfer_wcookie): New function.
6717 * sparc-tdep.c (sparc_fetch_wcookie): New function.
6718 * Makefile.in (sparc-nat.o): Update dependencies.
6719 * config/sparc/nm-nbsd.h: Include "target.h".
6720 (NATIVE_XFER_WCOOKIE): New define.
6721 (sparc_xfer_wcookie): New prototype.
6722
212161df
AC
67232004-02-04 Andrew Cagney <cagney@redhat.com>
6724
6725 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
6726 SYSCALL_TRAP function.
6727 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
6728
6e4c6c91
DJ
67292004-02-04 Andrew Cagney <cagney@redhat.com>
6730 Daniel Jacobowitz <drow@mvista.com>
6731
6732 * objfiles.h: Delete comments refering to inside_entry_func and
6733 DEPRECATED_FRAME_CHAIN_VALID.
6734 * defs.h (inside_entry_func): Update prototype..
6735 * blockframe.c (inside_entry_func): Rename to
6736 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
6737 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
6738
cae688ec
JJ
67392004-02-03 Jeff Johnston <jjohnstn@redhat.com>
6740
6741 * breakpoint.c (struct captured_parse_breakpoint_args): Move
6742 outside of #ifdef SOLIB_ADD region.
6743 (do_restore_lang_radix_cleanup): Ditto.
6744 (resolve_pending_breakpoint): Ditto.
6745
19217676
AC
67462004-02-03 Andrew Cagney <cagney@redhat.com>
6747
6748 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
6749 (process_note_abi_tag_sections): Delete unused function.
6750 (ia64_read_fp): Delete unused function.
6751 (gdbarch_extract_struct_value_address): Delete declaration.
6752
876753be
AC
67532004-02-02 Andrew Cagney <cagney@redhat.com>
6754
6755 * vax-tdep.c (vax_frame_chain): Delete call to
6756 deprecated_inside_entry_file.
6757 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
6758
d4f10bf2
MK
67592004-02-02 Mark Kettenis <kettenis@gnu.org>
6760
6761 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
6762 column that's "empty" or "same value" when eliminating REG_RA
6763 rules.
6764
cae688ec
JJ
67652004-02-02 Jeff Johnston <jjohnstn@redhat.com>
6766
6767 * NEWS: Add information about new pending breakpoint support.
6768
0101ce28
JJ
67692004-02-02 Jeff Johnston <jjohnstn@redhat.com>
6770
6771 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
6772 and pending fields for pending breakpoint support.
6773 * breakpoint.c (breakpoint_enabled): Add check for not pending.
6774 (condition_command): Only parse condition if not a pending
6775 breakpoint.
6776 (print_one_breakpoint): Add support for pending breakpoints.
6777 (describe_other_breakpoints): Add checks to verify we are not
6778 dealing with pending breakpoints.
6779 (check_duplicates): Don't check pending breakpoints.
6780 (set_raw_breakpoint): Initialize pending flag.
6781 (do_restore_lang_radix_cleanup): New cleanup routine.
6782 (resolve_pending_breakpoint): New function.
6783 (re_enable_breakpoints_in_shlibs): Try and resolve any
6784 pending breakpoints via resolve_pending_breakpoint.
6785 (mention): Add pending breakpoint support.
6786 (parse_breakpoint_sals): Add new parameter to pass to
6787 decode_line_1 to indicate silent errors when files or functions
6788 are not found. Change all callers.
6789 (do_captured_parse_breakpoint): New function.
6790 (break_command_1): Change prototype to return an rc value and to
6791 take an optional pending breakpoint pointer. Support creating
6792 a pending breakpoint if a "not found" form of error occurs when
6793 parsing the breakpoint. Also support resolving an existing pending
6794 breakpoint and be silent if the resolution fails.
6795 (create_breakpoints): Change prototype to take pending breakpoint
6796 pointer. When resolving a pending breakpoint, use the new pointer
6797 to provide a conditional or commands added by the end-user.
6798 (delete_breakpoint): Add appropriate check for pending.
6799 (breakpoint_re_set_one): Ditto.
6800 (do_enable_breakpoint): Ditto.
6801
8d577d32
DC
68022004-02-02 David Carlton <carlton@kealia.com>
6803
6804 * valops.c (enum oload_classification): New.
6805 (find_overload_match): Break implementation into separate
6806 functions; delete #if 0'd code; look for symbols within
6807 namespaces.
6808 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
6809 (find_oload_champ,oload_method_static,classify_oload_match): New.
6810 * cp-support.h: Add declaration for cp_func_name; update
6811 declaration for make_symbol_overload_list.
6812 * cp-support.c (cp_func_name): New.
6813 (overload_list_add_symbol): Fix comment, use
6814 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
6815 (make_symbol_overload_list): Take a function name and a namespace
6816 instead of a symbol; change implementation.
6817 (make_symbol_overload_list_using): New.
6818 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
6819
22e8e3c7
FF
68202004-02-02 Fred Fish <fnf@redhat.com>
6821
6822 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 6823 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
6824 * remote-sim.c (gdb_os_write_stderr): Write output to
6825 gdb_stdtargerr stream instead of gdb_stdtarg stream.
6826 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 6827 gdb_stderr stream and update copyright years.
22e8e3c7 6828
6b753f60
DJ
68292004-02-01 Daniel Jacobowitz <drow@mvista.com>
6830
6831 * Makefile.in (mips-linux-nat.o): Update dependencies.
6832 * mips-linux-nat.c: Include mips-tdep.h.
6833
68342004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
6835
6836 * sol-thread.c (sol_thread_xfer_partial): New function.
6837 (init_sol_thread_ops): Use that for to_xfer_partial hook.
6838 (init_sol_core_ops): Likewise.
6839
6840 * procfs.c (procfs_xfer_partial): New function.
6841 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
6842 * Makefile.in (procfs.o): Add $(auxv_h) dep.
6843
6844 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
6845 procfs_xfer_auxv function.
6846
6847 * procfs.c (procfs_make_note_section): If we can read
6848 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
6849 * linux-proc.c (linux_make_note_section): Likewise.
6850
6851 * auxv.h: New file.
6852 * auxv.c: New file.
6853 * Makefile.in (auxv_h): New variable.
6854 (COMMON_OBS): Add auxv.o here.
6855 (auxv.o): New target.
6856
6857 * corelow.c (core_xfer_partial): New function.
6858 (init_core_ops): Use it for core_ops.to_xfer_partial.
6859
6860 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
6861 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
6862 macro if that is defined.
6863
fa5281d0
DJ
68642004-02-01 Daniel Jacobowitz <drow@mvista.com>
6865
6866 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
6867 and check the specified thread for each breakpoint.
6868 * breakpoint.h (bpstat_stop_status): Update prototype.
6869 * infrun.c (handle_inferior_event): Update calls to
6870 bpstat_stop_status.
6871
26ee262d
DJ
68722004-02-01 Daniel Jacobowitz <drow@mvista.com>
6873
6874 * Makefile.in (cli-cmds.o): Add $(readline_h).
6875
d9b52655
DJ
68762004-02-01 Daniel Jacobowitz <drow@mvista.com>
6877
6878 * cli/cli-cmds.c: Include readline.h.
6879 (complete_command): Pass the start of the last word to
6880 complete_line.
6881
9709f61c
DJ
68822004-01-31 Daniel Jacobowitz <drow@mvista.com>
6883
6884 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
6885 argument, and change first argument to a CORE_ADDR.
6886 * breakpoint.h (bpstat_stop_status): Update prototype.
6887 * infrun.c (adjust_pc_after_break): Add a new comment.
6888 (handle_inferior_event): Update calls to bpstat_stop_status.
6889
4f1280bb
DJ
68902004-01-31 Daniel Jacobowitz <drow@mvista.com>
6891
6892 * breakpoint.h: Update copyright years.
6893
4fa8626c
DJ
68942004-01-31 Daniel Jacobowitz <drow@mvista.com>
6895
6896 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
6897 (bpstat_stop_status): Don't decrement PC.
6898 * breakpoint.h (software_breakpoint_inserted_here_p): Add
6899 prototype.
6900 * infrun.c (adjust_pc_after_break): New function.
6901 (handle_inferior_event): Call it, early. Remove later references
6902 to DECR_PC_AFTER_BREAK.
6903 (normal_stop): Add commentary.
6904
fad0733a
DJ
69052004-01-31 Daniel Jacobowitz <drow@mvista.com>
6906
6907 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
6908 2004-01-27 double-free fix.
6909
42cdca6c
MK
69102004-01-31 Mark Kettenis <kettenis@gnu.org>
6911
6912 * sparc-tdep.c (sparc_fetch_wcookie): New function.
6913 (sparc32_frame_prev_register): Handle StackGhost.
6914 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
6915
932d5416
RM
69162004-01-29 Roland McGrath <roland@redhat.com>
6917
6918 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
6919 * configure: Regenerated.
6920
6921 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
6922 * Makefile.in (procfs.o): Add dep.
6923
47d3492a
AC
69242004-01-28 Andrew Cagney <cagney@redhat.com>
6925
6926 * tui/tui-stack.h: Update copyright.
6927 (struct frame_info): Add opaque declaration.
6928 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
6929 (tui_show_locator_content): Rename tuiShowLocatorContent.
6930 (tui_show_frame_info): Rename tuiShowFrameInfo.
6931 * tui/tui-stack.c: Update copyright. Update references.
6932 * tui/tui-winsource.c: Update references.
6933 * tui/tui-win.c: Update references.
6934 * tui/tui-layout.c: Update references.
6935 * tui/tui-hooks.c: Update copyright, update references.
6936 * tui/tui.c: Update copyright, update references.
6937 * tui/tui-disasm.c: Update references.
6938
5d51ca54
DC
69392004-01-28 David Carlton <carlton@kealia.com>
6940
6941 * dwarf2read.c (add_partial_structure): Use demangled name if
6942 namespace equals "".
6943
086ed43d
JB
69442004-01-27 Jim Blandy <jimb@redhat.com>
6945
6946 Clean up misapplied patch:
6947 * dwarf2read.c (determine_prefix): Change one of the two forward
6948 declarations for 'determine_prefix_aux' to a declaration for this.
6949 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
6950 argument to 'die_specification'.
6951
2a35147e
JB
6952 * dwarf2read.c (read_func_scope): Re-indent comment.
6953
a355c7de 69542004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 6955
a355c7de
AC
6956 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
6957 b->exp to NULL after freeing so that error during re-parsing or
6958 evaluation of expressions associated with breakpoint don't
6959 eventually lead to re-freeing of storage.
6960 Committed by Andrew Cagney.
6961
63ff5125
AC
69622004-01-27 Andrew Cagney <cagney@redhat.com>
6963
6964 * source.c (ambiguous_line_spec): Delete undefined declaration.
6965 * m32r-rom.c (m32r_set_board_address): Delete unused function.
6966 (m32r_set_server_address, m32r_set_download_path): Ditto.
6967 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
6968
e142c38c
DJ
69692004-01-27 Daniel Jacobowitz <drow@mvista.com>
6970
6971 * dwarf2read.c: Update calls to changed and renamed functions, and
6972 references to moved variables.
6973
6974 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
6975 language, language_defn, list_in_scope, and ftypes members.
6976 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
6977 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
6978 (baseaddr): Remove globals.
6979
6980 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
6981 (set_cu_language, die_is_declaration, die_specification)
6982 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
6983 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
6984 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
6985 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
6986
6987 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
6988 cu.list_in_scope. Don't initialize cu_header_offset.
6989 (add_partial_symbol): Add local baseaddr.
6990 (psymtab_to_symtab_1): Add local baseaddr. Use
6991 objfile->section_offsets for consistency. Don't initialize
6992 cu_header_offset; do initialize cu.header.offset and
6993 cu.list_in_scope.
6994 (read_file_scope, read_func_scope, read_lexical_block_scope)
6995 (dwarf_decode_lines, new_symbol): Add local baseaddr.
6996
c6e06ede
MC
69972004-01-27 Michael Chastain <mec.gnu@mindspring.com>
6998
fb328ecc 6999 * PROBLEMS: Add gdb/1516.
c6e06ede 7000
48184fd4
AC
70012003-12-29 Robert Millan <robertmh@gnu.org>
7002
7003 Patch committed by Andrw Cagney.
7004 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
7005 * configure.tgt: Match knetbsd*-gnu.
7006
c1321b30
AC
70072004-01-26 Andrew Cagney <cagney@redhat.com>
7008
f3699be3
AC
7009 * breakpoint.c (catch_command_1): Delete #ifdef code.
7010 (catch_fork_command_1): Delete #ifdef wrapper.
7011 (catch_exec_command_1): Ditto.
7012 (catch_load_command_1): Ditto.
7013 (catch_unload_command_1): Ditto.
7014
c1321b30
AC
7015 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
7016 (catch_breakpoint): Delete #if0ed function.
7017 (disable_catch_breakpoint): Ditto.
7018 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
7019 (disable_catch, enable_catch, delete_catch): Ditto.
7020
b4501125
AC
70212004-01-26 Andrew Cagney <cagney@redhat.com>
7022
7023 * remote.c (echo_check, quit_flag): Delete variables.
7024 (cisco_kernel_mode): Delete variable.
7025 (minitelnet_return, tty_input, escape_count): Delete variables.
7026 (remote_cisco_mode): Delete variable.
7027 (remote_cisco_open, remote_cisco_close): Delete function.
7028 (remote_cisco_mourn, remote_cisco_wait): Delete function.
7029 (init_remote_cisco_ops): Delete function.
7030 (_initialize_remote): Do not install "remote cisco" code.
7031 (read_frame): Delete cisco specific code.
7032 (remote_info_process): Delete function.
7033 (remote_wait): Delete cisco specific code.
7034 (remote_cisco_section_offsets): Delete function.
7035 (remote_cisco_objfile_relocate): Delete function.
7036 (remote_async_wait): Delete cisco specific code.
7037 (minitelnet, readtty, readsocket): Delete function.
7038
74055713
AC
70392004-01-26 Andrew Cagney <cagney@redhat.com>
7040
7041 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
7042 comments mentioning extract_returned_value_address.
7043 * infcmd.c (print_return_value): Update. Add comments on
7044 extract_returned_value_address.
7045 * stack.c (return_command): Add comments on
7046 extract_returned_value_address.
7047 * values.c: Update comment.
7048 * m32r-tdep.c: Update comment.
7049 * sparc-tdep.c: Update comment.
7050 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
7051 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7052 * sh64-tdep.c (sh64_gdbarch_init): Update.
7053 * sh-tdep.c (sh_gdbarch_init): Update.
7054 * s390-tdep.c (s390_gdbarch_init): Update.
7055 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7056 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
7057 * m68k-tdep.c (m68k_gdbarch_init): Update.
7058 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7059 * m32r-tdep.c (m32r_gdbarch_init): Update.
7060 * ia64-tdep.c (ia64_gdbarch_init): Update.
7061 * h8300-tdep.c (h8300_gdbarch_init): Update.
7062 * frv-tdep.c (frv_gdbarch_init): Update.
7063 * arm-tdep.c (arm_gdbarch_init): Update.
7064 * alpha-tdep.c (alpha_gdbarch_init): Update.
7065
a67af2b9
AC
70662004-01-26 Andrew Cagney <cagney@redhat.com>
7067
7068 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
7069 SYMBOL_LOCATION_FUNCS
7070 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
7071 "struct symbol_ops".
7072 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
7073 type to "struct symbol_ops".
7074 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
7075 (struct symbol): Replace ".aux_value.loc.funcs" and
7076 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
7077 (SYMBOL_OBJFILE): Delete macro.
7078 (SYMBOL_LOCATION_FUNCS): Delete macro.
7079 (SYMBOL_LOCATION_BATON): Update.
7080 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
7081 intead of SYMBOL_LOCATION_FUNCS.
7082 * ax-gdb.c (gen_var_ref): Ditto.
7083 * printcmd.c (address_info): Ditto.
7084 * findvar.c (read_var_value): Ditto.
7085 (symbol_read_needs_frame): Ditto.
7086
c034e007
AC
70872004-01-26 Andrew Cagney <cagney@redhat.com>
7088
7089 * dwarf2read.c (read_func_scope): Document frame-base hack.
7090
bb472c1e
MK
70912004-01-25 Mark Kettenis <kettenis@gnu.org>
7092
7093 * infcmd.c (print_return_value): Plug memory leak; delete
7094 ui_stream object. Rename argument `structure_return' to
7095 `struct_return'.
7096
c8e737d5
MK
70972004-01-25 Mark Kettenis <kettenis@gnu.org>
7098
f941662f
MK
7099 * infcmd.c (print_return_value): Wrap long lines.
7100 (finish_command_continuation, finish_command): Remove unused
7101 variable `funcaddr'. Fix some coding-standards problems.
7102
c558d81a 7103 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 7104 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
7105 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
7106 TDEP->fpregset to zero.
7107
bf1e5861 7108 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
7109 floating-point registers for traditional NetBSD core files.
7110 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
7111 TDEP->sizeof_fpregset here.
7112
4c72d57a
MK
71132004-01-25 Mark Kettenis <kettenis@gnu.org>
7114
566626fa
MK
7115 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
7116 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
7117 function with code split out from
7118 sparc32nbsd_sigcontext_frame_cache.
7119 (sparc32nbsd_sigcontext_frame_cache): Use
7120 sparc32nbsd_sigcontext_saved_regs.
7121 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
7122 OpenBSD.
7123 * sparcobsd-tdep.c: New file.
7124 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
7125 (sparcobsd-tdep.o): New dependency.
7126 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
7127 * config/sparc/obsd.mt: New file.
7128
4c72d57a
MK
7129 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
7130 TDEP->fpregset to be initialized to enable core file register
7131 sets.
7132
7e5e9f88
MK
71332004-01-24 Mark Kettenis <kettenis@gnu.org>
7134
f0f207fd 7135 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
7136 Add opaque declarations.
7137 (sparc64nbsd_sigcontext_saved_regs): New prototype.
7138 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
7139 function with code split out from
7140 sparc64nbsd_sigcontext_frame_cache.
7141 (sparc64nbsd_sigcontext_frame_cache): Use
7142 sparc64nbsd_sigcontext_saved_regs.
7143 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
7144 OpenBSD.
7145 * sparc64obsd-tdep.c: New file.
7146 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
7147 (sparc64obsd-tdep.o): New dependency.
7148 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
7149 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
7150 * config/sparc/obsd64.mt: New file.
7151
690668cc
MK
7152 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
7153 read the instruction at PC.
7154
7e5e9f88
MK
7155 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
7156 value of GDB_OSABI_DEFAULT.
7157 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
7158 instead of GDB_OSABI_NETBSD_AOUT.
7159
68b6dce9
NR
71602004-01-24 Nick Roberts <nick@nick.uklinux.net>
7161
7162 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
7163 copyright.
7164
080ce8c0
AC
71652004-01-23 Andrew Cagney <cagney@redhat.com>
7166
7167 * printcmd.c (display_command): Replace tui_set_display call with
7168 tui_set_layout_for_display_command.
7169 * tui/tui.h (enum tui_win_type): Define.
7170 (tui_set_layout): Delete declaration.
7171 (tui_set_layout_for_display_command): Rename set_tui_layout.
7172 * tui/tui-data.h (enum tui_layout_type): Define.
7173 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
7174 "tui.h".
7175 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
7176 (tui_default_win_height): Rename tuiDefaultWinHeight.
7177 (tui_default_win_viewport_height): Rename
7178 tuiDefaultWinViewportHeight.
7179 (tui_set_layout): RenametuiSetLayout.
7180 * tui/tui-layout.c: Update references.
7181 * tui/tui.c: Update references.
7182 * tui/tui-disasm.c: Update references.
7183
b368761e
DC
71842004-01-23 David Carlton <carlton@kealia.com>
7185
7186 Partial workaround for PR c++/1511:
7187 * cp-namespace.c: Include frame.h.
7188 (cp_lookup_transparent_type): New
7189 (cp_lookup_transparent_type_loop): New.
7190 * cp-support.h: Declare cp_lookup_transparent_type.
7191 * symtab.c (basic_lookup_transparent_type): Renamed from
7192 lookup_transparent_type.
7193 (lookup_transparent_type): Replace old body by a call to
7194 current_language->la_lookup_transparent_type.
7195 * symtab.h: Update copyright. Declare
7196 basic_lookup_transparent_type.
7197 * language.h: Update copyright.
7198 (struct language_defn): Add la_lookup_transparent_type.
7199 * language.c: Update copyright.
7200 (unknown_language_defn): Add basic_lookup_transparent_type.
7201 (auto_language_defn): Add basic_lookup_transparent_type.
7202 (local_language_defn): Add basic_lookup_transparent_type.
7203 * ada-lang.c: Update copyright.
7204 (ada_language_defn): Add basic_lookup_transparent_type.
7205 * c-lang.c: Update copyright.
7206 (c_language_defn): Add basic_lookup_transparent_type.
7207 (cplus_language_defn): Add basic_lookup_transparent_type.
7208 (asm_language_defn): Add basic_lookup_transparent_type.
7209 (minimal_language_defn): Add basic_lookup_transparent_type.
7210 * f-lang.c: Update copyright.
7211 (f_language_defn): Add basic_lookup_transparent_type.
7212 * jv-lang.c: Update copyright.
7213 (java_language_defn): Add basic_lookup_transparent_type.
7214 * m2-lang.c: Update copyright.
7215 (m2_language_defn): Add basic_lookup_transparent_type.
7216 * objc-lang.c: Update copyright.
7217 (objc_language_defn): Add basic_lookup_transparent_type.
7218 * p-lang.c: Update copyright.
7219 (p_language_defn): Add basic_lookup_transparent_type.
7220 * scm-lang.c: Update copyright.
7221 (scm_language_defn): Add basic_lookup_transparent_type.
7222 * Makefile.in (cp-namespace.o): Depend on frame.h.
7223
fdde2d81
DC
72242004-01-23 David Carlton <carlton@kealia.com>
7225
7226 Patch for PR c++/1520:
7227 * dwarf2read.c (read_func_scope): Set processing_current_prefix
7228 properly if we have a specification die.
7229 (determine_prefix_aux): Rename from determine_prefix.
7230 (determine_prefix): Like the old determine_prefix, but never
7231 returns NULL.
7232
5b828b6b
TR
72332004-01-23 Theodore A. Roth <troth@openavr.org>
7234
7235 * avr-tdep.c: Update copyright.
7236 (avr_iaddr_p): Delete unused function.
7237 (avr_saddr_p): Delete unused function.
7238
a1b8c067
DC
72392004-01-23 David Carlton <carlton@kealia.com>
7240
7241 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
7242 Fix for PR symtab/1534.
7243
f2cab569
MK
72442004-01-23 Mark Kettenis <kettenis@gnu.org>
7245
7246 * NEWS (New native configurations): Mention OpenBSD/sparc and
7247 OpenBSD/sparc64.
7248 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
7249 * configure.host: Likewise.
7250 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
7251 handler for OpenBSD.
7252 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
7253
642d8300
MK
72542004-01-22 Mark Kettenis <kettenis@gnu.org>
7255
89aac506
MK
7256 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
7257 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
7258
36662fde
MK
7259 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
7260 * cli/cli-cmds.c (shell_escape): Likewise.
7261
642d8300
MK
7262 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
7263 OpenBSD .note.openbsd.ident sections.
7264
fae299cd
DC
72652004-01-22 David Carlton <carlton@kealia.com>
7266
7267 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
7268 get_scope_pc_bounds.
7269 (read_file_scope): Ditto.
7270 (get_scope_pc_bounds): New function, produced by extracting code
7271 from the above two functions, consolidating it, and adding support
7272 for DW_TAG_namespace.
7273
a49d618c
MK
72742004-01-22 Mark Kettenis <kettenis@gnu.org>
7275
7276 * osabi.c (MAX_NOTESZ): New define.
7277 (check_note): New function.
7278 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
7279 check_note.
7280
fe61caab
RM
72812004-01-21 Roland McGrath <roland@redhat.com>
7282
7283 * MAINTAINERS (write after approval): Add myself.
7284
ec145965
EZ
72852004-01-21 Eli Zaretskii <eliz@gnu.org>
7286
7287 * utils.c (init_page_info): Move declarations of `rows' and
7288 `cols' before the __GO32__-specific code. Move the closing brace
7289 outside the #ifdef __GO32__..#endif block.
7290 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
7291
877522db
PB
72922004-01-21 Paul Brook <paul@codesourcery.com>
7293
7294 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
7295 BPSTAT_WHAT_CHECK_SHLIBS.
7296
dbf5be1c
PB
72972004-01-21 Paul Brook <paul@codesourcery.com>
7298
7299 * MAINTAINERS: Add myself to write-after-approval.
7300
81f08b92
AC
73012004-01-20 Andrew Cagney <cagney@redhat.com>
7302
5a1efed7
AC
7303 * ax-gdb.c (print_axs_value): Delete unused function.
7304 * jv-lang.c (java_lookup_type): Delete unused function.
7305 * cli/cli-dump.c (dump_filetype): Delete unused function.
7306 * remote-mips.c (remote_mips_insert_hw_breakpoint)
7307 (remote_mips_remove_hw_breakpoint): Delete unused functions.
7308 (mips_getstring): Delete unused function.
7309 (pmon_insert_breakpoint): Delete #if0ed function.
7310 (PMON_MAX_BP): Delete #if0ed MACRO.
7311 (mips_pmon_bp_info): Delete #if0ed variable.
7312 (pmon_remove_breakpoint): Delete #if0ed function.
7313 * monitor.c (monitor_write_even_block): Delete unused function.
7314 (monitor_write_memory_block): Delete #if0ed code.
7315 * dink32-rom.c (dink32_load): Delete unused function.
7316 (_initialize_dink32_rom): Delete #if0ed code.
7317 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
7318
b0a30fce
AC
7319 * tui/tui-command.c: Update references.
7320 * tui/tui-io.c: Update references.
7321 * tui/tui-command.h: Update copyright.
7322 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
7323
81f08b92
AC
7324 * source.c (ambiguous_line_spec): Delete never-defined function.
7325 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
7326 * gdbtypes.c (add_name, add_mangled_type): Ditto.
7327 * cli/cli-cmds.c (validate_comname): Ditto.
7328
65f05602
AC
7329 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
7330 "tui-data.h".
7331 (tui_set_disassem_content): Rename tuiSetDisassemContent.
7332 (tui_show_disassem): Rename tuiShowDisassem.
7333 (tui_show_disassem_and_update_source): Rename
7334 tuiVerticalDisassemScroll.
7335 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
7336 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
7337 * tui/tui.h: Update copyright.
7338 (enum tui_status): Define.
7339 * tui/tui-data.h (enum tui_scroll_direction): Define.
7340 * tui/tui-disasm.c: Update copyright. Update references.
7341 * tui/tui-winsource.c: Update copyright. Update references.
7342 * tui/tui-win.c: Update references.
7343 * tui/tui-layout.c: Update references.
7344
6bb0384f
AC
73452004-01-20 Andrew Cagney <cagney@redhat.com>
7346
7347 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
7348 sym2 to start of block.
7349
9175c9a3
MC
73502004-01-19 Michael Chastain <mec.gnu@mindspring.com>
7351
7352 * MAINTAINERS: Delete mmalloc.
7353 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
7354 * NEWS: Mention removal of --with-malloc.
7355 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
7356 * config.in: Regenerate.
7357 * configure: Regenerate.
6bb0384f
AC
7358 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
7359 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
7360 * gdbinit.in: Remove mmalloc.
7361 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
7362 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
7363 * config/i386/go32.mh: Likewise.
7364 * config/i386/interix.mh: Likewise.
7365 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
7366
4fcef00a
JJ
73672004-01-19 Jeff Johnston <jjohnstn@redhat.com>
7368
7369 * linespec.c (decode_variable, symtab_from_filename): Call
7370 error_silent with error message instead of throwing an exception
7371 directly.
7372 * defs.h (error_silent, error_output_message): Add prototypes.
7373 (catch_exceptions_with_msg): Ditto.
7374 * utils.c (error_silent, error_output_message): New functions.
7375 * top.c (catch_exceptions_with_msg): New function.
7376
8e94b928
NR
73772004-01-20 Nick Roberts <nick@nick.uklinux.net>
7378
7379 * mi/mi-cmds.h (enum print_values): Add definition.
7380
7381 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
7382 type and value for simple data types and just the name and type
7383 for complex ones, if required.
7384
7385 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
7386 children, if required.
7387
a02d6af8
KB
73882004-01-19 Kevin Buettner <kevinb@redhat.com>
7389
7390 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
7391 unused declarations.
7392
78a4a9b9
AC
73932004-01-19 Andrew Cagney <cagney@redhat.com>
7394
7395 * top.h (mapped_symbol_files): Delete declaration.
7396 * main.c (captured_main): Delete option "m" and "mapped".
7397 * objfiles.c (mapped_symbol_files): Delete variable.
7398 * symfile.c (symbol_file_command): Delete mmap code.
7399 (symbol_file_add_with_addrs_or_offsets): Ditto.
7400 (add_symbol_file_command, reread_separate_symbols): Ditto.
7401 * objfiles.h (OBJF_MAPPED): Delete.
7402 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
7403 (free_objfile) [USE_MMALLOC]: Ditto.
7404 (open_existing_mapped_file): Delete function.
7405 (open_mapped_file): Delete function.
7406 (map_to_file): Delete function.
7407
2dbd5e30
KB
74082004-01-19 Kevin Buettner <kevinb@redhat.com>
7409
7410 * infrun.c (step_into_function): Account for possible breakpoint
7411 adjustment when computing ``stop_func_start''.
7412
437b434f
KB
74132004-01-19 Kevin Buettner <kevinb@redhat.com>
7414
7415 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
7416 the region size against the size of a pointer, not the size of
7417 a register as given by DEPRECATED_REGISTER_SIZE.
7418
55fb0713
AC
74192004-01-19 Andrew Cagney <cagney@redhat.com>
7420
7421 * tui/tui-regs.h: Include "tui-data.h".
7422 (tuiFirstRegElementNoInLine): Delete declaration.
7423 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
7424 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
7425 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
7426 (tui_calculate_regs_column_count): Rename
7427 tuiCalculateRegsColumnCount.
7428 (tui_check_register_values): Rename tuiCheckRegisterValues.
7429 (tui_show_registers): Rename tuiShowRegisters.
7430 (tui_display_registers_from_line): Rename
7431 tuiDisplayRegistersFromLine.
7432 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
7433 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
7434 (tui_first_reg_element_no_inline): Rename
7435 tuiFirstRegElementNoInLine.
7436 * tui/tui-data.h: Update copyright.
7437 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
7438 * tui/tui-windata.c: Update copyright, update references.
7439 * tui/tui-regs.c: Update copyright, update references.
7440 * tui/tui-win.c: Update copyright, update references.
7441 * tui/tui-layout.c: Update copyright, update references.
fe61caab 7442
cebe9500
AC
74432004-01-18 Andrew Cagney <cagney@redhat.com>
7444
bcdf1568
AC
7445 * tui/tui-io.c: Update copyright.
7446 (key_is_end_sequence, key_is_backspace): New functions.
7447 (key_is_command_char, key_is_start_sequence): New function.
7448 (tui_getc): Update references.
7449 * tui/tui-io.h: Update copyright.
7450 (m_tuiStartNewLine): Delete macro.
7451 (m_isBackspace, m_isDeleteChar): Delete macros.
7452 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
7453 (m_isNextPage, m_isPrevPage): Delete macros.
7454 (m_isLeftArrow, m_isRightArrow): Delete macros.
7455 (m_isXdbStyleCommandChar): Delete macro.
7456 (key_is_start_sequence): Declare, replace m_isStartSequence.
7457 (key_is_end_sequence): Declare, replace m_isEndSequence.
7458 (key_is_backspace): Declare ,replace m_isBackspace.
7459 (key_is_command_char): Declare, replace m_isCommandChar.
7460 * tui/tui-command.c: Update copyright.
7461 (tuiDispatchCtrlChar): Update references.
7462
130d87e6
AC
7463 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
7464 tuiSourceWin.h.
7465
d7b2e967
AC
7466 * tui/tui-command.c: Rename tui/tuiCommand.c.
7467 * tui/tui-command.h: Rename tui/tuiCommand.h.
7468 * tui/tui-data.c: Rename tui/tuiData.c.
7469 * tui/tui-data.h: Rename tui/tuiData.h.
7470 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
7471 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
7472 * tui/tui-io.c: Rename tui/tuiIO.c.
7473 * tui/tui-io.h: Rename tui/tuiIO.h.
7474 * tui/tui-layout.c: Rename tui/tuiLayout.c.
7475 * tui/tui-layout.h: Rename tui/tuiLayout.h.
7476 * tui/tui-regs.c: Rename tui/tuiRegs.c.
7477 * tui/tui-regs.h: Rename tui/tuiRegs.h.
7478 * tui/tui-source.c: Rename tui/tuiSource.c.
7479 * tui/tui-source.h: Rename tui/tuiSource.h.
7480 * tui/tui-stack.c: Rename tui/tuiStack.c.
7481 * tui/tui-stack.h: Rename tui/tuiStack.h.
7482 * tui/tui-win.c: Rename tui/tuiWin.c.
7483 * tui/tui-win.h: Rename tui/tuiWin.h.
7484 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
7485 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
7486 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
7487 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
7488 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
7489 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
7490 * tui/tui-file.c: Update includes.
7491 * tui/tui-hooks.c: Update includes.
7492 * tui/tui-interp.c: Update includes.
7493 * tui/tui.c: Update includes.
7494 * Makefile.in: Update all tui/ dependencies.
7495 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
7496
b2100910
AC
7497 * Makefile.in: Update copyright. Update dependencies.
7498
cebe9500
AC
7499 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
7500 problem.
7501
c6f0559b
AC
75022004-01-18 Andrew Cagney <cagney@redhat.com>
7503
43e9390b
AC
7504 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
7505 instead of register_gdbarch_init.
7506
c6f0559b
AC
7507 * remote-sds.c (tohex): Delete unused function. Update copyright.
7508 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
7509 * v850-tdep.c (v850_register_virtual_size): Ditto.
7510 * target.c (normal_target_post_startup_inferior): Ditto.
7511 * source.c (ambiguous_line_spec): Ditto.
7512 * remote.c (adapt_remote_get_threadinfo): Ditto.
7513 * mi/mi-out.c (out_field_fmt): Ditto.
7514 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
7515 (output_control_change_notification): Ditto.
7516 * m68k-tdep.c (m68k_register_byte): Ditto.
7517 (m68k_remote_breakpoint_from_pc): Ditto.
7518 * ui-out.c (init_ui_out_state): Delete unused declaration.
7519 * stabsread.c (search_value): Ditto.
7520 * mi/mi-cmd-env.c (env_cli_command): Ditto.
7521 * maint.c (print_section_table): Ditto.
7522 * infrun.c (set_follow_fork_mode_command): Ditto.
7523
a8504492
MK
75242004-01-18 Mark Kettenis <kettenis@gnu.org>
7525
7526 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
7527 DW_CFA_def_cfa_exporession. Add support for
7528 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
7529 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
7530
0bd8997e
AC
75312004-01-18 Andrew Cagney <cagney@redhat.com>
7532
7533 * ocd.c: Update copyright.
7534 (bdm_read_register_command): Delete unused function.
7535 (_initialize_remote_ocd): Delete commented out reference.
7536 (get_quoted_char, reset_packet): Delete #if0ed function.
7537 (output_packet, put_quoted_char): Delete #if0ed function.
7538 (stu_put_packet, stu_get_packet): Delete #if0ed function.
7539 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
7540 (BDM_BREAKPOINT): Delete #if0ed macro.
7541 (remote_timeout): Delete #if0ed variable.
7542
31bb40e4
MK
75432004-01-18 Mark Kettenis <kettenis@gnu.org>
7544
7545 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
7546 (core-sol2.o): Remove dependency.
7547 * core-sol2.c: Remove file.
7548
887432a5
AC
75492004-01-17 Andrew Cagney <cagney@redhat.com>
7550
7551 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
7552 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
7553 enums.
7554
29182b13
DJ
75552004-01-17 Daniel Jacobowitz <drow@mvista.com>
7556
7557 * remote.c: Update copyright years.
7558
2963ee1d
DJ
75592004-01-17 Daniel Jacobowitz <drow@mvista.com>
7560
7561 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
7562
79d45cd4
AC
75632004-01-17 Andrew Cagney <cagney@redhat.com>
7564
ee300cd4
AC
7565 * mdebugread.c: Update copyright.
7566 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
7567 (parse_type, parse_procedure): Ditto.
7568 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
7569
fcacc9c2
AC
7570 * cris-tdep.c (cris_store_struct_return): Put back accidently
7571 deleted function.
7572
79d45cd4
AC
7573 * gdbarch.sh: Update copyright year.
7574 * gdbarch.h, gdbarch.c: Re-generate.
7575
b263358a
DJ
75762004-01-17 Daniel Jacobowitz <drow@mvista.com>
7577
7578 Suggested by George Anzinger.
7579 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
7580 correct stack offset. Include unknown opcode numbers in the error
7581 message.
7582
931aecf5
AC
75832004-01-17 Andrew Cagney <cagney@redhat.com>
7584
7585 * x86-64-tdep.c (x86_64_init_abi): No need to clear
7586 extract_struct_value_address, i386 does not set it.
7587 * sparc64-tdep.c (sparc64_init_abi): Do not set
7588 extract_struct_value_address, never called.
7589 (sparc64_extract_struct_value_address): Delete function.
7590 * m68hc11-tdep.c: Update copyright.
7591 (m68hc11_gdbarch_init): Delete redundant assignment of
7592 extract_struct_value_address.
7593 * i386-tdep.c: Update copyright.
7594 (i386_gdbarch_init): Do not set extract_struct_value_address,
7595 never called.
7596 (i386_extract_struct_value_address): Delete function.
7597 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
7598 extract_struct_value_address, never called.
7599 (sparc32_extract_struct_value_address): #if 0 function. Add
7600 comments explaining its future.
7601
756fe439
DJ
76022004-01-17 Daniel Jacobowitz <drow@mvista.com>
7603
7604 * arm-tdep.c (arm_write_pc): New function.
7605 (arm_gdbarch_init): Call set_gdbarch_write_pc.
7606
e74f0f02
DJ
76072004-01-17 Daniel Jacobowitz <drow@mvista.com>
7608
7609 * breakpoint.c (must_shift_inst_regs): Delete.
7610 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
7611 and SHIFT_INST_REGS.
7612 * infcmd.c (step_1, step_1_continuation): Delete references to
7613 SHIFT_INST_REGS.
7614 * infrun.c (keep_going): Likewise.
7615 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
7616 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
7617
b6cb9035
AC
76182004-01-17 Andrew Cagney <cagney@redhat.com>
7619
444a1e2e
AC
7620 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
7621 * gdbarch.h, gdbarch.c: Re-generate.
7622 * infcmd.c (print_return_value): Delete reference to
7623 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7624
def7e6ed
AC
7625 * cris-tdep.c (cris_gdbarch_init): Do not set
7626 deprecated_extract_struct_value_address.
7627
07be497a
AC
7628 * xstormy16-tdep.c: Update copyright.
7629 (xstormy16_extract_struct_value_address): Update to current
7630 extract struct value address interface.
7631 (xstormy16_gdbarch_init): Set extract_struct_value_address.
7632 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
7633 current extract struct value address interface.
7634 (sh64_gdbarch_init): Set extract_struct_value_address.
7635
6b4d5c91
AC
7636 * cris-tdep.c: Update copyright.
7637 (cris_extract_struct_value_address): Delete function.
7638 (struct_return_address): Delete variable.
7639 (cris_store_struct_return): Do not set struct_return_address.
7640
464e0365
AC
7641 * mcore-tdep.c: Update copyright.
7642 (mcore_extract_struct_value_address): Delete function. Update
7643 comments.
7644 (mcore_gdbarch_init): Update.
7645 * mn10300-tdep.c: Update copyright.
7646 (mn10300_extract_struct_value_address): Delete function.
7647 (mn10300_gdbarch_init): Update.
7648 * v850-tdep.c: Update copyright.
7649 (v850_extract_struct_value_address): Delete.
7650 (v850_gdbarch_init): Update.
7651 * ns32k-tdep.c: Update copyright.
7652 (ns32k_extract_struct_value_address): Delete.
7653 (ns32k_gdbarch_init): Update.
7654 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
7655 (hppa_gdbarch_init): Update.
7656 * vax-tdep.c: Update copyright.
7657 (vax_extract_struct_value_address): Delete.
7658 (vax_gdbarch_init): Update.
7659
afb18d0f
AC
7660 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
7661 * gdbarch.h, gdbarch.c: Re-generate.
7662 * procfs.c (procfs_fetch_registers): Delete reference to
7663 DEPRECATED_NPC_REGNUM.
7664 (procfs_store_registers): Ditto.
7665 * regcache.c (generic_target_write_pc): Simplify.
7666 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
7667
a698f53e
AC
7668 * core-sol2.c (fetch_core_registers): Replace
7669 DEPRECATED_NPC_REGNUM with equivalent tdep value.
7670
adc11376
AC
7671 * hppa-tdep.c: Update copyright year.
7672 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
7673 NPC_REGNUM.
7674 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
7675
b6cb9035
AC
7676 * mips-tdep.c (mips_write_pc): New function.
7677 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
7678 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
7679 (mips_find_saved_regs, mips_software_single_step: Ditto.
7680 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
7681 mips_init_extra_frame_info, mips_pop_frame): Ditto.
7682
6d82d43b
AC
76832004-01-17 Andrew Cagney <cagney@redhat.com>
7684
7685 * mips-tdep.c: Re-indent. Group functions by ABI.
7686
71bd6bd4
AC
76872004-01-17 Andrew Cagney <cagney@redhat.com>
7688
7689 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
7690 * gdbarch.c: Re-generate.
7691 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7692 DECR_PC_AFTER_BREAK to zero.
7693 * vax-tdep.c (vax_gdbarch_init): Ditto.
7694 * v850-tdep.c (v850_gdbarch_init): Ditto.
7695 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
7696 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7697 * sh-tdep.c (sh_gdbarch_init): Ditto.
7698 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7699 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7700 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7701 * mips-tdep.c (mips_gdbarch_init): Ditto.
7702 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7703 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7704 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
7705 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7706 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
7707 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7708 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7709 * frv-tdep.c (frv_gdbarch_init): Ditto.
7710 * cris-tdep.c (cris_gdbarch_init): Ditto.
7711 * avr-tdep.c (avr_gdbarch_init): Ditto.
7712 * arm-tdep.c (arm_gdbarch_init): Ditto.
7713 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
7714
a02abb62
JB
77152004-01-17 J. Brobecker <brobecker@gnat.com>
7716
7717 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
7718 Delete, no longer used.
7719 (read_subrange_type): New function, mostly extracted from
7720 read_array_type().
7721 (read_array_type): Replace extracted code by call to
7722 read_subrange_type().
7723 (dwarf2_get_attr_constant_value): New function.
7724 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
7725 (add_partial_symbol): Likewise.
7726 (process_die): Likewise.
7727 (new_symbol): Likewise.
7728 (read_type_die): Likewise.
7729
cf5b2f1b
AC
77302004-01-16 Andrew Cagney <cagney@redhat.com>
7731
7732 * symfile.c: Update copyright year.
7733 (compare_symbols): Delete unused function.
7734 * stabsread.c: Update copyright year.
7735 (lrs_general_complaint): Delete unused function.
7736 (ref_search_value): Ditto.
7737 (get_substring): Delete declaration.
7738 * sh64-tdep.c: Update copyright year.
7739 (sh64_get_gdb_regnum): Delete unused function.
7740 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
7741 Delete unused function.
7742
d33b9831
MK
77432004-01-17 Mark Kettenis <kettenis@gnu.org>
7744
7745 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
7746 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
7747
7aea86e6
AC
77482004-01-16 Andrew Cagney <cagney@redhat.com>
7749
7750 Changes from Peter Schauer.
7751 * rs6000-tdep.c: Update copyright year.
7752 (rs6000_push_dummy_call): Update the stack pointer before
7753 accessing the corresponding stack region.
7754 * rs6000-nat.c: Update copyright year.
7755 (set_host_arch): Set "info.abfd" to "exec_bfd".
7756
26b0da32
MK
77572004-01-15 Mark Kettenis <kettenis@gnu.org>
7758
7759 * blockframe.c: Update copyright year.
7760 (inside_entry_func): Don't treat a zero PC specially.
7761
86fbe6cc
EZ
77622004-01-14 Elena Zannoni <ezannoni@redhat.com>
7763
7764 * gcore.c (gcore_copy_callback): Use paddr_d to print size
7765 variable.
7766 (gcore_create_callback): Ditto. Skip any memory segment that has
7767 no permissions set.
7768
63d06c5c
DC
77692004-01-14 David Carlton <carlton@kealia.com>
7770
7771 Change symbols for C++ nested types to contain the fully qualified
7772 name, if possible. (At least in the DWARF-2 case.) Partial fix
7773 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
7774 c++/895.
7775 * c-exp.y (qualified_type): Handle types nested within classes.
7776 * cp-namespace.c: Update comments.
7777 (cp_set_block_scope): Delete #if 0.
7778 (cp_lookup_nested_type): Handle types nested within classes.
7779 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
7780 when appropriate.
7781 (add_partial_symbol): Add the name of the enclosing namespace to
7782 types.
7783 (pdi_needs_namespace): New.
7784 (add_partial_namespace): Tweak comment.
7785 (add_partial_structure): New.
7786 (psymtab_to_symtab_1): Initialize processing_current_prefix
7787 here...
7788 (process_die): instead of here.
7789 (read_structure_scope): Try to figure out the name of the class or
7790 namespace that the structure might be defined within.
7791 (read_enumeration): Generate fully-qualified names, if possible.
7792 (read_namespace): Don't set name to NULL.
7793 (die_specification): New.
7794 (new_symbol): Generate fully-qualified names for types.
7795 (read_type_die): Determine appropriate prefix.
7796 (determine_prefix): New.
7797 (typename_concat): New.
7798 (class_name): New.
7799 * valops.c (value_aggregate_elt): Pass NOSIDE to
7800 value_struct_elt_for_reference.
7801 (value_struct_elt_for_reference): Make static, add NOSIDE
7802 parameter, call value_maybe_namespace_elt as a last resort.
7803 (value_namespace_elt): Break out code into
7804 value_maybe_namespace_elt.
7805 (value_maybe_namespace_elt): New.
7806
87783b8b
AC
78072004-01-12 Andrew Cagney <cagney@redhat.com>
7808
7809 * mips-tdep.c (mips_convert_register_p): Handle both raw and
7810 cooked floating-point registers.
7811 (mips_gdbarch_init): Set convert_register_p, register_to_value,
7812 and value_to_register.
7813
6503b91e
AC
78142004-01-13 Andrew Cagney <cagney@redhat.com>
7815
7816 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
7817 * gdbarch.c: Re-generate.
7818 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7819 FUNCTION_START_OFFSET.
7820 * v850-tdep.c (v850_gdbarch_init): Ditto.
7821 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
7822 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7823 * sh-tdep.c (sh_gdbarch_init): Ditto.
7824 * s390-tdep.c (s390_gdbarch_init): Ditto.
7825 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7826 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7827 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7828 * mips-tdep.c (mips_gdbarch_init): Ditto.
7829 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7830 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7831 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7832 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
7833 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7834 * i386-tdep.c (i386_gdbarch_init): Ditto.
7835 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7836 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7837 * frv-tdep.c (frv_gdbarch_init): Ditto.
7838 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7839 * cris-tdep.c (cris_gdbarch_init): Ditto.
7840 * avr-tdep.c (avr_gdbarch_init): Ditto.
7841 * arm-tdep.c (arm_gdbarch_init): Ditto.
7842 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7843
ea1dd7bc
DJ
78442004-01-13 Daniel Jacobowitz <drow@mvista.com>
7845
7846 * infrun.c (follow_fork_mode_ask): Remove.
7847 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
7848 (follow_fork): Simplify and remove internal error for
7849 follow_fork_mode_ask.
7850 (_initialize_infrun): Update "set follow-fork-mode" help text.
7851
0f0cffd2
AC
78522004-01-13 Andrew Cagney <cagney@redhat.com>
7853
7854 * configure.in: Update copyright year.
7855 (build_warnings): Add -Wunused-label.
7856 * configure: Re-generate.
7857
de38af99
AC
78582004-01-12 Andrew Cagney <cagney@redhat.com>
7859
954a7fba
AC
7860 * exec.h (exec_ops): Make "extern".
7861
de38af99
AC
7862 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
7863 the function is void.
7864 (mips_pseudo_register_write): Ditto.
7865
1a111ce3
AC
78662004-01-12 Andrew Cagney <cagney@redhat.com>
7867
7868 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
7869 call. Never defined.
7870 * sparc-tdep.h (struct frame_info): Add opaque declaration.
7871 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
7872 (struct sparc_gregset, struct regcache): Ditto.
7873 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
7874
48efe704
AC
78752004-01-12 Andrew Cagney <cagney@redhat.com>
7876
7877 * mi/ChangeLog: Delete file. Renamed to ...
7878 * mi/ChangeLog-1999-2003: New file.
7879 * tui/ChangeLog: Delete file. Renamed to ...
7880 * tui/ChangeLog-1998-2003: New file.
fe61caab 7881
a54124c5
MK
78822004-01-11 Mark Kettenis <kettenis@gnu.org>
7883
2ca62865
MK
7884 * sparc64nbsd-tdep.c: Include "regset.h".
7885 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
7886 Remove variables.
7887 (fetch_core_registers): Remove function.
7888 (sparc64nbsd_core_fns): Remove variable.
7889 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
7890 functions.
7891 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
7892 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
7893 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
7894
ca9d58e9
MK
7895 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
7896 sparc_extract_struct_value_address.
7897 (sparc32_gdbarch_init): Set extract_struct_value_address.
7898 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
7899 function.
7900 (sparc64_init_abi): Set extract_struct_value_address. Don't set
7901 return_value_on_stack.
7902
3cc87ec0
MK
7903 * NEWS: Mention that %cs and %ss have been added to the AMD64
7904 configurations
7905
5bf00f29
MK
7906 * frame.c: Update copyright year.
7907 (get_prev_frame): Improve comment.
7908
4f7ec84e
MK
7909 * sparc64fbsd-tdep.c: Include "regset.h".
7910 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
7911 Remove variables.
7912 (fetch_core_registers): Remove function.
7913 (sparc64fbsd_core_fns): Remove variable.
7914 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
7915 functions.
7916 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
7917 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 7918 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 7919
4e7b0cd3
MK
7920 * sparcnbsd-tdep.c: Include "regset.h".
7921 (fetch_core_registers): Remove function.
7922 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
7923 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
7924 functions.
7925 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
7926 TDEP->fpregset.
46b58ce9 7927 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 7928
a54124c5
MK
7929 * sparc-tdep.h (struct regset): Provide opaque declaration.
7930 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
7931 fpregset and sizeof_fpregset members.
7932 * sparc-tdep.c (struct regset): Provide opaque declaration.
7933 (sparc_regset_from_core_section): New function.
7934 (sparc32_gdbarch_init): Initialize TDEP->gregset,
7935 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
7936 Set regset_from_core_section when appropriate.
7937
29ff87c5
MK
79382004-01-10 Mark Kettenis <kettenis@gnu.org>
7939
79b1ab3d
MK
7940 * x86-64-tdep.c (amd64_non_pod_p): New function.
7941 (amd64_classify_aggregate): Return class memory for non-POD
7942 C++ structure types.
7943
6470d250
MK
7944 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
7945 argument. Use it to reserve a register if necessary.
7946 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
7947 amd64_push_arguments.
7948
562c50c2
MK
7949 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
7950
af233647
MK
7951 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
7952 register numbers in comments.
7953 * x86-64-tdep.h: Update copyright year.
7954 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
7955 Adjust for addition of %cs and %ss.
7956 * amd64fbsd-nat.c: Update copyright year.
7957 (reg_offset): Add register offsets for %cs and %ss.
7958 * amd64fbsd-tdep.c: Update copyright year.
7959 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
7960 (amd64fbsd_sc_reg_offset): Likewise.
7961 * x86-64-linux-nat.c: Update copyright year.
7962 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
7963 and %ss.
7964 * amd64nbsd-nat.c: Update copyright year.
7965 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
7966 * amd64nbsd-tdep.c: Update copyright year.
7967 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
7968 * x86-64-linux-tdep.c: Update copyright year.
7969 (user_to_gdb_regmap): Add mapping for %cs and %ss.
7970 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
7971 * regformats/reg-x86-64.dat: Add %cs and %ss.
7972
29ff87c5
MK
7973 * blockframe.c (inside_entry_func): Reformat. Introduce new local
7974 variables to prevent long lines. Update comments to reflect
7975 reality.
7976
38d518c9
EZ
79772004-01-09 David Carlton <carlton@kealia.com>
7978
7979 Checked in by Elena Zannoni <ezannoni@redhat.com>.
7980 * dwarf2read.c (read_namespace): Pull out name-generating code
7981 into namespace_name. Rename previous_namespace to previous_prefix
7982 and processing_current_namespace to processing_current_prefix..
7983 (namespace_name): New function.
7984 (add_partial_symbol): Substitute uses of pdi->name with
7985 actual_name.
7986 * cp-support.h: Rename processing_current_namespace to
7987 processing_current_prefix.
7988 Update copyright year.
7989 * cp-namespace.c: Rename processing_current_namespace to
7990 processing_current_prefix.
7991 Update copyright year.
fe61caab 7992
1e4728e7
AC
79932004-01-09 Andrew Cagney <cagney@redhat.com>
7994
7995 * jv-valprint.c, ser-unix.c: Add missing copyright years.
7996
c77c642a
MK
79972004-01-09 Mark Kettenis <kettenis@gnu.org>
7998
7999 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
8000 complaining.
8001 (process_one_symbol): Deal with N_PATCH stabs.
8002
b44e9041
EZ
80032004-01-09 Elena Zannoni <ezannoni@redhat.com>
8004
8005 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
8006 ifdeffed code.
8007 Update copyright year.
38d518c9 8008
eccfb640
MC
80092004-01-08 Michael Chastain <mec.gnu@mindspring.com>
8010
8011 * config/pa/tm-hppa.h: Update extern declarations for
8012 hppa32_hpux_frame_saved_pc_in_sigtramp,
8013 hppa32_hpux_frame_base_before_sigtramp, and
8014 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
8015
848c5feb
MC
80162004-01-08 Michael Chastain <mec.gnu@mindspring.com>
8017
8018 * config/pa/tm-hppah.h: Update copyright years.
8019
3cc5d663
AC
80202004-01-08 Andrew Cagney <cagney@redhat.com>
8021
8022 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
8023 (mips_o32_reg_struct_has_addr): Delete function.
8024 (mips_gdbarch_init): Update.
8025 (mips_extract_struct_value_address): Delete function.
8026
bfec0b41
JJ
80272004-01-08 David Mosberger <davidm@hpl.hp.com>
8028
8029 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
8030 reality.
8031
16e109ca
AC
80322004-01-07 Andrew Cagney <cagney@redhat.com>
8033
6214a8a1
AC
8034 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
8035 architecture's elf flags (when available).
8036
8d5838b5
AC
8037 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
8038 FPU to the start, check the MIPS FPU when looking for an old
8039 architecture.
8040 (set_mipsfpu_single_command): Update the architecture.
8041 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
8042
480d3dd2
AC
8043 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
8044 (mips_mask_address_p): Add "tdep" parameter.
8045 (show_mask_address, mips_addr_bits_remove): Update.
8046 (mips_dump_tdep): Update.
8047 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
8048 (MIPS_STACK_ARGSIZE): Delete macro.
8049 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
8050 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
8051 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
8052 (mips_dump_tdep): Update.
8053 (MIPS_SAVED_REGSIZE): Delete macro.
8054 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
8055 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
8056 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
8057 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
8058 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
8059 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
8060 (mips_pop_frame, return_value_location): Update.
8061 (mips_n32n64_return_value, mips_dump_tdep): Update.
8062
ec03c1ac
AC
8063 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
8064 MIPS ABI.
8065
16e109ca
AC
8066 * mips-tdep.c: Update copyright.
8067 (mips_gdbarch_init): Merge two code blocks handling the register
8068 name and number layout.
8069
15255275
MS
80702004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
8071
8072 * tracepoint.c (validate_actionline): Fix segv at EOF
8073
9f9057da
MC
80742004-01-07 Michael Chastain <mec.gnu@mindspring.com>
8075
8076 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
8077 properly for static fields.
8078
0127c0d3 80792004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 8080 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
8081
8082 * disasm.c: Update copyright to include 2004.
8083 (do_mixed_source_and_assembly): For uiout asm list
8084 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 8085 NULL and do so prior to loop. Only reset when we close off
0127c0d3 8086 the tuple/list. Move check for whether to close off the
fe61caab 8087 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
8088 on each loop iteration.
8089
5269965e
AC
80902004-01-05 Andrew Cagney <cagney@redhat.com>
8091
54f1137d
AC
8092 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
8093 should be a switch case and not a label.
8094 * mips-tdep.c (mips32_next_pc): Delete unused labels
8095 "greater_equal_branch" and "less_zero_branch".
8096 * jv-valprint.c (java_print_value_fields): Delete unused label
8097 "flush_it".
8098
5269965e
AC
8099 * target.c (unpush_target): Only close a target that is in the
8100 target stack.
8101
dbc22fa1
MK
81022004-01-05 Mark Kettenis <kettenis@gnu.org>
8103
9515395e
MK
8104 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
8105 address from [sp + 64] instead of %o2.
8106
dbc22fa1
MK
8107 * frame.c (get_prev_frame): Don't try to unwind the PC. This
8108 fixes PR backtrace/1476.
8109
5439edaa
AC
81102004-01-05 Andrew Cagney <cagney@redhat.com>
8111
8112 * libunwind-frame.h (struct frame_id): Add opaque declaration,
8113 move to start of file.
8114 * i386-tdep.h (struct regcache): Add opaque declaration.
8115 * config/ia64/nm-linux.h (struct target_ops): Add opaque
8116 declaration.
8117 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
8118 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
8119 * win32-nat.c (fake_create_process): Use ISO C style definition.
8120 * stabsread.c (define_symbol): Delete #ifndef
8121 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
8122 stabs_argument_has_addr call, macro never defined.
8123
19061abe
MC
81242004-01-04 Michael Chastain <mec.gnu@mindspring.com>
8125
8126 * op50-rom.c: Delete.
8127 * w89k-rom.c: Delete.
8128 * Makefile.in: Remove references.
8129
e53bef9f
MK
81302004-01-04 Mark Kettenis <kettenis@gnu.org>
8131
8132 * x86-64-tdep.c: Update copyright year.
8133 (struct amd64_register_info): Rename from x86_64_register_info.
8134 (amd64_register_info): Rename from x86_64_register_info.
8135 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
8136 (amd64_register_name): Rename from x86_64_register_name.
8137 (amd64_register_type): Rename from x86_64_register_type.
8138 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
8139 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
8140 (amd64_dwarf_reg_to_regnum): Rename from
8141 x86_64_dwarf_reg_to_regnum.
8142 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
8143 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
8144 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
8145 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
8146 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
8147 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
8148 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
8149 (amd64_frame_cache): Rename from x86_64_frame_cache.
8150 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
8151 (amd64_frame_prev_register): Rename from
8152 x86_64_frame_prev_register.
8153 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
8154 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
8155 (amd64_sigtramp_frame_cache): Rename from
8156 x86_64_sigtramp_frame_cache.
8157 (amd64_sigtramp_frame_prev_register): Rename from
8158 x86_64_sigtramp_frame_prev_register.
8159 (amd64_sigtramp_frame_unwind): Rename from
8160 x86_64_sigtramp_frame_unwind.
8161 (amd64_sigtramp_frame_sniffer): Rename from
8162 x86_64_sigtramp_frame_sniffer.
8163 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
8164 (amd64_frame_base): Rename from x86_64_frame_base.
8165 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
8166 (amd64_frame_align): Rename from x86_64_frame_align.
8167 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
8168 (amd64_regset_from_core_section): Rename from
8169 x86_64_regset_from_core_section.
8170 (x86_64_init_abi): Update comments.
8171
fca6aa58
NR
81722004-01-04 Nick Roberts <nick@nick.uklinux.net>
8173
8174 * MAINTAINERS (write after approval): Add myself.
8175
8ada74e3
MK
81762004-01-04 Mark Kettenis <kettenis@gnu.org>
8177
8178 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8179 `float' arguments.
8180
5154b0cd
MK
81812004-01-04 Mark Kettenis <kettenis@gnu.org>
8182
8183 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
8184 such that it mentions a specific version of GCC that exhibits this
8185 bug.
8186
fb316966
MK
81872004-01-03 Mark Kettenis <kettenis@gnu.org>
8188
200cc553
MK
8189 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
8190 structure that has a single `float' member, store it in %f1 in
8191 addition to %f0.
8192
e226a4a0
MK
8193 * sparc-sol2-nat.c: Add missing '\'.
8194
b9d4c5ed
MK
8195 * sparc-tdep.c (sparc32_return_value): New function.
8196 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
8197 Remove functions.
8198 (sparc32_gdbarch_init): Set return_value, don't set
8199 extract_return_value, store_return_value, use_struct_convention
8200 and return_value_on_stack.
8201
fb316966
MK
8202 * sparc-sol2-nat.c: Add missing ')'.
8203
1af510a8
JB
82042004-01-03 J. Brobecker <brobecker@gnat.com>
8205
8206 * infrun.c (handle_step_into_function): New function.
8207 (handle_inferior_event): Extract out some code into the new
8208 function above.
8209
5cf4d23a
JB
82102004-01-03 J. Brobecker <brobecker@gnat.com>
8211
8212 * infrun.c (handle_inferior_event): Move the declaration of
8213 real_stop_pc inside the if blocks where it is used.
8214
60af1db2
MK
82152004-01-03 Mark Kettenis <kettenis@gnu.org>
8216
8217 * sparc64-tdep.c (sparc64_16_byte_align_p)
8218 (sparc64_store_floating_fields, sparc64_store_floating_fields):
8219 Use check_typedef to get subtypes of structures and unions.
8220 (sparc64_store_return_value): Fix calculation of the appropriate
8221 offset into VALBUF when storing a structure or union.
8222 (sparc64_return_value): New function.
8223 (sparc64_use_struct_convention): Remove function.
8224 (sparc64_init_abi): Set return_value, don't set
8225 extract_return_value, store_return_value and
8226 use_struct_convention.
8227
1a901d3f
EZ
82282004-01-03 Eli Zaretskii <eliz@elta.co.il>
8229
8230 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
8231 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
8232 gdb/config/alpha/xm-alphaosf.h,
8233 gdb/config/powerpc/tm-ppcle-eabi.h,
8234 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
8235 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
8236 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
8237 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
8238 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
8239 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
8240 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
8241 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
8242 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
8243 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
8244 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
8245 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
8246 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
8247 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
8248 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
8249 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
8250 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
8251 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
8252 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
8253 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
8254 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
8255 Remove lines for .cvsignore files.
8256
ef52e463
JB
82572004-01-03 J. Brobecker <brobecker@gnat.com>
8258
8259 * infrun.c: Back out the previous change.
8260
cb1bf9dc
MK
82612004-01-03 Mark Kettenis <kettenis@gnu.org>
8262
f0424ef6
MK
8263 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
8264 sparc-*-sunos4* to the list of REMOVED configurations.
8265
cb1bf9dc
MK
8266 * configure.tgt: Add back sparc-*-vxworks*.
8267 * remote-vxsparc.c: Remove all includes except for "defs.h",
8268 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
8269 Include "sparc-tdep.h".
8270 (SPARC_R_G1): New define.
8271 (vxsparc_gregset): New variable.
8272 (ext_format_sparc): Remove extern declaration.
8273 (vx_read_register): Rewrite to use sparc32_supply_gregset and
8274 sparc32_supply_fpregset.
8275 (vx_write_register): Rewrite to use sparc32_collect_gregset,
8276 sparc_collect_rwindow and sparc32_collect_fpregset.
8277 * config/sparc/tm-vxworks.h: New file, based on recently removed
8278 tm-vxsparc.h.
8279 * config/sparc/vxworks.mt: New file, based on recently removed
8280 vxworks.mt.
fe61caab 8281
5e938f9f
JB
82822004-01-03 J. Brobecker <brobecker@gnat.com>
8283
8284 * infrun.c (handle_step_into_function): New function.
8285 (handle_inferior_event): Extract out some code into the new
8286 function above.
8287
386c036b
MK
82882004-01-02 Mark Kettenis <kettenis@gnu.org>
8289
8290 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
8291 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
8292 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
8293 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
8294 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
8295 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
8296 (sparc_nat_h): New variable.
8297 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
8298 (tm-sun4os4.h): Remove dependency.
8299 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
8300 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
8301 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
8302 sparc-tdep.o): Update dependencies.
8303 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
8304 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
8305 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
8306 dependencies.
8307 * configure.host: Remove existing sparc-*-lynxos*,
8308 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
8309 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
8310 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
8311 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
8312 triplets.
8313 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
8314 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
8315 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
8316 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
8317 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
8318 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
8319 sparc64-*-solaris2* and sparc64-*-* triplets.
8320 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
8321 "symtab.h" and "objfiles.h".
8322 (BIAS): Remove define.
8323 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
8324 (X_DISP19): Remove macros.
8325 (sparc_fetch_instruction): Remove function.
8326 (struct gdbarch_tdep): Remove definition.
8327 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
8328 (sparc_breakpoint_from_pc): Remove function.
8329 (struct sparc64_frame_cache): Remove definition.
8330 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
8331 sparc64_unwind_pc): Remove functions.
8332 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
8333 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
8334 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
8335 (sparc64_frame_cache): Change return type to `struct
8336 sparc_frame_cache *'. Simply call sparc_frame_cache.
8337 (sparc64_frame_this_id, sparc64_frame_prev_register,
8338 sparc64_frame_base_address): Use `struct sparc_frame_cache'
8339 instead of `struct sparc64_frame_cache.
8340 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
8341 sparc_analyze_control_transfer, sparc_software_single_step,
8342 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
8343 _initialize_sparc64_tdep): Remove functions.
8344 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
8345 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
8346 macros.
8347 (sparc64_supply_gregset, sparc64_collect_gregset,
8348 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
8349 (sparc64_init_abi): New function.
8350 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
8351 inclusion guard. Include "sparc-tdep.h".
8352 (BIAS): Define.
8353 (r_tstate_offset, r_fprs_offset): New defines.
8354 (enum sparc_regnum): Remove defenition.
8355 (enum sparc64_regnum): Reformat.
8356 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
8357 (sparc64_init_abi, sparc64_supply_gregset,
8358 sparc64_collect_gregset, sparc64_supply_fpregset,
8359 sparc64_collect_fpregset): New prototypes.
8360 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
8361 Add extern declarations.
8362 (sparc64_sol2_init_abi): New prototype.
8363 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
8364 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
8365 prototypes.
8366 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
8367 "sparnbsd-nat.h".
8368 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
8369 functions.
8370 (_initialize_sparc64fbsd_nat): Remove initialization of
8371 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
8372 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 8373 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
8374 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
8375 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
8376 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
8377 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
8378 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
8379 (sparc64fbsd_r_y_offset): Remove variables.
8380 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
8381 Make static and const.
8382 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
8383 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
8384 functions.
8385 (sparc64fbsd_gregset): New variable.
8386 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
8387 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
8388 and sparc64_supply_fpregset.
8389 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
8390 (sparc64fbsd_sigtramp_frame_this_id)
8391 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
8392 (sparc64fbsd_sigtramp_frame_unwind): New variable.
8393 (sparc64fbsd_sigtramp_frame_sniffer): New function.
8394 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
8395 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
8396 * sparcnbsd-tdep.c: Update copyright year. Include
8397 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
8398 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
8399 "value.h" and "sparcnbsd-tdep.h".
8400 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
8401 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
8402 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
8403 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
8404 defines.
8405 (sparcnbsd_gregset): New variable.
8406 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
8407 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
8408 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
8409 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
8410 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
8411 variables.
8412 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
8413 (sparc32nbsd_sigcontext_frame_this_id)
8414 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
8415 (sparc32nbsd_sigcontext_frame_unwind): New variable.
8416 (sparc32nbsd_sigtramp_frame_sniffer): New function.
8417 (sparcnbsd_get_longjmp_target_32,
8418 sparcnbsd_get_longjmp_target_64): Remove functions.
8419 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
8420 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
8421 sparcnbsd_init_elf): Remove.
8422 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
8423 (sparcnbsd_elf_init_abi): New functions.
8424 (_initialize_sparcnbsd_tdep): New prototype.
8425 (_initialize_sparnbsd_tdep): Update.
8426 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
8427 corelow.o. Add sparc64-nat.o and sparc-nat.o.
8428 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
8429 * config/sparc/linux.mh: Update comment.
8430 (XM_FILE, HOST_IPC): Remove variables.
8431 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
8432 sparc-linux-nat.o.
8433 * config/sparc/linux.mt: Update comment.
8434 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
8435 * config/sparc/nbsd.mt: Reformat.
8436 * config/sparc/nbsd64.mh: Update comment.
8437 (NATDEPFILES): Add sparc-nat.o.
8438 * config/sparc/nbsd64.mt: Update comment.
8439 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
8440 (TM_FILE): Set to tm-nbsd.h.
8441 * config/sparc/nbsdelf.mh: Update comment.
8442 (NATDEPFILES): Add sparc-nat.o.
8443 (XM_FILE): Delete.
8444 * config/sparc/nbsdaout.mh: Update comment.
8445 (NATDEPFILES): Add sparc-nat.o
8446 (XM_FILE): Delete.
8447 * config/sparc/nm-linux.h: Update copyright year. Don't include
8448 "config/nm-svr4.h" and "solib.h". Add protection against multiple
8449 inclusion.
8450 (KERNEL_U_SIZE): Remove define.
8451 (kernel_u_size): Remove prototype.
8452 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
8453 * config/sparc/nm-nbsd.h: Update copyright. Don't include
8454 "regcache.h".
8455 (CHILD_PREPARE_TO_STORE): Remove define.
8456 * config/sparc/nm-nbsdaout.h: Tweak some comments.
8457 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
8458 sparcnbsd-nat.c: Rewrite files.
8459 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
8460 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
8461 sparcnbsd-tdep.h: Remove files.
8462 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
8463 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
8464 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
8465 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
8466 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
8467 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
8468 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
8469 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
8470 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
8471 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
8472 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
8473 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
8474 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
8475 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
8476 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
8477 * config/sparc/linux64.mh, config/sparc/linux64.mt,
8478 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
8479 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
8480 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
8481
ee84457a
AC
84822004-01-02 Andrew Cagney <cagney@redhat.com>
8483
8484 From 2003-12-18 Kazuhiro Inaoka:
8485 * configure.host: Add m32r-linux target.
8486
0bc2134e
MC
84872004-01-02 Michael Chastain <mec.gnu@mindspring.com>
8488
8489 * top.c (print_gdb_version): Update year to 2004.
8490
89a72f9c
MM
84912004-01-02 Mark Mitchell <mark@codesourcery.com>
8492
8493 * MAINTAINERS: Add myself to the write-after-approval category.
8494
86b013ed
DJ
84952004-01-02 Daniel Jacobowitz <drow@mvista.com>
8496
8497 From Bernardo Innocenti <bernie@develer.com>:
8498 * configure.tgt: Add uClinux target.
8499
e42c9534
AC
85002004-01-02 Andrew Cagney <cagney@redhat.com>
8501
8502 * utils.c (do_my_cleanups): Make static, add forward declaration.
8503 * defs.h (do_my_cleanups): Delete declaration.
8504
162467d3
EZ
85052004-01-02 Eli Zaretskii <eliz@elta.co.il>
8506
8507 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
8508 bfd/ChangeLog-0203.
8509
78434e59
MK
85102004-01-02 Mark Kettenis <kettenis@gnu.org>
8511
8512 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
8513 in <machine/reg.h>.
8514 * configure, config.in: Regenerate.
8515
48efe704
AC
8516For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
8517tui/ChangeLog-1998-2003.
c906108c
SS
8518\f
8519Local Variables:
8520mode: change-log
8521left-margin: 8
8522fill-column: 74
8523version-control: never
8524End:
This page took 1.200441 seconds and 4 git commands to generate.