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