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