* elfxx-mips.c (mips_elf_merge_gots): Weaken assert for local
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0a90bcdd
AC
12003-11-14 Andrew Cagney <cagney@redhat.com>
2
3 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
4 * ppc-sysv-tdep.c: Include "objfiles.h".
5 (ppc64_sysv_abi_push_dummy_call): Provide the
6 the FN's objfile when looking for the descriptor.
9ea97f2a
AC
7
8 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
9 "name_of_malloc" to ".malloc".
10
087f1027
MK
112003-11-13 Mark Kettenis <kettenis@gnu.org>
12
13 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
14
3882f37a
DC
152003-11-13 David Carlton <carlton@kealia.com>
16
17 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
18
a8cf2722
AC
192003-11-13 Andrew Cagney <cagney@redhat.com>
20
21 * arch-utils.h (selected_architecture_name): Declare.
22 (selected_byte_order): Declare.
23 * arch-utils.c (selected_byte_order): New function.
24 (selected_architecture_name): New function.
25 (target_architecture_auto): Make static.
26 (set_architecture_string): Make static.
27 (target_byte_order): Make static.
28 (target_byte_order_auto): Make static.
29 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
30 non-multi-arch definition.
31 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
32 (target_byte_order, target_architecture): Delete declaration.
33 (target_byte_order_auto, target_architecture_auto): Ditto.
34 * gdbarch.h: Re-generate.
35 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
36 "selected_byte_order".
37
475b6ddd
AC
382003-11-13 Andrew Cagney <cagney@redhat.com>
39
40 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
41
a22286a9
JB
422003-11-13 Jim Blandy <jimb@redhat.com>
43
44 * cp-namespace.c: Doc fix.
45
7bb11558
MS
462003-11-12 Michael Snyder <msnyder@redhat.com>
47
39add00a
MS
48 * sh64_tdep.c: Regularize some names.
49 (sh_sh64_register_name): Rename to sh64_register_name.
50 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
51 (sh_sh64_register_byte): Rename to sh64_register_byte.
52 (sh_sh64_build_float_register_type):
53 Rename to sh64_build_float_register_type.
54 (sh_sh64_register_convert_to_virtual):
55 Rename to sh64_register_convert_to_virtual.
56 (sh_sh64_register_convert_to_raw):
57 Rename to sh64_register_convert_to_raw.
58
2a314ed5
MS
59 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
60 sh64_media_reg_base_num, sh64_compact_reg_base_num,
61 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
62 sh64_extract_return_value, sh64_show_media_regs,
63 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
64 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
65 sh64_pseudo_register_read, sh64_pseudo_register_write,
66 sh64_do_pseudo_register, sh_compact_print_registers_info):
67 Delete unused variable 'tdep'.
68
7bb11558
MS
69 * sh64-tdep.c: Coding standard and spelling comment fixes.
70 (sh64_extract_return_value): Replace deprecated_store_floating
71 with store_typed_floating.
72 (sh_sh64_register_convert_to_raw): Replace
73 deprecated_store_floating with store_typed_floating.
74 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
75 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
76 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
77 sh64_extract_struct_value_address, sh64_pop_frame,
78 sh64_extract_return_value, sh64_store_return_value,
79 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
80 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
81 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
82 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
83 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
84 deprecated_register_virtual_type, deprecated_register_raw_size,
85 deprecated_max_register_raw_size, or
86 deprecated_max_register_virtual_size. Instead, just set
87 gdbarch_register_type.
39add00a
MS
88 (sh_sh64_register_raw_size): Delete.
89 (sh_sh64_register_virtual_size): Delete.
7bb11558 90
e7c27a73
DJ
912003-11-12 Daniel Jacobowitz <drow@mvista.com>
92
93 * dwarf2read.c (struct dwarf2_cu): New type.
94
95 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
96 dwarf2_cu structure to pass down.
97
98 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
99 (add_partial_enumeration, locate_pdi_sibling, process_die)
100 (read_file_scope, read_func_scope)
101 (read_lexical_block_scope, dwarf2_get_pc_bounds)
102 (dwarf2_add_field, dwarf2_attach_fields_to_type)
103 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
104 (read_structure_scope, read_enumeration, read_array_type)
105 (read_common_block, read_namespace, read_tag_pointer_type)
106 (read_tag_ptr_to_member_type, read_tag_reference_type)
107 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
108 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
109 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
110 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
111 (read_full_die. read_attribute_value, read_attribute)
112 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
113 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
114 (die_containing_type, type_at_offset, tag_type_to_type)
115 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
116 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
117
1640b821
DJ
1182003-11-12 Daniel Jacobowitz <drow@mvista.com>
119
120 PR breakpoints/1450
121 * breakpoint.c (insert_bp_location): Fix a logic error by returning
122 0 after a catchpoint fails.
123
d7891507
MC
1242003-11-11 Michael Chastain <mec.gnu@mindspring.com>
125
126 * mips-tdep.c (msymbol_size): Delete.
127
f594e5e9
MC
1282003-11-07 Michael Chastain <mec@shout.net>
129
130 * symtab.h (struct minimal_symbol): Add size.
131 * dbxread.c: Use it.
132 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
133 Rename to record_minimal_symbol.
134 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
135 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
136 (install_minimal_symbols): Ditto.
137 * objfiles.c (terminate_minimal_symbol_table): Ditto.
138 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
139 * m68hc11-tdep.c: Ditto.
140 * mips-tdep.c: Ditto.
141 * sh64-tdep.c: Ditto.
142
68e39e73
MC
1432003-11-10 Michael Chastain <mec.gnu@mindspring.com>
144
145 * MAINTAINERS: Change my e-mail address.
146
b60eb90d
AC
1472003-11-10 Andrew Cagney <cagney@redhat.com>
148
963e2bb7
AC
149 * gdbarch.sh (return_value): Replace "inval" and "outval" with
150 "readbuf" and "writebuf".
151 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
152 * d10v-tdep.c (d10v_return_value): Ditto.
153 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
154 (ppc_sysv_abi_broken_return_value): Ditto.
155 (ppc64_sysv_abi_return_value): Ditto.
156 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
157 (ppc_sysv_abi_return_value): Ditto.
158 (ppc_sysv_abi_broken_return_value): Ditto.
159 (ppc64_sysv_abi_return_value): Ditto.
160 * values.c (register_value_being_returned): Update call.
161 * stack.c (return_command): Update call.
162 * gdbarch.h, gdbarch.c: Re-generate.
163
8aa91c1e
AC
164 * target.h (struct target_ops): Order xfer buffer parameters "read
165 write" not "write read".
166 * bfd-target.c (target_bfd_xfer_partial): Update.
167 * remote.c (remote_xfer_partial): Update.
168 * inftarg.c (child_xfer_partial): Update.
169 * target.c (default_xfer_partial): Update.
170 (target_read_partial, target_write_partial): Update.
171 (debug_to_xfer_partial): Update.
172
100bcc3f
AC
173 * arch-utils.h, arch-utils.c: Fix typo in comment.
174
b60eb90d
AC
175 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
176 (gdbarch_from_bfd): Call gdbarch_find_by_info.
1b3164d8
AC
177 (set_gdbarch_from_file): Call
178 "deprecated_current_gdbarch_select_hack".
b60eb90d 179
bf922ad9
AC
1802003-11-09 Andrew Cagney <cagney@redhat.com>
181
ebdba546
AC
182 * arch-utils.c (gdbarch_update_p): New function.
183 * gdbarch.sh (gdbarch_update_p): Delete function.
184 (find_arch_by_info, gdbarch_find_by_info): New functions.
3f030793 185 (deprecated_current_gdbarch_select_hack): New function.
ebdba546
AC
186 * gdbarch.c: Re-generate.
187
7de2341d
AC
188 * gdbarch.sh (clear_gdbarch_swap): Delete function.
189 (swapout_gdbarch_swap): Delete function.
190 (swapin_gdbarch_swap): Delete function.
191 (init_gdbarch_swap): Delete function.
192 (initialize_non_multiarch): Delete function.
193 (current_gdbarch_swap_in_hack): New function.
194 (current_gdbarch_swap_out_hack): New function.
195 (current_gdbarch_swap_init_hack): New function.
196 * gdbarch.c: Re-generate.
197
db446970
AC
198 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
199 parameter to "current_gdbarch". Add comment explaining why.
200 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
201 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
202 * gdbarch.c: Re-generate.
203
341e3d11
AC
204 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
205 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
206 * config/s390/xm-linux.h: Delete file.
207 * config/m88k/xm-delta88v4.h: Delete stray.
208
bf922ad9
AC
209 * Makefile.in (arch-utils.o): Update dependencies.
210 * arch-utils.c: Include "osabi.h".
211 (gdbarch_info_fill): New function.
212 * arch-utils.h (gdbarch_info_fill): Declare.
213 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
214 * gdbarch.c: Re-generate.
215
a3640c75
MK
2162003-11-09 Mark Kettenis <kettenis@gnu.org>
217 David S. Miller <davem@redhat.com>
218
219 * glibc-tdep.c, glibc-tdep.h: New files.
220 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
221 * config/i386/linux.mt (TDEPFILES): Likewise.
222 * i386-linux-tdep.c (glibc-tdep.h): Include.
223 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
224 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
225 * arm-linux-tdep.c (glibc-tdep.h): Include.
226 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
227 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
228 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
229 (glibc_tdep_h): Define.
230 (glibc-tdep.o): Add dependencies.
231 (arm-linux-tdep.o): Update dependencies.
232 (i386-linux-tdep.o): Likewise.
233
e60e0ab2
AC
2342003-11-09 Andrew Cagney <cagney@redhat.com>
235
236 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
237 * config/mips/nm-irix6.h: Delete file.
238 * config/mips/nm-linux.h: Update copyright.
239 (MIPS_GNULINUX_TARGET): Delete macro.
240 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
241 * config/mips/xm-irix6.h: Delete file.
242 * config/mips/linux.mh (XM_FILE): Delete definition.
243 * config/mips/xm-linux.h: Delete file.
244
181555e9
AC
2452003-11-09 Andrew Cagney <cagney@redhat.com>
246
247 * d10v-tdep.c (d10v_return_value): New function.
248 (d10v_use_struct_convention): Delete function.
249 (d10v_store_return_value): Delete function.
250 (d10v_extract_struct_value_address): Delete function.
251 (d10v_gdbarch_init): Set "return_value" instead of
252 "extract_return_value", "store_return_value",
253 "extract_struct_value_address", and "use_struct_convention".
254 (RET1_REGNUM): Delete const.
255
dea0c52f
MK
2562003-11-09 Mark Kettenis <kettenis@gnu.org>
257
258 From David S. Miller <davem@redhat.com>:
259 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
260 * gdbarch.c, gdbarch.h: Regenerated.
261 * arch-utils.c (generic_skip_solib_resolver): New function.
262 * arch-utils.h (generic_skip_solib_resolver): New prototype.
263 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
264
6314a349
AC
2652003-11-07 Andrew Cagney <cagney@redhat.com>
266
267 * top.c (print_gdb_version): Replace STREQ with strcmp.
268 * valops.c (value_struct_elt_for_reference): Ditto.
269 (value_struct_elt_for_reference): Ditto.
270 * symtab.c (gdb_mangle_name): Ditto.
271 (find_line_symtab): Ditto.
272 * symmisc.c (maintenance_print_symbols): Ditto.
273 * symfile.c (symbol_file_command): Ditto.
274 * stabsread.c (define_symbol, read_type): Ditto.
275 (cleanup_undefined_types, scan_file_globals): Ditto.
276 * solib.c (solib_map_sections): Ditto.
277 * solib-svr4.c (bfd_lookup_symbol): Ditto.
278 * rs6000-tdep.c (skip_prologue): Ditto.
279 * p-valprint.c (pascal_value_print): Ditto.
280 (pascal_object_is_vtbl_ptr_type): Ditto.
281 * objfiles.c (in_plt_section): Ditto.
282 * minsyms.c (lookup_minimal_symbol): Ditto.
283 (compact_minimal_symbols): Ditto.
284 (find_solib_trampoline_target): Ditto.
285 * mdebugread.c (parse_type): Ditto.
286 * language.c (set_language_command): Ditto.
287 (set_type_command, set_range_command): Ditto.
288 * f-lang.c (add_common_block): Ditto.
289 (add_common_block): Ditto.
290 (find_first_common_named): Ditto.
291 (patch_all_commons_by_name): Ditto.
292 * elfread.c (elf_locate_sections): Ditto.
293 (elf_locate_sections): Ditto.
294 (elfstab_offset_sections): Ditto.
295 * dwarf2read.c (dwarf2_locate_sections): Ditto.
296 * dbxread.c (add_old_header_file): Ditto.
297 (find_corresponding_bincl_psymtab): Ditto.
298 (read_dbx_symtab, process_one_symbol): Ditto.
299 * coffread.c (patch_opaque_types): Ditto.
300 * cli/cli-decode.c (delete_cmd): Ditto.
301 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
302 * c-typeprint.c (c_type_print_base): Ditto.
303 * breakpoint.c (bpstat_stop_status): Ditto.
304 (clear_command, breakpoint_re_set_one): Ditto.
305
49df298f
AC
3062003-11-07 Andrew Cagney <cagney@redhat.com>
307
308 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
309 * bcache.c (struct bstring): Make "length" an unsigned short, add
310 "half_hash".
311 (struct bcache): Add "half_hash_error_count".
312 (bcache): Compute and save the "half_hash". Compare the
313 "half_hash" before comparing the length. Update
314 half_hash_error_count.
315
f168dd80
AC
3162003-11-07 Andrew Cagney <cagney@redhat.com>
317
318 * inftarg.c (child_xfer_partial): New function
319 (init_child_ops): Set "to_xfer_partial".
320
05580c65
AC
3212003-11-07 Andrew Cagney <cagney@redhat.com>
322
323 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
324 set "return_value" instead of "use_struct_convention".
325 (ppc_linux_use_struct_convention): Delete function.
326 (ppc_linux_return_value): New function.
327 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
328 (ppc_sysv_abi_broken_return_value): New function.
329 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
330 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
331 static.
332 (ppc_sysv_abi_extract_return_value): Delete function.
333 (ppc_sysv_abi_broken_extract_return_value): Delete function.
334 (ppc_sysv_abi_store_return_value): Delete function.
335 (ppc_sysv_abi_broken_store_return_value): Delete function.
336 (ppc_sysv_abi_use_struct_convention): Delete function.
337 (ppc64_sysv_abi_use_struct_convention): Delete function.
338 (ppc64_sysv_abi_extract_return_value): Delete function.
339 (ppc64_sysv_abi_store_return_value): Delete function.
340 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
341 (ppcnbsd_init_abi): Set "return_value", instead of
342 "use_struct_convention", "extract_return_value", and
343 "store_return_value".
344 (ppcnbsd_use_struct_convention): Delete function.
345 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
346 (ppc_sysv_abi_return_value): Declare.
347 (ppc_sysv_abi_broken_return_value): Declare.
348 (ppc_sysv_abi_use_struct_convention): Delete.
349 (ppc_sysv_abi_store_return_value): Delete.
350 (ppc_sysv_abi_extract_return_value): Delete.
351 (ppc_sysv_abi_broken_store_return_value): Delete.
352 (ppc_sysv_abi_broken_extract_return_value): Delete.
353 (ppc64_sysv_abi_use_struct_convention): Delete.
354 (ppc64_sysv_abi_extract_return_value): Delete.
355 (ppc64_sysv_abi_store_return_value): Delete.
356 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
357 set "return_value" instead of "extract_return_value",
358 "store_return_value", and "use_struct_convention".
359
1763fba4
MK
3602003-11-07 Mark Kettenis <kettenis@gnu.org>
361
22c7ba1a
MK
362 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
363
1763fba4
MK
364 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
365 fscanf.
366
fc07cc2d
MK
3672003-11-07 Mark Kettenis <kettenis@gnu.org>
368
369 * fbsd-proc.c: Fix formatting.
370
6a748db6
KB
3712003-11-06 Kevin Buettner <kevinb@redhat.com>
372
373 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
374 Define.
375 (new_variant): Set name for iacc0_regnum.
376 (frv_register_name): Accommodate pseudo-registers.
377 (frv_register_type): Add case for iacc0_regnum.
378 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
379 (frv_gdbarch_init): Set number of pseudo registers. Establish
380 pseudo-register read/write methods.
381
bf896cb0
AC
3822003-11-06 Andrew Cagney <cagney@redhat.com>
383
384 * valops.c (destructor_name_p): Replace STREQN with strncmp.
385 * top.c (command_line_input): Ditto.
386 * objc-exp.y (yylex): Ditto.
387 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
388 * jv-exp.y (yylex): Ditto.
389 * f-exp.y (yylex): Ditto.
390 * event-top.c (command_line_handler): Ditto.
391 * environ.c (get_in_environ): Ditto.
392 (set_in_environ): Ditto.
393 * dwarfread.c (handle_producer): Ditto.
394 * dbxread.c (process_one_symbol): Ditto.
395 * c-typeprint.c (c_type_print_base): Ditto.
396 * c-exp.y (yylex): Ditto.
397
0b603eba
AC
3982003-11-06 Andrew Cagney <cagney@redhat.com>
399 Jeff Johnston <jjohnstn@redhat.com>
400
401 * target.c (add_target): Only set "to_xfer_partial" when NULL.
402 (init_dummy_target): Set "to_xfer_partial".
403
9cedbfec
AC
4042003-11-06 Andrew Cagney <cagney@redhat.com>
405
406 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
407 REGISTER_CONVENTION.
408
26bb91f3
DJ
4092003-11-06 Daniel Jacobowitz <drow@mvista.com>
410
411 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
412 static.
413
0bde7532
DJ
4142003-11-06 Daniel Jacobowitz <drow@mvista.com>
415
416 * breakpoint.c (remove_breakpoint): Take an bp_location
417 instead of a breakpoint argument. Check the bp_location's type.
418 Fix a reversed condition for hardware breakpoints.
419
420 (insert_bp_location): Update call to remove_breakpoint.
421 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
422 (remove_hw_watchpoints): Likewise.
423 (reattach_breakpoints): Likewise.
424 (detach_breakpoints): Likewise.
425 (delete_breakpoint): Likewise.
426
075f6582
DJ
4272003-11-06 Daniel Jacobowitz <drow@mvista.com>
428
429 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
430 (beakpoint_init_inferior): Likewise.
431 (breakpoint_here_p): Likewise. Only check addresses for software
432 or hardware breakpoints.
433 (breakpoint_inserted_here_p): Likewise.
434 (breakpoint_thread_match): Likewise. Correct comment.
435 (bpstat_have_active_hw_watchpoints): Likewise.
436 (check_duplicates): Likewise.
437
879bfdc2
DJ
4382003-11-06 Daniel Jacobowitz <drow@mvista.com>
439
440 * breakpoints.c (insert_bp_location): New function, broken out
441 from insert_breakpoints. Work on an bp_location instead of a
442 breakpoint.
443 (insert_breakpoints): Use it.
444
cf3a9e5b
DJ
4452003-11-06 Daniel Jacobowitz <drow@mvista.com>
446
447 * breakpoint.h (struct bp_location): Add section.
448 (struct breakpoint): Remove section.
449 * breakpoint.c (insert_breakpoints, remove_breakpoint)
450 (breakpoint_here_p, breakpoint_inserted_here_p)
451 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
452 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
453 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
454 section through loc.
455
ffce0d52
DJ
4562003-11-06 Daniel Jacobowitz <drow@mvista.com>
457
458 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
459 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
460
e049a4b5
DJ
4612003-11-06 Daniel Jacobowitz <drow@mvista.com>
462
463 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
464 arguments. Initialize owner and type for the new breakpoint
465 location item.
466 (set_raw_breakpoint): Update call to allocate_bp_location.
467
7cc221ef
DJ
4682003-11-06 Daniel Jacobowitz <drow@mvista.com>
469
470 * breakpoint.h (struct bp_location): Add a chain pointer.
471 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
472 macros.
473 (bp_location_chain): New variable.
474 (allocate_bp_location): New function.
475 (set_raw_breakpoint): Use it.
476 (delete_breakpoint): Remove ->loc from the bp_location_chain.
477
5cab636d
DJ
4782003-11-06 Daniel Jacobowitz <drow@mvista.com>
479
480 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
481 (struct breakpoint): Remove address, shadow_contents, inserted,
adeee247 482 requested_address, and duplicate. Add a struct bp_location.
5cab636d
DJ
483 * breakpoint.c (condition_command, read_memory_nobpt)
484 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
485 (reattach_breakpoints, update_breakpoints_after_exec)
486 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
487 (breakpoint_init_inferior, breakpoint_here_p)
488 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
489 (breakpoint_thread_match, bpstat_stop_status)
490 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
491 (describe_other_breakpoints, check_duplicates)
492 (make_breakpoint_permanent, create_thread_event_breakpoint)
493 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
494 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
495 (watch_command_1, print_one_exception_catchpoint)
496 (clear_command, breakpoint_re_set_one): Adjust member accesses to
497 use the breakpoint's ->loc.
498 (set_raw_breakpoint): Likewise. Initialize ->loc.
499 (delete_breakpoint): Likewise. Free ->loc.
500
7be0c536
AC
5012003-11-05 Andrew Cagney <cagney@redhat.com>
502
4c7d882e
AC
503 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
504 macro.
505 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
506 * config/i386/tm-cygwin.h
507 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
508 * config/powerpc/tm-linux.h
509 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
510 (at_subroutine_call_instruction_target): Delete declaration.
511 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
512 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
513 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
514
7be0c536
AC
515 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
516 "struct bfd_section" and "struct bfd".
517 * target.h (struct section_table): Ditto.
518 * rs6000-nat.c (xcoff_relocate_core): Ditto.
519 * solib-svr4.c (elf_locate_base): Ditto.
520 * pa64solib.c (dld_cache_t): Ditto.
521 * objfiles.h (struct obj_section): Ditto.
522 * objfiles.c (add_to_objfile_sections): Ditto.
523 * exec.c (bfdsec_to_vmap): Ditto.
524 (add_to_section_table): Ditto.
525 (build_section_table): Ditto.
526 * corelow.c (get_core_register_section): Ditto.
527 * coffread.c (find_linenos): Ditto.
528 * elfread.c (elf_interpreter): Delete #if0'd function.
529
530 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
531 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
532 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
533 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
534
535 * arch-utils.h (generic_cannot_extract_struct_value_address):
536 Delete declaration.
537 * wince.c (_initialize_wince): Fix multi-line string.
538 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
539
d8fe84e3
EZ
5402003-11-05 Elena Zannoni <ezannoni@redhat.com>
541
542 * top.c (execute_command): Fix broken logic for command execution
543 while inferior is running in async mode.
544
cbdfc7c0
MK
5452003-11-06 Mark Kettenis <kettenis@gnu.org>
546
547 * dwarf2-frame.c (execute_cfa_program): Mark register as
548 REG_SAVED_REG for DW_CFA_register opcode.
549
dac94105
MK
5502003-11-05 Mark Kettenis <kettenis@gnu.org>
551
552 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
553 %rsp, %rip and %eflags to match ABI-change.
554
85bf2b91
JJ
5552003-11-05 Jeff Johnston <jjohnstn@redhat.com>
556
557 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
558 (ia64_gdbarch_init): Don't bother calculating the os.
559 Instead use the gdbarch_info struct and look at the osabi field.
560 Also use gdbarch_list_lookup_by_info() to look for a
561 candidate gdbarch.
562
cd31fb03
KB
5632003-11-05 Kevin Buettner <kevinb@redhat.com>
564
565 * frv-tdep.c (frv_register_byte): Delete.
566 (frv_extract_return_value, frv_store_return_value)
567 (frv_extract_struct_value_address): Don't call frv_register_byte().
568 Convert to non-deprecated form.
569 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
570 Convert calls to set_gdbarch_deprecated_extract_return_value(),
571 set_gdbarch_deprecated_store_return_value(), and
572 set_gdbarch_deprecated_extract_struct_value_address() into
573 non-deprecated forms.
574
0a056982
AC
5752003-11-05 Andrew Cagney <cagney@redhat.com>
576
577 * mips-tdep.c (mips_dump_tdep): Do not print
578 PRINT_EXTRA_FRAME_INFO.
579 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
580 Rename PRINT_EXTRA_FRAME_INFO.
581 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
582 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
583 (mips_print_extra_frame_info): Delete declaration.
584 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
585
29e0a062
EZ
5862003-11-05 Elena Zannoni <ezannoni@redhat.com>
587
588 * coffread.c (coff_symtab_read): Remove passing of info parameter
589 to prim_record_minimal_symbol_and_info.
590
8af580fc
EZ
5912003-11-05 Elena Zannoni <ezannoni@redhat.com>
592
593 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
594 (decode_base_type): Delete ifdeffed out code.
595
507836c0
AC
5962003-11-04 Andrew Cagney <cagney@redhat.com>
597
598 * symtab.c (find_active_alias): Delete function.
599 (lookup_block_symbol): Delete alias code.
600 * stabsread.c (resolve_live_range): Delete function.
601 (add_live_range): Delete function.
602 (resolve_symbol_reference): Delete function.
603 (define_symbol): Delete live range and alias code.
604 (scan_file_globals): Delete alias code.
605 * symtab.h (SYMBOL_RANGES): Delete macro.
606 (struct range_list): Delete structure.
607 (struct symbol): Delete field "ranges".
608 (SYMBOL_ALIASES): Delete macro.
609 (struct alias_list): Delete structure.
610 (struct symbol): Delete field "aliases".
611
1083b3bc
MS
6122003-11-04 Michael Snyder <msnyder@redhat.com>
613
614 * MAINTAINERS: Remove myself as owner of breakpoints and
615 of sparc/solaris.
616
474e5826
CV
6172003-11-03 Corinna Vinschen <vinschen@redhat.com>
618
619 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
620 (sh_sh4al_dsp_register_name): Ditto.
621 (sh4_nofpu_show_regs): Ditto.
622 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
623 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
624
2160782c
AC
6252003-11-03 Andrew Cagney <cagney@redhat.com>
626
627 * bcache.c: Include "gdb_assert.h".
628 (struct bcache): Add fields "expand_count" and
629 "expand_hash_count".
630 (expand_hash_table): Update the expand counts.
631 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
632 on object sizes and hashes.
633 * Makefile.in (bcache.o): Update dependencies.
634
85302095
AC
6352003-11-03 Andrew Cagney <cagney@redhat.com>
636
637 * exec.c (xfer_memory): Eliminate xfer_fn.
638
526eef89
KB
6392003-10-31 Kevin Buettner <kevinb@redhat.com>
640
641 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
642 (opcodes/frv-desc.h): Include.
643 (iacc0h_regnum, iacc0l_regnum): Define.
644 (last_spr_regnum, frv_num_regs): Update.
645 (new_variant): Don't supply default names for holes in the SPRs.
646 Supply names for iacc0h_regnum and iacc0l_regnum.
647 (frv_register_type): Use symbolic constants first_fpr_regnum and
648 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
649 builtin_type_int instead of builtin_type_int32.
650 (frv_register_sim_regno): New function.
651 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
652 * Makefile.in (gdb_sim_frv_h): Define.
653 (frv-tdep.o): Update dependencies.
654
9e815ec2
AC
6552003-10-31 Andrew Cagney <cagney@redhat.com>
656
657 * avr-tdep.c (avr_frame_this_id): Do not call
658 deprecated_inside_entry_file.
659 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
660 * m32r-tdep.c (m32r_frame_this_id): Ditto.
661 * d10v-tdep.c (d10v_frame_this_id): Ditto.
662 * arm-tdep.c (arm_prologue_this_id): Ditto.
663 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
664
e372db49
JB
6652003-10-31 Jim Blandy <jimb@redhat.com>
666
667 * elfread.c (elf_symtab_read): Allocate correct number of tail
668 elements to sectinfo structure. (Fix from Woody LaRue.)
669
e8bcf01f
AC
6702003-10-31 Andrew Cagney <cagney@redhat.com>
671
672 * stack.c (return_command): Use get_frame_type, instead of
673 CALL_DUMMY_HAS_COMPLETED.
674 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
675 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
676
4c05fe53
MK
6772003-10-31 Mark Kettenis <kettenis@gnu.org>
678
679 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
680 explicitly specify size of array.
681 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
682 TDEP->sc_num_regs.
683
c8b91b89
AC
6842003-10-31 Andrew Cagney <cagney@redhat.com>
685
686 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
687 function.
688 (s390_gdbarch_init): Set extract_struct_value_address.
689 * arch-utils.c (generic_cannot_extract_struct_value_address):
690 Delete function.
691 * arch-utils.h (generic_cannot_extract_struct_value_address):
692 Delete definition.
693
fdfb6fc8
MK
6942003-10-31 Mark Kettenis <kettenis@gnu.org>
695
696 * i386-linux-nat.c (fetch_core_registers): Remove.
697 (linux_elf_core_fns): Remove.
698 (_initialize_i386_linux_nat): Remove.
699
2f4950cd
AC
7002003-10-31 Andrew Cagney <cagney@redhat.com>
701
702 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
703 "exec.h".
704 (exec_entry_point): New function.
705 (enable_break): Create a "tmp_bfd_target", use that and
706 entry_point_address when computing the relocation offset.
707 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
708 * Makefile.in (solib-svr4.o): Update dependencies.
709
bba2d28d
AC
7102003-10-31 Andrew Cagney <cagney@redhat.com>
711
712 * defs.h (XZALLOC): Define.
713 * target.h (struct target_ops): Add "to_data";
714 * bfd-target.h, bfd-target.c: New files.
715 * Makefile.in (SFILES): Add "bfd-target.c".
716 (COMMON_OBS): Add "bfd-target.o".
717 (bfd-target.o): Specify dependencies.
718 (bfd_target_h): Define.
719 * defs.h (XZALLOC): Define.
720
6066c3de
AC
7212003-10-31 Andrew Cagney <cagney@redhat.com>
722
723 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
724 adjust_breakpoint_address.
725 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
726 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
727 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
728 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
729
4b8a223f
AC
7302003-10-31 Andrew Cagney <cagney@redhat.com>
731
732 * target.h (struct target_ops): Replace "to_read_partial" and
733 "to_write_partial" with "to_xfer_partial". Update comments.
734 * target.c (debug_to_write_partial): Delete function.
735 (debug_to_xfer_partial): Replace debug_to_read_partial.
736 (add_target, update_current_target, setup_target_debug): Set
737 "to_xfer_partial" instead of "to_read_partial" and
738 "to_write_partial".
739 (default_xfer_partial): Replace "default_write_partial".
740 (default_read_partial): Delete.
741 (target_read_partial, target_write_partial): Call
742 "to_xfer_partial".
743 * remote.c (init_remote_ops): Set "to_xfer_partial".
744 (init_remote_async_ops): Ditto.
745 (remote_xfer_partial): Replace "remote_read_partial".
746
66a72d25
MK
7472003-10-31 Mark Kettenis <kettenis@gnu.org>
748
749 * i386-tdep.c (i386_supply_fpregset): Support floating-point
750 registers in `fxsave' format.
751 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
752
9a12a2a0
MK
7532003-10-30 Mark Kettenis <kettenis@gnu.org>
754
e9f1aad5
MK
755 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
756 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
757 TDEP->gregset_num_regs and tdep->sizeof_gregset.
758
bb489b3c
MK
759 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
760 specify size of array.
761 (i386_linux_init_abi): Remove initialization of
762 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
763 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
764
da285bc4
MK
765 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
766 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
767 core-regset.o.
768
9a12a2a0
MK
769 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
770 the ELF header.
771
0e24ac5d
MK
7722003-10-29 Mark Kettenis <kettenis@gnu.org>
773
6d6d8e9c
MK
774 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
775 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
776 core-regset.o.
777
25e60c9b
MK
778 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
779
0e24ac5d
MK
780 * corelow.c: Include "arch-utils.h", "regset.h" and
781 "gdb_assert.h".
782 (core_gdbarch): New variable.
783 (sniff_core_bfd): Don't sniff if we have support for register sets
784 in CORE_GDBARCH.
785 (core_close): Reset CORE_GDBARCH.
786 (core_open): Initialize CORE_GDBARCH.
787 (get_core_register_section): Use register sets if they are
788 supported by CORE_GDBARCH.
789 (get_core_registers): Don't print error message if we have support
790 for register sets in CORE_GDBARCH.
791
0a0a4ac3
AC
7922003-10-29 Andrew Cagney <cagney@redhat.com>
793
794 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
795 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
796
7b097ae3
MK
7972003-10-29 Mark Kettenis <kettenis@gnu.org>
798
799 * objfiles.h (clear_objfile_data): New prototype.
800 * objfiles.c (clear_objfile_data): New function.
801 * symfile.c (reread_symbols): Clear per-objfile data.
802
46f45a4a
JJ
8032003-10-28 Jeff Johnston <jjohnstn@redhat.com>
804
805 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
806 printf_unfiltered instead of printf_filtered for output messages.
807 (add_symbol_file_command): Ditto.
808 (reread_symbols): Ditto.
809 (overlay_auto_command): Ditto.
810 (overlay_manual_command): Ditto.
811 (overlay_off_command): Ditto.
812
2b026650
MK
8132003-10-27 Mark Kettenis <kettenis@gnu.org>
814
815 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
816 (gdbarch_from_bfd): New function.
817 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
818 deprecated_select_gdbarch_hack.
819 * arch-utils.h (gdbarch_from_bfd): New prototype.
820
0bcad584 8212003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
822
823 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
824 arch_info. Use warning instead of fprintf_filtered. Do not use
825 deprecated bfd_printable_arch_mach.
826
7f398216
KB
8272003-10-26 Kevin Buettner <kevinb@redhat.com>
828
829 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
830 Delete.
831 (frv_register_type): Rename from frv_register_virtual_type. Add
832 ``struct gdbarch *'' parameter.
833 (frv_gdbarch_init): Delete calls to the following functions:
834 set_gdbarch_deprecated_size(),
835 set_gdbarch_deprecated_register_bytes(),
836 set_gdbarch_deprecated_register_raw_size(),
837 set_gdbarch_deprecated_max_register_raw_size(),
838 set_gdbarch_deprecated_register_virtual_size(),
839 set_gdbarch_deprecated_max_register_virtual_size(),
840 set_gdbarch_deprecated_register_virtual_size(),
841 set_gdbarch_deprecated_register_virtual_type().
842 Add call to function set_gdbarch_register_type().
843
bcf48cc7
MK
8442003-10-26 Mark Kettenis <kettenis@gnu.org>
845
6c7de422
MK
846 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
847 FDOFF_REGNUM): Remove defines.
848 * win32-nat.c (do_child_fetch_inferior_registers): Include
849 "i387-tdep.h".
3e685d41 850 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
851 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
852 undefine I387_ST0_REGNUM.
853
f783586b
MK
854 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
855 * x86-64-tdep.c (x86_64_store_return_value): Use
856 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
857
bcf48cc7
MK
858 Change register numbers to enumartion values.
859 * i386-tdep.h (enum i386_regnum): New.
860 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
861 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
862 I386_ST0_REGNUM): Remove defines.
863 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
864 I386_EDI_REGNUM): Remove defines.
865
b6591e8b
AC
8662003-10-24 Andrew Cagney <cagney@redhat.com>
867
868 * target.c: Include "gdbcore.h".
869 (get_target_memory, get_target_memory_unsigned): New functions.
870 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
871 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
872 Use get_target_memory_unsigned.
873 * Makefile.in (target.o): Update dependencies.
874
5f724446
AC
8752003-10-24 Andrew Cagney <cagney@redhat.com>
876
ce2826aa
AC
877 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
878 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
879 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
880 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
881 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
882
5f724446
AC
883 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
884 (can_run_code_for): Use the OO term "singleton".
885
fc70c2a0
AC
8862003-10-23 Andrew Cagney <cagney@redhat.com>
887
888 * Makefile.in (stack.o): Add $(regcache_h).
889 * stack.c: Include "regcache.h"
890 (return_command): Rewrite. Use get_frame_id and
891 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
892 about unhandled return-values.
893 * value.h (set_return_value): Delete declaration.
894 * values.c (set_return_value): Delete function.
895
4afcc598
JJ
8962003-10-23 Jeff Johnston <jjohnstn@redhat.com>
897
898 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
899 (pseudo_regs): Add comment regarding register stack registers.
900 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
901 (floatformat_valid): New static routine.
902 (floatformat_ia64_ext): Add name field and set up is_valid routine
903 to floatformat_valid().
904 (examine_prologue): For the previous cfm, use
905 frame_unwind_register()
906 if the cfm is not stored in a register-stack register. Save the
907 previous cfm value in the prev_cfm field. Add debug output.
908 (ia64_frame_this_id): Use frame_id_build_special() to also register
909 the bsp. Add debug output.
910 (ia64_sigtramp_frame_this_id): Ditto.
911 (ia64_frame_prev_register): Look at cache saved_regs for a few more
912 registers and also add some checks for framelessness before accepting
913 current register values for fields such as return address. For cfm,
914 use the cached prev_cfm field if available. Add comment to explain
915 PSR logic. Add debug output.
916 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
917 as part of initialization.
918 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
919 calculated. Cache the bsp and cfm values.
920 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
921 instead of using ia64_frame_prev_register() which doesn't expect most
922 registers to be saved. The saved values for bsp and sp
923 can be taken from the cache. Add debug output.
924 (ia64_push_dummy_call): Use frame_id_build_special() to also register
925 the bsp.
926
6cfae0bc
JB
9272003-10-23 Jim Blandy <jimb@redhat.com>
928
929 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
930 architecture the current arch can run code for --- but not if it's
931 a superset.
932 (can_run_code_for): New function.
933
fcd182f9
JW
9342003-10-22 James E Wilson <wilson@specifixinc.com>
935
936 * MAINTAINERS: Move myself from paper trail section back to write
937 after approval section.
938
4646aa9d
AC
9392003-10-22 Andrew Cagney <cagney@redhat.com>
940
941 * exec.h: New file.
942 * win32-nat.c: Include "exec.h".
943 * solib.c: Include "exec.h".
944 * target.h (build_section_table): Delete declaration.
945 * somsolib.c: Include "exec.h".
946 (exec_ops): Delete extern declaration.
947 * rs6000-nat.c: Update copyright. Include "exec.h".
948 (exec_ops): Delete extern declaration.
949 * pa64solib.c: Update copyright. Include "exec.h".
950 (exec_ops): Delete extern declaration.
951 * exec.c: Update copyright. Include "exec.h".
952 * corelow.c: Update dependencies. Include "exec.h".
953 * Makefile.in (exec_h): Define.
954 (exec.o, somsolib.o): Update dependencies.
955 (pa64solib.o, corelow.o): Update dependencies.
956
0088c768
AC
9572003-10-22 Andrew Cagney <cagney@redhat.com>
958
959 * target.c: Include "gdb_assert.h" (target_read): Call
960 "target_read_partial", not "target_write_partial".
961 (default_read_partial, default_write_partial): New function.
962 (target_read_partial, target_write_partial): Simplify, assume that
963 there is always a read/write method.
964 (update_current_target, add_target): Always set "to_read_partial"
965 and "to_write_partial".
966 (target_write, target_read): Fail on a zero byte transfer.
967 * Makefile.in (target.o): Update dependencies.
968 * target.h: Update copyright date.
969 (target_object): Fix typo.
970
e2d0e7eb
AC
9712003-10-22 Andrew Cagney <cagney@redhat.com>
972
973 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
974 multi-arch method, add "targ" parameter.
975 (struct target_ops): Declare.
976 * gdbarch.h, gdbarch.c: Re-generate.
977 * Makefile.in (c-valprint.o): Update dependencies.
978 * arch-utils.h: Update copyright.
979 (convert_from_func_ptr_addr_identity): Declare.
980 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
981 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
982 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
983 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
984 * infcall.c (find_function_addr, call_function_by_hand): Update.
985 * c-valprint.c: Include "target.h".
986 (print_function_pointer_address): Update.
987
f1c07ab0
AC
9882003-10-22 Andrew Cagney <cagney@redhat.com>
989
990 * target.c (target_close): New function.
991 (debug_to_close): Use "target_close".
992 (push_target): Use "target_close".
993 (unpush_target): Use "target_close".
994 (pop_target): Use "target_close".
995 * target.h (struct target_ops): Add "to_xclose".
996 (target_open): Delete macro. Move comment to "to_open".
997 (target_close): Replace macro with function that takes a target.
998 * top.c (quit_target): Pass "current_target" to "target_close".
999
5520a790
EZ
10002003-10-21 Elena Zannoni <ezannoni@redhat.com>
1001
1002 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1003 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1004 * symtab.h (lookup_minimal_symbol_text): Update.
1005 * breakpoint.c (create_overlay_event_breakpoint,
1006 create_longjmp_breakpoint): Update callers.
1007 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1008 * symtab.c (find_pc_sect_line): Ditto.
1009
caa92b73
AC
10102003-10-21 Andrew Cagney <cagney@redhat.com>
1011
1012 * target.c (errno): Delete extern declaration.
1013
aa2a9a3c
JJ
10142003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1015
1016 * ia64-tdep.c: Change all occurrences of
1017 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1018 (ia64_frame_prev_register): Minor whitespace change.
1019
4beec2b7
MC
10202003-10-20 Michael Chastain <mec@shout.net>
1021
1022 * config/djgpp/fnchange.lst: Add lines for:
1023 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1024 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1025 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1026 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1027 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1028 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1029 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1030
92ad9cd9
AC
10312003-10-20 Andrew Cagney <cagney@redhat.com>
1032
1033 * values.c (register_value_being_returned): Update comments. Use
1034 "gdbarch_return_value" when available.
1035 (using_struct_return): Ditto.
1036 (set_return_value): Ditto. Use "gdbarch_return_value" when
1037 available.. Print a warning, and not an error, when an unhandled
1038 return type is encountered.
1039 * infcmd.c: Include "gdb_assert.h".
1040 (print_return_value): When gdbarch_return_value_p, and using
1041 struct return, assume that the value is not available.
1042 * defs.h (return_value_convention): Define.
1043 * gdbarch.sh (gdbarch_return_value): New predicate method.
1044 * gdbarch.h, gdbarch.c: Re-generate
1045 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1046
198beae2
AC
10472003-10-20 Andrew Cagney <cagney@redhat.com>
1048
1049 * symtab.c: Replace "struct sec" with "struct bfd_section".
1050 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1051
24d693a6 10522003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
1053
1054 * config/djgpp/fnchange.lst: Add lines for:
1055 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1056 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1057 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1058
21ad8dc3
MK
10592003-10-19 Mark Kettenis <kettenis@gnu.org>
1060
1061 * amd64fbsd-nat.c (fetch_inferior_registers,
1062 store_inferior_registers): Remove functions.
1063 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1064
cced5e27
MK
10652003-10-18 Mark Kettenis <kettenis@gnu.org>
1066
1067 Add NetBSD/amd64 native configuration:
1068 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1069 * amd64nbsd-tdep.c: New file.
1070 * amd64nbsd-nat.c: New file.
1071 * amd64bsd-nat.c: New file.
1072 * config/i386/nbsd64.mh: New file.
1073 * config/i386/nbsd64.mt: New file.
1074 * configure.host: Add x86_64-*-netbsd*.
1075 * configure.tgt: Add x86_64-*-netbsd*.
1076 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1077 New targets.
1078 * NEWS (New native configurations): Mention NetBSD/amd64.
1079
666de3fd
MC
10802003-10-17 Michael Chastain <mec@shout.net>
1081
1082 * config/djgpp/fnchange.lst: Remove dead lines for:
1083 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1084 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1085 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1086 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1087 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1088 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1089 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1090 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1091 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1092 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1093 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1094 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1095 gdb/config/sparc/tm-sparclite.h,
1096 gdb/gdbtk/generic/ChangeLog-2001,
1097 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1098 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1099 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1100 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1101 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1102 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1103 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1104 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1105 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1106 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1107 itcl/iwidgets3.0.0/demos/fileselectionbox,
1108 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1109 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1110 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1111 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1112 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1113 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1114 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1115 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1116 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1117 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1118 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1119 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1120 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1121 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1122 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1123 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1124 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1125 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1126 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1127 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1128 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1129 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1130 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1131 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1132 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1133 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1134 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1135 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1136 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1137 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1138 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1139 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1140 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1141 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1142 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1143 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1144 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1145 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1146 itcl/iwidgets3.0.0/demos/scrolledframe,
1147 itcl/iwidgets3.0.0/demos/scrolledhtml,
1148 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1149 itcl/iwidgets3.0.0/demos/scrolledtext,
1150 itcl/iwidgets3.0.0/demos/selectionbox,
1151 itcl/iwidgets3.0.0/demos/selectiondialog,
1152 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1153 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1154 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1155 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1156 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1157 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1158 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1159 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1160 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1161 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1162 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1163 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1164 itcl/iwidgets3.0.0/doc/selectionbox.n,
1165 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1166 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1167 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1168 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1169 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1170 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1171 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1172 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1173 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1174 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1175 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1176 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1177 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1178 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1179 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1180 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1181 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1182 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1183 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1184 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1185 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1186 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1187 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1188 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1189 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1190 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1191 itcl/iwidgets3.0.0/tests/selectionbox.test,
1192 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1193 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1194 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1195 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1196 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1197 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1198 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1199 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1200 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1201 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1202 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1203 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1204 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1205 tk/mac/tkMacProjects.sit.hqx.
1206
1e3ff5ad
AC
12072003-10-17 Andrew Cagney <cagney@redhat.com>
1208
8db32d44
AC
1209 * target.c (target_section_by_addr): New function.
1210 (do_xfer_memory): Use "target_section_by_addr".
1211 * target.h (target_section_by_addr): Declare.
1212
1e3ff5ad
AC
1213 * target.h (struct target_ops): Add "to_read_partial" and
1214 "to_write_partial", delete "to_query".
1215 (target_read_partial, target_write_partial): Declare.
1216 (target_read, target_write): Declare.
1217 (target_query): Delete macro.
1218 * target.c (target_read_partial): New function.
1219 (target_write_partial, target_read, target_write): New function.
1220 (update_current_target): Delete inheritance of "to_query". Add
1221 comments about "to_read_partial" and "to_write_partial".
1222 (debug_to_partial_read, debug_to_partial_write): New functions.
1223 (debug_to_query): Delete function.
1224 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1225 instead of "to_query".
1226 * remote.c (remote_read_partial): Replace "remote_query".
1227 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1228 (init_remote_async_ops): Ditto.
1229 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1230 "target_read_partial" instead of "target_query".
1231 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1232 Use "target_read_partial" instead of "target_query".
1233
48c66725
JJ
12342003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1235
1236 * frame.h (struct frame_id): Add new field: special_addr.
1237 (frame_id_build_special): New prototype.
1238 * frame.c (frame_id_build_special): New function.
1239 (frame_id_build): Change to call frame_id_build_special().
1240 (frame_id_eq): Change to also test special_addr field.
1241 (frame_id_inner): Update comment.
1242
7998dfc3
AC
12432003-10-17 Andrew Cagney <cagney@redhat.com>
1244
1245 * target.c (update_current_target): Perform the target cleanup.
1246 Put the target stack beneath the squashed "current_target".
1247 (add_target): Delete disabled call to "cleanup_target".
1248 (cleanup_target): Delete function.
1249 (push_target, unpush_target): Do not call "cleanup_target".
1250
9c04404e 12512003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
1252
1253 * target.c (target_stack): Change to a static target_ops.
1254 (update_current_target): Walk the "struct target_ops" stack.
1255 (pop_target, do_xfer_memory, target_info): Ditto.
1256 (find_target_beneath): Ditto.
1257 (push_target): Rewrite to use the "struct target_ops" stack.
1258 (unpush_target): Ditto.
1259 * target.h (struct target_stack_item): Delete definition.
1260 (target_stack): Delete declaration.
1261 (struct target_ops): Add field "beneath".
1262
c98a2b49 12632003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
1264
1265 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1266 declaration.
1267 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
1268 (h8300_examine_prologue): Use h8300_normal_mode flag
1269 (h8300_gdbarch_init): Set architecture info for normal mode
1270
506fb367
DJ
12712003-10-16 Daniel Jacobowitz <drow@mvista.com>
1272
1273 * remote.c (remote_protocol_vcont): New variable.
1274 (set_remote_protocol_vcont_packet_cmd): New function.
1275 (show_remote_protocol_vcont_packet_cmd): New function.
1276 (init_all_packet_configs): Handle remote_protocol_vcont.
1277 (remote_vcont_probe): New function.
1278 (remote_vcont_resume): New function.
1279 (remote_resume): Use it.
1280 (remote_async_resume): Call remote_resume.
1281 (_initialize_remote): Add verbose-resume packet commands.
1282
65815ea1
AC
12832003-10-16 Andrew Cagney <cagney@redhat.com>
1284
1285 * infrun.c (handle_inferior_event): Add comment about
1286 "frame_id_inner" being too weak.
1287
40324f1b
EZ
12882003-10-16 Elena Zannoni <ezannoni@redhat.com>
1289
1290 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1291 second parameter, which is always null. Remove
1292 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1293 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1294 accordingly.
1295 * somsolib.c (som_solib_create_inferior_hook,
1296 som_solib_desire_dynamic_linker_symbols): Update callers.
1297 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
1298
12992003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1300
1301 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1302 debug interface, SDI (Scalable Debug Interface).
1303 * NEWS: Mention m32r SDI protocol was supported.
1304 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1305 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1306
51931cbb
JJ
13072003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1308
1309 * ia64-linux-tdep.c: Include gdbcore.h.
1310 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1311 (ia64_linux_sigcontext_register_addr): Find the address of the
1312 sigcontext area stored in the sigframe instead of using
1313 a magic offset constant.
1314
84e7fd53
AC
13152003-10-15 Andrew Cagney <cagney@redhat.com>
1316
1317 * remote.c (remote_search): Delete function.
1318 * target.h (target_search): Delete disabled macro.
1319 (struct target_ops): Delete disabled field "to_search".
1320
0f4d7c52
KB
13212003-10-14 Kevin Buettner <kevinb@redhat.com>
1322
1323 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1324 instead of deprecated_inside_entry_file().
1325
2e952408
CV
13262003-10-14 Corinna Vinschen <vinschen@redhat.com>
1327
1328 * sh-tdep.c: Fix copy/paste hangover in comment.
1329 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1330 mode.
1331 (sh3e_sh4_extract_return_value): Ditto.
1332
7e86466e
RH
13332003-10-13 Richard Henderson <rth@redhat.com>
1334
1335 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1336 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1337 match c_val_print a bit closer.
1338
46a16dba
KB
13392003-10-13 Kevin Buettner <kevinb@redhat.com>
1340
1341 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1342 (frv_gdbarch_adjust_breakpoint_address): New function.
1343 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1344 method.
1345
76897487
KB
13462003-10-13 Kevin Buettner <kevinb@redhat.com>
1347
1348 * breakpoint.h (struct breakpoint): Add new member
1349 ``requested_address''.
1350 * breakpoint.c (breakpoint_adjustment_warning)
1351 (adjust_breakpoint_address): New static functions.
1352 (print_it_typical): Issue warning if breakpoint's address is different
1353 from its requested address.
1354 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1355 (breakpoint_re_set_one): Set breakpoint's
1356 ``requested_address'' field. Set ``address'' field to the
1357 result of calling adjust_breakpoint_address() on the requested
1358 address.
1359
a1131521
KB
13602003-10-13 Kevin Buettner <kevinb@redhat.com>
1361
1362 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1363 * gdbarch.h, gdbarch.c: Regenerate.
1364
6ce6d90f
MK
13652003-10-11 Mark Kettenis <kettenis@gnu.org>
1366
155c1d33
MK
1367 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1368 TDEP->sc_num_regs.
1369
8a96bc77
MK
1370 * i386fbsd-tdep.c: New file.
1371 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1372 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1373 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1374 i386bsd-tdep.c.
1375 (_initialize_i386fbsd_tdep): New function.
1376 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1377 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1378 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1379 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1380 TDEP->sc_num_regs.
1381 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1382 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1383 to initialize TDEP->sc_num_regs.
1384 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1385 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1386 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1387 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1388 FreeBSD ELF OS/ABI's here.
1389 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1390 (i386fbsd-tdep.o): New target.
1391 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1392 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1393
477f40d1
MK
1394 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1395 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1396 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1397 in initialization of TDEP->sc_num_regs.
1398
c6b33596
MK
1399 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1400 (x86_64_init_abi): Initialize regset_from_core_section if
1401 appropriate.
1402
8446b36a
MK
1403 * i386-tdep.c (i386_regset_from_core_section): New function.
1404 (i386_gdbarch_init): Initialize regset_from_core_section if
1405 appropriate.
1406 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1407
c783cbd6
MK
1408 * i386-tdep.h (struct regset): Declare opaque.
1409
6ce6d90f
MK
1410 * gdbarch.sh (regset_from_core_section): New method.
1411 (struct regset): Declare opaque.
1412 * gdbarch.c, gdbarch.h: Regenerated.
1413
b98ed7be
AM
14142003-10-11 Alan Modra <amodra@bigpond.net.au>
1415
1416 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1417 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1418 Correct test for pc within section.
1419
f6214256
MK
14202003-10-11 Mark Kettenis <kettenis@gnu.org>
1421
1422 * gdbarch.sh: Remove trailing whitepsace from comments.
1423
a8f4cde1
RM
14242003-10-08 Roland McGrath <roland@redhat.com>
1425
1426 * gcore.c (make_mem_sec): Function removed, folded into ...
1427 (gcore_create_callback): ... here. To omit a section, clear its
1428 SEC_LOAD bit rather than zeroing its size.
1429 Omit read-only sections only if they correspond to a known disk file.
1430 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1431
74276724
MS
14322003-10-10 Michael Snyder <msnyder@redhat.com>
1433
1434 * d10v-tdep.c: Fix typo in comment.
1435
e754ae69
AC
14362003-10-10 Andrew Cagney <cagney@redhat.com>
1437
1438 * rs6000-tdep.c (e500_store_return_value): Delete function.
1439 (e500_extract_return_value): Delete function.
1440 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1441 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1442 "ppc_sysv_abi_restore_return_value" where applicable.
1443 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1444 (ppc_sysv_abi_extract_return_value): Declare.
1445 (ppc_sysv_abi_broken_store_return_value): Declare.
1446 (ppc_sysv_abi_broken_extract_return_value): Declare.
1447 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1448 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1449 start of file.
1450 (do_ppc_sysv_return_value): New function.
1451 (ppc_sysv_abi_extract_return_value): New function.
1452 (ppc_sysv_abi_store_return_value): New function.
1453 (ppc_sysv_abi_broken_extract_return_value): New function.
1454 (ppc_sysv_abi_broken_store_return_value): New function.
1455 (ppc_sysv_abi_use_struct_convention): Call
1456 do_ppc_sysv_return_value.
1457
8d4ce20a
JB
14582003-10-10 J. Brobecker <brobecker@gnat.com>
1459
1460 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1461 to lookup the main function symbol.
1462
afce3d2a
CV
14632003-10-10 Corinna Vinschen <vinschen@redhat.com>
1464
1465 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1466 types correctly.
1467 (sh_push_dummy_call_fpu): Fix argument passing rules.
1468 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1469 float types.
1470 (sh3e_sh4_store_return_value): Ditto.
1471
7fe958be
EZ
14722003-10-10 Elena Zannoni <ezannoni@redhat.com>
1473
1474 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1475 comment.
1476
3f997a97
CV
14772003-10-10 Corinna Vinschen <vinschen@redhat.com>
1478
1479 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1480 more readable code. Accomodate passing of bitfields.
1481
8be9034a
AC
14822003-10-10 Andrew Cagney <cagney@redhat.com>
1483
1484 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1485 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1486 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1487 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1488 (ppc64_sysv_abi_push_dummy_call): New function.
1489 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1490 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1491 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1492
85a453d5
KI
14932003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1494
1495 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1496 * README: Ditto.
1497 * d10v-tdep.c: Ditto.
1498 * h8300-tdep.c: Ditto.
1499 * remote-e7000.c: Ditto.
1500 * remote-hms.c: Ditto.
1501 * ser-e7kpc.c: Ditto.
1502 * sh-stub.c: Ditto.
1503 * sh-tdep.c: Ditto.
1504 * sh-tdep.h: Ditto.
1505 * sh3-rom.c: Ditto.
1506 * sh64-tdep.c: Ditto.
1507 * top.c: Ditto.
1508 * wince.c: Ditto.
1509 * config/d10v/d10v.mt: Ditto.
1510 * config/sh/embed.mt: Ditto.
1511 * config/sh/linux.mt: Ditto.
1512 * config/sh/tm-linux.h: Ditto.
1513 * config/sh/tm-sh.h: Ditto.
1514 * config/sh/wince.mt: Ditto.
1515
221c12ff
AC
15162003-10-09 Andrew Cagney <cagney@redhat.com>
1517
1518 * ppc-tdep.h (struct type): Declare opaque.
1519 * x86-64-tdep.h (struct regcache): Declare opaque.
1520 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1521 coding style.
1522
ef5200c1
AC
15232003-10-09 Andrew Cagney <cagney@redhat.com>
1524
1525 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1526 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1527 (SOFTWARE_SINGLE_STEP_P): Ditto.
1528 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1529 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1530 (SOFTWARE_SINGLE_STEP_P): Ditto.
1531 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1532 software_single_step to rs6000_software_single_step.
a8f4cde1 1533
9644bbdd
AC
15342003-10-09 Andrew Cagney <cagney@redhat.com>
1535
1536 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1537
db72fa6b
MS
15382003-10-09 Michael Snyder <msnyder@redhat.com>
1539
f3efb16c
MS
1540 * frame.h: Fix typo in comment.
1541 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
1542 * d10v-tdep.c: Random whitespace/comment tweaks.
1543
9a5cef92
EZ
15442003-10-09 Elena Zannoni <ezannoni@redhat.com>
1545
1546 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 1547 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 1548 on stack.
a8f4cde1 1549
9a5cef92
EZ
1550 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1551 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1552 in detail.
a8f4cde1 1553
0f317a0c
DJ
15542003-10-09 Daniel Jacobowitz <drow@mvista.com>
1555
1556 * remote-mips.c (mips_initialize): Remove unneeded call to
1557 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1558
bbab2f46
DJ
15592003-10-09 Daniel Jacobowitz <drow@mvista.com>
1560
1561 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1562 a memory pointer.
1563
550950b8
JJ
15642003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1565
1566 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1567 for any lwp we resume.
1568 (running_callback): Add lwps that have pending status events
1569 against them to be considered running.
1570
15c69bc7
KI
15712003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1572
1573 * m32r-tdep.c : Include "dis-asm.h".
1574 * Makefile.in (m32r-tdep.o): Update dependencies.
1575
51065942
JB
15762003-10-06 J. Brobecker <brobecker@gnat.com>
1577
1578 * completer.h (get_gdb_completer_word_break_characters): Delete.
1579 * completer.c: include language.h.
1580 (gdb_completer_word_break_characters): Delete.
1581 (get_gdb_completer_word_break_characters): Delete.
1582 (location_completer): Use the word break characters of the current
1583 language.
1584 (complete_line): Likewise.
1585 (line_completion_function): Likewise.
1586 (skip_quoted_chars): Likewise.
1587 * Makefile.in (completer.o): Add dependency on language.h.
1588 * top.c (init_main): Set the readline word break characters
1589 to GDB's default word break characters.
1590
6084f43a
JB
15912003-10-06 J. Brobecker <brobecker@gnat.com>
1592
1593 * language.h (language_defn): new field, la_word_break_characters.
1594 * language.c (unknown_language_defn): Set new field to
1595 default_word_break_characters.
1596 (auto_language_defn): Likewise.
1597 (local_language_defn): Likewise.
1598 * ada-lang.c (ada_language_defn): Likewise.
1599 * c-lang.c (c_language_defn): Likewise.
1600 (cplus_language_defn): Likewise.
1601 (asm_language_defn): Likewise.
1602 (minimal_language_defn): Likewise.
1603 * f-lang.c (f_language_defn): Likewise.
1604 * jv-lang.c (java_language_defn): Likewise.
1605 * m2-lang.c (m2_language_defn): Likewise.
1606 * objc-lang.c (objc_language_defn): Likewise.
1607 * p-lang.c (pascal_language_defn): Likewise.
1608 * scm-lang.c (scm_language_defn): Likewise.
1609
944fcfab
AC
16102003-10-06 Andrew Cagney <cagney@redhat.com>
1611
1612 * ppc-sysv-tdep.c: Re-indent.
1613
9f0a5303
JB
16142003-10-06 J. Brobecker <brobecker@gnat.com>
1615
1616 * language.h (default_word_break_characters): Add prototype.
1617 * language.c (default_word_break_characters): New function.
1618
7270b6ed
AS
16192003-10-06 Andreas Schwab <schwab@suse.de>
1620
1621 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1622 with %eax.
1623
a5d61f66
AC
16242003-10-06 Andrew Cagney <cagney@redhat.com>
1625
1626 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1627 "h8500-tdep.c".
1628 (z8k-tdep.o): Delete custom build rule.
1629
28a86f5c
AC
16302003-10-06 Andrew Cagney <cagney@redhat.com>
1631
1bfd8a83
AC
1632 * Makefile.in: Update all dependencies.
1633
17144ef8
AC
1634 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1635 No longer list PA as as obsolete candidate. List m32r as
1636 broken instead of obsolete.
a8f4cde1 1637
a5679ae5
AC
1638 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1639 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1640 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1641 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1642 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1643 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1644 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1645 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1646 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1647 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1648 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1649 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1650 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1651 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1652 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1653 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1654 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1655 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1656 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1657 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1658 * config/z8k/z8k.mt: Ditto.
1659
4a8269c0
AC
1660 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1661 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1662 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1663 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1664 sparclite were removed.
1665 * configure.host, configure.tgt: Remove corresponding tuples.
1666
41989fcd
AC
1667 * breakpoint.c, breakpoint.h: Remove obsolete code.
1668 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1669 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1670 * stabsread.h, xcoffread.c: Ditto.
1671
28a86f5c
AC
1672 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
1673 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
1674 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
1675 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
1676
4efdaa0d
DL
16772003-10-06 David Lecomber <dsl@sources.redhat.com>
1678
1679 * f-valprint.c: Reformatting
1680
ae53de43
MK
16812003-10-06 Mark Kettenis <kettenis@gnu.org>
1682
a8bb57e7
MK
1683 * x86-64-tdep.c: Remove duplicate comment.
1684
ae53de43
MK
1685 * x86-64-tdep.c (x86_64_store_return_value): Don't use
1686 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
1687 names for return values. This fixes a bug since we looked at %rbx
1688 instead of %rdx.
1689
473f17b0
MK
16902003-10-05 Mark Kettenis <kettenis@gnu.org>
1691
2c261fae
MK
1692 * x86-64-tdep.c: Include "regset.h".
1693
473f17b0
MK
1694 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
1695 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
1696 sizeof_fpregset.
1697 * i386-tdep.c: Include "regset.h".
1698 (i386_supply_gregset): New function.
1699 (i386_supply_fpregset): New function.
1700 (i386_gdbarch_init): Initialze register set-related members of
1701 TDEP.
1702 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
1703 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
1704
afd48b75
AC
17052003-10-03 Andrew Cagney <cagney@redhat.com>
1706
1707 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
1708 set extract_return_value, store_return_value and
1709 use_struct_convention to ppc64_sysv_abi_extract_return_value,
1710 ppc64_sysv_abi_store_return_value and
1711 ppc64_sysv_abi_use_struct_convention.
1712 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
1713 (ppc64_sysv_abi_store_return_value): Declare.
1714 (ppc64_sysv_abi_use_struct_convention): Declare.
1715 * ppc-sysv-tdep.c (enum return_value_convention): Define.
1716 (ppc64_sysv_abi_extract_return_value): New function.
1717 (ppc64_sysv_abi_store_return_value): New function.
1718 (ppc64_sysv_abi_use_struct_convention): New function.
1719 (ppc64_sysv_abi_return_value): New function.
1720
9b540880
AC
17212003-10-03 Andrew Cagney <cagney@redhat.com>
1722
1723 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
1724 convert a descriptor to a function when it's in the ".opd"
1725 section.
1726
8748518b
CV
17272003-10-03 Corinna Vinschen <vinschen@redhat.com>
1728
1729 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
1730 reg_size to keep GCC silent.
1731
0fd85043
CV
17322003-10-03 Corinna Vinschen <vinschen@redhat.com>
1733
1734 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
1735 base for DW_EH_PE_textrel encodings.
1736 (read_encoded_value): Add a DW_EH_PE_textrel case.
1737 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
1738 section.
1739
37b517aa
MK
17402003-10-03 Mark Kettenis <kettenis@gnu.org>
1741
1742 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
1743
12c266ea
AC
17442003-10-02 Andrew Cagney <cagney@redhat.com>
1745
1746 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
1747 REGISTER_RAW_SIZE.
1748 * gdbarch.h, gdbarch.c: Re-generate.
1749 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
1750 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
1751 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1752 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1753 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
1754 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
1755 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
1756 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
1757 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
1758 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
1759 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
1760 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
1761 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
1762 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
1763 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
1764 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 1765
78ba4af6
JB
17662003-10-02 Jim Blandy <jimb@redhat.com>
1767
1768 * dwarf2read.c (struct die_info): Doc fix.
1769
617daa0e
CV
17702003-10-02 Corinna Vinschen <vinschen@redhat.com>
1771
1772 * sh-tdep.c: Running thru gdb_indent.sh.
1773
e5e33cd9
CV
17742003-10-02 Corinna Vinschen <vinschen@redhat.com>
1775
1776 * sh-tdep.c (sh_justify_value_in_reg): New function.
1777 (sh_stack_allocsize): Ditto.
1778 (flt_argreg_array): New array used for floating point argument
1779 passing.
1780 (sh_init_flt_argreg): New function.
a8f4cde1 1781 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
1782 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
1783 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
1784 Fix argument passing strategy.
1785 (sh_push_dummy_call_nofpu): Ditto.
1786
5fe830e4
AC
17872003-10-01 Andrew Cagney <cagney@redhat.com>
1788
1789 * value.h (register_value_being_returned): Declare. Replace
1790 "value_being_returned".
1791 * infcall.c (call_function_by_hand): Use
1792 register_value_being_returned.
1793 * infcmd.c (print_return_value): Call
1794 "register_value_being_returned", handle struct return locally.
1795 * values.c (register_value_being_returned): New function. Replace
1796 "value_being_returned".
a8f4cde1 1797
5fe830e4 17982003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
1799
1800 * linux-proc.c (linux_do_registers): New function.
1801 (linux_make_note_section): Use linux_do_registers in case of
1802 single threaded inferior programs.
1803
64f395bf
AC
18042003-10-01 Andrew Cagney <cagney@redhat.com>
1805
1806 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
1807 use STRUCT_ADDR. When not using "struct return convention", pass
1808 "0" to "value_being_returned". Add FIXMEs.
1809 * infcmd.c (print_return_value): Pass an explicit 0/1 to
1810 value_being_returned. Add comments.
1811 * values.c (value_being_returned): Add fixme.
1812 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
1813 (hppa_value_returned_from_stack): Add FIXME.
1814
639d11d3
DC
18152003-09-30 David Carlton <carlton@kealia.com>
1816
1817 * dwarf2read.c (struct die_info): Add 'parent' field; replace
1818 'has_children' and 'next' by 'child' and 'sibling'.
1819 (read_comp_unit): Rework algorithm, breaking body into
1820 read_die_and_children and read_die_and_siblings.
1821 (read_die_and_children, read_die_and_siblings): New.
1822 (read_full_die): Add 'has_children' argument; set it instead of
1823 the die's 'has_children' field. Minor formatting cleanup.
1824 (free_die_list): Use die->child and die->sibling instead of
1825 die->next.
1826 (dump_die_list): Ditto.
1827 (sibling_die): Use die->sibling.
1828 (psymtab_to_symtab_1): Use die's 'child' field in place of its
1829 'has_children' and 'next' fields.
a8f4cde1
RM
1830 (process_die, read_file_scope, read_func_scope)
1831 (read_lexical_block_scope, read_structure_scope)
1832 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
1833 (read_namespace, read_subroutine_type, dump_die): Ditto.
1834
5bffac25
AC
18352003-09-30 Andrew Cagney <cagney@redhat.com>
1836
1837 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
1838 to 224, not 220.
1839
f30992d4
AC
18402003-09-30 Andrew Cagney <cagney@redhat.com>
1841
1842 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
1843 REGISTER_VIRTUAL_SIZE.
1844 * gdbarch.h, gdbarch.c: Regenerate.
1845 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
1846 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
1847 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
1848
2e092625
AC
18492003-09-29 Andrew Cagney <cagney@redhat.com>
1850
1851 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
7bb11558 1852 REGISTER_VIRTUAL_TYPE.
2e092625
AC
1853 * gdbarch.h, gdbarch.c: Regenerate.
1854 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
1855 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
1856
1857 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
1858 * remote-vxmips.c (vx_read_register): Ditto.
1859 * remote-vx68.c (vx_read_register): Ditto.
1860 * gnu-nat.c (inf_validate_procs): Ditto.
1861
7a5dd6ee
JB
18622003-09-29 J. Brobecker <brobecker@gnat.com>
1863
1864 * infcall.c (call_function_by_hand): Fix build failure
1865 introduced in the previous change to this file.
1866
1fe43d45
AC
18672003-09-29 Andrew Cagney <cagney@redhat.com>
1868
1869 * NEWS: Mention Objective-C.
1870
e28a332c
JG
18712003-09-29 Jerome Guitton <guitton@act-europe.fr>
1872
1873 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
1874 test if the register has been saved on the stack.
1875 (arm_scan_prologue_cache): When analysing the instruction
1876 "str lr, [sp, #-4]", save the address where lr has been stored.
1877
9ff63c35
AC
18782003-09-28 Andrew Cagney <cagney@redhat.com>
1879
7f5f525d
AC
1880 * frame.c (frame_read_unsigned_register): Delete function.
1881 * frame.h (frame_read_unsigned_register): Delete declaration.
1882 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1883 get_frame_register_unsigned.
1884 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
1885 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1886 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 1887
7f5f525d
AC
1888 * frame.h (frame_read_register): Delete declaration.
1889 * frame.c (frame_read_register): Delete function.
1890 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
1891 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
1892 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
1893 * mips-tdep.c (mips_register_to_value): Ditto.
1894 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
1895 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1896
1897 * frame.c (frame_read_signed_register): Delete function.
1898 (frame_read_unsigned_register): Update comments.
1899 * frame.h (frame_read_signed_register): Delete declaration.
1900 * h8300-tdep.c (h8300_print_register): Use
1901 get_frame_register_signed.
1902 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1903
9ff63c35
AC
1904 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
1905 Rename VALUE_RETURNED_FROM_STACK.
1906 * infcmd.c (print_return_value): Update.
1907 * infcall.c (call_function_by_hand): Update.
1908
41d041d6
MK
19092003-09-28 Mark Kettenis <kettenis@gnu.org>
1910
1911 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
1912 regcache argument and reverse the order of the other two
1913 arguments. Remove local regcache variable. Determine
1914 architecture from REGCACHE. Update comments.
1915 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
1916 reverse the order of the other two arguments. Remove local
1917 regcache variable. Determine architecture from REGCACHE. Update
1918 comments.
1919 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
1920 prototypes. Update comments.
1921 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
1922 comment.
1923 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
1924 Update.
1925 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
1926 * i386-interix-nat.c (supply_fpregset): Update.
1927 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
1928 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
1929 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
1930 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
1931 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
1932 Update.
1933 * i386obsd-tdep.c (fetch_core_registers): Update.
1934 * i386v4-nat.c (supply_fpregset): Update.
1935 * x86-64-linux-nat.c (supply_fpregset): Update.
1936 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 1937
1cb97e17
MK
19382003-09-27 Mark Kettenis <kettenis@gnu.org>
1939
5716833c
MK
1940 * i386-tdep.h: Put opaque declarations in alphabetical
1941 order. Remove spurious whitespace.
1942 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
1943 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
1944 * i386-tdep.c (MM0_REGNUM): Remove define.
1945 (i386_mmx_regnum_p): Add gdbarch argument.
1946 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
1947 Rewrite using new macro definitions for FPU/SSE registers.
1948 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
1949 definitions from i387-tdep.h.
1950 (i386_register_name): Update.
1951 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
1952 new macro definitions for FPU/SSE registers.
1953 (i386_extract_return_value): Determine whether floating-point
1954 registers are present by examining REGCACHE's architecture.
1955 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
1956 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
1957 FPU/SSE registers.
1958 (i386_register_type): Update.
1959 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
1960 definitions for FPU registers. Use REGCACHE's architecture to
1961 determine the appropriate register numbers.
1962 (i386_pseudo_register_read, i386_pseudo_register_write,
1963 i386_register_reggroup_p): Update.
1964 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
1965 TDEP->mm0_regnum.
1966 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
1967 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
1968 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
1969 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
1970 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
1971 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
1972 *' to `void *'.
1973 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
1974 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
1975 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
1976 definitions for FPU/SSE registers.
1977 (FXSAVE_MXCSR_ADDR): New define.
1978 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
1979 TDEP->mm0_regnum.
1980 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
1981 (I387_ST0_REGNUM): Define.
1982
41d35cb0
MK
1983 * regcache.h (get_regcache_arch): New prototype.
1984 * regcache.c (get_regcache_arch): New function.
1985
54e74f72
MK
1986 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
1987 whitespace.
1988
1cb97e17
MK
1989 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
1990 Initialize using ARRAY_SIZE.
1991
0968aa8c
AC
19922003-09-27 Andrew Cagney <cagney@redhat.com>
1993
1994 * arch-utils.c (deprecated_init_frame_pc_default): Rename
1995 "init_frame_pc_default".
1996 * arch-utils.h (deprecated_init_frame_pc_default): Update.
1997 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1998 * vax-tdep.c (vax_gdbarch_init): Update.
1999 * v850-tdep.c (v850_gdbarch_init): Update.
2000 * sh64-tdep.c (sh64_gdbarch_init): Update.
2001 * s390-tdep.c (s390_gdbarch_init): Update.
2002 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2003 * mcore-tdep.c (mcore_gdbarch_init): Update.
2004 * h8300-tdep.c (h8300_gdbarch_init): Update.
2005 * cris-tdep.c (cris_gdbarch_init): Update.
2006 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2007
54c84734
MK
20082003-09-26 Mark Kettenis <kettenis@gnu.org>
2009
2010 * regset.h: New file.
2011 * Makefile.in (regset_h): Add.
2012
1b1d3794
AC
20132003-09-25 Andrew Cagney <cagney@redhat.com>
2014
2015 * frame.h (deprecated_frame_saved_regs): Rename
2016 get_frame_saved_regs.
2017 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2018 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2019 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2020 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2021 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2022
e6beb428
AC
20232003-09-25 Andrew Cagney <cagney@redhat.com>
2024
2025 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2026 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2027 and Java.
2028 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2029 arm*-*-* do not use the new frame code.
2030
710122da
DC
20312003-09-25 David Carlton <carlton@kealia.com>
2032
2033 * c-exp.y: Remove 'register' declarations.
2034 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2035
79c2c32d
DC
20362003-09-25 David Carlton <carlton@kealia.com>
2037
2038 * c-exp.y: Include cp-support.h. Add qualified_type.
2039 (yylex): Delete nested type hack; add comments.
2040 * cp-namespace.c (cp_lookup_nested_type): New function.
2041 * cp-support.h: Declare cp_lookup_nested_type.
2042 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2043 instead of value_struct_elt_for_reference.
2044 * valops.c: Include cp-support.h.
2045 (value_aggregate_elt): New function.
2046 (value_namespace_elt): Ditto.
2047 (value_struct_elt_for_reference): Make static.
2048 * value.h: Delete declaration of value_struct_elt_for_reference;
2049 add declaration for value_aggregate_elt.
2050 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2051 (valops.o): Ditto.
2052
898c62f5
DJ
20532003-09-25 Daniel Jacobowitz <drow@mvista.com>
2054
2055 * stack.c: Include "reggroups.h".
2056 (frame_info): Only display registers in all_reggroup.
2057 * Makefile.in (stack.o): Update dependencies.
2058
28cd8767
JG
20592003-09-25 Jerome Guitton <guitton@act-europe.fr>
2060
2061 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2062 "add ip, sp #n" in the prologue.
2063 (arm_scan_prologue): Ditto.
2064
a4ab2b5d
JG
20652003-09-25 Jerome Guitton <guitton@act-europe.fr>
2066
2067 * MAINTAINERS (write after approval): Add myself.
2068
3f244638
AS
20692003-09-25 Andreas Schwab <schwab@suse.de>
2070
2071 * m68k-tdep.c: Include "dwarf2-frame.h".
2072 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2073 * Makefile.in (m68k-tdep.o): Update dependencies.
2074
1c0159e0
CV
20752003-09-25 Corinna Vinschen <vinschen@redhat.com>
2076
2077 * sh-tdep.c (struct frame_extra_info): Remove.
2078 (struct sh_frame_cache): New structure.
2079 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2080 (GET_TARGET_REG): Ditto but target register.
2081 (GET_PUSHED_REG): Remove.
2082 (IS_MOV_ARG_TO_REG): New macro.
2083 (IS_MOV_ARG_TO_IND_R14): New macro.
2084 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2085 (IS_MOVW_PCREL_TO_REG): New macro.
2086 (IS_MOVL_PCREL_TO_REG): New macro.
2087 (IS_SUB_REG_FROM_SP): New macro.
2088 (IS_ARG_MOV): Remove.
2089 (IS_MOV_TO_R14): Remove.
2090 (IS_RESTORE_FP): New macro.
2091 (IS_RTS): New macro.
2092 (IS_LDS): New macro.
2093 (IS_MOV_FP_SP): New macro.
2094 (IS_ADD_REG_TO_FP): New macro.
2095 (IS_ADD_IMM_FP): New macro.
2096 (sh_skip_prologue_hard_way): Remove.
2097 (sh_saved_pc_after_call): Remove.
2098 (sh_frame_chain): Remove.
2099 (sh_find_callers_reg): Remove.
a8f4cde1 2100 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
2101 (sh_fp_frame_init_saved_regs): Remove.
2102 (sh_init_extra_frame_info): Remove.
2103 (sh_analyze_prologue): New function.
2104 (sh_skip_prologue): Remove deprecated code. Rely on new function
2105 sh_analyze_prologue when after_prologue fails.
2106 (sh_frame_saved_pc): Remove.
2107 (sh_alloc_frame_cache): New function.
2108 (sh_frame_cache): Ditto.
2109 (sh_frame_prev_register): Ditto.
2110 (sh_frame_this_id): Ditto.
2111 (sh_frame_unwind): New structure defining the heuristic frame
2112 sniffer interface.
2113 (sh_frame_sniffer): New function.
2114 (sh_unwind_sp): Ditto.
2115 (sh_unwind_pc): Ditto.
2116 (sh_unwind_dummy_id): Ditto.
2117 (sh_frame_base_address): Ditto.
2118 (sh_frame_base): New structure defining new frame base code.
2119 (sh_in_function_epilogue_p): New function.
2120 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2121 code and to call all new code instead. Initialize dwarf2 and
2122 heuristic frame sniffer.
2123
5f9769d1
PH
21242003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2125
a8f4cde1
RM
2126 * parser-defs.h (struct exp_descriptor): New definition, containing
2127 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
2128 evaluating expressions.
2129 (exp_descriptor_standard): Declare new variable.
2130 (print_subexp): Make global and declare here (from expprint.c).
2131 (dump_subexp): Ditto.
2132 (dump_subexp_body_standard): Declare.
2133 (operator_length_standard): Declare.
2134 (op_name_standard): Declare.
2135 (print_subexp): Declare.
2136 (print_subexp_standard): Declare.
2137
2138 * language.h (struct language_defn): Add la_exp_desc field to hold
2139 pointer to table for language-specific operators.
2140 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
2141
2142 * parse.c (operator_length): Move most code to new
5f9769d1 2143 operator_length_standard function. Use language-specific information.
a8f4cde1 2144 (operator_length_standard): New function taking most code from
5f9769d1
PH
2145 operator_length.
2146 (exp_descriptor_standard): New constant.
a8f4cde1
RM
2147
2148 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 2149 and OP_EXTENDED_LAST.
a8f4cde1
RM
2150
2151 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
2152 Make global; remove static declaration.
2153 Move most code to print_subexp_standard.
a8f4cde1 2154 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
2155 print_subexp.
2156 (op_name): Add expression to argument signature.
a8f4cde1 2157 Use langauge-specific op_name.
5f9769d1
PH
2158 Move most code to op_name_standard.
2159 (op_name_standard): New function, containing code formerly in op_name.
2160 (dump_subexp): Use new version of op_name function.
2161 Use language-specific dump_subexp_body, and move most existing code to
2162 dump_subexp_body_standard.
2163 (dump_raw_expression): Use new op_name interface.
2164 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2165 (dump_subexp_body_standard): New function, containing code formerly
2166 in dump_subexp_body.
a8f4cde1 2167
5f9769d1
PH
2168 * language.c (unknown_language): Add default la_exp_desc field and
2169 remove evaluate_exp field.
2170 (auto_language): Ditto.
2171 (local_language): Ditto.
2172 * f-lang.c (f_language_defn): Ditto.
2173 * c-lang.c (c_language_defn): Ditto.
2174 (cplus_language_defn): Ditto.
2175 (asm_language_defn): Ditto.
2176 (minimal_language_defn): Ditto.
2177 * p-lang.c (pascal_language_defn): Ditto.
2178 * m2-lang.c (m2_language_defn): Ditto.
2179 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
2180
2181 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
2182 Java-specific expression evaluator.
2183 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2184 field.
a8f4cde1 2185 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
2186 Scheme-specific expression evaluator.
2187 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2188 field.
2189 * objc-lang.c (print_object_command): Take evaluate_exp from the
2190 la_exp_desc field.
a8f4cde1 2191
5f9769d1 2192 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
2193
2194 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
2195 la_exp_desc's type.
2196 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 2197
24daaebc
PH
21982003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2199
2200 * parser-defs.h (operator_length): Declare.
a8f4cde1 2201
24daaebc
PH
2202 * parse.c (length_of_subexp): Use operator_length to get operator
2203 lengths and arities for operators.
2204 Move most code to new operator_length function.
a8f4cde1 2205 (operator_length): New function absorbing most code from
24daaebc
PH
2206 length_of_subexp.
2207 (prefixify_subexp): Remove large case and use operator_length instead.
2208 (parse_exp_1): Use renamings:
a8f4cde1 2209 dump_prefix_expression => dump_raw_expression and
24daaebc 2210 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 2211
24daaebc
PH
2212 * expression.h (dump_prefix_expression): Rename to ...
2213 (dump_raw_expression): New name.
2214 (dump_postfix_expression): Rename to ...
2215 (dump_prefix_expression): New name.
a8f4cde1 2216
24daaebc
PH
2217 * expprint.c (dump_subexp): Make global. Add comment.
2218 Move most existing code to dump_subexp_body.
2219 (dump_subexp_body): New function.
2220 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 2221 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
2222 work before the expression is prefixified.
2223 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 2224 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 2225 that's what it does.
a8f4cde1 2226 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
2227 prefixified expression.
2228 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 2229
8c2957c4
JB
22302003-09-22 Jim Blandy <jimb@redhat.com>
2231
2232 * dwarf2read.c (read_array_type): When building the type for an
2233 array of unspecified length, make sure to choose the upper bound
2234 so that the array's total length comes out to be zero --- that's
2235 how we represent such arrays.
2236
592e3010
MC
22372003-09-22 Michael Chastain <mec@shout.net>
2238
2239 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2240
365c70b1
JJ
22412003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2242
2243 * top.c (quit_force): Fix indirect call to quit_target so
2244 a struct qt_args pointer is passed.
2245
5d6eb653
AC
22462003-09-22 Andrew Cagney <cagney@redhat.com>
2247
2248 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2249 * arch-utils.c (init_frame_pc_noop): Delete function.
2250 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2251 "init_frame_pc".
2252 * mips-tdep.c (mips_gdbarch_init): Ditto.
2253 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2254 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2255 declaration.
2256 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2257 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2258 declaration.
2259 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2260
b222a67f
AG
22612003-09-22 Anthony Green <green@redhat.com>
2262
2263 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2264 declaration.
2265
d5b5ac79
AC
22662003-09-20 Andrew Cagney <cagney@redhat.com>
2267
deafb061
AC
2268 * breakpoint.c: Eliminate ARGSUSED.
2269 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2270 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2271 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2272 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2273 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2274 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2275 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2276 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2277 * wince.c, remote-vx.c: Ditto.
2278
d5b5ac79
AC
2279 * cli/cli-script.c: Remove "register" attributes.
2280 * config/pa/tm-hppa.h: Ditto.
2281 * cli/cli-decode.c: Ditto.
2282 * cli/cli-cmds.c: Ditto.
2283
c6316faa
AC
22842003-09-19 Andrew Cagney <cagney@redhat.com>
2285
2286 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2287 DEPRECATED_NPC_REGNUM.
2288 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2289
f4f99b11
CF
22902003-09-19 Christopher Faylor <cgf@redhat.com>
2291
2292 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2293
1708f284
JB
22942003-09-19 Jim Blandy <jimb@redhat.com>
2295
2296 * macrotab.c (macro_include): Use the correct comparison to find
2297 the appropriate place for this inclusion in the list.
2298
b9fbf434
AC
22992003-09-19 Andrew Cagney <cagney@redhat.com>
2300
2301 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2302 (DEPRECATED_HPUX_TEXT_END): Define.
2303 (deprecated_hpux_text_end): Declare.
2304 (struct target_ops): Declare opaque.
2305 * hppah-nat.c (text_end): Make static.
2306 (deprecated_hpux_text_end): New function.
2307 * exec.c (text_end): Delete global variable.
2308 (NEED_TEXT_START_END): Do not define.
2309 (exec_file_attach): Replace code computing "text_end" code with
2310 call to DEPRECATED_HPUX_TEXT_END.
2311
5b03f266
AC
23122003-09-19 Andrew Cagney <cagney@redhat.com>
2313
2314 * utils.c (align_up, align_down): New functions.
2315 * defs.h (align_up, align_down): Declare.
2316 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2317 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2318 and "align_down".
2319 (round_up, round_down): Delete functions.
2320 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2321 "align_down".
2322 (ROUND_DOWN, ROUND_UP): Delete macros.
2323 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2324 * h8300-tdep.c: Replace "round_up" and "round_down" with
2325 "align_up" and "align_down".
2326 (round_up, round_down): Delete macros.
2327 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2328 "align_down".
2329 (ROUND_UP, ROUND_DOWN): Delete macros.
2330
51db5742
JB
23312003-09-18 J. Brobecker <brobecker@gnat.com>
2332
2333 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2334 hard-coded constant. Use the proper machine name instead.
2335
77949794
AC
23362003-09-17 Andrew Cagney <cagney@redhat.com>
2337
2338 * sparc-tdep.c (legacy_register_name): Delete function.
2339 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2340 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2341 * infcmd.c (gdb_register_name): Delete variable.
2342 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2343 REGISTER_NAME and "tm.h".
2344 * gdbarch.h, gdbarch.c: Regenerate.
2345 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2346 REGISTER_NAMES in comments.
2347 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2348 * m68klinux-nat.c (regmap): Ditto.
2349
b55c33cc
JB
23502003-09-17 Jim Blandy <jimb@redhat.com>
2351
2352 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2353
957e27ac
AC
23542003-09-17 Andrew Cagney <cagney@redhat.com>
2355
2356 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2357 (ppcnbsd_init_abi): Set "use_struct_convention" to
2358 "ppcnbsd_use_struct_convention".
2359
192cb3d4
MK
23602003-09-17 Mark Kettenis <kettenis@gnu.org>
2361
2362 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2363 * gdbarch.h, gdbarch.c: Regenerate.
2364 (stabs_argument_has_addr): New architecture method.
2365 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2366 * arch-utils.c: Include "buildsym.h".
2367 (default_stabs_argument_has_addr): New function.
2368 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2369 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2370
efe59759
AC
23712003-09-17 Andrew Cagney <cagney@redhat.com>
2372
2373 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2374 * gdbarch.h, gdbarch.c: Regenerate.
2375 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2376 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2377 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2378 * sparcnbsd-tdep.c: Update.
a8f4cde1 2379
62700349
AC
23802003-09-17 Andrew Cagney <cagney@redhat.com>
2381
2382 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2383 * gdbarch.h, gdbarch.c: Regenerate.
2384 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2385 * d10v-tdep.c, frame.c: Update.
2386 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2387 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2388 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2389 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2390 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2391 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2392 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2393 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2394 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2395 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2396 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2397 * config/pa/nm-hppah.h: Update.
2398
b9ff3018
AC
23992003-09-16 Andrew Cagney <cagney@redhat.com>
2400
2401 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2402 "use_struct_convention" to "ppc_linux_use_struct_convention".
2403 (ppc_linux_use_struct_convention): New function.
2404 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2405 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2406 "rs6000_use_struct_convention".
2407 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2408 declaration.
2409 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2410 Delete function.
2411
aa1ee363
AC
24122003-09-16 Andrew Cagney <cagney@redhat.com>
2413
2414 * buildsym.c: Remove more occurances of "register".
2415 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2416 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2417 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2418 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2419 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2420 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2421 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2422 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2423
f2ea0907
CV
24242003-09-16 Corinna Vinschen <vinschen@redhat.com>
2425
2426 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2427 numbers to enumeration values.
2428 * sh-tdep.c: Accomodate above change.
2429 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2430 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2431 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2432 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2433 (IS_FPUSH): Rename from IS_FMOV.
2434 (sh_extract_struct_value_address): Remove useless comment.
2435 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2436 instead of own local values.
2437 (sh_dump_tdep): Remove.
2438 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2439 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2440
1c704f11
AC
24412003-09-15 Andrew Cagney <cagney@redhat.com>
2442
2443 * doublest.c (convert_floatformat_to_doublest): No longer need to
2444 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2445
ac79b88b
DJ
24462003-09-15 Daniel Jacobowitz <drow@mvista.com>
2447
2448 * values.c (unpack_double): Call floatformat_is_valid.
2449
1c671366
MK
24502003-09-15 Mark Kettenis <kettenis@gnu.org>
2451
de5227fb
MK
2452 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2453 ps_strings into a long.
2454
1c671366
MK
2455 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2456 _initialize_am64fbsd_nat.
2457
a604369a
KB
24582003-09-15 Kevin Buettner <kevinb@redhat.com>
2459
2460 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2461 associated with DW_AT_ranges attribute is out of bounds.
2462
b3cacbee
DL
24632003-09-15 David Lecomber <dsl@sources.redhat.com>
2464
2465 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2466
d0f37bb2
MC
24672003-09-14 Michael Chastain <mec@shout.net>
2468
2469 * config/m68k/nm-apollo68v.h: Delete.
2470 * config/m68k/xm-apollo68v.h: Delete.
2471
69517000
AC
24722003-09-14 Andrew Cagney <cagney@redhat.com>
2473
2474 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2475 * dcache.c: Update copyrights and descriptions.
2476 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2477
ef8b349d
AC
24782003-09-14 Andrew Cagney <cagney@redhat.com>
2479
2480 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2481 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2482
52f0bd74
AC
24832003-09-14 Andrew Cagney <cagney@redhat.com>
2484
2485 * alpha-nat.c: Remove some occurances of "register".
2486 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2487 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2488 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2489 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2490 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2491 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2492 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2493 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2494 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2495 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2496 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2497 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2498 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2499 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2500 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2501 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2502 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2503 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2504 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2505 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2506 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2507 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 2508
4a4b3fed
AC
25092003-09-13 Andrew Cagney <cagney@redhat.com>
2510
2511 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2512 * ppc-tdep.h (struct regcache): Declare opaque.
2513 * objfiles.h (struct objfile_data): Declare opaque.
2514 * cp-support.h (struct objfile): Declare opaque.
2515 * linux-nat.h (target_waitstatus): Declare opaque.
2516
2110b94f
MK
25172003-09-14 Mark Kettenis <kettenis@gnu.org>
2518
1c671366
MK
2519 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2520 (stabs_argument_has_addr): New architecture method.
2521 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2522 * arch-utils.c: Include "buildsym.h".
2523 (default_stabs_argument_has_addr): New function.
2524 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2525 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2526
2110b94f
MK
2527 * cris-tdep.c (cris_gdbarch_init): Set
2528 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2529 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2530 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2531 * mips-tdep.c (mips_gdbarch_init): Likewise.
2532 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2533 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2534
48436ce6
AC
25352003-09-13 Andrew Cagney <cagney@redhat.com>
2536
2537 * values.c (using_struct_return): Delete "function" and "funcaddr"
2538 parameters.
2539 * value.h (using_struct_return): Update declaration.
2540 * infcmd.c (finish_command_continuation): Update.
2541 (finish_command): Update.
2542 * infcall.c (call_function_by_hand): Update.
2543 * eval.c (evaluate_subexp_standard): Update.
2544
403d9909
CF
25452003-09-13 Christopher Faylor <cgf@redhat.com>
2546
2547 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2548 SSE registers since gdb will not operate correctly without this.
2549 Restore include file ordering munged in previous change.
2550 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2551
ebf7d56b
MK
25522003-09-13 Mark Kettenis <kettenis@gnu.org>
2553
8e823e25
MK
2554 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2555 REG_STRUCT_HAS_ADDR.
2556 * gdbarch.c, gdbarch.h: Updated.
2557 * infcall.c (call_function_by_hand): Update.
2558 * stabsread.c (define_symbol): Updated.
a8f4cde1 2559
ebf7d56b
MK
2560 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2561
d3f13f72
CF
25622003-09-12 Christopher Faylor <cgf@redhat.com>
2563
2564 * win32-nat.c: Reorganize so that defines used by target headers are
2565 actually defined by the system headers.
2566 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2567 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2568
14f75137
JB
25692003-09-12 Jim Blandy <jimb@redhat.com>
2570
d646061f
JB
2571 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2572 the file has no .data, .bss, or .rodata sections. Instead wait
2573 until we see a variable alleged to live in one of those sections.
2574
2a13f9bc
JB
2575 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2576 .bss section, presume that any variables we find live in the
2577 .rodata section.
2578
4f49b26b
JB
2579 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2580 offsets for global and static variables.
2581
14f75137
JB
2582 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2583 symbol types are, by definition, in the .data section, so it is
2584 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2585 If there is no .data section, there should be no N_DATA or N_DATA
2586 | N_EXT symbols.
2587
212c460c
MK
25882003-09-12 Mark Kettenis <kettenis@gnu.org>
2589
2590 * amd64fbsd-tdep.c: Fix sigtramp recognition.
2591 (amd64fbsd_sigcontext_addr): Rewrite.
2592 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2593 with correct values.
2594 (amd64fbsd_sc_reg_offset): Initialize with correct values.
2595 (amd64fbsd_init_abi): Fix typo.
2596
68856ea3
AC
25972003-09-12 Andrew Cagney <cagney@redhat.com>
2598
2599 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2600 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2601
627b3ba2
AC
26022003-09-12 Andrew Cagney <cagney@redhat.com>
2603
2604 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2605 "entry_file_highpc". Update comments.
2606 * defs.h (deprecated_inside_entry_file): Rename
2607 "inside_entry_file".
2608 * blockframe.c (deprecated_inside_entry_file): Rename
2609 "inside_entry_file".
2610 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
2611 * vax-tdep.c (vax_frame_chain): Update.
2612 * sh64-tdep.c (sh64_frame_chain): Update.
2613 * sh-tdep.c (sh_frame_chain): Update.
2614 * rs6000-tdep.c (rs6000_frame_chain): Update.
2615 * ns32k-tdep.c (ns32k_frame_chain): Update.
2616 * mips-tdep.c (mips_frame_chain): Update.
2617 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2618 * m32r-tdep.c (m32r_frame_this_id): Update.
2619 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2620 * frv-tdep.c (frv_frame_this_id): Update.
2621 * d10v-tdep.c (d10v_frame_this_id): Update.
2622 * cris-tdep.c (cris_frame_chain): Update.
2623 * blockframe.c (legacy_frame_chain_valid): Update.
2624 * avr-tdep.c (avr_frame_this_id): Update.
2625 * arm-tdep.c (arm_prologue_this_id): Update.
2626 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2627 * objfiles.c (objfile_relocate): Update.
2628 * mipsread.c (mipscoff_symfile_read): Update.
2629 (mipscoff_symfile_read): Update.
2630 * mdebugread.c (parse_partial_symbols): Update.
2631 * dwarfread.c (read_file_scope): Update.
2632 * dwarf2read.c (read_file_scope): Update.
2633 * dbxread.c (read_dbx_symtab): Update.
2634 (read_dbx_symtab): Update.
2635 * coffread.c (complete_symtab): Update.
2636
b0abbc58
JJ
26372003-09-12 Jeff Johnston <jjohnstn@redhat.com>
2638
2639 * top.c (quit_target): New static helper function.
2640 (quit_force): Moved code to quit_target(). Call quit_target()
2641 via catch_errors() to catch errors during quit.
2642
a1632d59
DC
26432003-09-11 David Carlton <carlton@kealia.com>
2644
2645 * buildsym.c (finish_block): Use allocate_block to allocate the
2646 block.
2647 * mdebugread.c (new_block): Add FIXME.
2648
5c4e30ca
DC
26492003-09-11 David Carlton <carlton@kealia.com>
2650
2651 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2652 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2653 (recursive_dump_type): Ditto.
2654 * printcmd.c (print_formatted): Ditto.
2655 * typeprint.c (print_type_scalar): Ditto.
2656 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2657 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2658 * cp-support.h: Declare cp_check_possible_namespace_symbols,
2659 maint_cplus_cmd_list.
2660 * cp-support.c: Make maint_cplus_cmd_list extern.
2661 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2662 command.h.
2663 (lookup_symbol_file): Look in possible namespace blocks when
2664 appropriate.
2665 (initialize_namespace_symtab): New.
2666 (get_possible_namespace_block, free_namespace_block)
2667 (check_possible_namespace_symbols)
2668 (check_possible_namespace_symbols_loop)
2669 (check_one_possible_namespace_symbol)
2670 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
2671 (_initialize_cp_namespace): Ditto.
2672 * block.h: Declare allocate_block.
2673 * block.c (allocate_block): New.
2674 * jv-lang.c (get_java_class_symtab): Allocate blocks via
2675 allocate_block.
2676 * symfile.h: Update declaration of add_psymbol_to_list.
2677 * symfile.c (add_psymbol_to_list): Return the partial symbol in
2678 question.
2679 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
2680 scan_partial_symbols_call.
2681 (scan_partial_symbols): Add NAMESPACE argument; update calls to
2682 helper functions.
2683 (add_partial_symbol): If necessary, scan mangled names for names
2684 of namespaces.
2685 (add_partial_namespace): Add NAMESPACE argument; generate partial
2686 symbols associated to namespaces.
2687 (add_partial_enumeration): Add NAMESPACE argument.
2688 (new_symbol): Allow namespace syms.
2689 (read_namespace): Generate namespace syms.
2690 * objfiles.h: Add opaque declaration of struct symtab.
2691 (struct objfile): Add cp_namespace_symtab member.
2692 * objfiles.c (allocate_objfile): Set
2693 objfile->cp_namespace_symtab.
2694 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
2695 dictionary_h, command_h.
2696
33a7c2fc
AC
26972003-09-11 Andrew Cagney <cagney@redhat.com>
2698
2699 * rs6000-tdep.c (rs6000_push_dummy_call): Use
2700 regcache_raw_write_signed to set SP_REGNUM, move the operation to
2701 near the function's end.
2702 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
2703 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
2704 regcache_raw_write_signed to set SP_REGNUM.
2705
63cd24fe
EZ
27062003-09-11 Elena Zannoni <ezannoni@redhat.com>
2707
2708 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
2709 orig_addrs is set up properly.
2710
f27dd7fd
AC
27112003-09-11 Andrew Cagney <cagney@redhat.com>
2712
2713 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
2714 * gdbarch.h, gdbarch.c: Re-generate.
2715 * infcall.c (call_function_by_hand): Update.
2716 * hppa-tdep.c (hppa_push_arguments): Update.
2717 * ada-lang.c (place_on_stack): Update.
2718 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2719 * sparc-tdep.c (sparc_gdbarch_init): Update.
2720 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2721 * hppa-tdep.c (hppa_gdbarch_init): Update.
2722 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
2723 stack_align.
2724
f630a401
DJ
27252003-09-11 Daniel Jacobowitz <drow@mvista.com>
2726
2727 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
2728 register do need a frame.
2729
0ddabb4c
AC
27302003-09-11 Andrew Cagney <cagney@redhat.com>
2731
2732 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
2733 buildable since GDB 5.0.
2734 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
2735 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
2736 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
2737 * irix4-nat.c: Delete file.
2738 * config/mips/irix4.mh: Delete file.
2739 * config/mips/irix3.mh: Delete file.
2740 * config/mips/irix3.mt: Delete file.
2741 * config/mips/tm-irix3.h: Delete file.
2742 * config/mips/nm-irix3.h: Delete file.
2743 * config/mips/xm-irix3.h: Delete file.
2744 * config/mips/nm-irix4.h: Delete file.
2745 * config/mips/xm-irix4.h: Delete file.
2746 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
2747
fde2cceb
JB
27482003-09-10 J. Brobecker <brobecker@gnat.com>
2749
2750 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
2751 * Makefile.in (hppa-tdep.o): Update dependencies.
2752
66f667f5
JW
27532003-09-10 James E Wilson <wilson@specifixinc.com>
2754
ef5fd69f
JW
2755 * MAINTAINERS: Change my e-mail address. Move to paper trail
2756 section.
66f667f5 2757
53e8aaea
KB
27582003-09-10 Kevin Buettner <kevinb@redhat.com>
2759
2760 * MAINTAINERS (frv): New ISA entry.
2761
dcc6aaff
KB
27622003-09-10 Kevin Buettner <kevinb@redhat.com>
2763
2764 * frv-tdep.c (dis-asm.h): Include.
2765 * Makefile.in (frv-tdep.o): Update dependencies.
2766
932644f0
JJ
27672003-09-09 Jeff Johnston <jjohnstn@redhat.com>
2768
2769 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
2770 Fix typo for high range of floating registers.
2771
91c24f0a
DC
27722003-09-09 David Carlton <carlton@kealia.com>
2773
2774 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
2775 highpc initialization here out of scan_partial_symbols.
2776 (scan_partial_symbols): Restructure into a recursive version,
2777 calling add_partial_namespace and add_partial_enumeration when
2778 appropriate.
2779 (add_partial_namespace): New.
2780 (add_partial_enumeration, locate_pdi_sibling): Ditto.
2781
c9263853
AC
27822003-09-09 Andrew Cagney <cagney@redhat.com>
2783
e56a0ecc
AC
2784 * rs6000-tdep.c (ppc_push_return_address): Delete function.
2785 (rs6000_push_dummy_call): Set LR to BP_ADDR.
2786 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
2787 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2788
794a477a
AC
2789 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
2790 (rs6000_push_dummy_call): Set the "TOC" register.
2791
c9263853
AC
2792 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
2793 methods "max_register_raw_size", "max_register_virtual_size" or
2794 "register_virtual_size".
2795
afa7d0b2
ILT
27962003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
2797
2798 * MAINTAINERS: Update my e-mail address.
2799
7a41266b
AC
28002003-09-09 Andrew Cagney <cagney@redhat.com>
2801
2802 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
2803 (rs6000_push_dummy_call): Store the struct return address.
2804 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2805
77b2b6d4
AC
28062003-09-09 Andrew Cagney <cagney@redhat.com>
2807
2808 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
2809 "ppc_sysv_abi_push_arguments".
2810 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
2811 "ppc_sysv_abi_push_arguments".
2812 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
2813 instead of "push_arguments".
2814 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
2815
e8a7b686
AC
28162003-09-09 Andrew Cagney <cagney@redhat.com>
2817
2818 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
2819 instead of CALL_DUMMY_ADDRESS.
2820
f86f5ca3
PH
28212003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
2822
2823 * p-lang.c: Eliminate "register".
2824 * c-lang.c: Ditto.
2825 * expprint.c: Ditto.
2826 * f-lang.c: Ditto.
2827 * jv-lang.c: Ditto.
2828 * language.c: Ditto.
2829 * m2-lang.c: Ditto.
2830 * parse.c: Ditto.
2831 * scm-lang.c: Ditto.
2832 * objc-lang.c: Ditto.
2833
83ee270e
NC
28342003-09-09 Nick Clifton <nickc@redhat.com>
2835
2836 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
2837
a89aa300
AC
28382003-09-04 Andrew Cagney <cagney@redhat.com>
2839
2840 * avr-tdep.c: Include "dis-asm.h".
2841 * cris-tdep.c: Include "dis-asm.h".
2842 (cris_delayed_get_disassembler): Use "struct disassemble_info"
2843 instead of corresponding typedef.
2844 * h8300-tdep.c: Include "dis-asm.h".
2845 * ia64-tdep.c: Include "dis-asm.h".
2846 * i386-tdep.c: Include "dis-asm.h".
2847 (i386_print_insn): Use "struct disassemble_info" instead of
2848 corresponding typedef.
2849 * m68k-tdep.c: Include "dis-asm.h".
2850 * mcore-tdep.c: Include "dis-asm.h".
2851 * mips-tdep.c: Include "dis-asm.h".
2852 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
2853 instead of corresponding typedef.
2854 * ns32k-tdep.c: Include "dis-asm.h".
2855 * s390-tdep.c: Include "dis-asm.h".
2856 * sparc-tdep.c: Include "dis-asm.h".
2857 * vax-tdep.c: Include "dis-asm.h".
2858 * v850-tdep.c: Include "dis-asm.h".
2859 * mn10300-tdep.c: Include "dis-asm.h".
2860 * rs6000-tdep.c: Include "dis-asm.h".
2861 * xstormy16-tdep.c: Include "dis-asm.h".
2862 (_initialize_xstormy16_tdep): Delete "extern" declaration of
2863 print_insn_xstormy16.
2864 * Makefile.in (v850-tdep.o): Update dependencies.
2865 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
2866 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
2867 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
2868 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
2869 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
2870 (gdbarch_h): Remove $(dis_asm_h).
2871 * disasm.c: Include "dis-asm.h".
2872 (dis_asm_read_memory): Use "struct disassemble_info" instead of
2873 corresponding typedef.
2874 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
2875 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
2876 * gdbarch.sh: Do not include "dis-asm.h".
2877 (struct disassemble_info): Declare opaque.
2878 (TARGET_PRINT_INSN): Update declaration.
2879 * gdbarch.h, gdbarch.c: Re-generate.
2880
88a82a65
AC
28812003-09-08 Andrew Cagney <cagney@redhat.com>
2882
2883 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
2884 CALL_DUMMY_ADDRESS, change to a predicate.
2885 * gdbarch.h, gdbarch.c: Re-generate.
2886 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2887 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
2888 * infcall.c (call_function_by_hand): Ditto.
2889 * sparc-tdep.c (sparc_push_return_address): Ditto.
2890 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
2891 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
2892 CALL_DUMMY_ADDRESS with entry_point_address.
2893 * v850-tdep.c (v850_push_return_address): Ditto.
2894 * s390-tdep.c (s390_push_return_address): Ditto.
2895 * rs6000-tdep.c (ppc_push_return_address): Ditto.
2896 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
2897 * mcore-tdep.c (mcore_push_return_address): Ditto.
2898 * cris-tdep.c (cris_push_return_address): Ditto.
2899 * arm-tdep.c (arm_push_return_address): Ditto.
2900
3e2c4033
AC
29012003-09-08 Andrew Cagney <cagney@redhat.com>
2902
2903 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
2904 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
2905 and REG_UNMODIFIED to REG_SAME_VALUE.
2906 (execute_cfa_program): Update.
2907 (dwarf2_frame_cache): Update. Initialize table to
2908 REG_UNSPECIFIED, complain if CFI fails to specify a register's
2909 location.
2910 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
2911
39efb398
AC
29122003-09-08 Andrew Cagney <cagney@redhat.com>
2913
2914 * gnu-nat.c: Remove "inline" function attribute.
2915 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
2916
f5cb5aca
KB
29172003-09-08 Kevin Buettner <kevinb@redhat.com>
2918
2919 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
2920 target.
2921
1cb761c7
KB
29222003-09-08 Kevin Buettner <kevinb@redhat.com>
2923
2924 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
2925 (frame_extra_info): Rename this struct to frv_unwind_cache.
2926 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
2927 Add fields ``prev_sp'' and ``base''.
2928 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
2929 (frv_saved_pc_after_call, frv_init_extra_frame_info)
2930 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
2931 Delete.
2932 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
2933 Revise all callers. Fill in the unwind cache argument and make
2934 other adjustments to account for new frame mechanisms.
2935 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
2936 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
2937 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
2938 (frv_frame_unwind, frv_frame_base): New structs.
2939 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
2940 additional arguments expected by this method and adjust function
2941 body accordingly.
2942 (frv_gdbarch_init): Remove calls to the following functions:
2943 set_gdbarch_deprecated_init_frame_pc(),
2944 set_gdbarch_deprecated_saved_pc_after_call(),
2945 set_gdbarch_deprecated_frame_chain(),
2946 set_gdbarch_deprecated_frame_saved_pc(),
2947 set_gdbarch_deprecated_frame_init_saved_regs(),
2948 set_gdbarch_deprecated_push_arguments(),
2949 set_gdbarch_deprecated_push_return_address(),
2950 set_gdbarch_deprecated_pop_frame(),
2951 set_gdbarch_deprecated_call_dummy_words(),
2952 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2953 set_gdbarch_deprecated_init_extra_frame_info(),
2954 set_gdbarch_deprecated_dummy_write_sp(), and
2955 set_gdbarch_deprecated_pc_in_call_dummy().
2956 Add calls to the following functions:
2957 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
2958 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
2959 frame_base_set_default().
2960 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 2961
68f6cf99
MK
29622003-09-09 Mark Kettenis <kettenis@gnu.org>
2963
2964 * dwarf2-frame.c (read_encoded_value): Add support for
2965 DW_EH_PE_aligned encoding.
2966
73b65bb0
DJ
29672003-09-08 Daniel Jacobowitz <drow@mvista.com>
2968
2969 * infrun.c (normal_stop): Don't print a message if the inferior
2970 has exited.
2971
7c8a5605
JB
29722003-09-08 Jim Blandy <jimb@redhat.com>
2973
2974 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
2975 * dbxread.c: #include "gdb_assert.h".
2976 (read_dbx_symtab): If the objfile has no .data section, use the
2977 section index for the .bss section instead.
2978
7dd88986
DJ
29792003-09-08 Daniel Jacobowitz <drow@mvista.com>
2980
2981 * frame.c (deprecated_safe_get_selected_frame): New function.
2982 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
2983 * findvar.c (read_var_value): Call it.
2984
55ff77ac
CV
29852003-09-08 Corinna Vinschen <vinschen@redhat.com>
2986
2987 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
2988 (sh64-tdep.o): Add dependencies.
2989 * configure.tgt: Add FIXME to sh-*-linux*.
2990 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
2991 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 2992 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
2993 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
2994 * sh64-tdep.c: New file, containing all sh64 related code from
2995 sh-tdep.c.
2996 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
2997 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 2998 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
2999 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3000 * config/sh/wince.mt (TDEPFILES): Ditto.
3001
bfb39158
DJ
30022003-09-07 Daniel Jacobowitz <drow@mvista.com>
3003
3004 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3005 (stop_wait_callback): Handle !lp->signalled also.
3006 (lin_lwp_has_pending, flush_callback): New functions.
3007 (lin_lwp_wait): Call flush_callback.
3008 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3009 (linux_proc_pending_signals): New function.
3010 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3011
9407de8e
DJ
30122003-09-07 Daniel Jacobowitz <drow@mvista.com>
3013
3014 From Nick Kelsey <nickk@ubicom.com>:
3015 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3016 when the stop PC is at the beginning of a function also.
3017
2ef47cd0
DJ
30182003-09-06 Daniel Jacobowitz <drow@mvista.com>
3019
3020 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3021 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3022
6f4492c8
MK
30232003-09-06 Mark Kettenis <kettenis@gnu.org>
3024
3025 * sol-thread.c: Include "gdb_string.h".
3026
d3420b2f
MK
30272003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3028
3029 * gcore.c: Reorder include files in alphabetical order. Include
3030 "gdb_assert.h". Various coding style fixes.
3031 (derive_stack_segment, derive_heap_segment): Replace check for
3032 non-null BOTTOM and TOP with gdb_assert.
3033 (derive_heap_segment): Replace check for successful creation of
3034 ZERO with gdb_assert.
3035 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3036
5220ea4c
AC
30372003-09-04 Andrew Cagney <cagney@redhat.com>
3038
3039 * thread-db.c (verbose_dlsym): New function.
3040 (thread_db_load): Use verbose_dlsym
3041 (thread_db_new_objfile): Print that libthread_db was loaded, and
3042 that thread debugging was enabled.
3043
6e8c2c06
AC
30442003-09-04 Andrew Cagney <cagney@redhat.com>
3045
3046 * configure.tgt: Add "mips64*-*-*" target. Delete
3047 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3048 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3049 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3050 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3051 mips*-sony-*, and mips64*-*-elf* targets.
3052 * config/mips/embedl.mt: Delete file.
3053 * config/mips/embedl64.mt: Delete file.
3054 * config/mips/mips.mt: Delete file.
3055 * config/mips/mips64.mt: Delete file.
3056 * config/mips/tm-embed.h: Delete file.
3057 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3058 * config/mips/embed64.mt: Delete out-of-date comment.
3059
3a3bc038
AC
30602003-09-04 Andrew Cagney <cagney@redhat.com>
3061
3062 * hppa-tdep.c (hppa_gdbarch_init): Set
3063 "have_nonsteppable_watchpoint".
3064 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3065 * mips-tdep.c (mips_dump_tdep): Do not print
3066 HAVE_NONSTEPPABLE_WATCHPOINT.
3067 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3068 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3069 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3070 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3071
a957e642
CV
30722003-09-04 Corinna Vinschen <vinschen@redhat.com>
3073
3074 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3075 unused code. Add comment.
3076
a6fbcf2f
CV
30772003-09-04 Corinna Vinschen <vinschen@redhat.com>
3078
3079 * breakpoint.c (watchpoint_check): Check for pc being in an
3080 epilogue if watchpoint frame couldn't be found.
3081
c14a44d5
AC
30822003-09-04 Andrew Cagney <cagney@redhat.com>
3083
3084 * Makefile.in: Re-generate all dependencies.
3085
f6c40618
AC
30862003-09-03 Andrew Cagney <cagney@redhat.com>
3087
3088 * arch-utils.h (legacy_print_insn): Delete declaration.
3089 * arch-utils.c (legacy_print_insn): Delete function.
3090 * disasm.c (deprecated_tm_print_insn_info): Delete.
3091 (_initialize_disasm): Delete function, contained code initializing
3092 deprecated_tm_print_insn_info.
3093 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3094 (deprecated_tm_print_insn_info): Delete.
3095 (TARGET_PRINT_INSN): Do not provide a default.
3096 * gdbarch.h, gdbarch.c: Re-generate.
3097
242e8be5
AC
30982003-09-03 Andrew Cagney <cagney@redhat.com>
3099
3100 * disasm.c (fprintf_disasm): New function.
3101 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3102 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3103 reverts 2003-08-14 change.
3104 (_initialize_disasm): Call "init_disassemble_info", instead of
3105 INIT_DISASSEMBLE_INFO_NO_ARCH.
3106
3ffc3dda
MS
31072003-09-03 Michael Snyder <msnyder@redhat.com>
3108
3109 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3110
52d16ba8
AC
31112003-09-03 Andrew Cagney <cagney@redhat.com>
3112
3113 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3114 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3115 * symfile.c (syms_from_objfile): Update.
3116 (reread_symbols): `Update
3117 * exec.c (exec_file_attach): Update.
3118 (exec_file_attach): Update.
3119 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3120 2003-08-29 change.
3121 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3122
eb5492fa
DJ
31232003-09-03 Daniel Jacobowitz <drow@mvista.com>
3124
3125 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3126 trad-frame.h.
3127 (arm_get_cache): Delete macro.
3128 (struct arm_prologue_cache): Update comments. Make saved_regs into
3129 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3130 to prev_sp.
3131 (thumb_scan_prologue): Update for cache changes. Don't call
3132 DEPRECATED_PC_IN_CALL_DUMMY.
3133 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3134 argument and use it in desperation search for our prologue. Do not
3135 search past the specified PC.
3136 (arm_make_prologue_cache): Simplify.
3137
3138 (arm_prologue_this_id, arm_prologue_prev_register)
3139 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3140 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3141 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3142 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3143 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3144
3145 (arm_frame_chain_valid, arm_find_callers_reg)
3146 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3147 (arm_pop_frame): Delete obsolete methods.
3148 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3149
3150 (arm_gdbarch_init): Update for new frame methods. Register prologue
3151 and sigtramp unwinders. Set the default frame base method.
3152
3153 * Makefile.in (arm-tdep.o): Update dependencies.
3154 * varobj.c (find_frame_addr_in_frame_chain): Call
3155 get_frame_base_address.
3156 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3157
24de872b
DJ
31582003-09-03 Daniel Jacobowitz <drow@mvista.com>
3159
3160 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3161 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3162 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3163 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3164 Take NEXT_FRAME and CACHE arguments. Call
3165 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3166 Set unwound_pc in CACHE instead of modifying the frame argument.
3167 Don't bother checking the frame type when looking for sigtramp
3168 frames.
3169 (arm_make_prologue_cache, arm_frame_chain)
3170 (arm_init_extra_frame_info): New functions.
3171
9b8d791a
DJ
31722003-09-03 Daniel Jacobowitz <drow@mvista.com>
3173
3174 * arm-tdep.c (arm_get_cache): Define.
3175 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3176 unwound_sp, unwound_pc, and saved_regs.
3177 (thumb_scan_prologue): Take a cache instead of the frame.
3178 (arm_scan_prologue): Likewise.
3179 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3180 instead of a temporary frame.
3181 (arm_init_extra_frame_info): Allocate and use a cache.
3182 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3183
7ee3275f
AC
31842003-09-03 Andrew Cagney <cagney@redhat.com>
3185
3186 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3187 * config/mips/wince.mt (TM_CLIBS): Ditto.
3188 * config/sh/wince.mt (TM_CLIBS): Ditto.
3189 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3190 * config/sparc/sp64.mt (CC): Delete.
3191
57b29be7
AC
31922003-09-03 Andrew Cagney <cagney@redhat.com>
3193
3194 * defs.h: Do not include "arch-utils.h".
3195 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3196 GDB_MULTI_ARCH_PURE.
3197 * configure.in (GDB_MULTI_ARCH): Do not define.
3198 * configure, config.in: Regenerate.
3199 * configure.tgt: Do not set variable "gdb_multi_arch".
3200 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3201 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3202 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3203 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3204 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3205 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3206 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3207 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3208 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3209 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3210 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3211 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3212 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3213 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3214 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3215 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3216 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3217 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 3218
12e035e2
MC
32192003-08-30 Michael Chastain <mec@shout.net>
3220
3221 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3222 * config/m68k/nm-hp300hpux.h: Delete.
3223 * config/m68k/tm-hp300hpux.h: Delete.
3224 * config/m68k/xm-hp300hpux.h: Delete.
3225 * config/m68k/xm-hp300bsd.h: Delete.
3226 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3227 tm-hp300hpux.h, xm-hp300hpux.h.
3228 * somsolib.c: Remove comment about hp300 shared libraries.
3229
bda34dc2
MK
32302003-08-31 Mark Kettenis <kettenis@gnu.org>
3231
5bca7895
MK
3232 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3233 Only define PTRACE_GET_THREAD_AREA is not already defined.
3234 Various style fixes in code and comments and some additional
3235 spelling fixes in comments. Move after functions dealing with
3236 debug registers.
3237 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3238 Fix coding-style.
3239
bda34dc2
MK
3240 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3241 frame_unwind_register_unsigned instead of
3242 frame_unwind_unsigned_register.
3243
c890192f
MK
32442003-08-30 Mark Kettenis <kettenis@gnu.org>
3245
3246 * configure.in: Search for gethostbyname in libnsl.
3247 * configure: Regenerated.
3248
60fac5b8
MK
32492003-08-29 Mark Kettenis <kettenis@gnu.org>
3250
e294916c
MK
3251 * configure.in: Remove redundant AC_MSG_RESULT in check for
3252 uintptr_t in stdint.h.
3253 * configure: Regenerated.
3254
c40d267a
MK
3255 * amd64-nat.h (struct regcache): Add opaque declaration.
3256
60fac5b8
MK
3257 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3258 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3259 Change "register array" to "register cache" in comments.
3260 (x86_64_linux_gregset64_reg_offset): New variable.
3261 (GETREGS_SUPPLIES): Remove macro.
3262 (supply_gregset): Call amd64_supply_native_gregset instead of
3263 x86_64_linux_supply_gregset.
3264 (fill_gregset): Rename `regno' to `regnum'. Call
3265 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3266 (store_regs): Rename `regno' to `regnum'.
3267 (store_fpregs): Rename `regno' to `regnum'.
3268 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3269 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3270 Reorganize function a bit.
3271 (store_inferior_registers): Rename `regno' to `regnum'. Use
3272 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3273 Reorganize function a bit.
3274 (_initialize_x86_64_linux_nat): New function.
3275 * config/i386/x86-64linux.mh.
3276
546143b6
AC
32772003-08-29 Andrew Cagney <cagney@redhat.com>
3278
3279 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3280 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3281 (target_remove_watchpoint): Delete macro.
3282 (target_insert_watchpoint): Delete macro.
3283 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3284 (remote_mips_stopped_by_watchpoint): Delete declaration.
3285 (remote_mips_remove_watchpoint): Delete declaration.
3286 (remote_mips_set_watchpoint): Delete declaration.
3287 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3288 * remote-mips.c (_initialize_remote_mips): Set
3289 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3290 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3291 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3292 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3293 (mips_stopped_by_watchpoint): Rename
3294 remote_mips_stopped_by_watchpoint.
3295 (mips_can_hardware_watchpoint): Rename
3296 remote_mips_can_use_hardware_watchpoint, update function
3297 signature.
3298
7bace51b
MK
32992003-08-29 Mark Kettenis <kettenis@gnu.org>
3300
b0f5c6f2
MK
3301 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3302 USER_DS. We haven't given them a register number yet.
3303
2a6d284d
MK
3304 * amd64-nat.h: New file.
3305 * amd64-nat.c: New file.
3306 * amd64fbsd-nat.c: Include "amd64-nat.h".
3307 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3308 (amd64fbsd32_r_reg_offset): New variable.
3309 (supply_gregset): Simply call amd64_supply_native_gregset.
3310 (fill_gregset): Rename `regno' to `regnum'. Simply call
3311 amd64_collect_native_gregset.
3312 (fill_fpregset): Rename `regno' to `regnum'.
3313 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3314 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3315 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3316 `fpregset_t'. Call amd64_supply_native_gregset instead of
3317 supply_gregset. Call x86_64_supply_fxsave instead of
3318 supply_fpregset.
3319 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3320 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3321 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3322 `fpregset_t'. Call amd64_collect_native_gregset instead of
3323 fill_gregset. Call x86_64_collect_fxsave instead of
3324 fill_fpregset.
3325 (_initialize_am64fbsd_nat): Initialize
3326 amd64_native_gregset32_reg_offset and
3327 amd64_native_gregset64_reg_offset.
3328 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3329
a16d75cc
MK
3330 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3331 null pointer. Fix typo in comment.
3332
7bace51b
MK
3333 * regcache.c (supply_register): Reimplement to call
3334 regcache_raw_supply.
3335 (regcache_collect): Reimplement by calling regcache_raw_collect.
3336
9a661b68
MK
33372003-08-28 Mark Kettenis <kettenis@gnu.org>
3338
3339 * regcache.c (register_buffer): Consitify first argument.
3340 (regcache_raw_supply, regcache_raw_collect): New
3341 functions.
3342
e94cc8fa
DJ
33432003-08-28 Daniel Jacobowitz <drow@mvista.com>
3344
3345 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3346 by Nathan J. Williams.
3347
c64bd0ce
DJ
33482003-08-28 Daniel Jacobowitz <drow@mvista.com>
3349
3350 * lin-lwp.c (wait_lwp): New function, copied from
3351 stop_wait_callback. Clean up.
3352 (stop_wait_callback): Use wait_lwp.
3353
e5ab0dce
AC
33542003-08-28 Andrew Cagney <cagney@redhat.com>
3355
3356 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3357 flavour and disassembler options.
3358 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3359 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3360 deprecated_tm_print_insn_info.
a8f4cde1 3361
a788de9b
AC
33622003-08-27 Andrew Cagney <cagney@redhat.com>
3363
3364 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3365 Use target_read_memory.
3366 (s390_get_frame_info): Update. Do not reference
3367 deprecated_tm_print_insn_info.
3368 (s390_check_function_end, s390_is_sigreturn): Ditto.
3369
36482093
AC
33702003-08-27 Andrew Cagney <cagney@redhat.com>
3371
3372 * Makefile.in (cris-tdep.o): Update dependencies.
3373 * cris-tdep.c: Include "gdb_assert.h".
3374 (cris_gdbarch_init): Set print_insn.
3375 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3376 (cris_delayed_get_disassembler): Simplify, directly call the
3377 disassembler returned by cris_get_disassembler.
3378 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3379 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3380 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3381 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3382 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3383 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3384 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3385 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3386 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3387 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3388 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3389 (gdb_print_insn_sparc): Delete function.
3390 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3391 deprecated_tm_print_insn_info.
3392 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3393 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3394 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3395 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3396 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3397 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3398 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3399 (s390_gdbarch_init): Set print_insn.
3400
0285512f
AC
34012003-08-27 Andrew Cagney <cagney@redhat.com>
3402
3403 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3404 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3405 * infcall.c (call_function_by_hand): Convert the entry point
3406 address into a code address.
3407
cdcd5552
AC
34082003-08-27 Andrew Cagney <cagney@redhat.com>
3409
3410 * dsrec.c: Include "gdb_string.h".
3411 * Makefile.in (dsrec.o): Update dependencies.
3412
e85cddad
MC
34132003-08-27 Michael Chastain <mec@shout.net>
3414
3415 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3416
8bbfbb23
AC
34172003-08-27 Andrew Cagney <cagney@redhat.com>
3418
3419 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3420 (alpha_osf1_init_abi): Do not set call_dummy_address.
3421
ba058b66
DC
34222003-08-27 David Carlton <carlton@kealia.com>
3423
3424 From Randolph Chung <tausq@debian.org>:
3425 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3426 compiles with -Wformat-nonliteral -Werror.
3427
87f84c9d
JB
34282003-08-26 Jim Blandy <jimb@redhat.com>
3429
3430 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3431 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3432 bfd_lookup_symbol, since we only want symbols in code sections.
3433 (look_for_base): Pass zero as the SECT_FLAGS argument to
3434 bfd_lookup_symbol, since we're not concerned about which section
3435 the symbol is in.
3436
102d615a
JJ
34372003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3438
3439 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 3440 we are frameless or the return address register is already known.
102d615a 3441
cc7ad3ea
AC
34422003-08-26 Andrew Cagney <cagney@redhat.com>
3443
3444 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3445 in size. Add comments.
3446
af8b88dd
JJ
34472003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3448
3449 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 3450 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 3451
e0a4f5a1
JM
34522003-08-26 Jason Merrill <jason@redhat.com>
3453
3454 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3455 case out of #ifdef MIPS block.
3456
4ae9ee8e
DJ
34572003-08-25 Daniel Jacobowitz <drow@mvista.com>
3458
3459 PR java/1322
3460 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3461 available before calling SECT_OFF_TEXT.
3c164570 3462 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 3463
004d836a
JJ
34642003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3465
a8f4cde1 3466 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
3467 bof, and nat0-nat127 as pseudo-registers.
3468 (ia64_frame_cache): New struct used to cache frame info.
3469 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 3470 register grouping so registers without names are still saved and
004d836a 3471 restored.
a8f4cde1 3472 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
3473 pseudo values.
3474 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3475 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 3476 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
3477 ia64_frame_cache.
3478 (examine_prologue): Change prototype to add next_frame pointer.
3479 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 3480 current frame matches the cfm that should occur for the prologues
004d836a
JJ
3481 alloc insn and if equal, mark as not frameless. At end of routine,
3482 if not frameless, calculate registers for the previous frame and store
3483 in the cache, if a cache is provided.
3484 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3485 and pass 0 for next_frame.
3486 (ia64_store_return_value): Change to use convert_typed_floating()
3487 instead of calling ia64_convert_to_raw().
3488 (ia64_extract_return_value): Change to use convert_typed_floating()
3489 instead of calling ia64_convert_to_virtual().
3490 (ia64_frame_cache): New routine to support new frame model.
3491 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3492 (ia64_frame_sniffer): Ditto.
3493 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3494 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3495 (ia64_sigtramp_frame_prev_register): Ditto.
3496 (ia64_sigtramp_frame_sniffer): Ditto.
3497 (ia64_frame_base_address): Ditto.
3498 (ia64_extract_struct_value_address): Change to issue error message.
3499 (ia64_frame_align): New routine to align sp.
3500 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 3501 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
3502 ia64_push_dummy_call().
3503 (ia64_push_return_address): Ditto.
3504 (ia64_unwind_dummy_id): New function.
3505 (ia64_unwind_pc): Ditto.
3506 (ia64_convert_register_p): Ditto.
3507 (ia64_register_to_value): Ditto.
3508 (ia64_value_to_register): Ditto.
3509 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3510 (ia64_register_byte, ia64_register_raw_size): Ditto.
3511 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3512 (ia64_saved_pc_after_call): Ditto.
3513 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3514 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3515 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3516 (ia64_register_convert_to_raw): Ditto.
3517 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3518 (ia64_init_extra_frame_info): Ditto.
3519 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3520 (ia64_gdbarch_init): Remove registering of deprecated functions that
3521 are no longer used. Add registration of new gdbarch functions.
3522 Remove registering deprecated_write_sp. Replace
3523 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3524 Delete set_gdbarch_deprecated_register_convertible(),
3525 set_gdbarch_deprecated_register_convert_to_virtual(), and
3526 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3527 set_gdbarch_deprecated_register_size(),
3528 set_gdbarch_deprecated_register_bytes(),
3529 set_gdbarch_pcregnum(),
3530 set_gdbarch_deprecated_register_byte(),
3531 set_gdbarch_deprecated_register_raw_size(),
3532 set_gdbarch_deprecated_max_register_raw_size(),
3533 set_gdbarch_deprecated_register_virtual_size(),
3534 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3535 Replace set_gdbarch_deprecated_extract_return_value() with
3536 set_gdbarch_extract_return_value(). Remove calls to:
3537 set_gdbarch_deprecated_saved_pc_after_call();
3538 set_gdbarch_deprecated_frame_chain(),
3539 set_gdbarch_deprecated_frame_saved_pc(),
3540 set_gdbarch_deprecated_frame_init_saved_regs(),
3541 set_gdbarch_deprecated_get_saved_register(),
3542 set_gdbarch_deprecated_call_dummy_words(),
3543 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3544 set_gdbarch_deprecated_init_extra_frame_info(),
3545 set_gdbarch_deprecated_frame_args_address(),
3546 set_gdbarch_deprecated_frame_locals_address(),
3547 and set_gdbarch_deprecated_dummy_write_sp().
3548 Add set_gdbarch_convert_register_p(),
3549 set_gdbarch_register_to_value(),
3550 set_gdbarch_value_to_register(),
3551 set_gdbarch_push_dummy_call(),
3552 set_gdbarch_frame_align(),
3553 set_gdbarch_unwind_dummy_id(),
3554 set_gdbarch_unwind_pc(),
3555 frame_unwind_append_sniffer(),
3556 frame_unwind_append_sniffer(),
3557 and frame_base_set_default().
3558
aede7613
CD
35592003-08-25 Chris Demetriou <cgd@broadcom.com>
3560
3561 * configure.tgt: Document need for special "mipsisa64" handling.
3562 (mipsisa64*-*-linux64): Handle as target linux64.
3563 (mipsisa64*-*-*): Handle as target embed64.
3564
43c3a82e
MC
35652003-08-18 Michael Chastain <mec@shout.net>
3566
3567 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3568 objfile bug.
3569
6564f77d
MK
35702003-08-24 Mark Kettenis <kettenis@gnu.org>
3571
2de139ba
MK
3572 * i387-tdep.h: Update copyright date.
3573 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3574
6564f77d
MK
3575 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3576 CFLAGS games to reflect reality.
3577
42cf1509
AC
35782003-08-24 Andrew Cagney <cagney@redhat.com>
3579
3580 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3581 GDB_MULTI_ARCH is always non-zero.
3582 * osabi.c (_initialize_gdb_osabi): Ditto.
3583 (gdbarch_init_osabi): Ditto.
3584 * sparc-tdep.c: Ditto for #if code.
3585
0485f6ad
MK
35862003-08-23 Mark Kettenis <kettenis@gnu.org>
3587
3588 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3589 Update comments.
3590 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
3591 comments.
3592 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3593 x86_64_supply_fxsave.
3594 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3595 x86_64_supply_fxsave.
3596 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3597 x86_64_supply_fxsave.
3598
c7716133
AJ
35992003-08-23 Andreas Jaeger <aj@suse.de>
3600
3601 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3602 i387_supply_fxsave.
3603
ed504bdf
MK
36042003-08-23 Mark Kettenis <kettenis@gnu.org>
3605
3606 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3607 i387_supply_register.
3608 (go32_fetch_registers): Adjust call to i387_supply_fsave.
3609 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3610 i387_supply_fsave.
3611 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3612 i387_supply_fxsave.
3613 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3614 i387_supply_fsave.
3615 * i386bsd-nat.c (supply_fpregset): Adjust call to
3616 i387_supply_fsave.
3617 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
3618 call to i387_supply_fxsave. Call i387_supply_fsave instead of
3619 supply_fpregset.
3620 (store_inferior_registers): Remove extraneous whitespace. Call
3621 i387_fill_fsave instead of fill_fpregset.
3622 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3623 (supply_fpregset): Likewise.
3624 * i386v4-nat.c (supply_fpregset): Adjust call to
3625 i387_supply_fsave.
3626 * i386-interix-nat.c (supply_fpregset): Adjust call to
3627 i387_supply_fsave.
3628 * i386-linux-nat.c (supply_fpregset): Adjust call to
3629 i387_supply_fsave.
3630 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3631 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3632 i387supply_fsave and i387_supply_fxsave.
3633 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3634 Incorporate code from `i387_supply_register.
3635 (i387_supply_register): Remove.
3636 (i387_supply_fxsave): Add `regnum' argument.
3637 Update comments.
3638 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3639 prototype.
3640 (i387_supply_register): remove prototype.
3641 Update comments.
a8f4cde1 3642
4be5d520
MC
36432003-08-22 Michael Chastain <mec@shout.net>
3644
3645 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3646 Add lines for files in gdb/testsuite/gdb.cp/* that are
3647 still not 8.3 unique.
3648
7ed85d26
DJ
36492003-08-22 Daniel Jacobowitz <drow@mvista.com>
3650
3651 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3652 TYPE_VPTR_FIELDNO is valid.
3653
eb0d3137
MK
36542003-08-19 Mark Kettenis <kettenis@gnu.org>
3655
3656 * utils.c (set_width_command): Remove prototypes.
3657 (set_screen_size): New prototype.
3658 (init_page_info): Simplify by fetching the screen size from
3659 Readline. Call set_screen_size.
3660 (set_screen_size): New function.
3661 (set_width): Add missing whitespace in comment.
3662 (set_width_command): Call set_screen_size.
3663 (set_height_command): New function.
3664 (initialize_utils): Fix formatting. Make "set height" command
3665 call set_height_command. Remove redundant code that turns off
3666 pagination if output isn't a terminal. Remove redundant call to
3667 set_width_command.
a8f4cde1 3668
7e6d0ac8
MK
36692003-08-22 Mark Kettenis <kettenis@gnu.org>
3670
3567a8ea
MK
3671 * sparc64-tdep.h (sparc64_regnum): Fix comment.
3672 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
3673 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
3674 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
3675 `case' keyword.
3676 (sparc64_register_info): Give the reister with number
3677 SPARC64_STATE_REGNUM a name.
3678 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
3679 %asi and %ccr.
3680 (sparc64_push_dummy_call): Take BIAS into account when checking
3681 stcak alignment.
3682 (sparc_software_single_step): Remove assertions that check whether
3683 NPC and NNPC were zero.
3684 (sparc_supply_rwindow): Make public. Merge functionality with
3685 sparc64_supply_rwindow.
3686 (sparc_fill_rwindow): Make public. Merge functionality with
3687 sparc64_fill_rwindow.
3688 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
3689 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
3690 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
3691 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
3692 sparc_supply_rwindow instead of sparc64_supply_rwindow.
3693
7e6d0ac8
MK
3694 * reggroups.c: Add whitespace after declarations of local
3695 variables in functions.
3696
72e5f484
MC
36972003-08-21 Michael Chastain <mec@shout.net>
3698
3699 * gdbtypes.h: Change array bound type from an int to enum.
3700
435ac228
AC
37012003-08-21 Andrew Cagney <cagney@redhat.com>
3702
3703 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
3704 * config/sparc/tm-sparc.h: Ditto.
3705 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
3706 unconditionally.
3707 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
3708
0d0e1a63
MK
37092003-07-13 Mark Kettenis <kettenis@gnu.org>
3710
3711 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
3712 (register_objfile_data, set_objfile_data, objfile_data): New
3713 prototypes.
3714 * objfiles.c (objfile_alloc_data, objfile_free_data): New
3715 prototypes.
3716 (allocate_objfile): Call objfile_alloc_data.
3717 (free_objfile): Call objfile_free_data.
3718 (struct objfile_data): New.
3719 (struct objfile_data_registration): New.
3720 (struct objfile_data_registry): New.
3721 (objfile_data_registry): New variable.
3722 (register_objfile_data): New function.
3723 (objfile_alloc_data, objfile_free_data): New functions.
3724 (set_objfile_data, objfile_data): New functions.
3725 * dwarf2-frame.c (dwarf2_frame_data): New variable.
3726 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
3727 (_initialize_dwarf2_frame): New function and prototype.
3728
d90cf509
AC
37292003-08-21 Andrew Cagney <cagney@redhat.com>
3730
3731 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
3732 a specific architecture.
3733 * arch-utils.h (set_architecture_from_arch_mach): Delete
3734 declaration.
3735 (target_architecture_hook): Delete declaration.
3736 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
3737 (default_float_format): Assume GDB_MULTI_ARCH.
3738 (default_double_format): Assume GDB_MULTI_ARCH.
3739 (set_endian_from_file): Delete function.
3740 (arch_ok): Delete function.
3741 (set_arch): Delete function.
3742 (set_architecture_from_arch_mach): Delete function.
3743 (set_architecture_from_file): Delete function.
3744 (set_architecture): Assume GDB_MULTI_ARCH.
3745 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
3746
8b39fe56
MK
37472003-08-21 Mark Kettenis <kettenis@gnu.org>
3748
3749 Rewrite FreeBSD/sparc64 native configuration.
3750 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
3751 * sparc64fbsd-nat.c: New file.
3752 * sparc64fbsd-tdep.c: New file.
3753 * sparc64-tdep.c sparc64-tdep.h: New files.
3754 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
3755 sparc64fbsd-tdep.o): New dependencies.
3756 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
3757 and sparc64fbsd-tdep.c.
3758 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
3759 * config/sparc/fbsd.mh: Remove copyright notice.
3760 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
3761 sparcbsd-nat.o.
3762 * config/sparc/fbsd.mt: Remove copyright notice.
3763 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
3764 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
3765 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
3766 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
3767 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
3768 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
3769 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
3770 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
3771 "sparc/tm-sp64.h".
3772 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
3773 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
3774
a7f19c79
MC
37752003-08-21 Michael Chastain <mec@shout.net>
3776
3777 * symtab.h: Add doco on the space critical structures and
3778 some measurements of space usage.
3779
da08ea5b
MS
37802003-08-21 Michael Snyder <msnyder@redhat.com>
3781
3782 * tracepoint.c (trace_dump_command): Trace break address
3783 is subject to DECR_PC_AFTER_BREAK.
3784 (set_traceframe_context): Make "trace_line" an int.
3785 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 3786
6df2bf50
MS
37872003-08-20 Michael Snyder <msnyder@redhat.com>
3788
3789 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
3790 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
3791 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 3792 argument passing.
a8f4cde1 3793 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
3794 functions, replace sh_push_dummy_call.
3795 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
3796
0955bbf0
MC
37972003-08-20 Michael Chastain <mec@shout.net>
3798
3799 * gdbtypes.h (struct main_type): Rearrange to save space.
3800
260a4188
MS
38012003-08-20 Michael Snyder <msnyder@redhat.com>
3802
3803 * trad-frame.c: Comment typo fix.
3804
8baa6f92
KB
38052003-08-20 Michael Snyder <msnyder@redhat.com>
3806 Kevin Buettner <kevinb@redhat.com>
3807
3808 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
3809 (frv_frame_init_saved_regs): Add declaration.
3810 (frame_extra_info): Add new field ``saved_regs''.
3811 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
3812 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
3813 Update frame related code.
3814 (frv_extract_struct_value_address): Adjust formatting.
3815 * Makefile.in (frv-tdep.o): Update dependencies.
3816 * config/frv/tm-frv.h (target_insert_watchpoint)
3817 (target_remove_watchpoint, target_insert_hw_breakpoint)
3818 (target_remove_hw_breakpoint): Delete these macros.
3819 (remote_insert_watchpoint, remote_remove_watchpoint)
3820 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
3821 these declarations.
3822
87193939
MC
38232003-08-20 Michael Chastain <mec@shout.net>
3824
3825 * defs.h (ENUM_BITFIELD): New macro.
3826 * symtab.h (ENUM_BITFIELD): Use it.
3827 (BYTE_BITFIELD): Remove old macro, which was already disabled.
3828
062103ba
SA
38292003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
3830
3831 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 3832
8b148df9
AC
38332003-08-18 Andrew Cagney <cagney@redhat.com>
3834
3835 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
3836 * gdbarch.h, gdbarch.c: Re-generate.
3837 * infcall.c (call_function_by_hand): Adjust the SP by
3838 frame_red_zone_size before allocating any stack space.
3839 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
3840 * x86-64-tdep.c (x86_64_frame_align): New function.
3841 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
3842
3843 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
3844 Remove code adjusting SP so that it skips over the Red Zone.
3845
954a4db8
MK
38462003-08-18 Mark Kettenis <kettenis@gnu.org>
3847
3848 * NEWS (New native configurations): Mention FreeBSD/amd64.
3849
1a241548
AC
38502003-08-18 Andrew Cagney <cagney@redhat.com>
3851
3852 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
3853 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
3854 "m68k_frame_p".
3855 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
3856
f82b2acd
MK
38572003-08-18 Mark Kettenis <kettenis@gnu.org>
3858
3859 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
3860
4056d258
ML
38612003-08-18 Michal Ludvig <mludvig@suse.cz>
3862
3863 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
3864 Define.
3865 * i386-linux-nat.c: Include "linux-nat.h".
3866 (child_post_startup_inferior): New function.
a8f4cde1 3867
99ab4326
MK
38682003-08-18 Mark Kettenis <kettenis@gnu.org>
3869
3870 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
3871 at the start of a frameless function. This probably fixes PR
3872 backtrace/1338.
3873
c8d5f0d6
MC
38742003-08-17 Michael Chastain <mec@shout.net>
3875
3876 * symfile.c (find_sym_fns): Remove special case for apollo target.
3877
9016a515
DJ
38782003-08-17 Daniel Jacobowitz <drow@mvista.com>
3879
3880 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
3881 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
3882 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
3883 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
3884 (linux_supports_tracevforkdone): New function.
3885 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
3886 TRACEVFORKDONE.
3887 (child_follow_fork): Handle vfork.
3888 (linux_handle_extended_wait): Likewise. Also handle exec.
3889 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
3890 * NEWS: Mention fork tracing.
3891
c538c11c
DJ
38922003-08-17 Daniel Jacobowitz <drow@mvista.com>
3893
3894 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3895
4de4c07c
DJ
38962003-08-17 Daniel Jacobowitz <drow@mvista.com>
3897
3898 * Makefile.in (i386-linux-nat.o): Update dependencies.
3899 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
3900 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
3901 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
3902 * i386-linux-nat.c: Include "linux-nat.h".
3903 (child_post_startup_inferior): New function.
3904 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
3905 * infptrace.c (kill_inferior): Wrap in #ifdef.
3906 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
3907 attaching to each LWP.
3908 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
3909 (init_lin_lwp_ops): Fill in some more operations.
3910 * linux-nat.h (linux_enable_event_reporting)
3911 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
3912 prototypes.
3913 * linux-nat.c (linux_enable_event_reporting): New function.
3914 (child_post_attach, linux_child_post_startup_inferior)
3915 (child_post_startup_inferior, child_follow_fork)
3916 (linux_handle_extended_wait, kill_inferior): New functions.
3917
7996bcec
AC
39182003-08-16 Andrew Cagney <cagney@redhat.com>
3919
3920 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
3921 * gdbarch.h, gdbarch.c: Re-generate.
3922
3d48a7a0
MK
39232003-08-16 Mark Kettenis <kettenis@gnu.org>
3924
3925 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
3926
7989c619
AC
39272003-08-16 Andrew Cagney <cagney@redhat.com>
3928
3929 * NEWS: Mention that "set prompt-escape-char" was deleted.
3930 * top.c (get_prompt_1): Delete function.
3931 (gdb_prompt_escape):
3932 (init_main): Do not clear "gdb_prompt_escape". Delete "set
3933 prompt-escape-char" command.
3934 (MAX_PROMPT_SIZE): Delete macro.
3935 (get_prompt): Simplify, do not call get_prompt_1.
3936
07978cd8
AC
39372003-08-16 Andrew Cagney <cagney@redhat.com>
3938
3939 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
3940 -Werror. -Wformat-nonliteral problems.
3941
3ff7cf9e
JB
39422003-08-15 J. Brobecker <brobecker@gnat.com>
3943
3944 Further multiarching work mostly for hppa64-*-hpux11:
3945 * hppa-tdep.h: New file.
3946 * hppa-tdep.c: #include hppa-tdep.c.
3947 (hppa32_num_regs): Renamed from hppa_num_regs.
3948 (hppa64_num_regs): New constant.
3949 (hppa64_call_dummy_breakpoint_offset): New constant.
3950 (hppa32_call_dummy_length): New constant.
3951 (hppa64_call_dummy_length): New constant.
3952 (hppa32_stack_align): Make name 32bit explicit.
3953 (hppa32_register_virtual_type): Likewise.
3954 (hppa32_extract_return_value): Likewise.
3955 (hppa32_use_struct_convention): Likewise.
3956 (hppa32_store_return_value): Likewise.
3957 (hppa64_register_virtual_type): New function.
3958 (hppa64_extract_return_value): New function.
3959 (hppa64_use_struct_convention): New function.
3960 (hppa64_store_return_value): New function.
3961 (hppa_frame_locals_address): Remove declaration, function does
3962 not exist anymore.
3963 (hppa_register_byte): Add support for PA64 ABI.
3964 (hppa_gdbarch_init): Add support for PA64 ABI.
3965 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
3966 Make name 32bit explicit.
3967 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
3968 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
3969 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
3970 (hppa64_hpux_frame_base_before_sigtramp): New function.
3971 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
3972 * config/pa/tm-hppa64.h: Remove macros that are no longer
3973 necessary now that the gdbarch vector is properly setup.
a8f4cde1 3974 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
3975 * config/pa/tm-hppah.h: Update function calls in macros
3976 following the function renaming in hppa-hpux-tdep.c.
3977 * Makefile.in (hppa_tdep_h): New variable.
3978 (hppa-tdep.o): Add dependency over hppa_tdep_h.
3979
5d05ca6d
MS
39802003-08-14 Michael Snyder <msnyder@redhat.com>
3981
3982 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
3983
37ba2569
JB
39842003-08-13 J. Brobecker <brobecker@gnat.com>
3985
3986 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
3987 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
3988 routine.
3989
aed7f26a
MS
39902003-08-13 Michael Snyder <msnyder@redhat.com>
3991
3992 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
3993 (frv_saved_pc_after_call): Use deprecated ftype.
3994 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
3995 (frv_remote_translate_xfer_address): Remove.
3996 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
3997
752d4ac1
JB
39982003-08-13 J. Brobecker <brobecker@gnat.com>
3999
4000 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4001 initialization after the common gdbarch initialization, not before.
4002
1426ac1d
JB
40032003-08-13 J. Brobecker <brobecker@gnat.com>
4004
4005 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4006 (ADDR_BITS_REMOVE): Remove, redundant.
4007
b6fbdd1d
JB
40082003-08-13 J. Brobecker <brobecker@gnat.com>
4009
4010 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4011 gdbarch method to clear the 2 low bits of text addresses.
4012
44160db3
AC
40132003-08-12 Andrew Cagney <cagney@redhat.com>
4014
4015 * Makefile.in (dsrec.o): Update dependencies.
4016 * dsrec.c: Include "gdb_assert.h".
4017 (make_srec): Use snprintf instead of sprintf, use a literal format
4018 string.
4019
bcf7d3ca
AC
40202003-08-12 Andrew Cagney <cagney@redhat.com>
4021
4022 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4023 FRAME_OBSTACK_ZALLOC.
4024
49ed40de
KB
40252003-08-12 Kevin Buettner <kevinb@redhat.com>
4026
4027 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4028 SSE registers.
4029
b246147c
MK
40302003-08-10 Mark Kettenis <kettenis@gnu.org>
4031
4032 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4033 amd64fbsd_sc_reg_offset): Add extern declarations.
4034 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4035 declarations.
4036
d95fdc0d
BE
40372003-08-11 Ben Elliston <bje@wasabisystems.com>
4038
4039 * MAINTAINERS (write after approval): Update my mail address.
4040
cf6a0e73
AC
40412003-08-10 Andrew Cagney <cagney@redhat.com>
4042
4043 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4044
f837910f
MK
40452003-08-10 Mark Kettenis <kettenis@gnu.org>
4046
e2dbbd2d
MK
4047 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4048 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4049 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4050 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4051 i386bsd_sc_reg_offset): Add extern declarations.
4052 * i386obsd-nat.c: Include "i386-tdep.h"
4053 (_initialize_i386obsd_nat): Remove extern declarations.
4054 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4055 declarations.
4056 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4057 declarations.
4058
f837910f
MK
4059 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4060 instead of frame_read_register.
4061 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4062 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4063 SP_REGNUM.
4064 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4065 instead of frame_unwind_unsigned_register. Use
4066 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4067 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4068 instead of read_register. Use builtin_type_void_data_ptr instead
4069 of builtin_type_void_func_ptr when extracting the address of the
4070 jmp_buf.
4071 (i386_extract_return_value, i386_store_return_value,
4072 i386_pseudo_register_read, i386_pseudo_register_write): Use
4073 register_size instead REGISTER_RAW_SIZE.
4074
edcf254d
AC
40752003-08-10 Andrew Cagney <cagney@redhat.com>
4076
4077 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4078 sprintf. Make "name" constant.
4079
26604a34
MK
40802003-08-10 Mark Kettenis <kettenis@gnu.org>
4081
192285c6
MK
4082 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4083 instead of frame_read_register.
f837910f
MK
4084 (i387_print_float_info): Use get_frame_register and
4085 get_frame_register_unsigned instead of frame_register_read.
192285c6 4086
f0925262
MK
4087 * i386fbsd-nat.c: Include "i386-tdep.h".
4088 (child_resume): Make `eflags' an ULONGEST. Use
4089 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4090 instead of register_read and register_write.
4091
a144416f
MK
4092 * i386bsd-nat.c (fetch_inferior_registers,
4093 store_inferior_registers): Don't use && at the end of a line.
4094 (_initialize_i386bsd_nat): Fix typo.
4095
fec74868
MK
4096 * frame.c (_initialize_frame): Add missing backslash.
4097
87232496
MK
4098 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4099 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4100 and supply_register instead of manipulating the register buffer
4101 directly.
4102
c9b9de0b
MK
4103 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4104 * config/i386/nm-i386sol2.h
4105 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4106
26604a34
MK
4107 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4108 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4109 instructions that GCC likes to mingle into the prologue. Fixes
4110 gdb/1253 and gdb/1255.
4111
25d29d70
AC
41122003-08-09 Andrew Cagney <cagney@redhat.com>
4113
4114 Fix GDB PR cli/926.
4115 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4116 * command.h (add_setshow_uinteger_cmd): Declare.
4117 * frame.c (set_backtrace_cmd): New function.
4118 (show_backtrace_cmd): New function.
4119 * frame.c (_initialize_frame): Replace "set/show
4120 backtrace-below-main" with "set/show backtrace past-main". Add
4121 command "set/show backtrace limit".
4122 (backtrace_past_main): Rename "backtrace_below_main".
4123 (backtrace_limit): New variable.
4124 (get_prev_frame): Update. Check the backtrace_limit.
4125
9ebf4acf
AC
41262003-08-09 Andrew Cagney <cagney@redhat.com>
4127
4128 * defs.h (xstrprintf): Declare.
4129 * utils.c (xstrprintf): New function.
4130 * breakpoint.c (insert_breakpoints): Replace sprintf and
4131 non-literal format strings, with xstrprintf and cleanups.
4132 (delete_breakpoint,breakpoint_re_set): Ditto.
4133 (commands_command, insert_breakpoints): Ditto.
4134 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4135 (break_at_finish_command_1): Ditto.
4136
3771659b
AC
41372003-08-09 Andrew Cagney <cagney@redhat.com>
4138
4139 * MAINTAINERS (language support): List Adam Fedor as Objective C
4140 maintainer.
4141
b4263afa
JB
41422003-08-08 J. Brobecker <brobecker@gnat.com>
4143
4144 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4145 are now multiarched.
4146
d84defb1
JB
41472003-08-08 J. Brobecker <brobecker@gnat.com>
4148
4149 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4150 longer necessary now that hppa64 is partially multiarch'ed.
4151
f786f615
AC
41522003-08-08 Andrew Cagney <cagney@redhat.com>
4153
4154 * interps.c (interp_set): Check for a NULL "old_interp".
4155
c938e9b0
L
41562003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4157
4158 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4159 (install-only): Support DESTDIR.
4160 (uninstall): Likewise.
4161 (install-gdbtk): Likewise.
4162
9a146a11
EZ
41632003-08-08 Elena Zannoni <ezannoni@redhat.com>
4164
4165 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4166 contains something meaningful at all times.
4167
4168Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 4169
62599e99 4170 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 4171
56296155
BC
4172Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4173
62599e99 4174 * MAINTAINERS (write after approval): Added self.
56296155 4175
9710e734
AC
41762003-08-07 Andrew Cagney <cagney@redhat.com>
4177
4178 * inferior.h (AT_SYMBOL): Define.
4179 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4180 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4181 * mips-tdep.c (mips_call_dummy_address): Delete function.
4182 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4183 set call_dummy_address.
4184
98b3ab73
AC
41852003-08-07 Andrew Cagney <cagney@redhat.com>
4186
4187 * language.c (op_error): Delete function.
4188 (binop_type_check): Delete function.
4189 * language.h (type_op_error, range_op_error): Delete macros.
4190 (op_error): Delete declaration.
4191
2fcf52f0
AC
41922003-08-07 Andrew Cagney <cagney@redhat.com>
4193
4194 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4195
abd4220e 41962003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 4197
abd4220e 4198 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 4199 (x86_64_push_arguments): Skip the red zone.
abd4220e 4200
9dd5f34f
AC
42012003-08-05 Andrew Cagney <cagney@redhat.com>
4202
4203 * reggroups.c (reggroup_next): Check for the final entry.
4204
e5e78edc
AC
42052003-08-04 Andrew Cagney <cagney@redhat.com>
4206
ab4e3d93
AC
4207 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4208 * cli/cli-script.c (define_command): Call query directly, instead
4209 of passing it a buffer.
4210 * ocd.c (ocd_error): Pass error a constant format string.
4211 * remote-mips.c (mips_error): Use fputs_filtered.
4212
1062ca82
AC
4213 * solib-svr4.c (_initialize_svr4_solib): Update
4214 register_gdbarch_data call.
4215 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4216
fcc1c85c
AC
4217 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4218 (register_gdbarch_data): Delete "free" parameter. Update
4219 comments.
4220 * gdbarch.h, gdbarch.c: Re-generate.
4221 * reggroups.c (_initialize_reggroup): Update.
4222 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4223 * frame-base.c (_initialize_frame_base): Update.
4224 * frame-unwind.c (_initialize_frame_unwind): Update.
4225 * user-regs.c (_initialize_user_regs): Update.
4226 * remote.c (_initialize_remote): Update.
4227 * regcache.c (_initialize_regcache): Update.
4228
116f06ea
AC
4229 * regcache.c (xfree_regcache_descr): Delete function.
4230 (_initialize_regcache): Update call to register_gdbarch_data.
4231 (init_regcache_descr, init_legacy_regcache_descr): Use
4232 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4233
e5e78edc
AC
4234 * remote.c (free_remote_state): Delete function.
4235 (_initialize_remote): Update register_gdbarch_data.
4236 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4237 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4238
6c7d17ba
AC
42392003-08-04 Andrew Cagney <cagney@redhat.com>
4240
4241 * reggroups.c (struct reggroup_el): Define.
4242 (struct reggroups): Delete field "nr_group". Replace array
4243 "group" with a "first" to "last" linked list.
4244 (reggroups_init): Update. Allocate using gdbarch's obstack.
4245 (reggroups_free): Delete function.
4246 (add_group): Update. Add "el" parameter.
4247 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4248 (default_groups): Update.
4249 (reggroup_next): Replace reggroups.
4250 (reggroups_dump): Update.
4251 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4252 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4253 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4254
89b7795b
DJ
42552003-08-04 Daniel Jacobowitz <drow@mvista.com>
4256
4257 * Makefile.in (tui-interp.o): Update dependencies.
4258
306d9ac5
DC
42592003-08-04 David Carlton <carlton@kealia.com>
4260
4261 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4262 to internal_error call.
4263 * source.c (forward_search_command): Add "%s" format argument.
4264 (reverse_search_command): Ditto.
4265 * top.c (quit_confirm): Ditto.
4266 * cli/cli-setshow.c (do_setshow_command): Ditto.
4267 * cp-valprint.c (cp_print_class_method): Replace
4268 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4269 (cp_print_class_member): Ditto.
4270 * event-top.c (command_line_handler): Ditto.
4271 * linux-proc.c (linux_info_proc_cmd): Ditto.
4272 * p-typeprint.c (pascal_type_print_base): Ditto.
4273 * p-valprint.c (pascal_object_print_class_method): Ditto.
4274 (pascal_object_print_class_member): Ditto.
4275 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4276 * remote.c (remote_cisco_section_offsets): Ditto.
4277 * top.c (command_line_input): Ditto.
4278 * utils.c (vwarning,error_stream,quit): Ditto.
4279 * valprint.c (print_floating,print_binary_chars)
4280 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4281
57bfe177
AC
42822003-08-04 Andrew Cagney <cagney@redhat.com>
4283
4284 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4285
e546b999
AC
42862003-08-02 Andrew Cagney <cagney@redhat.com>
4287
4288 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4289 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4290 amd64fbsd-nat.c.
4291
91092ee5
AC
42922003-08-02 Andrew Cagney <cagney@redhat.com>
4293
4294 * Makefile.in: Update all dependencies and definitions.
4295
889f28e2
AF
42962003-08-02 Adam Fedor <fedor@gnu.org>
4297
4298 * linespec.c (is_objc_method_format): New function
4299 (decode_line_1, locate_first_half): Use it.
4300 Fixes PR objc/1298
4301
880bc914
AC
43022003-08-01 Andrew Cagney <cagney@redhat.com>
4303
4304 * NEWS: Mention that m32r is multi-arch.
4305 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4306 * configure.tgt: Recognize m32r-*-*.
4307 * config/m32r/tm-m32r.h: Delete file.
4308 * config/m32r/m32r.mt: New file.
a8f4cde1 4309 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
4310 gethostname succeeds, in order to avoid a compilation
4311 warning.
4312 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4313 compiler warning.
4314
19f59343
MS
43152003-08-01 Michael Snyder <msnyder@redhat.com>
4316
4317 * sh-tdep.c (sh_frame_align): New gdbarch method.
4318 (sh_gdbarch_init): Set up frame_align method.
4319
4e7d7511
MS
43202003-07-31 Michael Snyder <msnyder@redhat.com>
4321
4322 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4323 which is already covered by the new frames infrastructure.
4324
63022984
AC
43252003-07-31 Andrew Cagney <cagney@redhat.com>
4326
4327 * user-regs.c (struct user_reg): Add "next" link.
4328 (struct user_regs): Replace "user" with "first" and "last" links.
4329 (append_user_reg): Add pre-allocated "reg" parameter.
4330 (builtin_user_regs): Provide initial value for "last".
4331 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4332 (user_regs_init): Allocate memory from the gdbarch obstack.
4333 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4334 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4335 linked list.
4336 (usernum_to_user_reg): New function.
4337 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4338 (value_of_user_reg): Use usernum_to_user_reg.
4339 (user_regs_free): Delete function.
4340 (_initialize_user_regs): Update register_gdbarch_data call.
4341
7cf6e574
DJ
43422003-07-31 Daniel Jacobowitz <drow@mvista.com>
4343
4344 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4345
c48a845b
MS
43462003-07-30 Michael Snyder <msnyder@redhat.com>
4347
4e7d7511 4348 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 4349 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
4350 value_being_returned.
4351 * infcmd.c (print_return_value): Pass zero as struct_addr.
4352 * values.c (value_being_returned): If struct_addr is passed,
4353 use it instead of trying to recover it from the inferior.
4354
f0d8db19
KB
43552003-07-30 Kevin Buettner <kevinb@redhat.com>
4356
4357 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4358 the prologue analyzer won't need to attempt to extract the pc
4359 value from the woefully incomplete dummy frame.
4360 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4361 possible. Disable code which modifies the frame.
4362
e5c113a1
AC
43632003-07-28 Andrew Cagney <cagney@redhat.com>
4364
4365 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4366 to level 2.
4367 (annotate_breakpoints_table, annotate_record): Ditto.
4368 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4369 (annotate_field_name_end, annotate_field_value): Ditto.
4370 (annotate_field_end, annotate_frame_source_begin): Ditto.
4371 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4372 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4373 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4374 (annotate_frame_address_end, annotate_frame_address): Ditto.
4375 (annotate_frame_args, annotate_frame_end): Ditto.
4376 (annotate_frame_where, annotate_arg_begin): Ditto.
4377 (annotate_arg_name_end, annotate_arg_value): Ditto.
4378 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4379 (annotate_function_call, annotate_signal_name): Ditto.
4380 (annotate_signal_string, annotate_signal_name_end): Ditto.
4381 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4382 (annotate_value_begin, annotate_value_history_value): Ditto.
4383 (annotate_value_history_end, annotate_value_end): Ditto.
4384 (annotate_display_begin, annotate_display_number_end): Ditto.
4385 (annotate_display_format, annotate_display_expression): Ditto.
4386 (annotate_display_expression_end, annotate_display_value): Ditto.
4387 (annotate_display_end, annotate_array_section_begin): Ditto.
4388 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4389 (annotate_elt, annotate_array_section_end): Ditto.
4390
bb1db049
AC
43912003-07-28 Andrew Cagney <cagney@redhat.com>
4392
4393 * regcache.c (struct regcache_descr): Update comments on
4394 nr_raw_registers.
4395 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4396 sizeof_raw_register_valid_p.
4397 (init_regcache_descr): Set nr_raw_registers and
4398 sizeof_raw_register_valid_p before calling
4399 init_legacy_regcache_descr.
4400
20e6603c
AC
44012003-07-28 Andrew Cagney <cagney@redhat.com>
4402
4403 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4404 MOD NUM_REGS.
4405
db742940
DJ
44062003-07-28 Daniel Jacobowitz <drow@mvista.com>
4407
4408 * thread.c (info_threads_command): Use get_selected_frame ().
4409 Check that there is at least one non-sentinel frame.
4410
ce7f4371
SC
44112003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4412
4413 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4414 (m68hc11_pop_frame): Remove.
4415 (m68hc11_frame_saved_pc): Remove.
4416 (m68hc11_frame_chain): Remove.
4417 (m68hc11_frame_init_saved_regs): Remove.
4418 (m68hc11_init_extra_frame_info): Remove.
4419 (m68hc11_store_struct_return): Remove.
4420 (m68hc11_saved_pc_after_call): Remove.
4421
1ea653ae
SC
44222003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4423
4424 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4425 frame unwind information.
4426 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4427 and adapted for frame unwinding.
4428 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4429 (m68hc11_unwind_pc): New function.
4430 (m68hc11_frame_unwind_cache): New function to analyze frames.
4431 (m68hc11_frame_this_id): New function to create new frame struct.
4432 (m68hc11_frame_prev_register): New function to unwind a register from
4433 the frame.
4434 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4435 (m68hc11_frame_p): New function for the above.
4436 (m68hc11_frame_base_address): New function to return fp of frame.
4437 (m68hc11_frame_args_address): Update for frame.
4438 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4439 (m68hc11_unwind_sp): New function.
4440 (m68hc11_unwind_dummy_id): New function.
4441 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4442 calls.
4443
c8a7f6ac
SC
44442003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4445
4446 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4447 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4448 when we are beyond the current pc.
4449
3dc990bf
SC
44502003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4451
4452 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4453 from m68hc11_push_arguments.
4454 (m68hc11_push_arguments): Remove.
4455 (m68hc11_push_return_address): Remove.
4456 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4457 handlers; remove deprecated_extra_stack_alignment_needed.
4458
222e5d1d
AC
44592003-07-27 Andrew Cagney <cagney@redhat.com>
4460
4461 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4462 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4463 REAL_PC and not the pointer.
4464 * hppa-hpux-tdep.c: Include frame.h
4465
a7e9a47e
AC
44662003-07-27 Andrew Cagney <cagney@redhat.com>
4467
4468 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4469 GDB_MULTI_ACH_PARTIAL.
4470
7e3dd49e
AC
44712003-07-27 Andrew Cagney <cagney@redhat.com>
4472
4473 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4474 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4475 operator at start and not end of line.
4476 (decode_prologue): Ditto.
4477 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4478 frame_unwind_register_unsigned instead of
4479 frame_unwind_unsigned_register.
4480 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4481 read_register.
4482 (m32r_push_dummy_call): Use register_size instead of
4483 REGISTER_RAW_SIZE.
4484 (m32r_frame_sniffer): Replace m32r_frame_p.
4485 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4486 * m32r-rom.c (report_transfer_performance): Delete extern
4487 declaration.
4488 (m32r_load, m32r_upload_command): Use print_transfer_performance
4489 instead of report_transfer_performance.
4490 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4491 / add_show_from_set.
4492
0880807f
AC
44932003-07-26 Andrew Cagney <cagney@redhat.com>
4494
4495 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4496 store_return_value and extract_struct_value_address.
4497
64ae9269
DJ
44982003-07-26 Daniel Jacobowitz <drow@mvista.com>
4499
4500 PR c++/1267
4501 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4502 NULL, default to the section containing PC.
4503
e286caf2
SC
45042003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4505
4506 * NEWS: Mention "regs" deprecated for m68hc11 too.
4507
4508 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4509 (m68hc11_print_register): New function to print out one register.
4510 (m68hc11_print_registers_info): New function to print registers.
4511 (show_regs): Deprecate and use the above.
4512 (m68hc11_gdbarch_init): Install the print_registers_info.
4513
705b278b
JJ
45142003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4515
4516 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4517 that we have a SIGTRAP before returning non-zero.
4518
63cd4198
EZ
45192003-07-23 Michal Ludvig <mludvig@suse.cz>
4520 Elena Zannoni <ezannoni@redhat.com>
4521
a8f4cde1 4522 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
4523 find_function_start_sal() returns empty record.
4524
6926787d
AS
45252003-07-23 Andreas Schwab <schwab@suse.de>
4526
4527 * ia64-tdep.c (ia64_print_insn): New function.
4528 (ia64_gdbarch_init): Set print_insn to it.
4529 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4530 deprecated_tm_print_insn_info.
4531
708cc1b6
MS
45322003-07-22 Michael Snyder <msnyder@redhat.com>
4533
4534 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4535 handle 8-bit returns (long long).
4536 (h8300h_extract_return_value): Ditto.
4537 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4538
aebd7893
AC
45392003-07-22 Andrew Cagney <cagney@redhat.com>
4540
4541 * gdbarch.c Include "gdb_obstack.h".
4542 (struct gdbarch): Add an "obstack".
4543 (alloc_gdbarch_data): Allocate the gdbarch data using
4544 GDBARCH_OBSTACK_CALLOC.
4545 (free_gdbarch_data): Delete function.
4546 (gdbarch_obstack_zalloc): New function.
4547 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4548 Assert that the architecture is not initialized.
4549 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4550 vector from the obstack.
4551 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4552 architecture obstack.
4553 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4554 (set_gdbarch_data): Assert that the data is not initialized.
4555 (struct gdbarch_data): Delete member "free".
4556 (register_gdbarch_data): Do not initialize "free".
4557 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 4558
153721e6
AC
45592003-07-22 Andrew Cagney <cagney@redhat.com>
4560
4561 * configure.in (build_warnings): Add -Wformat-nonliteral.
4562 * configure: Re-generate.
4563
c193f044 45642003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
4565
4566 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 4567
c3228f12
EZ
45682003-07-22 Elena Zannoni <ezannoni@redhat.com>
4569
4570 * findvar.c (read_var_value): Remove case for thread local storage
4571 variables. It is now entirely handled by the dwarf2 location
4572 expression code.
4573 * printcmd.c (address_info): Ditto.
4574 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4575 enumeration value.
4576 (struct symbol): Remove objfile field, which was used by
4577 LOC_THREAD_LOCAL_STATIC only.
4578 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4579 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4580 usage of objfile pointer.
4581 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4582 thread local variables.
4583 Add include of objfiles.h.
4584 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4585 storage variables.
4586 * Makefile.in (dwarf2loc.o): Update dependencies.
4587
aef9bcd2
AC
45882003-07-22 Andrew Cagney <cagney@redhat.com>
4589
4590 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4591 get_frame_base.
4592 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4593 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4594 (struct value): Add opaque declaration.
4595 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4596
d95a8903
AC
45972003-07-21 Andrew Cagney <cagney@redhat.com>
4598
4599 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4600 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4601
4db73d49
SC
46022003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4603
a8f4cde1 4604 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
4605 regcache_cooked_read_unsigned instead of read_register.
4606 (m68hc11_saved_pc_after_call): Likewise.
4607 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4608 instead of write_register.
4609 (m68hc11_register_type): New function.
4610 (m68hc11_register_virtual_type): Remove.
4611 (m68hc11_store_return_value): Convert to use the regcache.
4612 (m68hc11_extract_struct_value_address): Likewise.
4613 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4614 m68hc11_register_type; undeprecate store_return_value and
4615 extract_struct_value_address.
4616
ef2b8fcd
SC
46172003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4618
4619 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4620 and translate to use regcache.
4621 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4622
625b0b97
AC
46232003-07-18 Andrew Cagney <cagney@redhat.com>
4624
4625 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4626 * gdbarch.h, gdbarch.c: Re-generate.
4627 * i386-tdep.c (i386_gdbarch_init): Do not set
4628 DWARF2_BUILD_FRAME_INFO.
4629 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4630 unconditionally.
4631 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4632 DWARF2_BUILD_FRAME_INFO.
4633
22b0d388
AC
46342003-07-18 Andrew Cagney <cagney@redhat.com>
4635
4636 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4637 * disasm.c (gdb_disassemble_info): Initilize di.arch.
4638
1ce5d6dd
AC
46392003-07-18 Andrew Cagney <cagney@redhat.com>
4640
4641 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4642 frame_unwind_address_in_block, instead of frame_pc_unwind.
4643 (dwarf2_frame_cache): Ditto.
4644
e6e5e94c
AC
46452003-07-18 Andrew Cagney <cagney@redhat.com>
4646
4647 * user-regs.h (struct gdbarch): Declare opaque.
4648 * ui-out.h (struct ui_file): Declare opaque.
4649 * dwarf2-frame.h (struct frame_info): Declare opaque.
4650
5483d879
KW
46512003-07-18 Kris Warkentin <kewarken@qnx.com>
4652
4653 * nto-procfs.c: Clean ARI hits. Change #include <..> to
4654 #include "...".
4655 (procfs_meminfo): Change strerror to safe_strerror.
4656 (procfs_can_run): Remove K&R badness.
4657
278a7cf7
MS
46582003-07-17 Michael Snyder <msnyder@redhat.com>
4659
4660 * remote-sim.c: Comment typo fix.
4661
606e3b82
AC
46622003-07-17 Andrew Cagney <cagney@redhat.com>
4663
4664 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
4665 configure.
4666 * sparc-tdep.c (sparc_intreg_size): Make non-static.
4667 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4668 GDB_MULTI_ARCH_PARTIAL.
4669
c43af07c
EZ
46702003-07-17 Elena Zannoni <ezannoni@redhat.com>
4671
4672 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4673 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
4674 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
4675
3b85b0f1
TR
46762003-07-16 Theodore A. Roth <troth@openavr.org>
4677
4678 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
4679 found.
4680 (avr_frame_unwind_cache): Don't unwind FP for main.
4681 Update a comment.
4682 Save the computed prev_sp.
4683 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 4684 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
4685 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
4686
336d1bba
AC
46872003-07-16 Andrew Cagney <cagney@redhat.com>
4688
4689 * frame-base.h (frame_base_p_ftype): Delete definition.
4690 (frame_base_append_predicate): Delete declaration.
4691 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
4692 (frame_unwind_append_predicate): Delete declaration.
4693 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
4694 (append_predicate): Delete parameter "p".
4695 (frame_unwind_append_predicate): Delete function.
4696 (frame_unwind_append_sniffer): Update call to append_predicate.
4697 (frame_unwind_free): Delete function.
4698 (_initialize_frame_unwind): Pass NULL as "free" to
4699 register_gdbarch_data.
4700 (frame_unwind_init): Append the dummy_frame_sniffer.
4701 (frame_unwind_find_by_frame): Simplify.
4702 * frame-base.c (struct frame_base_table): Delete field "p".
4703 (append_predicate): Delete parameter "p".
4704 (frame_base_append_predicate): Delete function.
4705 (frame_base_append_sniffer): Update call to append_predicate.
4706 (frame_base_free): Delete function.
4707 (frame_base_find_by_frame): Simplify.
4708 (_initialize_frame_base): Pass NULL as "free" to
4709 register_gdbarch_data.
4710 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
4711 (x86_64_sigtramp_frame_sniffer): Replace
4712 "x86_64_sigtramp_frame_p".
4713 (x86_64_init_abi): Set the frame unwind sniffers.
4714 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
4715 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
4716 (m68k_gdbarch_init): Set the frame unwind sniffers.
4717 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
4718 "i386_sigtramp_frame_p".
4719 (i386_frame_sniffer): Replace "i386_frame_p".
4720 (i386_gdbarch_init): Set the frame unwind sniffers.
4721 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
4722 (avr_gdbarch_init): Set the frame unwind sniffers.
4723 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
4724 "alpha_sigtramp_frame_p"
4725 (alpha_heuristic_frame_sniffer): Replace
4726 "alpha_heuristic_frame_p".
4727 (alpha_gdbarch_init): Set the frame unwind sniffers.
4728 (alpha_dwarf2_init_abi): Ditto.
4729 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
4730 "alpha_debug_frame_p".
4731 (alpha_mdebug_frame_base_sniffer): Replace
4732 "alpha_mdebug_frame_base_p".
4733 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
4734 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
4735 (d10v_gdbarch_init): Set the frame unwind sniffer.
4736 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4737 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4738 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4739 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4740 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
4741 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
4742
48db5a3c
CV
47432003-07-16 Michael Snyder <msnyder@redhat.com>
4744
4745 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
4746 should go thru sh_dsp_register_sim_regno, else the dsp regs
4747 will not get the right values.
4748
47492003-07-16 Corinna Vinschen <vinschen@redhat.com>
4750
4751 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
4752 deprecated_store_floating by call to store_typed_floating.
4753 (sh_sh4_register_convert_to_raw): Substitute call to
4754 deprecated_extract_floating by call to extract_typed_floating.
4755
47562003-07-16 Corinna Vinschen <vinschen@redhat.com>
4757
4758 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
4759
47602003-07-16 Corinna Vinschen <vinschen@redhat.com>
4761
4762 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
4763 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
4764 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
4765 as possible.
4766 (do_pseudo_register): Remove.
4767 (sh_push_dummy_code): New function.
4768 (sh64_store_struct_return): Rename from sh_store_struct_return.
4769 Only called for sh64 now.
4770 (sh_extract_struct_value_address): Regcache'ify.
4771 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
4772 and accomodate new tasks.
4773 (sh64_push_return_address): Rename from sh_push_return_address.
4774 Only called for sh64 now.
4775 (sh_default_extract_return_value): Rename from sh_extract_return_value.
4776 Regcache'ify.
4777 (sh3e_sh4_extract_return_value): Regcache'ify.
4778 (sh_default_store_return_value): Ditto.
4779 (sh3e_sh4_store_return_value): Ditto.
4780 (sh_default_register_byte): Remove.
4781 (sh_sh4_register_byte): Remove.
4782 (sh_default_register_raw_size): Remove.
4783 (sh_sh4_register_raw_size): Remove.
4784 (sh_register_virtual_size): Remove.
4785 (sh_sh3e_register_virtual_type): Remove.
4786 (sh_sh3e_register_type): New function.
4787 (sh_sh4_register_virtual_type): Remove.
4788 (sh_sh4_register_type): New function.
4789 (sh_default_register_virtual_type): Remove.
4790 (sh_default_register_type): New function.
4791 (do_fv_register_info): Add parameters to accomodate call from
4792 sh_print_registers_info.
4793 (do_dr_register_info): Ditto.
4794 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
4795 Add parameters to accomodate call from sh_print_registers_info.
4796 (sh_do_fp_register): Ditto.
4797 (sh64_do_pseudo_register): Call do_dr_register_info,
4798 do_fv_register_info and sh_do_fp_register with default parameters.
4799 (sh_do_register): Add parameters to accomodate call from
4800 sh_print_registers_info.
4801 (sh_print_register): Ditto.
4802 (sh_print_registers_info): Rename from sh_do_registers_info.
4803 Add parameters to be used as gdbarch_print_registers_info
4804 implementation. Accomodate removed do_pseudo_register function
4805 pointer.
4806 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
4807 function pointer. Call sh_print_register with default parameters.
4808 (sh64_do_registers_info): Call sh_print_registers_info instead of
4809 sh_do_registers_info.
4810 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
4811 detection of deprecated vs. non-deprecated functionality.
4812 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
4813 function pointer assignments by direct function calls.
4814
e8a89fe2
AC
48152003-07-15 Andrew Cagney <cagney@redhat.com>
4816
4817 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
4818 (frame_register_unwind, create_new_frame): Ditto.
4819 (legacy_get_prev_frame, get_frame_type): Ditto.
4820 (get_frame_base_address): Use frame_base_find_by_frame.
4821 (get_frame_locals_address): Use frame_base_find_by_frame.
4822 (get_frame_args_address): Use frame_base_find_by_frame.
4823 * frame-base.h (frame_base_sniffer_ftype): Declare.
4824 (frame_base_append_sniffer): Declare.
4825 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
4826 * frame-base.c (append_predicate): Add a "sniffer" parameter.
4827 (frame_base_append_sniffer): New function.
4828 (frame_base_append_predicate): Add a NULL sniffer.
4829 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
4830 (struct frame_base_table): Add "sniffer".
4831 (frame_base_free): Free the "sniffer" table.
4832 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
4833 (frame_unwind_append_sniffer): Declare.
4834 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4835 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
4836 (struct frame_unwind_table): Add "sniffer", delete "middle".
4837 (append_predicate): Add "sniffer" parameter, append the sniffer.
4838 (frame_unwind_init): Update append_predicate call.
4839 (frame_unwind_append_sniffer): New function.
4840 (frame_unwind_append_predicate): Update append_predicate call.
4841 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4842
0714963c
AC
48432003-07-15 Andrew Cagney <cagney@redhat.com>
4844
4845 * frame.c (get_prev_frame): Move disabled inside_entry_func to
4846 before code inhibiting repeated unwind attempts. Add to
4847 commentary on that test's problems.
4848 * blockframe.c (inside_main_func): Look for "main" in the minimal
4849 symbol table.
4850 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
4851 identical.
4852
d9170e22
AC
48532003-07-15 Andrew Cagney <cagney@redhat.com>
4854
4855 * complaints.c (struct explanation): Define.
4856 (struct complaints): Change type of "explanation" to "struct
4857 explanation".
4858 (symfile_explanations): Convert to a "struct explanation" table.
4859 (vcomplaint): Update.
4860
eba29c8c
ML
48612003-07-15 Michal Ludvig <mludvig@suse.cz>
4862
4863 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 4864 (supply_gregset, fill_gregset): Call
eba29c8c
ML
4865 x86_64_linux_(fill,supply)_gregset functions.
4866 * x86-64-linux-tdep.c (USER_*): New defines.
4867 (user_to_gdb_regmap, x86_64_core_fns): New structure.
4868 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
4869 New functions.
4870 (fetch_core_registers): Ditto.
4871 (_initialize_x86_64_linux_tdep): Call add_core_fns().
4872 * x86-64-linux-tdep.h: New file.
4873 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
4874 and core-regset.o.
4875 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
4876
68cc0bfb
MK
48772003-07-13 Mark Kettenis <kettenis@gnu.org>
4878
88a115f7
MK
4879 * x86-64-tdep.c (x86_64_store_return_value): Use
4880 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 4881
68cc0bfb
MK
4882 * configure.host: Add x86_64-*-freebsd*.
4883 * configure.tgt: Add x86_64-*-freebsd*.
4884 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
4885 * amd64fbsd-nat.c: New file.
4886 * amd64fbsd-tdep.c: New file.
4887 * config/i386/nm-fbsd64.h: New file.
4888 * config/i386/fbsd64.mh: New file.
4889 * config/i386/fbsd64.mt: New file.
4890
138e7be5
MK
48912003-07-11 Mark Kettenis <kettenis@gnu.org>
4892
4893 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
4894 `sc_regs_offset' and `sc_fpregs_offset'.
4895 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
4896 SIGFRAME_FPREGSAVE_OFF): Remove defines.
4897 (alpha_sigtramp_register_address): Rewrite to use new members of
4898 `struct gdbarch_tdep'.
4899 (alpha_gdbarch_init): Initialize new members of struct
4900 gdbarch_tdep'.
4901 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
4902 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
4903 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
4904 (alphafbsd_pc_in_sigtramp): Implement.
4905 (alphafbsd_sigtramp_offset): New function.
4906 (alphafbsd_sigcontext_addr): New function.
4907 (alphafbsd_init_abi): Initialize signal trampoline related members
4908 of `struct gdbarch_tdep'.
4909 (_initialize_alphafbsd_tdep): Add prototype.
4910
95303a68
TR
49112003-07-11 Theodore A. Roth <troth@openavr.org>
4912
ba292e4c
TR
4913 * Makefile.in (install-only): Quote sed expression when generating
4914 transformed_name.
95303a68 4915
6896c0c7
RH
49162003-07-11 Richard Henderson <rth@redhat.com>
4917
4918 * Makefile.in (dwarf2-frame.o): Add complaints_h.
4919 * dwarf2-frame.c: Include complaints.h.
4920 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
4921 variable initialization; return NULL on error.
4922 (decode_frame_entry): New.
4923
8edd5d01
AC
49242003-07-11 Andrew Cagney <cagney@redhat.com>
4925
c4a09524
AC
4926 * frame.h (frame_address_in_block): Delete declaration.
4927 * blockframe.c (frame_address_in_block): Delete function.
4928 (get_frame_block): Use get_frame_address_in_block.
4929 (block_innermost_frame): Ditto.
4930 * stack.c (print_frame, backtrace_command_1): Ditto.
4931
8edd5d01
AC
4932 * frame.h (get_frame_address_in_block): Declare.
4933 (frame_unwind_address_in_block): Declare.
4934 * frame.c (frame_unwind_address_in_block): New function.
4935 (get_frame_address_in_block): New function.
4936
f7968451
AC
49372003-07-10 Andrew Cagney <cagney@redhat.com>
4938
4939 * gdbarch.sh: Simplify predicate methods. Remove need to provide
4940 pre-default. Note: re-generate has no effect.
a8f4cde1 4941
ae99b398
AC
49422003-07-10 Andrew Cagney <cagney@redhat.com>
4943
4944 * gdbarch.sh: When a variable, but not a function, compare against
4945 0. Fix problem in previous patch.
4946 * gdbarch.c: Re-generate.
a8f4cde1 4947
956ac328
AC
49482003-07-10 Andrew Cagney <cagney@redhat.com>
4949
4950 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
4951 functions against NULL, not 0.
4952 * gdbarch.c: Re-generate.
a8f4cde1 4953
287c3240
FF
49542003-07-10 Fred Fish <fnf@ninemoons.com>
4955
4956 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
4957 null string instead of a null pointer.
4958 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
4959
32f63c4b
MS
49602003-07-09 Michael Snyder <msnyder@redhat.com>
4961
4962 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
4963
402ecd56
MK
49642003-07-09 Mark Kettenis <kettenis@gnu.org>
4965
4966 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
4967 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
4968 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
4969 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
4970 * x86-64-tdep.c: ... from here.
4971
c481dac7
AS
49722003-07-09 Andreas Schwab <schwab@suse.de>
4973
4974 * m68k-tdep.h (enum struct_return): Define.
4975 (struct gdbarch_tdep): Add struct_return.
4976 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
4977 bytes are padded to the right, not to the left. Pass struct value
4978 address in register %a1, not on stack.
4979 (m68k_use_struct_convention): New function.
4980 (m68k_gdbarch_init): Set use_struct_convention. Initialize
4981 struct_return in tdep to pcc_struct_return.
4982 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
4983 reg_struct_return.
4984
a8f4cde1 49852003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 4986
a8f4cde1 4987 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 4988
96a4ee76
AC
49892003-07-09 Andrew Cagney <cagney@redhat.com>
4990
4991 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
4992 Add comments about the checks.
4993
1517c6d1
AC
49942003-07-08 Andrew Cagney <cagney@redhat.com>
4995
4996 * Makefile.in: Make dependency section headers consistent.
4997 (config_h): Move to $BUILD headers section.
4998 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
4999 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5000 (ada-exp.tab.c): Move to YACC/LEX section.
5001 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5002 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5003
dc5dd1eb
KW
50042003-07-08 Kris Warkentin <kewarken@qnx.com>
5005
5006 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
5007 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5008 of strerror with safe_strerror, use ISO C function definitions,
5009 and replace instances of sprintf with snprintf.
dc5dd1eb 5010
612dde91
AC
50112003-07-07 Andrew Cagney <cagney@redhat.com>
5012
5013 * frame.c (get_prev_frame): Enable check for identical frames.
5014 Update comments. Update error messages.
5015
492c11d3
JB
50162003-07-07 Joel Brobecker <brobecker@gnat.com>
5017
5018 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5019
376a5a49
JB
50202003-07-07 Joel Brobecker <brobecker@gnat.com>
5021
5022 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5023 sort_symtab_syms, no longer necessary.
5024
22b4a9ad
JB
50252003-07-07 Joel Brobecker <brobecker@gnat.com>
5026
5027 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5028
5bbcb741
JB
50292003-07-07 Joel Brobecker <brobecker@gnat.com>
5030
5031 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5032 (mips_register_byte): Likewise.
5033
c139e7d9
DJ
50342003-07-07 Daniel Jacobowitz <drow@mvista.com>
5035
5036 * Makefile.in (sparc_tdep_h): New.
5037 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5038 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5039 * sparc-linux-nat.c: Include "sparc-tdep.h".
5040 * sparc-nat.c: Likewise.
5041 * sparc-tdep.c: Likewise.
5042 * sparc64nbsd-nat.c: Likewise.
5043 * sparcnbsd-nat.c: Likewise.
5044 * sparcnbsd-tdep.c: Likewise.
5045 * sparc-tdep.h: New file.
5046 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5047 and sparc_npc_regnum.
5048
fd8f87c5
DJ
50492003-07-07 Daniel Jacobowitz <drow@mvista.com>
5050
5051 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5052 (mips_linux_cannot_store_register): List supported instead of
5053 unsupported registers.
5054
13adf674
DJ
50552003-07-07 Daniel Jacobowitz <drow@mvista.com>
5056
5057 * disasm.c (dump_insns): Separate instructions from addresses.
5058
8de307e0
AS
50592003-07-07 Andreas Schwab <schwab@suse.de>
5060
5061 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5062 dependencies.
5063 * m68k-tdep.c (NUM_FREGS): Delete.
5064 (SIG_PC_FP_OFFSET): Delete.
5065 (TARGET_M68K): Delete.
5066 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5067 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5068 P_MOVEL_SP, P_MOVEML_SP): Define.
5069 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5070 P_TRAP): Delete.
5071 (m68k_register_raw_size): Delete.
5072 (m68k_register_virtual_size): Delete.
5073 (m68k_register_type): Renamed from m68k_register_virtual_type and
5074 add gdbarch argument.
5075 (m68k_store_struct_return): Delete.
5076 (m68k_deprecated_extract_return_value): Delete.
5077 (m68k_deprecated_extract_struct_value_address): Delete.
5078 (m68k_frame_chain): Delete.
5079 (m68k_frame_saved_pc): Delete.
5080 (m68k_fix_call_dummy): Delete.
5081 (m68k_push_dummy_frame): Delete.
5082 (m68k_pop_frame): Delete.
5083 (m68k_extract_return_value): New function.
5084 (m68k_store_return_value): Rewrite using regcache.
5085 (m68k_extract_struct_value_address): Rewrite using regcache.
5086 (m68k_push_dummy_call): New function.
5087 (struct m68k_frame_cache): Define.
5088 (m68k_alloc_frame_cache): New function.
5089 (m68k_analyze_frame_setup): New function.
5090 (m68k_analyze_register_saves): New function.
5091 (m68k_analyze_prologue): New function.
5092 (m68k_skip_prologue): Rewrite using above functions.
5093 (m68k_unwind_pc): New function.
5094 (m68k_frame_cache): New function.
5095 (m68k_frame_this_id): New function.
5096 (m68k_frame_prev_register): New function.
5097 (m68k_frame_unwind): New variable.
5098 (m68k_frame_p): New function.
5099 (m68k_sigtramp_frame_cache): New function.
5100 (m68k_sigtramp_frame_this_id): New function.
5101 (m68k_sigtramp_frame_prev_register): New function.
5102 (m68k_sigtramp_frame_unwind): New variable.
5103 (m68k_sigtramp_frame_p): New function.
5104 (m68k_frame_base_address): New function.
5105 (m68k_frame_base): New function.
5106 (m68k_unwind_dummy_id): New function.
5107 (fill_gregset): Use regcache_collect.
5108 (fill_fpregset): Likewise.
5109 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5110 defined.
5111 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5112 deprecated_init_frame_pc, deprecated_store_struct_return,
5113 deprecated_extract_return_value, deprecated_store_return_value,
5114 deprecated_frame_chain, deprecated_frame_saved_pc,
5115 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5116 deprecated_register_virtual_size,
5117 deprecated_max_register_raw_size,
5118 deprecated_max_register_virtual_size,
5119 deprecated_register_virtual_type, deprecated_register_size,
5120 deprecated_register_byte, deprecated_register_bytes,
5121 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5122 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5123 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5124 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5125 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5126 deprecated_push_dummy_frame, deprecated_pop_frame,
5127 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5128 only if SYSCALL_TRAP is defined. Set extract_return_value,
5129 store_return_value, extract_struct_value_address, register_type,
5130 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5131 predicates.
5132 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5133 M68K_MAX_REGISTER_SIZE): Define.
5134 (struct m68k_sigtramp_info): Define.
5135 (struct gdbarch_tdep): Add get_sigtramp_info.
5136 * m68klinux-nat.c (fetch_register): Use register_size instead of
5137 REGISTER_RAW_SIZE. Don't put assignment in if.
5138 (store_register): Likewise.
5139 (fetch_inferior_registers): Likewise.
5140 (store_inferior_registers): Likewise.
5141 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5142 (m68k_linux_frame_saved_pc): Delete.
5143 (m68k_linux_sigcontext_reg_offset,
5144 m68k_linux_ucontext_reg_offset): Define.
5145 (m68k_linux_get_sigtramp_info): New function.
5146 (m68k_linux_extract_return_value): Rewrite using regcache.
5147 (m68k_linux_store_return_value): Likewise.
5148 (m68k_linux_extract_struct_value_address): Likewise.
5149 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5150 Don't set deprecated_frame_saved_pc,
5151 deprecated_extract_return_value, deprecated_store_return_value,
5152 deprecated_extract_struct_value_address. Set
5153 extract_return_value, store_return_value,
5154 extract_struct_value_address.
5155
eb8bc282
AC
51562003-07-07 Andrew Cagney <cagney@redhat.com>
5157
5158 * expprint.c: Include "user-regs.h" instead of "frame.h".
5159 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5160 frame_map_regnum_to_name.
5161 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5162 (frame_map_name_to_regnum): Simplify, call
5163 user_reg_map_name_to_regnum.
5164 (frame_map_regnum_to_name): Simplify, call
5165 user_reg_map_regnum_to_name.
5166 (frame_register_unwind): Update.
5167 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5168 (_initialize_frame_reg): Call user_reg_add_builtin.
5169 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5170 (value_of_register): Use value_of_user_reg.
5171 * eval.c (evaluate_subexp_standard): Update.
5172 * parse.c (write_dollar_variable): Update.
5173 * d10v-tdep.c (d10v_print_registers_info): Update.
5174 * infcmd.c (registers_info): Update.
5175 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5176 (builtin_regs_h): Delete macro.
5177 (user_regs_h): Define.
5178 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5179 (builtin-regs.o): Delete target.
5180 (user-regs.o): Specify dependencies.
5181 (expprint.o): Update dependencies.
5182 (findvar.o): Update dependencies.
5183 (frame.o): Update dependencies.
5184 (std-regs.o): Update dependencies.
5185
9f476a01
CF
51862003-07-06 Christopher Faylor <cgf@redhat.com>
5187
5188 * win32-nat.c (solib_symbols_add): Use one variable for all section
5189 address stuff. Pass variable rather than address of variable to
5190 safe_symbol_file_add.
5191
a731b831
AS
51922003-07-06 Andreas Schwab <schwab@suse.de>
5193
5194 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5195
9f83329d
JB
51962003-07-04 Joel Brobecker <brobecker@gnat.com>
5197
5198 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5199
27e28cc5
KW
52002003-07-04 Kris Warkentin <kewarken@qnx.com>
5201
5202 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5203
52042003-07-04 Kris Warkentin <kewarken@qnx.com>
5205
5206 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5207 * config/i386/nto.mh: New file.
5208 * config/i386/nm-nto.h: New file.
5209 * configure.host: Add i[3456]86-*-nto*.
5210
100f2e98
JB
52112003-07-03 Joel Brobecker <brobecker@gnat.com>
5212
5213 * remote-vx.c (vx_add_symbols): Fix compilation error.
5214
e23457df
AC
52152003-07-03 Andrew Cagney <cagney@redhat.com>
5216
5217 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5218 * gdbarch.h, gdbarch.c: Re-generate.
5219 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5220 (legacy_register_name): Declare.
5221 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5222 (REGISTER_NAME): Define.
5223 * sparc-tdep.c (legacy_register_name): New function.
5224 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5225 (REGISTER_NAME): Define.
5226 (hppa64_register_name): Declare.
5227 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5228 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5229 (hppa64_register_name): New function.
5230 (hppa_register_name): New function.
5231 * arch-utils.c (legacy_register_name): Delete.
5232 * arch-utils.h (legacy_register_name): Delete.
5233
38caaeec
DJ
52342003-07-03 Daniel Jacobowitz <drow@mvista.com>
5235
5236 * cli/cli-interp.c (cli_interpreter_resume): Update the
5237 cli_uiout's stream to gdb_stdout.
5238
dadd712e
AC
52392003-07-03 Andrew Cagney <cagney@redhat.com>
5240
5241 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5242 predicate.
5243 * gdbarch.h, gdbarch.c: Re-generate.
5244 * regcache.c (init_regcache_descr): Use legacy code when either
5245 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5246
c7f1390e
DJ
52472003-07-02 Daniel Jacobowitz <drow@mvista.com>
5248
5249 * NEWS: Move "set logging" entry into GDB 6.0 section.
5250
4bc8c588
JB
52512003-07-02 Jim Blandy <jimb@redhat.com>
5252
a9dd42f1
JB
5253 * s390-tdep.c (struct frame_extra_info): new member:
5254 'stack_bought_valid'.
5255 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5256 initialize fextra_info->stack_bought.
5257 (s390_frameless_function_invocation): Don't trust the value of
5258 fextra_info_ptr->stack_bought unless
5259 fextra_info->stack_bought_valid is set.
5260
4bc8c588
JB
5261 New S390 prologue analyzer.
5262 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5263 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5264 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5265 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5266 compute_x_addr, s390_on_stack, s390_store,
5267 s390_get_signal_frame_info): New functions.
5268 (S390_NUM_SPILL_SLOTS): New macro.
5269 (s390_get_frame_info): Rewritten.
5270 (is_arg_reg): Deleted.
5271
5272 Break out the decoding of S/390 instructions into separate
5273 functions, to make it more legible, and easier to check
5274 against the spec.
5275 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5276 is_rx, is_rxe): New functions.
5277 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5278 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5279 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5280 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5281 enums for opcode values. (Is this an improvement?)
5282
fd13a04a
AC
52832003-07-02 Andrew Cagney <cagney@redhat.com>
5284
5285 * i386-tdep.c: Revert change committed as part of trad-frame code
5286 below.
5287
3f8091c1
DJ
52882003-07-02 Daniel Jacobowitz <drow@mvista.com>
5289
5290 * breakpoint.c (insert_catchpoint): Make static.
5291
8dd5115e
AS
52922003-07-02 Andreas Schwab <schwab@suse.de>
5293
5294 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5295 former ia64_push_arguments and ia64_push_return_address, and use
5296 regcache functions instead of read/write_register.
5297 (ia64_gdbarch_init): Set push_dummy_call instead of
5298 deprecated_push_arguments and deprecated_push_return_address.
5299
a2229c23
AJ
53002003-07-01 Andreas Jaeger <aj@suse.de>
5301
5302 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5303 before the call.
5304 Set %rax only to number of SSE registers used.
5305
3b3850e8
AC
53062003-07-01 Andrew Cagney <cagney@redhat.com>
5307
5308 * trad-frame.h: Update comments, a -1 .addr is reserved.
5309 (trad_frame_value_p, trad_frame_addr_p): Declare.
5310 (trad_frame_reg_p): Declare.
5311 (trad_frame_set_value): Rename trad_frame_register_value.
5312 (trad_frame_set_unknown): Declare.
5313 * trad-frame.c (trad_frame_realreg_p): New function.
5314 (trad_frame_addr_p, trad_frame_value_p): New function.
5315 (trad_frame_set_unknown): New function.
5316 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5317 (trad_frame_prev_register): Use trad_frame_realreg_p,
5318 trad_frame_addr_p and trad_frame_value_p.
5319 (trad_frame_set_value): Rename trad_frame_register_value.
5320 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5321 and trad_frame_set_value.
a2229c23 5322
4d819d0e
JB
53232003-06-30 Jim Blandy <jimb@redhat.com>
5324
5325 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5326 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5327 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5328 for 16 registers, and then 32 more bytes.
5329 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5330 New macros.
5331 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5332 Move up in the file, since it's now used by is_simple_arg.
5333 (is_simple_arg): Don't assume registers are four bytes long.
5334 Exclude all double arguments. Extended floats are not simple
5335 args.
5336 (is_power_of_two): New function.
5337 (pass_by_copy_ref): Call is_power_of_two, and check that the
5338 length fits in a register, rather than listing all the acceptable
5339 sizes. Extended floats are not passed by reference.
5340 (s390_push_arguments): Don't assume registers are four bytes long.
5341 Reserve an argument register to point to the buffer for structures
5342 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5343 S390_STACK_FRAME_OVERHEAD.
5344
1ad828f1
AS
53452003-06-30 Andreas Schwab <schwab@suse.de>
5346
5347 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5348 format error message.
5349
39b00981
JB
53502003-06-30 Joel Brobecker <brobecker@gnat.com>
5351
5352 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5353
b2a7f303
DC
53542003-06-30 David Carlton <carlton@kealia.com>
5355
5356 Band-aid for PR c++/1245.
5357 * Makefile.in (cp-support.o): Depend on complaints_h.
5358 * cp-support.c: Include complaints.h. Add declaration for
5359 find_last_component.
5360 (cp_find_first_component): Separate code into
5361 cp_find_first_component_aux.
5362 (cp_find_first_component_aux): Call demangled_name_complaint.
5363 (demangled_name_complaint): New.
5364
a257b5bb
AC
53652003-06-30 Andrew Cagney <cagney@redhat.com>
5366
5367 * remote.c (remote_write_bytes): Explicitly compute and then use
5368 the payload size. Update comments to reflect. Fixes problem of
5369 GDB not sending small packets as found by Fred Fish.
5370
0a2cfde4
AC
53712003-06-30 Andrew Cagney <cagney@redhat.com>
5372
5373 * remote.c (remote_async_wait): Fix -Wformat problem.
5374
3fcb8548
AC
53752003-06-29 Andrew Cagney <cagney@redhat.com>
5376
5377 * remote.c (remote_wait): Call error, and not warning, when the
5378 packet is corrupt.
5379 (remote_async_wait): Ditto.
5380
9f9970a3
DJ
53812003-06-29 Daniel Jacobowitz <drow@mvista.com>
5382
5383 * sparc-tdep.c (sparc_y_regnum): Make external again.
5384
83a8ccca
DJ
53852003-06-29 Daniel Jacobowitz <drow@mvista.com>
5386
5387 * cli/cli-logging.c (pop_output_files): Add void to function
5388 definition.
5389
d2cf594a
AC
53902003-06-29 Andrew Cagney <cagney@redhat.com>
5391
5392 * frame.c (frame_register_unwind): Use unsigned char when dumping
5393 the buffer contents.
5394
0fac0b41
DJ
53952003-06-28 Daniel Jacobowitz <drow@mvista.com>
5396
5397 * cli/cli-logging.c: New file.
5398 * cli-out.c (struct ui_out_data): Add original_stream.
5399 (cli_redirect): New function.
5400 (cli_ui_out_impl): Add cli_redirect.
5401 (cli_out_new): Initialize original_stream.
5402 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5403 (uo_redirect, ui_out_redirect): New.
5404 * ui-out.h (struct ui_out_impl): Add redirect member.
5405 (redirect_ftype): New.
5406 (ui_out_redirect): Add prototype.
5407 * Makefile.in: Add rules for cli-logging.c.
5408 * NEWS: Mention "set logging".
5409
88a07d7c
EZ
54102003-06-27 Elena Zannoni <ezannoni@redhat.com>
5411
5412 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5413
4eb58876
AC
54142003-06-27 Andrew Cagney <cagney@redhat.com>
5415
5416 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5417 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5418 * avr-tdep.c (avr_call_dummy_address): Delete function.
5419 (avr_gdbarch_init): Do not set call_dummy_address.
5420
1549f619
EZ
54212003-06-27 Elena Zannoni <ezannoni@redhat.com>
5422
5423 * symfile.c (syms_from_objfile): Move variables to inner block.
5424 Move the checks for the non-mainline case a bit earlier to avoid
5425 doing some useless computations.
5426
3cb3398d
EZ
54272003-06-27 Elena Zannoni <ezannoni@redhat.com>
5428
5429 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5430
3799ccc6
EZ
54312003-06-26 Elena Zannoni <ezannoni@redhat.com>
5432
5433 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5434 sections.
5435
ce1f6491
MC
54362003-06-26 Michael Chastain <mec@shout.net>
5437
5438 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5439 gdb/testsuite/gdb.c++/pr-1210.exp.
5440
d958dfd0
AC
54412003-06-26 Andrew Cagney <cagney@redhat.com>
5442
5443 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5444 altivec_expression.h and altivec_registers.h.
5445
d31431ed
AC
54462003-06-26 Andrew Cagney <cagney@redhat.com>
5447
5448 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5449 info->mach when MIPS16. Patch suggested by Fred Fish.
5450
714b1282
AC
54512003-06-26 Andrew Cagney <cagney@redhat.com>
5452
5453 * utils.c (internal_vproblem): Print the problem to a reason
5454 buffer and then pass to query. Make the msg variable more local.
5455
42efa47a
AC
54562003-06-26 Andrew Cagney <cagney@redhat.com>
5457
5458 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5459 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5460 * gdbarch.h, gdbarch.c: Re-generate.
5461 * frame-base.c (default_frame_args_address): Update. Use
5462 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5463 not available.
5464 (default_frame_locals_address): Ditto for
5465 DEPRECATED_FRAME_LOCALS_ADDRESS.
5466 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5467 (vax_frame_num_args): Update.
5468 (vax_gdbarch_init): Update.
5469 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5470 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5471 * mcore-tdep.c (mcore_gdbarch_init): Update.
5472 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5473 * ia64-tdep.c (ia64_gdbarch_init): Update.
5474 * symtab.h (address_class): Update comments.
5475 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5476 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5477 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5478 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5479 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5480 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5481 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5482 * alpha-mdebug-tdep.c: Update.
5483 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5484
8ffd9b1b
AJ
54852003-06-26 Andreas Jaeger <aj@suse.de>
5486
5487 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5488 of SSE registers so that varargs functions work. Rework handling
5489 of passing arguments on the stack.
5490 (x86_64_store_return_value): Return double and float values in SSE
5491 register.
5492
e8ac10a6
MC
54932003-06-24 Michael Chastain <mec@shout.net>
5494
5495 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5496 the "constructor breakpoints ignored" bug.
5497
986af8e6
DC
54982003-06-25 David Carlton <carlton@kealia.com>
5499
5500 * MAINTAINERS: Update e-mail address.
5501
d64558a5
JB
55022003-06-24 Jim Blandy <jimb@redhat.com>
5503
e538d2d7
JB
5504 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5505
02631ec0
JB
5506 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5507 function.
5508 (ppc_linux_init_abi): Register it as the
5509 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5510
e716d87a
JB
5511 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5512 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5513 method.
5514
d64558a5
JB
5515 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5516 (ppc64_standard_linkage_target): Use it.
5517
449a5da4
AC
55182003-06-23 Andrew Cagney <cagney@redhat.com>
5519
5520 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5521 for 0 "int0" and 4 "int32" sized registers.
5522 * gdbtypes.c (builtin_type_int0): Define.
5523 (build_gdbtypes): Initialize builtin_type_int0.
5524 * gdbtypes.h (builtin_type_int0): Declare.
5525
b2a02dda
SC
55262003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5527
5528 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5529 as characters are unsigned.
5530
fba3138e
DJ
55312003-06-22 Daniel Jacobowitz <drow@mvista.com>
5532
5533 PR gdb/1179
5534 * dwarfread.c (struct_type): Skip static fields without crashing.
5535
f6c8180b
AC
55362003-06-22 Andrew Cagney <cagney@redhat.com>
5537
5538 GDB 6.0 branch created.
f2c06f52
AC
5539 * README: Update.
5540 * PROBLEMS: Update. Empty.
5541 * NEWS: Update.
f6c8180b 5542
ae822768
DJ
55432003-06-22 Daniel Jacobowitz <drow@mvista.com>
5544
5545 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5546 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5547
261de166
AC
55482003-06-22 Andrew Cagney <cagney@redhat.com>
5549
5550 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5551 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5552 Velikov.
5553
30e94205
DJ
55542003-06-22 Daniel Jacobowitz <drow@mvista.com>
5555
5556 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5557 compilers.
5558
9e14d721
DJ
55592003-06-21 Daniel Jacobowitz <drow@mvista.com>
5560
5561 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5562 argument of val_print.
5563 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5564 to the address argument of baseclass_offset or target_read_memory.
5565 Do add it to the argument of cp_print_value_fields.
5566
a4b8ebc8
AC
55672003-06-21 Andrew Cagney <cagney@redhat.com>
5568
5569 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5570 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5571 instead of 0..NUM_REGS.
5572 (mips_register_reggroup_p): New function.
5573 (mips_pseudo_register_write): New function.
5574 (mips_pseudo_register_read): New function.
5575 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5576 based on the register's type.
5577 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5578 cooked.
5579 (mips_get_saved_register): Simplify. Assert that REGNO is a
5580 pseudo / cooked.
5581 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5582 (mips_register_type): Replace mips_register_virtual_type. Map
5583 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5584 when available.
5585 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5586 that the register is cooked / virtual.
5587 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5588 Only get the extra info when needed.
5589 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5590 (mips32_heuristic_proc_desc): Fetch the cooked register.
5591 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5592 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5593 (mips_print_register): Use gdbarch_register_type, instead of
5594 REGISTER_VIRTUAL_TYPE.
5595 (print_gp_register_row): Use gdbarch_register_type, instead of
5596 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
5597 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5598 Print the pseudo / cooked registers.
5599 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5600 Print the pseudo / cooked registers.
5601 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
5602 REG_NUM is pseudo / cooked.
5603 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5604 (mips_n32n64_xfer_return_value): Ditto.
5605 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5606 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5607 (mips_register_sim_regno): New function.
5608 (mips_gdbarch_init): Set deprecated_register_byte,
5609 register_group_p, pseudo_register_write, pseudo_register_read,
5610 register_sim_regno, and num_pseudo_regs. Set register_type,
5611 instead of register_virtual_type.
5612 * Makefile.in (mips-tdep.o): Update dependencies.
5613 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5614 REGISTER_VIRTUAL_TYPE.
5615 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5616 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5617 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5618 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5619 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5620
325ed089
DJ
56212003-06-21 Daniel Jacobowitz <drow@mvista.com>
5622
5623 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5624 * cli/cli-cmds.c: Include "gdb_vfork.h".
5625 (shell_escape): Use vfork.
5626
f0e7d0e8
AC
56272003-06-21 Andrew Cagney <cagney@redhat.com>
5628
c57bb9fa
AC
5629 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5630 32 bit floating-point register saves.
5631
6e51443a
AC
5632 * frame.h (deprecated_unwind_get_saved_register): Delete.
5633 * frame.c (deprecated_unwind_get_saved_register): Delete function.
5634 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5635 and deprecated_get_next_frame_hack instead of
5636 deprecated_unwind_get_saved_register.
5637
ed183c7c
AC
5638 * mips-tdep.c (mips_dump_tdep): Do not print
5639 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5640
f0e7d0e8
AC
5641 * frame.c (get_frame_register): New function.
5642 (frame_unwind_register_signed): New function.
5643 (get_frame_register_signed): New function.
5644 (frame_unwind_register_unsigned): New function.
5645 (get_frame_register_unsigned): New function.
5646 * frame.h: Add comments on naming schema.
5647 (get_frame_register, frame_unwind_register_signed): Declare.
5648 (get_frame_register_signed, get_frame_register_signed): Declare.
5649 (frame_unwind_register_unsigned): Declare.
5650 (get_frame_register_unsigned): Declare.
5651
2224d941
TR
56522003-06-20 Theodore A. Roth <troth@openavr.org>
5653
5654 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5655
8619218d
TR
56562003-06-20 Theodore A. Roth <troth@openavr.org>
5657
5658 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5659 (avr_read_sp): Ditto.
5660
0b1b50c0
DJ
56612003-06-20 Daniel Jacobowitz <drow@mvista.com>
5662
5663 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5664 * config/arm/nm-linux.h: Likewise.
5665 * config/arm/tm-linux.h: Likewise.
5666 * config/ia64/nm-linux.h: Likewise.
5667 * config/ia64/tm-ia64.h: Likewise.
5668 * config/s390/tm-linux.h: Likewise.
5669 * config/s390/tm-s390.h: Likewise.
5670 * s390-nat.c: Likewise.
5671 * s390-tdep.c: Likewise.
5672
5673 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
5674 * config/ia64/linux.mt: Likewise.
5675 * config/m68k/linux.mh: Likewise.
5676 * config/mips/linux.mt: Likewise.
5677 * config/powerpc/linux.mh: Likewise.
5678 * config/sh/linux.mt: Likewise.
5679
c8c18e65
KW
56802003-06-19 Kris Warkentin <kewarken@qnx.com>
5681
5682 * solib.c (solib_open): Change tests for whether to search
5683 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
5684 comments.
5685
dcccef2e
TR
56862003-06-19 Theodore A. Roth <troth@openavr.org>
5687
5688 * avr-tdep.c (avr_frame_address): Delete function.
5689 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
5690 set_gdbarch_frame_args_address.
5691
5861a190
AC
56922003-06-19 Andrew Cagney <cagney@redhat.com>
5693
5694 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
5695 (REGISTER_CONVERT_FROM_TYPE): Delete.
5696 (mips_register_convert_to_type): Delete declaration.
5697 (mips_register_convert_from_type): Delete declaration.
5698 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
5699 kernel/.
5700
0274a8ce
MS
57012003-06-19 Michael Snyder <msnyder@redhat.com>
5702
5703 * linux-nat.h: New file.
5704 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 5705 * lin-lwp.c: Include linux-nat.h.
0274a8ce 5706 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 5707 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
5708 (linux_make_note_section): Iterate over lwps instead of threads.
5709 (linux_do_thread_registers): Use lwp instead of merged pid.
5710 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 5711 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
5712 Add dependency on linux_nat_h.
5713
adf5f719
TR
57142003-06-19 Theodore A. Roth <troth@openavr.org>
5715
5716 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
5717
6766a268
DJ
57182003-06-19 Daniel Jacobowitz <drow@mvista.com>
5719
5720 * varobj.c (get_type, get_target_type): Use check_typedef.
5721
1171114a
DJ
57222003-06-19 Daniel Jacobowitz <drow@mvista.com>
5723
5724 * breakpoint.c (insert_catchpoint): Call internal_error.
5725
adcf68a2
TR
57262003-06-19 Theodore A. Roth <troth@openavr.org>
5727
5728 * avr-tdep.c (avr_push_dummy_code): Delete function.
5729 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
5730
ea67f13b
DJ
57312003-06-19 Daniel Jacobowitz <drow@mvista.com>
5732
5733 * arch-utils.c (default_prepare_to_proceed): Remove.
5734 (generic_prepare_to_proceed): Remove.
5735 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
5736 (generic_prepare_to_proceed): Remove prototype.
5737 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
5738 * gdbarch.c: Regenerate.
5739 * gdbarch.h: Regenerate.
5740 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
5741 * hppah-nat.c (hppa_switched_threads): Remove.
5742 * infrun.c (prepare_to_proceed): New static function, copied from
5743 generic_prepare_to_proceed. Remove select_it argument.
5744 (proceed): Call prepare_to_proceed.
5745 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
5746 variables.
5747 (ptrace_wait): Don't set the removed variables.
5748 (hppa_switched_threads): Remove.
5749 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
5750 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
5751 (lin_lwp_prepare_to_proceed): Remove prototype.
5752 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
5753 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
5754
4add8633
TR
57552003-06-18 Theodore A. Roth <troth@openavr.org>
5756
5757 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
5758 trad-frame.h.
5759 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
5760 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
5761 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
5762 (AVR_PROLOGUE_*): Enumerate prologue types.
5763 (struct frame_extra_info): Remove.
5764 (struct avr_unwind_cache): Define.
5765 (avr_write_sp): Delete function.
5766 (avr_read_fp): Ditto.
5767 (avr_init_extra_frame_info): Ditto.
5768 (avr_pop_frame): Ditto.
5769 (avr_frame_saved_pc): Ditto.
5770 (avr_saved_pc_after_call): Ditto.
5771 (avr_push_return_address): Ditto.
5772 (avr_frame_chain): Ditto.
5773 (avr_store_struct_return): Ditto.
5774 (avr_push_arguments): Ditto.
5775 (avr_scan_prologue): Update comments. Changed to set up the info for
5776 cache unwinding. Now returns end of prologue PC.
5777 (avr_skip_prologue): Better handling of functions lacking a prologue
5778 by using avr_scan_prologue.
5779 (avr_scan_arg_moves): New function.
5780 (avr_saved_regs_unwinder): Ditto.
5781 (avr_frame_unwind_cache): Ditto.
5782 (avr_unwind_pc): Ditto.
5783 (avr_frame_this_id): Ditto.
5784 (avr_frame_prev_register): Ditto.
5785 (avr_frame_p): Ditto.
5786 (avr_frame_base_address ): Ditto.
5787 (avr_unwind_dummy_id): Ditto.
5788 (avr_push_dummy_code): Ditto.
5789 (push_stack_item): Ditto.
5790 (pop_stack_item): Ditto.
5791 (avr_push_dummy_call): Ditto.
5792 (struct stack_item): Define.
5793 (avr_frame_unwind): Declare structure.
5794 (avr_frame_base): Ditto.
5795 (avr_gdbarch_init): Remove calls to
5796 set_gdbarch_deprecated_init_frame_pc,
5797 set_gdbarch_deprecated_target_read_fp,
5798 set_gdbarch_deprecated_dummy_write_sp,
5799 set_gdbarch_deprecated_fp_regnum,
5800 set_gdbarch_deprecated_push_arguments,
5801 set_gdbarch_deprecated_push_return_address,
5802 set_gdbarch_deprecated_pop_frame,
5803 set_gdbarch_deprecated_store_struct_return,
5804 set_gdbarch_deprecated_frame_init_saved_regs,
5805 set_gdbarch_deprecated_init_extra_frame_info,
5806 set_gdbarch_deprecated_frame_chain,
5807 set_gdbarch_deprecated_frame_saved_pc,
5808 set_gdbarch_deprecated_saved_pc_after_call.
5809 Add calls to set_gdbarch_push_dummy_call,
5810 set_gdbarch_push_dummy_code,
5811 frame_unwind_append_predicate,
5812 frame_base_set_default,
5813 set_gdbarch_unwind_dummy_id,
5814 set_gdbarch_unwind_pc.
5815 Wrap a long line.
5816
7be04a68
MS
58172003-06-18 Corinna Vinschen <vinschen@redhat.com>
5818
5819 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
5820 registers for H8/300S.
5821 (h8300_print_registers_info): Ditto.
8ffd9b1b 5822 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 5823
ae087d01
DJ
58242003-06-18 Daniel Jacobowitz <drow@mvista.com>
5825
5826 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
5827 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
5828 (lin_lwp_wait): Likewise. Update comments.
5829 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
5830 (pull_pid_from_list, linux_record_stopped_pid): New.
5831
07d8f827
SC
58322003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5833
5834 * ada-lang.c (scan_discrim_bound): Name first argument.
5835 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
5836 declared by ALL_BLOCK_SYMBOLS.
5837
7cb47b14
SC
58382003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5839
5840 * ada-tasks.c (find_function_in_inferior): Don't declare it.
5841 ("regcache.h"): Include it.
5842 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
5843
6ad8ae5c
DJ
58442003-06-17 Daniel Jacobowitz <drow@mvista.com>
5845
5846 * NEWS: Mention gdbserver detach change and "disconnect" command.
5847 * infcmd.c (disconnect_command): New function.
5848 (_initialize_infcmd): Add ``disconnect'' command.
5849 * remote.c (remote_async_detach): Delete.
5850 (remote_detach): Merge remote_async_detach.
5851 (remote_disconnect): New.
5852 (init_remote_ops): Set to_disconnect.
5853 (init_remote_cisco_ops): Likewise.
5854 (init_remote_async_ops): Likewise. Use remote_detach.
5855 * target.c (cleanup_target): Default to_disconnect.
5856 (update_current_target): Inherit to_disconnect.
5857 (target_disconnect, debug_to_disconnect): New functions.
5858 (setup_target_debug): Set to_disconnect.
5859 * target.h (struct target_ops): Add to_disconnect.
5860 (target_disconnect): Add prototype.
5861
687595f9
DJ
58622003-06-17 Daniel Jacobowitz <drow@mvista.com>
5863
5864 * breakpoint.c (insert_catchpoint): New function.
5865 (insert_breakpoints): Use catch_exceptions to call
5866 insert_catchpoint. Disable catchpoints if they fail to insert.
5867
29239a8f
DJ
58682003-06-17 Daniel Jacobowitz <drow@mvista.com>
5869
5870 * symfile.c (reread_symbols): Clear sym_private.
5871
2cdf3c63
AC
58722003-06-17 Andrew Cagney <cagney@redhat.com>
5873
5874 * trad-frame.h (struct frame_info): Add opaque declaration.
5875 * remote-fileio.h (struct cmd_list_element): Add opaque
5876 declaration.
5877 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
5878 comments.
5879
cf0e1e0d
DJ
58802003-06-17 Daniel Jacobowitz <drow@mvista.com>
5881
5882 * remote.c (remote_prepare_to_store): Replace call to
5883 deprecated_read_register_bytes with multiple regcache_raw_read
5884 calls.
5885
192cdb19
KW
58862003-06-17 Kris Warkentin <kewarken@qnx.com>
5887
5888 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
5889 (nto_find_and_open_solib): Likewise.
5890 (nto_init_solib_absolute_prefix): Likewise.
5891 (_initialize_nto_tdep): Fix indentation.
5892
89929b45
KW
58932003-06-17 Kris Warkentin <kewarken@qnx.com>
5894
5895 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
5896
46019f27
KW
58972003-06-17 Kris Warkentin <kewarken@qnx.com>
5898
5899 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
5900
1a38736e
JB
59012003-06-17 Jim Blandy <jimb@redhat.com>
5902
5903 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
5904
3605c34a
TR
59052003-06-16 Theodore A. Roth <troth@openavr.org>
5906
5907 * avr-tdep.c (avr_extract_return_value): New function.
5908 (avr_gdbarch_init): Set extract_return_value method.
5909
870b3035
AC
59102003-06-16 Andrew Cagney <cagney@redhat.com>
5911
5912 * frame.h (deprecated_get_next_frame_hack): Declare.
5913 * frame.c (legacy_saved_regs_prev_register): Only require
5914 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
5915 there are always saved regs.
5916 (deprecated_generic_get_saved_register): Do not require
5917 DEPRECATED_FRAME_INIT_SAVED_REGS.
5918 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
5919 use frame ID unwind instead.
5920 (deprecated_get_next_frame_hack): New function.
5921
63d47a7d
CV
59222003-06-16 Corinna Vinschen <vinschen@redhat.com>
5923
5924 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
5925 (h8300_push_dummy_call): ...this function. Some minor optimization.
5926 (h8300_push_return_address): Remove.
5927 (h8300_gdbarch_init): Remove calls to
5928 set_gdbarch_deprecated_dummy_write_sp,
5929 set_gdbarch_deprecated_push_arguments and
5930 set_gdbarch_deprecated_push_return_address.
5931 Add call to set_gdbarch_push_dummy_call.
5932
4bb1dc5e
CV
59332003-06-16 Corinna Vinschen <vinschen@redhat.com>
5934
5935 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
5936 (E_PSEUDO_EXR_REGNUM): Ditto.
5937 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 5938 registers into safe registers.
4bb1dc5e
CV
5939 (h8300_skip_prologue): Check for stm instruction to push registers
5940 used for register variables onto stack.
5941 (gdb_print_insn_h8300): Remove.
5942 (h8300_examine_prologue): Add a comment.
5943 (h8300_register_name): Take pseudo registers into account.
5944 (h8300s_register_name): Ditto.
5945 (h8300sx_register_name): Ditto.
5946 (h8300_print_register): Ditto.
5947 (h8300_print_registers_info): Define "nice" printing order.
5948 (h8300_saved_pc_after_call): Take pseudo registers into account.
5949 (h8300_register_type): Ditto. Return type used for remote connection
5950 when requesting real CCR or EXR register, return actual type when
5951 requesting pseudo CCR or EXR.
5952 (h8300_pseudo_register_read): New function.
5953 (h8300_pseudo_register_write): Ditto.
5954 (h8300_dbg_reg_to_regnum): Ditto.
5955 (h8300s_dbg_reg_to_regnum): Ditto.
5956 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
5957 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
5958 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
5959 set_gdbarch_print_insn architecture dependent.
5960 Call set_gdbarch_pseudo_register_read and
5961 set_gdbarch_pseudo_register_write.
5962 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
5963
a59fe496
AC
59642003-06-16 Andrew Cagney <cagney@redhat.com>
5965
5966 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
5967 * gdbarch.h, gdbarch.c: Re-generate.
5968 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5969 * s390-tdep.c (s390_gdbarch_init): Update.
5970 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5971 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5972 * mips-tdep.c (mips_gdbarch_init): Update.
5973 * mcore-tdep.c (mcore_gdbarch_init): Update.
5974 * cris-tdep.c (cris_gdbarch_init): Update.
5975 * infcall.c (call_function_by_hand): Update.
5976 * ia64-tdep.c (ia64_push_arguments): Update comment.
5977 * frame.c (legacy_get_prev_frame): Do not assume
5978 SAVE_DUMMY_FRAME_TOS_P.
5979 * dummy-frame.c (find_dummy_frame): Update comment.
5980
6f4e5a41
AC
59812003-06-16 Andrew Cagney <cagney@redhat.com>
5982
5983 * regcache.c (do_cooked_read): Do not use register_valid_p.
5984
72fab697
TR
59852003-06-15 Theodore A. Roth <troth@openavr.org>
5986
5987 * avr-tdep.c (avr_register_type): Remove a blank line.
5988 (avr_scan_prologue): Correct some comments.
5989
e3d8b004
TR
59902003-06-15 Theodore A. Roth <troth@openavr.org>
5991
5992 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
5993 prologue types.
8ffd9b1b 5994 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
5995 option.
5996 Add code to scan -mcall-prologues for mega devices.
5997
866b76ea
TR
59982003-06-15 Theodore A. Roth <troth@openavr.org>
5999
6000 * avr-tdep.c (avr_register_byte): Delete function.
6001 (avr_register_raw_size): Delete function.
6002 (avr_register_virtual_size): Delete function.
6003 (avr_register_virtual_type): Delete function.
6004 (avr_register_type): New function.
6005 (avr_address_to_pointer): Remove unused code.
6006 (avr_read_fp): Need to read FP as two separate bytes due to change to
6007 avr_register_type() usage.
6008 (avr_gdbarch_init): Don't set deprecated_register_size.
6009 Don't set deprecated_register_bytes.
6010 Don't set deprecated_register_byte.
6011 Don't set deprecated_register_raw_size.
6012 Don't set deprecated_max_register_raw_size.
6013 Don't set deprecated_register_virtual_size.
6014 Don't set deprecated_max_register_virtual_size.
6015 Don't set deprecated_register_virtual_type.
6016 Set register_type method.
6017
3993f6b1
DJ
60182003-06-15 Daniel Jacobowitz <drow@mvista.com>
6019
6020 * Makefile.in (linux-nat.o): Add rule.
6021 * linux-nat.c: New file.
6022 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6023 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6024 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6025 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6026 * config/arm/linux.mh (NATDEPFILES): Likewise.
6027 * config/i386/linux.mh (NATDEPFILES): Likewise.
6028 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6029 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6030 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6031 * config/mips/linux.mh (NATDEPFILES): Likewise.
6032 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6033 * config/s390/s390.mh (NATDEPFILES): Likewise.
6034 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6035
786a90bb
MK
60362003-06-15 Mark Kettenis <kettenis@gnu.org>
6037
6038 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6039 replace out-of-date comment.
6040
3bd3f01e
AC
60412003-06-15 Andrew Cagney <cagney@redhat.com>
6042
6043 * rdi-share/host.h (Fail): Change to a varargs function.
6044 * remote-rdi.c (Fail): Update.
8ffd9b1b 6045
de5b9bb9
MK
60462003-06-15 Mark Kettenis <kettenis@gnu.org>
6047
6048 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6049 (i386_convert_register_p, i386_register_to_value,
6050 i386_register_from_value): Handle types longer than 8 bytes.
6051
d532c08f
MK
60522003-06-15 Mark Kettenis <kettenis@gnu.org>
6053
6054 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6055 Move floating-point code to new function in i387-tdep.c.
6056 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6057 New functions containing code moved here from i386-tdep.c.
6058 * i387-tdep.h: Add opaque declaration for `struct type'.
6059 (i387_register_to_value, i387_value_to_register): New prototypes.
6060 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6061 (x86_64_init_abi): Set convert_register_p, register_to_value and
6062 value_to_register here.
8ffd9b1b 6063
42c466d7
AC
60642003-06-14 Andrew Cagney <cagney@redhat.com>
6065
6066 * mips-tdep.c (mips_register_to_value): Make static.
6067 (mips_value_to_register): Make static.
6068 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6069 * ia64-tdep.c (ia64_register_raw_size): Make static.
6070 (ia64_register_virtual_size): Make static.
6071 (ia64_register_byte): Make static.
6072 * i387-tdep.c: Include "i387-tdep.h".
6073 (print_387_control_word): Delete function.
6074 (print_387_status_word): Delete function.
6075 (print_387_status_bits): Delete function.
6076 (print_387_control_bits): Delete function.
6077 * Makefile.in (i387-tdep.o): Update dependencies.
6078 * rdi-share/host.h (Fail): Declare.
6079 * remote-rdi.c (Fail): Update to match declaration.
6080
2a9cda49
AC
60812003-06-14 Andrew Cagney <cagney@redhat.com>
6082
6083 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6084 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6085 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6086 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6087 * README: Delete reference to remote-array.
6088 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6089 (remote-array.o): Delete target.
6090 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6091 * remote-array.c: Delete file.
6092
ff2e87ac
AC
60932003-06-14 Andrew Cagney <cagney@redhat.com>
6094 Mark Kettenis <kettenis@gnu.org>
6095
6096 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6097 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6098 parameter with "frame".
6099 * gdbarch.h, gdbarch.c: Re-generate.
6100 * frame.h (put_frame_register): Declare.
6101 * frame.c (put_frame_register): New function.
6102 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6103 (legacy_register_to_value): Rewrite, use "frame" to get the
6104 register value.
6105 (legacy_value_to_register): Rewrite, use "frame" to find the
6106 register's location before storing.
6107 * arch-utils.h (legacy_convert_register_p): Update.
6108 (legacy_register_to_value, legacy_value_to_register): Update.
6109 * findvar.c (value_from_register): Rewrite, eliminate use of
6110 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6111 "frame" to REGISTER_TO_VALUE.
6112 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6113 lval_reg_frame_relative + lval_register branch of the switch. Do
6114 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6115 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6116 I386_EDI_REGNUM): New defines.
6117 (i386_next_regnum, i386_convert_register_p,
6118 i386_register_to_value, i386_value_to_register): New functions.
6119 (i386_register_convertible, i386_register_convert_to_virtual,
6120 i386_convert_to_raw): Remove functions.
6121 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6122 value_to_register instead of register_convertible,
6123 register_convert_to_virtual and register_convert_to_raw.
6124 * mips-tdep.c (mips_convert_register_p): New function.
6125 (mips_value_to_register): Replace mips_register_convert_from_type.
6126 (mips_register_to_value): Replace mips_register_convert_to_type.
6127 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6128 register_to_value.
6129 * alpha-tdep.c (alpha_convert_register_p): Update.
6130 (alpha_value_to_register): Update, store the register.
6131 (alpha_register_to_value): Update, fetch the register.
6132
98be1e77
TR
61332003-06-14 Theodore A. Roth <troth@openavr.org>
6134
6135 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6136 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6137 Don't set deprecated_call_dummy_words.
6138 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6139 Don't set remote_translate_xfer_address.
6140 (avr_io_reg_read_command): Remove commented out debug printf.
6141 Wrap a long line.
6142
57bc6122
TR
61432003-06-14 Theodore A. Roth <troth@openavr.org>
6144
6145 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6146 causes gdb to seg fault.
6147
eb01fc62
DJ
61482003-06-14 Daniel Jacobowitz <drow@mvista.com>
6149
6150 * sparc-nat.c (fetch_inferior_registers): Correct
6151 a reference to "registers".
6152
3b3e6bee
DJ
61532003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6154
6155 * Makefile.in (exc_request_U_h): Define
6156 (exc_request_S_h): Likewise.
6157 (msg_reply_S_h): Likewise.
6158 (msg_U_h): Likewise.
6159 (notify_S_h): Likewise.
6160 (process_reply_S_h): Likewise.
6161 (gnu-nat.o): Depend on gdb_obstack_h
6162 * gnu-nat.c: Include "gdb_obstack.h".
6163
b8de8283
AC
61642003-06-13 Andrew Cagney <cagney@redhat.com>
6165
6166 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6167 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 6168
f3be58bc
AC
61692003-06-13 Andrew Cagney <cagney@redhat.com>
6170
6171 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6172 when deprecated REGISTER macros can be deleted.
6173 * gdbarch.h, gdbarch.c: Re-generate.
6174
4c0122c8
JB
61752003-06-13 Jim Blandy <jimb@redhat.com>
6176
6177 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6178 Linux entry point symbols for _dl_debug_state, too.
6179
3e210248
AC
61802003-06-13 Andrew Cagney <cagney@redhat.com>
6181
6182 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6183 available, do not use the FP register, and always save the TOS.
6184 * dummy-frame.c (dummy_frame_this_id): Do not assert
6185 SAVE_DUMMY_FRAME_TOS.
6186 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6187 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6188 (i386_push_dummy_call): Add 8 to the returned SP.
6189 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6190 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6191 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6192 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6193 (x86_64_push_dummy_call): Return "sp + 16".
6194 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6195 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6196 save_dummy_frame_tos.
6197
0b65af49
JB
61982003-06-13 Jim Blandy <jimb@redhat.com>
6199
6200 * frv-tdep.c (frv_use_struct_convention): Delete static
6201 declaration for function deleted in my change of 2003-06-12.
6202
4ea2465e
TR
62032003-06-13 Theodore A. Roth <troth@openavr.org>
6204
6205 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6206 (avr_pointer_to_address): Shift code addrs left 1 bit.
6207 (avr_convert_from_func_ptr_addr): Delete function since operation is
6208 better handled by avr_address_to_pointer and avr_pointer_to_address.
6209 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6210
1581182a
MK
62112003-06-13 Mark Kettenis <kettenis@gnu.org>
6212
6213 From Kelley Cook <kelleycook@wideopenwest.com>:
6214 * configure.host: Accept i[34567]86 variants.
6215 * configure.tgt: Likewise.
6216 * nlm/configure.in: Likewise.
6217 * nlm/configure: Regenerated.
6218
7aa1783e
RE
62192003-06-13 Richard Earnshaw <rearnsha@arm.com>
6220
6221 * arm-tdep.c (solib-svr4.h): Dont' include it.
6222 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6223 * arm-linux-tdep.c: ... here. Make static.
6224 (arm_linux_init_abi): Register it.
6225 (solib-svr4.h): Include it.
6226 * Makefile.in: Update dependencies.
6227 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6228 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6229
0261a0d0
CV
62302003-06-13 Corinna Vinschen <vinschen@redhat.com>
6231
6232 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6233 indicate registers used for return values.
6234 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6235 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6236 members.
6237 (h8300_init_extra_frame_info): Ditto.
6238 (h8300_frame_locals_address): Removed.
6239 (h8300_frame_args_address): Removed.
6240 (h8300_extract_return_value): Use new regcache structure. Only care
6241 for 16 bit CPUs.
6242 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6243 (h8300_store_return_value): Use new regcache structure. Only care
6244 for 16 bit CPUs.
6245 (h8300h_store_return_value): Same function for 32 bit CPUs.
6246 (h8300_store_struct_return): Removed.
6247 (h8300_extract_struct_value_address): Use new regcache structure.
6248 (h8300h_extract_struct_value_address): Removed.
6249 (h8300_push_dummy_code): New function.
6250 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6251 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6252 set_gdbarch_store_return_value architecture dependent.
6253 Call set_gdbarch_push_dummy_code and
6254 set_gdbarch_extract_struct_value_address.
6255 Remove calls to set_gdbarch_frame_args_address,
6256 set_gdbarch_frame_locals_address,
6257 set_gdbarch_deprecated_store_struct_return,
6258 set_gdbarch_deprecated_extract_return_value,
6259 set_gdbarch_deprecated_extract_struct_value_address,
6260 set_gdbarch_deprecated_call_dummy_words and
6261 set_gdbarch_deprecated_sizeof_call_dummy_words.
6262
055c394a
CV
62632003-06-13 Corinna Vinschen <vinschen@redhat.com>
6264
6265 * h8300-tdep.c (h8300_register_byte): Remove.
6266 (h8300h_register_byte): Remove.
6267 (h8300_register_virtual_type): Remove. Substitute by...
6268 (h8300_register_type): New function.
6269 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6270 (h8300h_extract_struct_value_address): Ditto.
6271 (h8300_gdbarch_init): Drop calls to
6272 set_gdbarch_deprecated_register_byte and
6273 set_gdbarch_deprecated_register_virtual_type.
6274 Add call to set_gdbarch_register_type.
6275
9c04cab7
AC
62762003-06-13 Andrew Cagney <cagney@redhat.com>
6277
6278 * gdbarch.sh: Update comments on registers.
6279 (deprecated_register_byte): Rename register_byte.
6280 (deprecated_register_raw_size): Rename register_raw_size.
6281 (deprecated_register_virtual_size): Rename register_virtual_size.
6282 (deprecated_register_virtual_type): Rename register_virtual_type.
6283 * gdbarch.h, gdbarch.c: Re-generate.
6284 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6285 * vax-tdep.c (vax_gdbarch_init): Update.
6286 * v850-tdep.c (v850_gdbarch_init): Update.
6287 * sparc-tdep.c (sparc_gdbarch_init): Update.
6288 * sh-tdep.c (sh_gdbarch_init): Update.
6289 * s390-tdep.c (s390_gdbarch_init): Update.
6290 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6291 * ns32k-tdep.c: Update.
6292 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6293 * mips-tdep.c (mips_gdbarch_init): Update.
6294 * mcore-tdep.c (mcore_gdbarch_init): Update.
6295 * m68k-tdep.c (m68k_gdbarch_init): Update.
6296 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6297 * ia64-tdep.c (ia64_gdbarch_init): Update.
6298 * hppa-tdep.c (hppa_gdbarch_init): Update.
6299 * h8300-tdep.c (h8300_gdbarch_init): Update.
6300 * frv-tdep.c (frv_gdbarch_init): Update.
6301 * cris-tdep.c (cris_gdbarch_init): Update.
6302 * avr-tdep.c (avr_gdbarch_init): Update.
6303 * alpha-tdep.c (alpha_gdbarch_init): Update.
6304 * arm-tdep.c (arm_gdbarch_init): Update.
6305
b060cbea
AC
63062003-06-13 Andrew Cagney <cagney@redhat.com>
6307
6308 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6309 mips_o32_use_struct_convention with always_use_struct_convention.
6310
0fc9922a
DC
63112003-06-12 David Carlton <carlton@kealia.com>
6312
6313 * cp-namespace.c (cp_set_block_scope): Comment out
6314 processing_has_namespace_info branch.
6315
1fd35568
JB
63162003-06-12 Jim Blandy <jimb@redhat.com>
6317
f470a70a
JB
6318 Recognize and skip 64-bit PowerPC Linux linkage functions.
6319 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6320 insn_pattern, insns_match_pattern, d_field, ds_field): New
6321 functions, macros, and types for working with PPC instructions.
6322 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6323 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6324 ppc64_skip_trampoline_code): New functions, variables, and macros
6325 for recognizing and skipping linkage functions.
6326 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6327 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6328
49ff75ad
JB
6329 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6330 register offsets for both the 32- and 64-bit interfaces.
6331
bd918c83
JB
6332 Actually finish the job started by my change of 2003-05-29.
6333 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6334 other #definition of this.
6335 (ppc_linux_skip_trampoline_code): Remove declaration.
6336 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6337 static.
6338 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6339 method for GDBARCH.
6340
6341 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6342 'long' on ppc64-*-linux*.
6343
f8c59253
JB
6344 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6345 isn't #defined, assume the register doesn't exist: act as if
6346 tdep->ppc_mq_regnum were -1.
6347
8fbb30b1
JB
6348 * configure.host, configure.tgt: Add entries for
6349 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6350 powerpc/linux.mt.
6351 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6352 New files.
6353
1fd35568
JB
6354 * arch-utils.c (always_use_struct_convention): New function.
6355 * arch-utils.h (always_use_struct_convention): New prototype.
6356 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6357 (alpha_gdbarch_init): Register always_use_struct_convention,
6358 instead of alpha_use_struct_convention.
6359 * cris-tdep.c (cris_use_struct_convention): Delete.
6360 (cris_gdbarch_init): Register always_use_struct_convention,
6361 instead of cris_use_struct_convention.
6362 * frv-tdep.c (frv_use_struct_convention): Delete.
6363 (frv_gdbarch_init): Register always_use_struct_convention,
6364 instead of frv_use_struct_convention.
6365 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6366 (h8300_gdbarch_init): Register always_use_struct_convention,
6367 instead of h8300_use_struct_convention.
e3305dd9 6368 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
6369 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6370 instead of mips_o32_use_struct_convention.
6371
e14e6e9c
AC
63722003-06-12 Andrew Cagney <cagney@redhat.com>
6373
6374 * wince.c: Include "mips-tdep.h".
6375 * mips-tdep.h (mips_next_pc): Declare.
6376 * mcore-tdep.c: Make more local functions static.
6377 * Makefile.in (wince.o): Update dependencies.
6378
2335f48e
DC
63792003-06-12 David Carlton <carlton@kealia.com>
6380
6381 * symtab.c (lookup_symbol_aux_minsyms): Replace
6382 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6383 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6384 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6385 SYMBOL_NATURAL_NAME.
6386
f70a7d61
AS
63872003-06-12 Andreas Schwab <schwab@suse.de>
6388
6389 * Makefile.in (tuiDisassem.o): Update dependencies.
6390
b6429628
DC
63912003-06-12 David Carlton <carlton@bactrian.org>
6392
6393 * symtab.h: Delete declaration of make_symbol_overload_list.
6394 Add declaration of lookup_partial_symbol.
6395 * symtab.c (remove_params): Move to cp-support.c.
6396 (overload_list_add_symbol, make_symbol_overload_list)
6397 (sym_return_val_size, sym_return_val_index): Ditto.
6398 (lookup_partial_symbol): Make extern.
6399 * cp-support.h: Add declaration of make_symbol_overload_list.
6400 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6401 symtab.h, and block.h.
6402 (remove_params): Move here from symtab.c.
6403 (overload_list_add_symbol, make_symbol_overload_list)
6404 (sym_return_val_size, sym_return_val_index): Ditto.
6405 * valops.c: Include cp-support.h.
6406 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6407 frame_h, and block_h.
6408 (valops.o): Depend on cp_support_h.
6409
084edea5
CV
64102003-06-12 Corinna Vinschen <vinschen@redhat.com>
6411
6412 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6413 substitute by NUM_REGS throughout.
6414 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6415 (h8300s_register_name): New function for H8S registers.
6416 (h8300sx_register_name): Ditto for H8SX registers.
6417 (h8300_print_register): Revise register printing, avoid depending
6418 on 32 bit long.
0261a0d0 6419 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
6420 (h8300h_register_byte): New function for any other architecture.
6421 (h8300_register_raw_size): Remove.
6422 (h8300_register_virtual_type): Revise to return actually useful
6423 type.
6424 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6425 (h8300h_extract_struct_value_address): New function for any other
6426 architecture.
6427 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6428 set_gdbarch_register_name, set_gdbarch_register_byte,
6429 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6430 Remove calls to set_gdbarch_deprecated_register_size,
6431 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6432 set_gdbarch_deprecated_max_register_raw_size,
6433 set_gdbarch_register_virtual_size and
6434 set_gdbarch_deprecated_max_register_virtual_size entirely.
6435 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6436 set_gdbarch_long_double_bit.
6437
06194148
JJ
64382003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6439
8ffd9b1b
AJ
6440 * doublest.c (convert_doublest_to_floatformat): When dealing
6441 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
6442 processing a full 32 bits of mantissa.
6443
de4f826b
DC
64442003-06-11 David Carlton <carlton@bactrian.org>
6445
6446 * dictionary.h: New.
6447 * dictionary.c: New.
6448 * block.h: Add opaque declaration for struct dictionary.
6449 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6450 'sym' members.
6451 (BLOCK_DICT): New macro.
6452 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6453 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6454 BLOCK_SHOULD_SORT.
6455 (ALL_BLOCK_SYMBOLS): Update definition.
6456 * Makefile.in (SFILES): Add dictionary.c.
6457 (dictionary_h): New.
6458 (COMMON_OBS): Add dictionary.o.
6459 (dictionary.o): New.
6460 (ada-lang.o): Depend on dictionary_h.
6461 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6462 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6463 (mi-cmd-stack.o): Ditto.
6464 (gdbtk-cmds.o): Update dependencies.
6465 (gdbtk-stack.o): Ditto.
6466 * ada-lang.c: Include dictionary.h.
6467 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6468 (fill_in_ada_prototype, debug_print_block): Ditto.
6469 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6470 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6471 'is_sorted'.
6472 * mdebugread.c: Include dictionary.h.
6473 (struct parse_stack): Delete 'maxsyms' member.
6474 (parse_symbol): Update calls to new_block. Delete calls to
6475 shrink_block. Use dictionary methods.
6476 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6477 Update calls to new_symtab. Don't maintain maxsyms data.
6478 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6479 (add_symbol): Just call dict_add_symbol.
6480 (new_symtab): Delete 'maxsyms' argument.
6481 (new_symtab): Update calls to new_block.
6482 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6483 (shrink_block): Delete function.
6484 (fixup_sigtramp): Update call to new_block. Add symbol via
6485 dict_add_symbol.
6486 * jv-lang.c: Include dictionary.h.
6487 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6488 appropriately. Set class_symtab->free_func. Make sure the
6489 blockvector is big enough to hold two blocks.
6490 (add_class_symtab_symbol): Use dictionary methods.
6491 (free_class_block): New function.
6492 (type_from_class): Replace explicit iteration by
6493 ALL_BLOCK_SYMBOLS.
6494 * symtab.h (struct symtab): Replace 'free_ptr' method by
6495 'free_func'.
6496 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6497 sort_symtab_syms.
6498 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6499 sort_symtab_syms.
6500 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6501 Include dictionary.h.
6502 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6503 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6504 sort_symtab_syms.
6505 * objfiles.c: Include dictionary.h.
6506 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6507 * buildsym.c: Include dictionary.h.
6508 (finish_block): Use dictionary methods.
6509 (end_symtab): Set free_func to NULL, not free_ptr.
6510 * tracepoint.c: Include dictionary.h.
6511 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6512 (scope_info): Ditto.
6513 * stack.c: Include dictionary.h.
6514 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6515 (print_block_frame_labels, print_frame_arg_vars)
6516 (print_frame_args): Ditto.
6517 * symmisc.c (free_symtab_block): Use dictionary methods.
6518 (dump_symtab): Ditto.
6519 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6520 Include dictionary.h.
6521 * symfile.h: Delete declarations of sort_block_syms,
6522 sort_symtab_syms.
6523 * symfile.c (sort_block_syms): Delete.
6524 (sort_symtab_syms): Delete.
6525 * symtab.c: Include dictionary.h.
6526 (lookup_block_symbol): Use dictionary iterators.
6527 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6528 (search_symbols, make_symbol_completion_list): Ditto.
6529 (make_symbol_overload_list): Ditto.
6530 * valops.c (value_of_local): Use dict_empty.
6531 Include dictionary.h.
6532
a31f978c
JB
65332003-06-11 J. Brobecker <brobecker@gnat.com>
6534
6535 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6536
526e70c0
DC
65372003-06-11 David Carlton <carlton@bactrian.org>
6538
6539 * block.h (BLOCK_SHOULD_SORT): Delete.
6540 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6541 blocks.
6542 * ada-lang.c (ada_add_block_symbols): Ditto.
6543 * symfile.c (sort_block_syms): Delete.
6544 (sort_symtab_syms): Ditto.
6545 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6546 declarations.
6547 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6548 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6549 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6550 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6551 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6552 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6553 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6554
33c08150
JJ
65552003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6556
8ffd9b1b 6557 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
6558 bits to 128.
6559
781a750d
AC
65602003-06-11 Andrew Cagney <cagney@redhat.com>
6561
6562 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6563 REGISTER_CONVERTIBLE.
6564 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6565 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6566 * gdbarch.h, gdbarch.c: Re-generate.
6567 * arch-utils.h (deprecated_register_convertible_not): Rename
6568 generic_register_convertible_not.
6569 * arch-utils.c (deprecated_register_convertible_not): Rename
6570 generic_register_convertible.
6571 (legacy_convert_register_p, legacy_register_to_value): Update.
6572 * sh-tdep.c (sh64_push_arguments): Update.
6573 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6574 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6575 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6576 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6577 * arch-utils.c (legacy_value_to_register): Update.
6578 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6579 (rs6000_register_convert_to_raw): Make parameter "from" const.
6580 * mips-tdep.c (mips_gdbarch_init): Update.
6581 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6582 * infcmd.c (default_print_registers_info): Update.
6583 * ia64-tdep.c (ia64_gdbarch_init): Update.
6584 (ia64_register_convert_to_raw): Make parameter "from" const.
6585 * i386-tdep.c (i386_gdbarch_init): Update.
6586 (i386_register_convert_to_raw): Update.
6587
cd90e54f
AC
65882003-06-11 Andrew Cagney <cagney@redhat.com>
6589
6590 * remote-fileio.c: Include "remote-fileio.h".
6591 * Makefile.in (remote-fileio.o): Update dependencies.
6592 (remote_fileio_h): Fix typo.
6593
a78f21af
AC
65942003-06-11 Andrew Cagney <cagney@redhat.com>
6595
6596 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6597 (xstormy16_save_dummy_frame_tos): Make static.
6598 (_initialize_xstormy16_tdep): Add declaration.
6599 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6600 * v850-tdep.c: Make local functions static.
6601 (_initialize_v850_tdep): Add declaration.
6602 * sparc-tdep.c: Make local functions static.
6603 (_initialize_sparc_tdep): Add declaration.
6604 * sh-tdep.c: Make local functions static.
6605 (_initialize_sh_tdep): Add declaration.
6606 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6607 * s390-tdep.c: Make local functions static.
6608 (_initialize_s390_tdep): Add declaration.
6609 * dbxread.c (find_stab_function_addr): Make static.
6610 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6611 * ocd.c (_initialize_remote_ocd): Add declaration.
6612 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6613 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6614 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6615 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6616 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6617 * remote-array.c (_initialize_array): Add declaration.
6618 (_initialize_remote_monitors): Add declaration.
6619 * remote-mips.c: Make local functions static.
6620 (_initialize_remote_mips): Add declaration.
6621 * mcore-tdep.c: Make all local functions static.
6622 (_initialize_mcore_tdep): Add declaration.
6623 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6624 * abug-rom.c (_initialize_abug_rom): Add declaration.
6625 * rom68k-rom.c (_initialize_rom68k): Add declaration.
6626 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6627 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6628 * remote-est.c (_initialize_est): Add declaration.
6629 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6630 (m68hc11_call_dummy_address): Make static.
6631 * ia64-tdep.c: Make local functions static.
6632 (_initialize_ia64_tdep): Add declaration.
6633 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6634 * monitor.c (monitor_wait_filter): Make static.
6635 (_initialize_remote_monitors): Add declaration.
6636 * remote-hms.c (_initialize_remote_hms): Add declaration.
6637 * remote-e7000.c (fetch_regs_from_dump): Make static.
6638 (expect_n): Make static.
6639 (_initialize_remote_e7000): Add declaration.
6640 * ser-e7kpc.c: Always include "defs.h".
6641 (_initialize_ser_e7000pc): Add declaration.
6642 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6643 * cris-tdep.c: Make all but one function static.
6644 (_initialize_cris_tdep): Add declaration.
6645 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6646 * solib.c (update_solib_list): Make static.
6647 (_initialize_solib): Add declaration.
6648 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6649 (_initialize_avr_tdep): Add declaration.
6650 * remote-rdi.c (voiddummy): Make static.
6651 (_initialize_remote_rdi): Add declaration.
6652 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6653 * remote-rdp.c (send_rdp): Make static.
6654 (_initialize_remote_rdp): Add declaration.
6655 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6656
cbcdb1f5
CV
66572003-06-11 Corinna Vinschen <vinschen@redhat.com>
6658
6659 * remote-fileio.c: Make ari happy.
6660
a191ea8d
JB
66612003-06-10 J. Brobecker <brobecker@gnat.com>
6662
6663 * rs6000-nat.c (child_xfer_memory): Compute the right address when
6664 fetching the trailing bytes of the buffer we are about to write.
6665
0ef75e11
AC
66662003-06-10 Andrew Cagney <cagney@redhat.com>
6667
6668 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6669 * Makefile.in (remote-fileio.o): Update dependencies.
6670 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
6671 include <setjmp.h>, or <sys/types.h> conditional on USG.
6672 (remote_fio_jmp_buf): Delete global variable.
6673
449092f6 66742003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 6675 Martin M. Hunt <hunt@redhat.com>
449092f6 6676
559fa028
AC
6677 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
6678 (SFILES): Add remote-fileio.c.
6679 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
6680 dependencies for building remote.o.
449092f6
CV
6681 * remote-fileio.c: New file implementing the remote File-I/O protocol.
6682 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 6683 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
6684 static storage class.
6685 (remote_wait, remote_async_wait): Call remote_fileio_request() on
6686 'F' packet.
6687 (_initialize_remote): Call initialize_remote_fileio().
6688 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
6689 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6690 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6691 (captured_main): Initialize new ui_files.
6692 * ui-file.c: Add read and fgets input functions.
6693 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
6694 (null_file_read): New function.
6695 (ui_file_read): New function.
6696 (set_ui_file_read): New function.
6697 (stdio_file_read): New function.
6698 * ui-file.h: New type ui_file_read_ftype.
6699 (set_ui_file_read): Declare.
6700 (ui_file_read): Declare.
6701
248de703
AC
67022003-06-09 Andrew Cagney <cagney@redhat.com>
6703
6704 * frame.h (deprecated_unwind_get_saved_register): Rename
6705 generic_unwind_get_saved_register, update comments.
6706 * mips-tdep.c (mips_get_saved_register): Update.
6707 * frame.c (deprecated_unwind_get_saved_register): Update.
6708
0ed8aa57
AC
67092003-06-09 Andrew Cagney <cagney@redhat.com>
6710
6711 * vax-tdep.c (vax_frame_locals_address): Delete function.
6712 (vax_gdbarch_init): Do not set frame_locals_address.
6713 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
6714 (m68hc11_gdbarch_init): Do not set frame_locals_address.
6715 * s390-tdep.c (s390_frame_args_address): Delete function.
6716 (s390_gdbarch_init): Do not set frame_args_address or
6717 frame_locals_address.
6718 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
6719 (ns32k_gdbarch_init): Do not set frame_locals_address.
6720 * hppa-tdep.c (hppa_frame_args_address): Delete function.
6721 (hppa_frame_locals_address): Delete function.
6722 (hppa_gdbarch_init): Do not set frame_args_address, or
6723 frame_locals_address.
6724 * arm-tdep.c (arm_frame_args_address): Delete.
6725 (arm_frame_locals_address): Delete.
6726 (arm_gdbarch_init): Do not set frame_args_address, or
6727 frame_locals_address.
6728
983a287a
AC
67292003-06-09 Andrew Cagney <cagney@redhat.com>
6730
6731 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
6732 * gdbarch.h, gdbarch.c: Re-generate.
6733 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
6734 * arch-utils.c (frame_num_args_unknown): Delete function.
6735 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
6736 (frame_info): Use FRAME_NUM_ARGS_P.
6737 * arm-tdep.c (arm_frame_num_args): Delete function.
6738 (arm_gdbarch_init): Do not set frame_num_args.
6739 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
6740 * hppa-tdep.c (hppa_frame_num_args): Delete function.
6741 (hppa_gdbarch_init): Do not set frame_num_args.
6742 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
6743 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6744 frame_num_args to default frame_num_args_unknown.
6745 * v850-tdep.c (v850_gdbarch_init): Ditto.
6746 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6747 * sh-tdep.c (sh_gdbarch_init): Ditto.
6748 * s390-tdep.c (s390_gdbarch_init): Ditto.
6749 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6750 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6751 * mips-tdep.c (mips_gdbarch_init): Ditto.
6752 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6753 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6754 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6755 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6756 * i386-tdep.c (i386_gdbarch_init): Ditto.
6757 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6758 * frv-tdep.c (frv_gdbarch_init): Ditto.
6759 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6760 * cris-tdep.c (cris_gdbarch_init): Ditto.
6761 * avr-tdep.c (avr_gdbarch_init): Ditto.
6762 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6763
8d3b0994
AC
67642003-06-09 Andrew Cagney <cagney@redhat.com>
6765
6766 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
6767 (print_frame_args): Moved to "stack.c".
6768 * stack.c: Include "gdb_assert.h".
6769 (print_frame_nameless_args): Moved from "printcmd.c", made static.
6770 (print_frame_args): Moved from "printcmd.c".
6771 * frame.h (print_frame_args): Delete declaration.
6772 * Makefile.in (stack.o): Update dependencies.
6773
25e3a86b
AC
67742003-06-08 Andrew Cagney <cagney@redhat.com>
6775
6776 * frame.c (get_prev_frame): Remove reference to
6777 frame_args_address_correct in comments.
6778 * frame-base.c (default_frame_args_address): Delete code
6779 conditional on FRAME_ARGS_ADDRESS_CORRECT.
6780 * vax-tdep.c (vax_frame_args_address_correct): Delete.
6781 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
6782 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
6783 (vax_frame_args_address_correct): Delete declaration.
6784
a9e5fdc2
AC
67852003-06-08 Andrew Cagney <cagney@redhat.com>
6786
6787 * gdbarch.sh (UNWIND_SP): Add.
6788 * gdbarch.h, gdbarch.c: Re-generate.
6789 * frame.c (frame_sp_unwind): New function.
6790 (get_frame_sp): New function.
6791 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
6792 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
6793 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
6794 value.
6795 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
6796 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
6797
8983bd83
AC
67982003-06-08 Andrew Cagney <cagney@redhat.com>
6799
7fec2c59
AC
6800 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
6801 REMOTE_BREAKPOINT.
6802 * remote.c: Update.
6803 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
6804 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
6805 * config/m68k/tm-sun3.h: Update.
6806 * config/m68k/tm-m68klynx.h: Update.
6807 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
6808
8983bd83
AC
6809 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
6810 trad_frame". Update comments.
6811 * d10v-tdep.c (struct d10v_unwind_cache): Update.
6812 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
6813 (trad_frame_register_value, trad_frame_prev_register): Update.
6814
b9362cc7
AC
68152003-06-08 Andrew Cagney <cagney@redhat.com>
6816
6817 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
6818 from GCC's acinclude.m4.
6819 * configure.in: Check for getopt's delcaration.
8ffd9b1b 6820 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
6821 * main.c (error_init): Delete declaration.
6822 * defs.h (error_init): Declare.
6823 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
6824 (rs6000_convert_from_func_ptr_addr): Make static.
6825 (_initialize_rs6000_tdep): Add declaration.
6826 * cli/cli-cmds.c (dont_repeat): Delete declaration.
6827 (show_commands, set_verbose, show_history): Delete declaration.
6828 * top.h (set_verbose): Add declaration.
6829 (show_history, set_history, show_commands): Add declaration.
6830 (do_restore_instream_cleanup): Add declaration.
6831 * objc-lang.c (specialcmp): Make static.
6832 (print_object_command): Make static.
6833 (find_objc_msgsend): Make static.
6834 (find_objc_msgcall_submethod_helper): Make static.
6835 (find_objc_msgcall_submethod): Make static.
6836 (_initialize_objc_language): Add declaration.
6837 (find_implementation_from_class): Make static.
6838 (find_implementation): Make static.
6839 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
6840 * objc-lang.h (lookup_struct_typedef): Add declaration.
6841 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
6842 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
6843 (do_restore_user_call_depth): Make static.
6844 (do_restore_instream_cleanup): Delete declaration.
6845 (dont_repeat): Delete declaration.
6846 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
6847 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
6848 * reggroups.c (_initialize_reggroup): Add declaration.
6849 * cp-support.c (_initialize_cp_support): Add declaration.
6850 * cp-abi.c (_initialize_cp_abi): Add declaration.
6851 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
6852 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
6853 (_initialize_gnu_v3_abi): Add declaration.
6854 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
6855 (_initialize_gnu_v2_abi): Add declaration.
6856 * frame-base.c (_initialize_frame_base): Add declaration.
6857 * doublest.c (floatformat_from_length): Make static.
6858 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6859 * frame.c (create_sentinel_frame): Make static.
6860 (_initialize_frame): Add declaration.
6861 * top.c (do_catch_errors): Make static.
6862 (gdb_rl_operate_and_get_next_completion): Make static.
6863 * typeprint.c: Include "typeprint.h".
6864 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
6865 (sentinel_frame_this_id): Make static.
6866 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6867 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
6868 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
6869 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
6870 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
6871 * maint.c (maintenance_print_architecture): Make static.
6872 * signals/signals.c (_initialize_signals): Add declaration.
6873 * std-regs.c (_initialize_frame_reg): Add declaration.
6874 * jv-exp.y (push_variable): ISO C definition.
6875 (push_qualified_expression_name): Ditto.
6876 * memattr.c (_initialize_mem): Add declaration.
6877 * remote.c (remote_check_watch_resources): Make static.
6878 (remote_stopped_by_watchpoint): Make static.
6879 (remote_stopped_data_address): Make static.
6880 * d10v-tdep.c (nr_dmap_regs): Make static.
6881 (a0_regnum): Make static.
6882 (d10v_frame_unwind_cache): Make static.
6883 (d10v_frame_p): Make static.
6884 * osabi.c (show_osabi): Make static.
6885 (_initialize_gdb_osabi): Add extern declaration.
6886 * gdbtypes.c (make_qualified_type): Make static.
6887 (safe_parse_type): Make static.
6888 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
6889 * macrotab.c (macro_bcache_free): Make static.
6890 * interps.c (interp_set_quiet): Make static.
6891 (interpreter_exec_cmd): Make static.
6892 * stack.h (select_frame_command): New file.
6893 * stack.c: Include "stack.h".
6894 (select_frame_command_wrapper): Delete function.
6895 (select_frame_command): Make global.
6896 * infcall.c: Include "infcall.h".
6897 * linespec.c: Include "linespec.h".
6898 * symfile.c (sections_overlap): Make static.
6899 * cp-support.h (cp_initialize_namespace): ISO C declaration.
6900 * charset.c (_initialize_charset): Add missing prototype.
6901 * regcache.c (init_legacy_regcache_descr): Make static.
6902 (do_regcache_xfree): Make static.
6903 (regcache_xfer_part): Make static.
6904 (_initialize_regcache): Add missing prototype.
6905 * breakpoint.c (parse_breakpoint_sals): Make static.
6906 (breakpoint_sals_to_pc): Make static.
6907 * interps.h (clear_interpreter_hooks): ISO C declaration.
6908 * Makefile.in (stack_h): Define.
6909 (stack.o, typeprint.o, mi-main.o): Update dependencies.
6910 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
6911
a0f267c7
AC
69122003-06-08 Andrew Cagney <cagney@redhat.com>
6913
6914 * Makefile.in (d10v-tdep.o): Update dependencies.
6915 (SFILES): Add trad-frame.c.
6916 (trad_frame_h): Define.
6917 (COMMON_OBS): Add trad-frame.o.
6918 (trad-frame.o): Specify dependencies.
6919 * d10v-tdep.c: Include "trad-frame.h".
6920 (saved_regs_unwinder): Delete function.
6921 (d10v_frame_prev_register): Use trad_frame_prev_register.
6922 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
6923 trad_frame", delete "regs" and "prev_sp".
6924 (prologue_find_regs): Use trad-frame.
6925 * trad-frame.h, trad-frame.c: New files.
6926
4538b4f4
MK
69272003-06-08 Mark Kettenis <kettenis@gnu.org>
6928
6929 * dwarf2cfi.c, dwarf2cfi.h: Remove.
6930
a0273b2f
AF
69312003-06-07 Adam Fedor <fedor@gnu.org>
6932
6933 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
6934 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
6935 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
6936 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 6937 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
6938 Use it.
6939
3a6c3343
AC
69402003-06-07 Andrew Cagney <cagney@redhat.com>
6941
6942 * symfile.h: Re-indent, clean up comments.
6943
b46e02f6
AC
69442003-06-07 Andrew Cagney <cagney@redhat.com>
6945
6946 * inferior.h (deprecated_write_sp): Replace
6947 generic_target_write_sp.
6948 * regcache.c (deprecated_write_sp): Replace
6949 generic_target_write_sp.
6950 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6951 * vax-tdep.c (vax_gdbarch_init): Update.
6952 * v850-tdep.c (v850_gdbarch_init): Update.
6953 * sparc-tdep.c (sparc_gdbarch_init): Update.
6954 * sh-tdep.c (sh_gdbarch_init): Update.
6955 * s390-tdep.c (s390_gdbarch_init): Update.
6956 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6957 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6958 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6959 * mcore-tdep.c (mcore_gdbarch_init): Update.
6960 * m68k-tdep.c (m68k_gdbarch_init): Update.
6961 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6962 * ia64-tdep.c (ia64_gdbarch_init): Update.
6963 * h8300-tdep.c (h8300_gdbarch_init): Update.
6964 * frv-tdep.c (frv_gdbarch_init): Update.
6965 * cris-tdep.c (cris_gdbarch_init): Update.
6966 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6967
a42e117c
AC
69682003-06-07 Andrew Cagney <cagney@redhat.com>
6969
6970 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
6971 Assert that PC_REGNUM is valid.
6972 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
6973
bd1ce8ba
AC
69742003-06-07 Andrew Cagney <cagney@redhat.com>
6975
6976 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
6977 * gdbarch.h, gdbarch.c: Regenerate.
6978 * mn10300-tdep.c: Include "gdb_assert.h".
6979 (mn10300_read_fp): New function.
6980 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
6981 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
6982 * ia64-tdep.c: Include "gdb_assert.h".
6983 (ia64_read_fp): New function.
6984 (ia64_gdbarch_init): Set deprecated_target_read_fp to
6985 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
6986 * regcache.c (generic_target_read_sp): Delete function.
6987 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
6988 * inferior.h (generic_target_read_sp): Delete declaration.
6989 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
6990 generic_target_read_sp.
6991 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6992 * sparc-tdep.c (sparc_gdbarch_init): Ditto
6993 * sh-tdep.c (sh_gdbarch_init): Ditto.
6994 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6995 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
6996
ec5cbaec
AC
69972003-06-07 Andrew Cagney <cagney@redhat.com>
6998
6999 * gdbarch.sh: Comment each field of startup_gdbarch.
7000 * gdbarch.h, gdbarch.c: Re-generate.
7001
cde9ea48
AC
70022003-06-07 Andrew Cagney <cagney@redhat.com>
7003
7004 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7005 * gdbarch.h, gdbarch.c: Re-generate.
7006 * regcache.c: Update comments on read_pc et.al.
7007 (generic_target_read_pc): Delete function.
7008 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7009 * inferior.h (generic_target_read_pc): Delete declaration.
7010 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7011 generic_target_read_pc.
7012 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7013 * sh-tdep.c (sh_gdbarch_init): Ditto.
7014 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7015 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7016
9a90a780
AC
70172003-06-07 Andrew Cagney <cagney@redhat.com>
7018
7019 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7020 "index" with "special_local_sect". Use strcmp instead of STREQ.
7021 Append period to coments.
7022
a39a16c4
MM
70232003-06-06 Mark Mitchell <mark@codesourcery.com>
7024
7025 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7026 (elfstab_offset_sections): Likewise.
7027 * gdb-stabs.h (stab_section_info): Likewise.
7028 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7029 * objfiles.c (objfile_relocate): Likewise.
7030 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7031 * remote.c (get_offsets): Likewise.
7032 (remote_cisco_objfile_relocate): Likewise.
7033 * somread.c (som_symfile_offsets): Likewise.
7034 * symfile.c (alloc_section_addr_info): New function.
7035 (build_section_addr_info_from_section_tab): Use it.
7036 (free_section_addr_info): Adjust.
7037 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7038 (syms_from_objfile): Allocate local_addr dynamically.
7039 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7040 dynamically.
7041 (add_symbol_file_command): Allocate sect_opts dynamically.
7042 (reread_symbols): Avoid use of SECT_OFF_MAX.
7043 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7044 (alloc_section_addr_info): Declare it.
7045 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7046 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7047 dynamically.
7048 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 7049
20c6c2f8
AC
70502003-06-06 Andrew Cagney <cagney@redhat.com>
7051
7052 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7053 (d10v_frame_unwind_cache): Do not set "return_pc".
7054
884a26c8
MS
70552003-06-06 Michael Snyder <msnyder@redhat.com>
7056
7057 * h8300-tdep.c: Make tidy (long lines).
7058
088ce440
ML
70592003-06-06 Michal Ludvig <mludvig@suse.cz>
7060
8ffd9b1b 7061 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
7062 to regcache_collect().
7063
7d773d96
JB
70642003-06-05 J. Brobecker <brobecker@gnat.com>
7065
7066 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7067 pc_in_sigtramp multiarch method.
7068 (hppa_hpux_som_init_abi): Use it.
7069 (hppa_hpux_elf_init_abi): Likewise.
7070 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7071 macro has been multiarched.
7072 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7073 macro here, as hppa64 isn't multiarched yet.
7074
1df6926e
AC
70752003-06-05 Andrew Cagney <cagney@redhat.com>
7076
7077 * Makefile.in (value_h): Add $(frame_h).
7078 * value.h: Include "frame.h".
7079 (struct value): Replace "frame_addr" with "frame_id".
7080 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7081 * values.c (allocate_value): Use VALUE_FRAME_ID.
7082 (value_copy): Use VALUE_FRAME_ID.
7083 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7084 * valops.c (value_assign): Update. Use frame_find_by_id.
7085
6b53acc6
ML
70862003-06-05 Michal Ludvig <mludvig@suse.cz>
7087
7088 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7089 in each pass.
7090
4d9850d3
JJ
70912003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7092
7093 * thread-db.c (check_event): For create/death event breakpoints,
7094 loop through all messages to ensure that we read the message
7095 corresponding to the breakpoint we are at.
7096
8efca6ba
MS
70972003-06-04 Michael Snyder <msnyder@redhat.com>
7098
7099 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7100
0912c7f2
MK
71012003-06-04 Mark Kettenis <kettenis@gnu.org>
7102
7103 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7104 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7105 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7106 when handling .eh_frame sections.
7107
4e370325
JB
71082003-06-04 J. Brobecker <brobecker@gnat.com>
7109
7110 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7111 prepare_to_proceed procedure instead of the hppa-specific one.
7112 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7113
b757528f 71142003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7115
b757528f
JJ
7116 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7117 * config.in: Regenerated.
7118 * configure.in: Add test for syscall function and check for
7119 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7120 * configure: Regenerated.
7121 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7122 <sys/syscall.h>.
7123 (kill_lwp): New function that uses tkill syscall or
7124 uses kill, depending on whether threading model is nptl or not.
7125 All callers of kill() changed to use kill_lwp().
7126 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7127 see if all threads have already exited in the nptl model.
7128 (stop_and_resume_callback): New callback function used by the
7129 lin_lwp_wait thread exit handling code.
7130 (stop_wait_callback): Check for threads already having exited and
7131 delete such threads fromt the lwp list when discovered.
7132 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 7133
b757528f
JJ
7134 Roland McGrath <roland@redhat.com>
7135 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7136 nptl libthread_db.
7137
087779b1
RH
71382003-06-03 Richard Henderson <rth@redhat.com>
7139
b21fd293
RH
7140 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7141 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7142 (alpha_sigtramp_frame_prev_register): Likewise.
7143 (alpha_heuristic_frame_prev_register): Likewise.
7144 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7145
8ffd9b1b 7146 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
7147 alpha-specific register id names.
7148 (alpha_mdebug_frame_unwind_cache): Likewise.
7149 (alpha_mdebug_frame_prev_register): Likewise.
7150
baa490c4
RH
71512003-06-03 Richard Henderson <rth@redhat.com>
7152
7153 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7154 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7155 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7156 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7157 unwind routines.
7158 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7159 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7160 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7161
7162 * alpha-linux-tdep.c: Remove unnecessary includes.
7163 * Makefile.in (alpha-linux-tdep.o): Update.
7164
71652003-06-03 Richard Henderson <rth@redhat.com>
7166
7167 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7168 (alphabsd_fill_fpreg): Likewise.
7169
f534e522
JB
71702003-06-03 J. Brobecker <brobecker@gnat.com>
7171
7172 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7173 references to struct frame_info fields by calls to the equivalent
7174 accessors. Necessary now that frame_info is opaque.
7175
4035536b
JB
71762003-06-03 J. Brobecker <brobecker@gnat.com>
7177
7178 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7179 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7180 structure, field no longer exists.
7181
0bd79c5c
JB
71822003-06-03 J. Brobecker <brobecker@gnat.com>
7183
7184 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7185 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7186
37bb6d9f
JB
71872003-06-03 J. Brobecker <brobecker@gnat.com>
7188
7189 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7190 references to struct frame_info fields by calls to the equivalent
7191 accessors. Necessary now that frame_info is opaque.
7192
852ee05c
JB
71932003-06-03 J. Brobecker <brobecker@gnat.com>
7194
7195 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7196 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7197 structure, field no longer exists.
7198
7d58c67d
TR
71992003-06-03 Theodore A. Roth <troth@openavr.org>
7200
8ffd9b1b 7201 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
7202 accumulation of the size of all registers instead of blindly using
7203 DEPRECATED_REGISTER_BYTES.
7204
0a48e7e8
MS
72052003-06-03 Michael Snyder <msnyder@redhat.com>
7206
7207 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7208 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7209 for h8300sx.
7210
9798ab0d
JB
72112003-06-03 J. Brobecker <brobecker@gnat.com>
7212
7213 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7214 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7215
00b037e2
AC
72162003-06-03 Andrew Cagney <cagney@redhat.com>
7217
7218 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7219 (sparc_convert_to_raw): Delete function.
7220 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7221 register_convert_to_virtual.
7222
043b2f77
JJ
72232003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7224
7225 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7226 layer if not dealing with a statically-linked threaded program.
7227
f43caff8
KW
72282003-06-03 Kris Warkentin <kewarken@qnx.com>
7229
7230 * solib.c (solib_open): Update comment to reflect actual search order.
7231
ae1e7417
AC
72322003-06-03 Andrew Cagney <cagney@redhat.com>
7233
7234 * frame.c (get_frame_memory_signed): New function.
7235 (get_frame_memory, get_frame_memory_unsigned): New function.
7236 (get_frame_arch): New function.
7237 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7238 (get_frame_memory, get_frame_unsigned_memory): Declare.
7239 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7240 get_frame_memory_unsigned and get_frame_arch.
7241 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7242
cb123844
RG
72432003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7244
7245 * MAINTAINERS (write after approval): Add myself.
7246
1bb792e9
JB
72472003-06-03 Jim Blandy <jimb@redhat.com>
7248
7249 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7250 elements of gregset_t are 64 bits each, but access registers
7251 are still 32 bits, so they're packed two per gregset_t
7252 element. Unpack/pack them properly.
7253
aee8d8ba
DC
72542003-06-02 David Carlton <carlton@bactrian.org>
7255
7256 * linespec.c (find_methods): Break out code into
7257 add_matching_methods and add_constructors.
7258 (add_matching_methods): New.
7259 (add_constructors): Ditto.
7260
bf7488d2
AC
72612003-06-02 Andrew Cagney <cagney@redhat.com>
7262
bf7488d2
AC
7263 * sparc-tdep.c (sparc_print_registers): Delete call to
7264 REGISTER_CONVERTIBLE.
7265 (sparc_gdbarch_init): Do not set register_convertible.
7266 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7267 * frv-tdep.c (frv_gdbarch_init): Ditto.
7268 * cris-tdep.c (cris_gdbarch_init): Ditto.
7269
adedef68
EZ
72702003-06-02 Elena Zannoni <ezannoni@redhat.com>
7271
8ffd9b1b 7272 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
7273 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7274 (syms_from_objfile): Ditto.
7275
650fcc91
AS
72762003-06-03 Andreas Schwab <schwab@suse.de>
7277
7278 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7279 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7280
df4a182b
RH
72812003-06-02 Richard Henderson <rth@redhat.com>
7282
7283 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7284 a member of all_reggroup.
7285
c483c494
RH
72862003-06-02 Richard Henderson <rth@redhat.com>
7287
7288 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7289 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7290 (alpha_lds, alpha_sts): New.
7291 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 7292 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
7293 restructure and fail for type sizes other than 4 or 8.
7294 (alpha_value_to_register): Similarly.
7295 (alpha_extract_return_value): Use alpha_sts.
7296 (alpha_store_return_value): Use alpha_lds.
7297 (alpha_gdbarch_init): Update hooks.
7298
b38b6be2
RH
72992003-06-02 Richard Henderson <rth@redhat.com>
7300
7301 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7302 regnum identifiers.
7303 (alpha_sigtramp_register_address): Likewise.
7304
98a8e1e5
RH
73052003-06-02 Richard Henderson <rth@redhat.com>
7306
7307 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7308 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7309 * alpha-tdep.h: Declare them.
7310
7311 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7312 Remove zerobuf. Don't error on UNIQUE.
7313 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7314 (ALPHA_REGSET_UNIQUE): Provide default.
7315 (supply_gregset): Use alpha_supply_int_regs.
7316 (fill_gregset): Use alpha_fill_int_regs.
7317 (supply_fpregset): Use alpha_supply_fp_regs.
7318 (fill_fpregset): Use alpha_fill_fp_regs.
7319 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7320 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7321 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7322 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7323 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7324 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7325
67dfac52
RH
73262003-06-02 Richard Henderson <rth@redhat.com>
7327
f75d70cc
RH
7328 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7329
67dfac52
RH
7330 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7331 (alpha_store_return_value): Likewise.
7332
0cf566ec
DC
73332003-06-02 David Carlton <carlton@math.stanford.edu>
7334
7335 * block.c (contained_in): Add 'const' to arguments.
7336 (block_function): Ditto.
7337 * block.h: Update declarations for block_function and
7338 contained_in.
7339
cdef89d0
DC
73402003-06-02 David Carlton <carlton@math.stanford.edu>
7341
7342 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7343 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7344 * p-valprint.c (pascal_val_print): Ditto.
7345 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7346
72667056
RH
73472003-06-02 Richard Henderson <rth@redhat.com>
7348
98a8e1e5
RH
7349 * alpha-tdep.c (alpha_push_dummy_call): Use
7350 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 7351
8ffd9b1b 7352 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
7353 sign-extension of 32-bit values.
7354 (alpha_store_return_value): Similarly.
0ede8eca 7355
98a8e1e5
RH
7356 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7357 (alpha_extract_return_value): Likewise.
7358 (alpha_store_return_value): Likewise.
7b5e1cb3 7359
98a8e1e5
RH
7360 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7361 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 7362
98a8e1e5
RH
7363 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7364 (alpha_extract_struct_value_address): Likewise.
7365 (alpha_store_return_value): Likewise.
7366 (alpha_store_struct_return): Remove.
7367 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 7368
98a8e1e5
RH
7369 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7370 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7371 macros where appropriate.
7372 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7373 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 7374
98a8e1e5
RH
7375 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7376 for SP, GP; void_func_ptr for PC; non-language-specific types
7377 for all others.
7378 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 7379
6dd77b81
RH
73802003-06-02 Richard Henderson <rth@redhat.com>
7381
7382 * top.h (lim_at_start): Declare.
7383 * main.c (captured_main): Set it.
7384 * top.c (lim_at_start): Define.
7385 (command_loop): Use it instead of &environ.
7386 * event-top.c (command_handler): Likewise.
7387
f4dbdb54
JT
73882003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7389
7390 * mipsnbsd-tdep.c: Update copyright years.
7391 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7392
8f285956
RH
73932003-06-01 Richard Henderson <rth@redhat.com>
7394
98a8e1e5
RH
7395 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7396 (alpha-linux-tdep.o): Update dependencies.
7397 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7398 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 7399
615967cb
RH
74002003-06-01 Richard Henderson <rth@redhat.com>
7401
98a8e1e5
RH
7402 * alpha-tdep.c (alpha_register_reggroup_p): New.
7403 (alpha_gdbarch_init): Register it.
615967cb 7404
b59661bd
AC
74052003-06-02 Andrew Cagney <cagney@redhat.com>
7406
7407 * dwarfread.c: Eliminate "register"
7408 (decode_die_type): Eliminate assignment within "if".
7409 (struct_type, decode_array_element_type): Ditto.
7410 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7411 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7412 (decode_modified_type, completedieinfo): Ditto.
7413 * block.c: Eliminate "register".
7414 (blockvector_for_pc_sect): Eliminate assignment within "if".
7415 * cp-support.h (struct symbol): Opaque declaration.
7416 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7417
5ef165c2
RH
74182003-06-01 Richard Henderson <rth@redhat.com>
7419
98a8e1e5
RH
7420 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7421 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 7422
143985b7
AF
74232003-06-01 Adam Fedor <fedor@gnu.org>
7424
7425 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7426 * gdbarch.[ch]: Regenerate.
7427 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7428 (hppa_gdbarch_init): Set it in the gdbarch vector.
7429 * i386-tdep.c (i386_fetch_pointer_argument): New
7430 (i386_gdbarch_init): Set it into gdbarch.
7431 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7432 (rs6000_gdbarch_init): Set it in gdbarch.
7433 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7434 (sparc_gdbarch_init): Set it in gdbarch.
7435
ae0167b9
AC
74362003-06-01 Andrew Cagney <cagney@redhat.com>
7437
7c0b4a20
AC
7438 * defs.h (extract_address): Delete declaration.
7439 * findvar.c (extract_address): Delete function.
7440 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7441 extract_address with the inline equivalent,
7442 extract_unsigned_integer.
7443 (xstormy16_extract_struct_value_address): Ditto.
7444 (xstormy16_pointer_to_address): Ditto.
7445 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7446 * v850-tdep.c (v850_push_arguments): Ditto.
7447 (v850_extract_return_value): Ditto.
7448 (v850_extract_struct_value_address): Ditto.
7449 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7450 (sparcnbsd_get_longjmp_target_64): Ditto.
7451 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7452 (get_longjmp_target): Ditto.
7453 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7454 (sh64_extract_struct_value_address): Ditto.
7455 (sh_push_arguments): Ditto.
7456 (sh64_push_arguments): Ditto.
7457 * remote-vxsparc.c (vx_read_register): Ditto.
7458 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7459 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7460 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7461 * mipsv4-nat.c (get_longjmp_target): Ditto.
7462 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7463 * mips-nat.c (get_longjmp_target): Ditto.
7464 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7465 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7466 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7467 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7468 * irix5-nat.c (get_longjmp_target): Ditto.
7469 * irix4-nat.c (get_longjmp_target): Ditto.
7470 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7471 (ia64_push_arguments): Ditto.
7472 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7473 * h8300-tdep.c (h8300_push_arguments): Ditto.
7474 (h8300_store_return_value): Ditto.
7475 (h8300_extract_struct_value_address): Ditto.
7476 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7477 (frv_push_arguments): Ditto.
7478 * avr-tdep.c (avr_pointer_to_address): Ditto.
7479 (avr_push_arguments): Ditto.
7480 * arm-tdep.c (arm_push_dummy_call): Ditto.
7481 (arm_get_longjmp_target): Ditto.
7482 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7483 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7484 (alpha_get_longjmp_target): Ditto.
7485
ae0167b9
AC
7486 * solib-irix.c (extract_mips_address): Inline extract_address,
7487 replacing it with extract_signed_integer.
7488 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7489 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7490 (first_link_map_member, open_symbol_file_object): Ditto.
7491 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7492 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7493 (LM_NEXT, LM_NAME): Ditto.
7494
44d88583
RH
74952003-06-01 Richard Henderson <rth@redhat.com>
7496
98a8e1e5
RH
7497 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7498 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7499 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7500 (alpha_cannot_store_register): Likewise.
7501 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7502 * alpha-nat.c (supply_gregset): Likewise.
7503 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 7504
310e9b6a
AC
75052003-06-01 Andrew Cagney <cagney@redhat.com>
7506
7507 * infcall.c (call_function_by_hand): Update comment on
7508 DEPRECATED_DUMMY_WRITE_SP.
7509
7510 * mips-tdep.c (mips_gdbarch_init): Do not set
7511 deprecated_dummy_write_sp.
7512 (mips_eabi_push_dummy_call): Set the SP register.
7513 (mips_o64_push_dummy_call): Set the SP register.
7514 (mips_o32_push_dummy_call): Set the SP register.
7515 (mips_n32n64_push_dummy_call): Set the SP register.
7516
5ab84872
RH
75172003-06-01 Richard Henderson <rth@redhat.com>
7518
98a8e1e5
RH
7519 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7520 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7521 (supply_gregset): Likewise.
7522 * alpha-tdep.c (alpha_store_return_value): Likewise.
7523 (alpha_get_longjmp_target): Likewise.
7524 (alpha_register_name): Constify array.
7525 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7526 deprecated_register_size, deprecated_register_bytes,
7527 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7528 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7529 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 7530
09cc52fd
RH
75312003-06-01 Richard Henderson <rth@redhat.com>
7532
7533 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7534 from arg_reg_buffer to regcache to avoid double conversion.
7535
c7f16359
MK
75362003-06-01 Mark Kettenis <kettenis@gnu.org>
7537
7538 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7539 SP_REGNUM.
7540 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7541 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7542
7131cb6e
RH
75432003-06-01 Richard Henderson <rth@redhat.com>
7544
98a8e1e5
RH
7545 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7546 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 7547
f3e0f90b
RH
75482003-06-01 Richard Henderson <rth@redhat.com>
7549
98a8e1e5
RH
7550 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7551 not overlapping PC_REGNUM.
f3e0f90b 7552
c88e30c0
RH
75532003-06-01 Richard Henderson <rth@redhat.com>
7554
98a8e1e5
RH
7555 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7556 alpha_push_arguments. Don't dump argument register data to
7557 the target stack. Fix float and 128-bit long double semantics.
7558 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7559 (alpha_fix_call_dummy): Remove.
7560 (alpha_call_dummy_words): Remove.
7561 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 7562
f1a559ae
RH
75632003-06-01 Richard Henderson <rth@redhat.com>
7564
7565 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7566
5e045346
AC
75672003-06-01 Andrew Cagney <cagney@redhat.com>
7568
95404a3e
AC
7569 * mips-tdep.c (is_mips16_addr): New function.
7570 (make_mips16_addr, unmake_mips16_addr): New functions.
7571 (pc_is_mips16, mips_fetch_instruction): Use.
7572 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7573 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7574 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7575 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7576 TARGET_MIPS.
7577 * config/mips/tm-mips.h: Update copyright.
7578 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7579 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7580 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7581 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7582 (TM_PRINT_INSN_MACH): Delete.
7583 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7584
5e045346
AC
7585 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7586 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7587 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7588 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7589 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
7590 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
7591 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
7592 mips*-*-riscos* and mips*-*-sysv* onto mips.
7593 * config/mips/mips64.mt: New file.
7594 * config/mips/mips.mt: New file.
7595 * config/mips/littlemips.mt: Delete file.
7596 * config/mips/decstation.mt: Delete file.
7597 * config/mips/vr4300el.mt: Delete file.
7598 * config/mips/vr5000el.mt: Delete file.
7599 * config/mips/vr5000.mt: Delete file.
7600 * config/mips/vr4100.mt: Delete file.
7601 * config/mips/vr4xxxel.mt: Delete file.
7602 * config/mips/vr4300.mt: Delete file.
7603 * config/mips/vr4xxx.mt: Delete file.
7604 * config/mips/bigmips.mt: Delete file.
7605 * config/mips/bigmips64.mt: Delete file.
7606 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7607 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7608 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7609 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7610 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7611 "tm-bigmips.h".
7612 * config/mips/tm-irix3.h: Ditto.
7613 * config/mips/tm-mipsv4.h: Ditto.
7614 * config/mips/tm-embed.h: Ditto.
7615 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7616 "tm-bigmips64.h".
7617 * config/mips/tm-vr5000el.h: Delete file.
7618 * config/mips/tm-tx39l.h: Delete file.
7619 * config/mips/tm-vr4300el.h: Delete file.
7620 * config/mips/tm-vr4xxxel.h: Delete file.
7621 * config/mips/tm-vr4300.h: Delete file.
7622 * config/mips/tm-vr4100.h: Delete file.
7623 * config/mips/tm-vr4xxx.h: Delete file.
7624 * config/mips/tm-vr5000.h: Delete file.
7625 * config/mips/tm-embedl64.h: Delete file.
7626 * config/mips/tm-embedl.h: Delete file.
7627 * config/mips/tm-embed64.h: Delete file.
7628 * config/mips/tm-bigmips64.h: Delete file.
7629 * config/mips/tm-bigmips.h: Delete file.
7630
2473a4a9
MK
76312003-06-01 Mark Kettenis <kettenis@gnu.org>
7632
97a5b208
MK
7633 Fix gdb/1216.
7634 * shnbsd-nat.c: Include "sh-tdep.h".
7635
2473a4a9
MK
7636 From Richard Henderson <rth@redhat.com>:
7637 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7638
e0f7ec59
AC
76392003-05-31 Andrew Cagney <cagney@redhat.com>
7640
7641 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
7642 forward declaration.
7643 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7644 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7645 (mips_find_saved_regs): Use set_reg_offset.
7646 (mips_frame_init_saved_regs): Delete function.
7647 (mips_pop_frame): Call mips_find_saved_regs instead of
7648 DEPRECATED_FRAME_INIT_SAVED_REGS.
7649
68dcc709
AC
76502003-05-31 Andrew Cagney <cagney@redhat.com>
7651
7652 * mips-tdep.c (mips_gdbarch_init): Do not set
7653 deprecated_max_register_raw_size, register_virtual_size, and
7654 deprecated_max_register_virtual_size.
7655
cfc14b3a
MK
76562003-05-31 Mark Kettenis <kettenis@gnu.org>
7657
6405b0a6
MK
7658 * i386-tdep.c: Include "dwarf2-frame.h".
7659 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7660 * Makefile.in (i386-tdep.o): Update dependencies.
7661
cfc14b3a
MK
7662 * dwarf2-frame.c, dwarf2-frame.h: New files.
7663 * Makefile.in (SFILES): Add dwarf2-frame.c.
7664 (dwarf2_frame_h): Define.
7665 (COMMON_OBS): Add dwarf2-frame.o.
7666 (dwarf2-frame.o): Add dependencies.
7667
6a2751d2
AJ
76682003-05-31 Andreas Jaeger <aj@suse.de>
7669
7670 * x86-64-linux-nat.c: Fix comment.
7671
1c3545ae
MK
76722003-05-31 Mark Kettenis <kettenis@gnu.org>
7673
10f93086
MK
7674 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
7675 function signature.
7676
1c3545ae
MK
7677 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
7678 have a sigcontext_addr handler.
7679 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
7680 sigcontext_addr handler.
7681
e11c53d2
AC
76822003-05-31 Andrew Cagney <cagney@redhat.com>
7683
7684 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
7685 (print_fp_register_row): Replace do_fp_register_row.
7686 (mips_print_fp_register): Add "file" and "frame" parameters.
7687 (mips_print_register): Add "file" and "frame" parameters.
7688 (mips_print_registers_info): Replace mips_do_registers_info.
7689 (mips_gdbarch_init): Set print_registers_info instead of
7690 deprecated_do_registers_info.
7691 (mips_read_fp_register_single): Add "frame" parameter.
7692 (mips_read_fp_register_double): Add "frame" parameter.
7693
a3386186
MK
76942003-05-31 Mark Kettenis <kettenis@gnu.org>
7695
70913449
MK
7696 * i386-tdep.c (i386_register_name): Check for MMX registers first.
7697 Fixes a bug where GDB would print the wrong register names for
7698 targets without SSE.
7699
2b5e0749
MK
7700 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
7701 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7702 registers.
7703
7704 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
7705 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
7706 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7707 TDEP->sc_sp_offset.
7708
a3386186
MK
7709 From Michal Ludvig <mludvig@suse.cz>:
7710 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
7711 and `sc_num_regs'.
7712 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7713 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7714 I386_ST0_REGNUM): Move here from...
7715 * i386-tdep.c: ... here.
7716 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
7717 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7718 registers if possible.
7719 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
7720 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
7721 Remove variables.
7722 (i386bsd_sc_reg_offset): New variable.
7723 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
7724 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7725 TDEP->sc_sp_offset.
7726 (i386fbsd_sc_reg_offset): New variable.
7727 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
7728 TDEP->sc_num_regs.
7729 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
7730 variables.
7731 (i386fbsd4_sc_reg_offset): New variable.
7732 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
7733 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7734 TDEP->sc_sp_offset.
7735 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
7736 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
7737 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
7738 Remove variables.
7739 (i386nbsd_sc_reg_offset): New variable.
7740 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
7741 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7742 TDEP->sc_sp_offset.
7743 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
7744 Remove variables.
7745 (i386obsd_sc_reg_offset): New variable.
7746 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
7747 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7748 TDEP->sc_sp_offset.
7749 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
7750 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
7751 for frame pointer offset in `struct sigcontext'.
7752
25ab4790
AC
77532003-05-31 Andrew Cagney <cagney@redhat.com>
7754
7755 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
7756 architecture methods call_dummy_words, sizeof_call_dummy_words,
7757 push_return_address, store_struct_return, and fix_call_dummy. Set
7758 push_dummy_call instead of deprecated_push_arguments.
7759 (mips_store_struct_return): Delete function.
7760 (mips_fix_call_dummy): Delete function.
7761 (mips_push_return_address): Delete function.
7762 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
7763 RA_REGNUM and T9_REGNUM.
7764 (mips_n32n64_push_dummy_call): Ditto for
7765 mips_n32n64_push_arguments.
7766 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
7767 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
7768
6a65450a
AC
77692003-05-31 Andrew Cagney <cagney@redhat.com>
7770
7771 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
7772 "dummy_addr" to "bp_addr".
7773 * infcall.c (call_function_by_hand): Pass "funaddr" to
7774 gdbarch_push_dummy_call.
7775 * gdbarch.h, gdbarch.c: Re-generate.
7776 * i386-tdep.c (i386_push_dummy_call): Update.
7777 * arm-tdep.c (arm_push_dummy_call): Update.
7778 * d10v-tdep.c (d10v_push_dummy_call): Update.
7779
c4f35dd8
MK
77802003-05-31 Mark Kettenis <kettenis@gnu.org>
7781
7782 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
7783 variable declarations.
7784 (x86_64_register_number, x86_64_register_name): Remove prototypes.
7785 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
7786 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
7787 x86_64_init_frame_pc, x86_64_init_frame_pc,
7788 x86_64_function_has_prologue): Remove prototypes.
7789 (X86_64_NUM_GREGS): New define.
7790 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
7791 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
7792 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
7793 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
7794 XMM1_REGNUM): Remove defines.
7795 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
7796 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
7797 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
7798 X86_64_XMM1_REGNUM): New defines.
7799 (struct x86_64_register_info): Renamed from `struct
7800 register_info'. Remove `size' member.
7801 (x86_64_register_info_table): Remove variable.
7802 (x86_64_register_info): New variable.
7803 (X86_64_NUM_REGS): New define.
7804 (X86_64_NUM_GREGS): Remove define.
7805 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
7806 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
7807 Remove variables.
7808 (x86_54_dwarf2_reg_to_regnum): Remove function.
7809 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
7810 (x86_64_dwarf_reg_to_regnum): New function.
7811 (x86_64_register_name): Rewrite.
7812 (x86_64_register_raw_size): Remove function.
7813 (x86_64_register_byte_table): Remove variable.
7814 (x86_64_register_byte): Remove function.
7815 (x86_64_register_virtual_type): Remove function.
7816 (x86_64_register_type): New function.
7817 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
7818 x86_64_register_convert_to_raw): Remove functions.
7819 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
7820 (x86_64_use_struct_convention): Make static. Adjust for renamed
7821 defines.
7822 (x86_64_frame_init_saved_regs): Remove function.
7823 (x86_64_push_arguments): Make static. Change to accept a regcache
7824 as argument.
7825 (x86_64_store_return_value, x86_64_extract_return_value): Make
7826 static. Rewrite based on i386 counterparts.
7827 (x86_64_push_dummy_call): New function.
7828 (X86_64_NUM_SAVED_REGS): New define.
7829 (x86_64_register_number): Remove function.
7830 (x86_64_store_struct_return): Remove function.
7831 (x86_64_frameless_function_invocation,
7832 x86_64_function_has_prologue): Remove functions.
7833 (PROLOG_BUFSIZE): Remove define.
7834 (struct x86_64_frame_cache): New structure.
7835 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
7836 x86_64_frame_cache, x86_64_frame_this_id,
7837 x86_64_frame_prev_register, x86_64_frame_p,
7838 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
7839 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
7840 functions.
7841 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
7842 variables.
7843 (x86_64_skip_prologue): Rewrite in terms of
7844 x86_64_analyze_prologue.
7845 (x86_64_frame_base_address): New function.
7846 (x86_64_frame_base): New variable.
7847 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
7848 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
7849 set deprecated_fp_regnum, deprecated_register_size,
7850 deprecated_register_bytes, register_raw_size, register_byte,
7851 register_virtual_type, register_convertiable,
7852 register_convert_to_virtual, convert_to_raw,
7853 deprecated_get_saved_register, deprecated_target_read_fp,
7854 deprecated_push_arguments, deprecated_push_return_address,
7855 deprecated_pop_frame, deprecated_store_struct_return,
7856 deprecated_frame_init_saved_regs, deprecated_frame_chain,
7857 frameless_function_invocation, deprecated_frame_saved_pc,
7858 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
7859 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
7860 deprecated_init_frame_pc and virtual_frame_pointer. Call
7861 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
7862 and x86_64_frame_p. Call frame_base_set_default to register
7863 x86_64_frame_base.
7864 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
7865 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
7866 (_initialize_x86_64_tdep): Remove function.
7867 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
7868 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
7869 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
7870 define.
7871 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
7872 (x86_64_linux_sigcontext_addr): Rewrite.
7873 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
7874 x86_64_linux_frame_saved_pc): Remove functions.
7875 (x86_64_linux_pc_in_sigtramp): Renamed from
7876 x86_64_linux_in_sigtramp. Try harder to recognize a signal
7877 trampoline.
7878 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
7879 Remove_functions.
7880 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
7881 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7882 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
7883 (x86_64_regmap): Rename to regmap.
7884 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
7885 x86_64_num_gregs.
7886 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
7887 x86_64_regmap.
7888 (x86_64_fxsave_offset): Remove function.
7889 (supply_fpregset): Simply call x86_64_supply_fxsave.
7890 (fill_fpregset): Simply call x86_64_fill_fxsave.
7891 (fetch_inferior_registers, store_inferior_registers): Avoid
7892 asignment in if-statement.
7893 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
7894 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
7895 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
7896 (fetch_core_registers): Remove function.
7897 (linux_elf_core_fns): Remove.
7898 (offsetoff): Don't define.
7899 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
7900 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
7901 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
7902 add core-regset.o.
7903 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
7904 protection against multiple includes instead of NM_X86_64_h. Add
7905 various comments. Include "config/nm-linux.h". Don't include
7906 <signal.h>.
7907 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
7908 GET_THREAD_SIGNALS): Remove defines.
7909 (x86_64_register_u_addr, kernel_u_size,
7910 lin_thread_get_thread_signals): Remove prototypes.
7911 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
7912 [HAVE_LINK_H]: Don't include "solib.h".
7913 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
7914 * config/i386/tm-x86-64linux.h: Fix comments.
7915 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
7916 x86-64-tdep.o): Update dependencies.
7917
c25083af
AC
79182003-05-30 Andrew Cagney <cagney@redhat.com>
7919
c8f55a7b
AC
7920 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
7921 Change parameter type to a "struct regcache *".
7922
c25083af
AC
7923 * gdbarch.sh: Regardless of the multi-arch level, always define
7924 the macro when not already defined.
7925 * gdbarch.h, gdbarch.c: Re-generate.
7926
fbe586ae
RH
79272003-05-30 Richard Henderson <rth@redhat.com>
7928
7929 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
7930 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
7931 (alpha_mdebug_frame_this_id): Likewise.
7932 (alpha_mdebug_frame_prev_register): Likewise.
7933 (alpha_mdebug_frame_base_address): Likewise.
7934 (alpha_mdebug_frame_locals_address): Likewise.
7935 (alpha_mdebug_frame_args_address): Likewise.
7936 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
7937 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
7938 (alpha_heuristic_frame_unwind_cache): Make static; add missing
7939 loop increment.
7940 (alpha_heuristic_frame_this_id): Make static.
7941 (alpha_heuristic_frame_prev_register): Likewise.
7942 (alpha_heuristic_frame_base_address): Likewise.
7943 * alpha-tdep.h: Update.
7944
acd5c798
MK
79452003-05-30 Mark Kettenis <kettenis@gnu.org>
7946
7947 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
7948 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
7949 defenitions.
7950 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
7951 * i386-tdep.c: Mark functions that are 64-bit safe as such.
7952 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7953 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7954 I386_ST0_REGNUM): New defines.
7955 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
7956 codestream_get): Remove define.
7957 (codestream_next_addr, condestream_addr, condestream_buf,
7958 codestream_off, codestream_cnt): Remove variables.
7959 (codestream_fill, codestream_seek, codestream_read): Remove
7960 functions.
7961 (i386_follow_jump): Rewrite to avoid usage of removed codestream
7962 functionality.
7963 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
7964 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
7965 i386_frame_saved_pc, i386_saved_pc_after_call,
7966 i386_frame_num_args, i386_frame_init_saved_regs,
7967 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
7968 i386_push_arguments): Remove functions.
7969 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
7970 functionality. Use i386_analyze_prologue instead of
7971 i386_get_frame_setup.
7972 (I386_NUM_SAVED_REGS): New define.
7973 (struct i386_frame_cache): New structure.
7974 (i386_alloc_frame_cache, i386_analyze_struct_return,
7975 i386_skip_probe, i386_analyze_frame_setup,
7976 i386_analyze_register_saves, i386_analyze_prologue,
7977 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
7978 i386_frame_prev_register, i386_sigtramp_frame_cache,
7979 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
7980 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
7981 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
7982 New functions.
7983 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
7984 New variables.
7985 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
7986 I386_EAX_REGNUM and I386_EDX_REGNUM.
7987 (i386_extract_return_value, i386_store_return_value): Use
7988 I386_ST0_REGNUM where appropriate.
7989 (i386_extract_struct_value_address): Rewrite to use extract_address.
7990 (i386_svr4_pc_in_sigtramp): Add comment.
7991 (i386_svr4_sigcontext_addr): Rewrite.
7992 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
7993 TDEP->sc_sp_offset.
7994 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
7995 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
7996 of new defines. Set push_dummy_call, don't set
7997 deprecated_push_arguments, deprecated_push_return_address,
7998 deprecated_pop_frame. Don't set parm_boundary. Don't set
7999 deprecated_frame_chain, deprecated_frame_saved_pc,
8000 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8001 save_dummy_frame_tos, unwind_pc. Call
8002 frame_unwind_append_predicate and frame_base_set_default. Don't
8003 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8004 Don't set frameless_function_invocation. Don't set
8005 deprecated_register_bytes, deprecated_register_size,
8006 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8007 * i386-linux-tdep.c: Fix formatting in some comments.
8008 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8009 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8010 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8011 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8012 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8013 redundant parentheses.
8014 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8015 (i386_linux_sigcontext_addr): Use it. Rewrite.
8016 (find_minsym_and_objfile): Change name of second argument.
8017 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8018 changed. Use frame_pc_unwind instead of
8019 DEPRECATED_SAVED_PC_AFTER_CALL.
8020 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8021 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8022 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8023 unwinder.
8024 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8025 "dummy-frame.h".
8026 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8027 (_initialize_i386_cygwin_tdep): New prototype.
8028 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8029 deprecated_frame_chain_valid.
8030 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8031 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8032 Rely on the SVR4 defaults.
8033 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8034 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8035
c89b70f1
AC
80362003-05-30 Andrew Cagney <cagney@redhat.com>
8037
8038 * infcall.c (call_function_by_hand): Always call
8039 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8040
85b32d22
RH
80412003-05-30 Richard Henderson <rth@redhat.com>
8042
c89b70f1
AC
8043 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8044 increment.
85b32d22 8045
bfe51b1e
JB
80462003-05-29 Jim Blandy <jimb@redhat.com>
8047
8048 Use gdbarch methods for solib stuff on PowerPC Linux.
8049 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8050 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8051 show through.
8052 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8053 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8054 giving the same effect as the #definitions above.
8055
1abf022c
AF
80562003-05-29 Adam Fedor <fedor@gnu.org>
8057
8058 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8059 (find_implementation_from_class): Replace it with the standard
8060 case i.e. do nothing.
8061
d2427a71
RH
80622003-05-29 Richard Henderson <rth@redhat.com>
8063
8064 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8065 (alpha_linux_sigtramp_offset): Use it. Make static.
8066 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8067 update for new frame model.
8068 * alpha-mdebug-tdep.c: New file.
8069 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8070 (alpha_osf1_init_abi): Install it.
8071 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8072 (linked_proc_desc_table): Remove.
8073 (alpha_frame_past_sigtramp_frame): Remove.
8074 (alpha_dynamic_sigtramp_offset): Remove.
8075 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8076 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8077 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8078 (push_sigtramp_desc): Remove.
8079 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8080 (alpha_cannot_store_register): Likewise.
8081 (alpha_sigcontext_addr): Remove.
8082 (alpha_find_saved_regs): Remove.
8083 (alpha_frame_init_saved_regs): Remove.
8084 (alpha_init_frame_pc_first): Remove.
8085 (read_next_frame_reg): Remove.
8086 (alpha_frame_saved_pc): Remove.
8087 (alpha_saved_pc_after_call): Remove.
8088 (temp_proc_desc, temp_saved_regs): Remove.
8089 (alpha_about_to_return): Remove.
8090 (cached_proc_desc): Remove.
8091 (alpha_frame_chain): Remove.
8092 (alpha_print_extra_frame_info): Remove.
8093 (alpha_init_extra_frame_info): Remove.
8094 (alpha_frame_locals_address): Remove.
8095 (alpha_frame_args_address): Remove.
8096 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8097 (alpha_push_dummy_frame): Remove.
8098 (alpha_pop_frame): Remove.
8099 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8100 (alpha_read_insn): New.
8101 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8102 for different insn encodings.
8103 (alpha_in_lenient_prologue): Remove.
8104 (struct alpha_sigtramp_unwind_cache): New.
8105 (alpha_sigtramp_frame_unwind_cache): New.
8106 (alpha_sigtramp_register_address): New.
8107 (alpha_sigtramp_frame_this_id): New.
8108 (alpha_sigtramp_frame_prev_register): New.
8109 (alpha_sigtramp_frame_unwind): New.
8110 (alpha_sigtramp_frame_p): New.
8111 (struct alpha_heuristic_unwind_cache): New.
8112 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8113 don't count nop insns that occur between functions.
8114 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8115 heuristic_proc_desc, but without the mdebug wrapping.
8116 (alpha_heuristic_frame_this_id): New.
8117 (alpha_heuristic_frame_prev_register): New.
8118 (alpha_heuristic_frame_unwind): New.
8119 (alpha_heuristic_frame_p): New.
8120 (alpha_heuristic_frame_base_address): New.
8121 (alpha_heuristic_frame_base): New.
8122 (alpha_unwind_dummy_id): New.
8123 (alpha_unwind_pc): New.
8124 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8125 frame related deprecated initializations; install replacements.
8126 (alpha_dump_tdep): Remove.
8127 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8128 (alpha_read_insn, alpha_after_prologue,
8129 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8130 alpha_heuristic_frame_prev_register,
8131 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8132 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8133 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8134 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8135
93ec1121
AC
81362003-05-29 Andrew Cagney <cagney@redhat.com>
8137
8138 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8139 dependant on the availability of ASSERT_FUNCTION.
8140 (ASSERT_FUNCTION): Do not define when there is no function name.
8141
98f08d3d
KB
81422003-05-29 Kevin Buettner <kevinb@redhat.com>
8143
8144 From Jimi X <jimix@watson.ibm.com>:
8145 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8146
0897f59b
JB
81472003-05-28 Jim Blandy <jimb@redhat.com>
8148
8149 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8150 argument to ptrace to int; the system headers should give it the
8151 right type, and pointers don't fit in ints on powerpc64-*-*.
8152
14898363
L
81532003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8154
8155 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8156 DW_TAG_catch_block.
8157
a7a48797
EZ
81582003-05-26 Elena Zannoni <ezannoni@redhat.com>
8159
8160 * stabsread.c (dbx_lookup_type): Make static.
8161 (read_type): Ditto.
8162 (add_undefined_type): Ditto.
8163 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8164 not export.
8165
f5479e9c
EZ
81662003-05-26 Elena Zannoni <ezannoni@redhat.com>
8167
8168 * hpread.c (hpread_has_name): Make static.
8169 (hpread_psymtab_to_symtab): Ditto.
8170 (file_exists): Ditto.
8171 (hpread_call_pxdb): Ditto.
8172 (hpread_pxdb_needed): Ditto.
8173 (hpread_quick_traverse): Ditto.
8174 (hpread_get_header): Ditto.
8175 (hpread_get_lntt): Ditto.
8176 (hpread_get_slt): Ditto.
8177 (class_of): Ditto.
8178
eb2e12d7
AS
81792003-05-25 Andreas Schwab <schwab@suse.de>
8180
78bf922a
AS
8181 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8182 stack_align and deprecated_extra_stack_alignment_needed.
8183 (m68k_stack_align): Delete.
8184
eb2e12d7
AS
8185 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8186 (m68k_register_virtual_size): Likewise.
8187 (altos_skip_prologue): Remove obsolete function.
8188 (isi_frame_num_args): Likewise.
8189 (news_frame_num_args): Likewise.
8190 (m68k_fix_call_dummy): Make static.
8191 (m68k_push_dummy_frame): Likewise.
8192 (m68k_pop_frame): Likewise.
8193 (m68k_skip_prologue): Likewise.
8194 (m68k_frame_init_saved_regs): Likewise.
8195 (m68k_saved_pc_after_call): Likewise.
8196 (m68k_get_longjmp_target): Make multi-arch.
8197 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8198 structure. Register m68k_get_longjmp_target if enabled.
8199 * m68k-tdep.h (struct gdbarch_tdep): Define.
8200 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8201
8202 * Makefile.in (config.status): Also depend on configure.tgt
8203 and configure.host.
8204 (m68klinux-tdep.o): Update dependencies.
8205 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8206 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8207 (M68K_LINUX_JB_PC): Define.
8208 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8209 and take additional parameter.
8210 (m68k_linux_sigtramp_saved_pc): Update.
8211 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8212 m68k_linux_pc_in_sigtramp, in_plt_section,
8213 find_solib_trampoline_target.
8214 * config/m68k/tm-linux.h: Don't include any tm headers.
8215 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8216 (JB_ELEMENT_SIZE): Likewise.
8217 (JB_PC): Likewise.
8218 (GET_LONGJMP_TARGET): Likewise.
8219 (IN_SIGTRAMP): Likewise.
8220 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8221
eb2c22dc
MK
82222003-05-25 Mark Kettenis <kettenis@gnu.org>
8223
8224 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8225 (sparc32_push_arguments): Re-implement by calling
8226 sparc32_do_push_arguments.
8227
44b7b84e
MK
82282003-05-25 Mark Kettenis <kettenis@gnu.org>
8229
8230 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8231 SPARC_O1_REGNUM): New defines.
8232 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8233 (sparc32_store_return_value): New function.
8234 (sparc_extract_struct_value_address): Rewrite to operate on a
8235 regcache.
8236 (sparc_gdbarch_init): Don't set
8237 deprecated_extract_struct_value_address. Set
8238 extract_struct_value_address instead. Don't set
8239 deprecated_extract_return_value and deprecated_store_return_value
8240 for 32-bit targets. Set extract_return_value and
8241 store_return_value instead.
8242 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7bb11558 8243 DEPRECATED_EXTRACT_RETURN_VALUE,
44b7b84e
MK
8244 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8245 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8246 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8247 (sparc_store_return_value): Remove prototype.
8248 (sparc32_store_return_value): New prototype.
8249 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8250 Adjust prototypes.
8251
f6ad61e3
MK
82522003-05-24 Mark Kettenis <kettenis@gnu.org>
8253
8254 * sparcnbsd-tdep.c: Include "gdb_string.h".
8255
b276f1bb
AC
82562003-05-23 Andrew Cagney <cagney@redhat.com>
8257
8258 * p-valprint.c (pascal_val_print): Replace extract_address with
8259 the inline equivalent extract_unsigned_integer.
8260 * jv-valprint.c (java_value_print): Ditto.
8261 * ada-valprint.c (ada_val_print_1): Ditto.
8262 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8263
e76c5fcc
TR
82642003-05-23 Theodore A. Roth <troth@openavr.org>
8265
8266 * blockframe.c (frameless_look_for_prologue): Remove unused
8267 after_prologue variable.
8268
2cdd89cb
MK
82692003-05-23 Mark Kettenis <kettenis@gnu.org>
8270
8271 * blockframe.c (get_pc_function_start): Rewrite to avoid
8272 asignments in if-statements.
8273
182d43bc
EZ
82742003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8275
8276 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 8277 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
8278 files, don't relocate absolute symbols (and do use mst_abs).
8279
e8f3fcdd
AC
82802003-05-23 Andrew Cagney <cagney@redhat.com>
8281
8282 * objc-lang.c: Include "gdb_assert.h".
8283 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8284 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8285 (gdb_check, gdb_check_fatal): Delete functions.
8286 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8287 gdb_assert.
8288 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8289 * Makefile.in (objc-lang.o): Update dependencies.
8290
3c23e6fb
ILT
82912003-05-22 Ian Lance Taylor <ian@airs.com>
8292
8293 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8294 with fprintf_filtered, not fprintf_unfiltered.
8295
af1342ab
AC
82962003-05-22 Andrew Cagney <cagney@redhat.com>
8297
8298 * stack.c (frame_info): Inline extract_address, replacing it with
8299 extract_unsigned_integer.
8300 * findvar.c (unsigned_pointer_to_address): Ditto.
8301 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8302 * dwarf2expr.c (dwarf2_read_address): Ditto.
8303 * frame.c (frame_pc_unwind): Update comment.
8304 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8305
47e242ec
JJ
83062003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8307
8308 * infptrace.c (detach): Call print_sys_errmsg rather than
8309 perror_with_name to issue warning message when errno is non-zero
8310 after calling ptrace detach.
8311
e2ac8128
JB
83122003-05-21 J. Brobecker <brobecker@gnat.com>
8313
8314 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8315 macro definitions from here...
8316 * hppa-tdep.c: ...to there.
8317
92b3541e
KB
83182003-05-20 Kevin Buettner <kevinb@redhat.com>
8319
8320 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8321 register_ptrace_addr(). Fix all callers.
8322
55809acb
AS
83232003-05-21 Andreas Schwab <schwab@suse.de>
8324
8325 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8326 dependencies.
8327 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8328 end.
8329 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8330 (_initialize_m68k_linux_tdep): New function.
8331 (m68k_linux_frame_saved_pc): Make static.
8332 (m68k_linux_extract_return_value): Likewise.
8333 (m68k_linux_store_return_value): Likewise.
8334 (m68k_linux_extract_struct_value_address): Likewise.
8335 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8336 Remove.
8337 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8338 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8339 (DEPRECATED_FRAME_SAVED_PC): Remove.
8340
0fbc10f7
KW
83412003-05-20 Kris Warkentin <kewarken@qnx.com>
8342
8343 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8344 regset numbering rather than our own.
8345
58da2eb2
DC
83462003-05-19 David Carlton <carlton@bactrian.org>
8347
8348 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8349
1fcb5155
DC
83502003-05-19 David Carlton <carlton@bactrian.org>
8351
8352 Partial fix for PR c++/827.
8353 * cp-support.h: Include symtab.h.
8354 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8355 * cp-namespace.c: Update contributors.
8356 (cp_lookup_symbol_nonlocal): New.
8357 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8358 (lookup_symbol_file): Ditto.
8359 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8360 * block.h: Declare block_scope, block_using, block_global_block.
8361 * block.c (block_scope): New.
8362 (block_using, block_global_block): Ditto.
8363 * Makefile.in (cp_support_h): Depend on symtab_h.
8364 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8365
5f9a71c3
DC
83662003-05-19 David Carlton <carlton@bactrian.org>
8367
8368 * language.h (struct language_defn): Add 'la_value_of_this'
8369 and 'la_lookup_symbol_nonlocal' members.
8370 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8371 lookup_symbol_static, lookup_symbol_global,
8372 lookup_symbol_aux_block.
8373 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8374 if we should search fields of this and how to do static/global
8375 lookup.
8376 (lookup_symbol_aux_block): Make extern.
8377 (basic_lookup_symbol_nonlocal): New.
8378 (lookup_symbol_static, lookup_symbol_global): Ditto.
8379 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8380 'la_lookup_symbol_nonlocal' members.
8381 * c-lang.c (c_language_defn, cplus_language_defn)
8382 (asm_language_defn, minimal_language_defn): Ditto.
8383 * jv-lang.c (java_language_defn): Ditto.
8384 * language.c (unknown_language_defn, auto_language_defn)
8385 (local_language_defn): Ditto.
8386 * m2-lang.c (m2_language_defn): Ditto.
8387 * objc-lang.c (objc_language_defn): Ditto.
8388 * scm-lang.c (scm_language_defn): Ditto.
8389 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8390 * p-lang.c (pascal_language_defn): Ditto for both.
8391 * Makefile.in (f-lang.o): Depend on value_h.
8392 (p-lang.o): Ditto.
8393
89a9d1b1
DC
83942003-05-19 David Carlton <carlton@bactrian.org>
8395
8396 * block.h: Declare block_static_block.
8397 * block.c (block_static_block): New.
8398 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8399 lookup_symbol_aux_local, calling block_static_block instead.
8400 (lookup_symbol_aux_local): Delete 'static_block' argument.
8401
eed3f8ab
DC
84022003-05-19 David Carlton <carlton@bactrian.org>
8403
8404 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8405
a09d8bda
ML
84062003-05-19 Michal Ludvig <mludvig@suse.cz>
8407
8408 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8409 register numbers mapping.
8410
69636828
AF
84112003-05-18 Adam Fedor <fedor@gnu.org>
8412
8413 * symtab.c (completion_list_objc_symbol): New function.
8414 (make_symbol_completion_list): Use it to add ObjC symbols
8415 when looking though the list.
8416 (language_search_unquoted_string): New function.
8417 (make_file_symbol_completion_list): Use it.
8418
55baeb84
AS
84192003-05-18 Andreas Schwab <schwab@suse.de>
8420
d0b45d99
AS
8421 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8422 dependencies.
8423 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8424 as m68k_linux_extract_return_value.
8425 (DEPRECATED_STORE_RETURN_VALUE): Define as
8426 m68k_linux_store_return_value.
8427 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8428 m68k_linux_extract_struct_value_address.
8429 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8430 get_next_frame, get_frame_base, get_frame_pc.
8431 (m68k_linux_frame_saved_pc): Use get_frame_base.
8432 (m68k_linux_extract_return_value): New function.
8433 (m68k_linux_store_return_value): New function.
8434 (m68k_linux_extract_struct_value_address): New function.
8435 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8436
55baeb84
AS
8437 * c-exp.y (typebase): Remove duplicate occurence of
8438 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 8439 of lookup_signed_typename.
55baeb84 8440
b6b08ebf
MK
84412003-05-18 Mark Kettenis <kettenis@gnu.org>
8442
8443 * dwarf2loc.c (find_location_expression): Change type of second
8444 argument to `size_t *'.
8445 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8446 for size variable.
8447
5ad1c190
DC
84482003-05-18 David Carlton <carlton@bactrian.org>
8449
8450 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8451 'linkage_name'. Add comment.
8452 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8453 'linkage_name'.
8454 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8455 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8456 (lookup_block_symbol): Ditto.
8457
b8b527c5
AC
84582003-05-16 Andrew Cagney <cagney@redhat.com>
8459
8460 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8461 * gdbarch.h, gdbarch.c: Re-generate.
8462 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8463 * TODO (REGISTER_BYTES): Delete reference.
8464 * alpha-tdep.c (alpha_gdbarch_init): Update.
8465 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8466 * x86-64-tdep.c (x86_64_init_abi): Update.
8467 * vax-tdep.c (vax_gdbarch_init): Update.
8468 * v850-tdep.c (v850_gdbarch_init): Update.
8469 * sparc-tdep.c (sparc_gdbarch_init): Update.
8470 * sh-tdep.c (sh_gdbarch_init): Update.
8471 * s390-tdep.c (s390_gdbarch_init): Update.
8472 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8473 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8474 (ns32k_gdbarch_init_32382): Update.
8475 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8476 * mcore-tdep.c (mcore_gdbarch_init): Update.
8477 * m68k-tdep.c (m68k_gdbarch_init): Update.
8478 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8479 * ia64-tdep.c (ia64_gdbarch_init): Update.
8480 * i386-tdep.c (i386_gdbarch_init): Update.
8481 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8482 * hppa-tdep.c (hppa_gdbarch_init): Update.
8483 * h8300-tdep.c (h8300_gdbarch_init): Update.
8484 * frv-tdep.c (frv_gdbarch_init): Update.
8485 * cris-tdep.c (cris_gdbarch_init): Update.
8486 * avr-tdep.c (avr_gdbarch_init): Update.
8487 * arm-tdep.c (arm_gdbarch_init): Update.
8488 * sparc-tdep.c (sparc_pop_frame): Update.
8489 * rs6000-tdep.c (rs6000_pop_frame): Update.
8490 * remote.c (init_remote_state): Update.
8491 (remote_prepare_to_store): Update.
8492 * remote-vx.c (vx_prepare_to_store): Update.
8493 * remote-sds.c (sds_fetch_registers): Update.
8494 (sds_prepare_to_store): Update.
8495 * remote-array.c: Update.
8496 * regcache.c (init_legacy_regcache_descr): Update.
8497 (init_regcache_descr): Update.
8498 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8499 (mips_o64_extract_return_value): Update.
8500 * irix5-nat.c (fetch_core_registers): Update.
8501 * irix4-nat.c (fetch_core_registers): Update.
8502 * i386-tdep.h: Update.
8503 * hppa-tdep.c (pa_do_registers_info): Update.
8504 (pa_do_strcat_registers_info): Update.
8505 * cris-tdep.c (cris_register_bytes_ok): Update.
8506 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8507 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8508 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8509 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8510 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8511 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8512 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8513 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8514 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8515 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8516 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8517 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8518 (REGISTER_BYTES_OK): Update.
8519 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8520 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8521
ee2842e2
ILT
85222003-05-16 Ian Lance Taylor <ian@airs.com>
8523
8524 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8525 (vax_print_insn, print_insn_arg): Remove static functions.
8526 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8527 print_insn_vax from opcodes library.
8528 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8529
973177d3
AC
85302003-05-15 Andrew Cagney <cagney@redhat.com>
8531
aaab4dba
AC
8532 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8533 * target.h (memory_breakpoint_from_pc): Delete declaration.
8534 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8535 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8536 * monitor.c (monitor_insert_breakpoint): Use
8537 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8538 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8539 * gdbarch.h, gdbarch.c: Re-generate.
8540 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8541 (sparc_gdbarch_init): Set breakpoint_from_pc to
8542 sparc_breakpoint_from_pc.
8543 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8544 (BREAKPOINT_FROM_PC): Define.
8545 (sparc_breakpoint_from_pc): Declare.
8546 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8547 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8548 (BREAKPOINT_FROM_PC): Define.
8549 (BREAKPOINT): Delete macro.
8550 * target.h: Update comment.
8551 * s390-tdep.c (s390_gdbarch_init): Update comments.
8552 * remote.c: Update comments.
8553 * remote-mips.c: Update comments.
8554 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8555 * mem-break.c: Update comment.
8556 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8557 (ia64_memory_insert_breakpoint): Update.
8558 * config/sparc/tm-sparc.h: Update comment.
8559 * config/pa/tm-hppa64.h: Update comment.
8560 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8561 (rs6000_breakpoint_from_pc): Update.
8562 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8563 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8564 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8565 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8566 (mips_breakpoint_from_pc): Update.
8567 (mips_dump_tdep): Update.
8568
e06963ff
AC
8569 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8570 * minsyms.c (lookup_minimal_symbol): Inline
8571 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8572
973177d3
AC
8573 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8574 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8575 * p-lang.c (pascal_printstr): Ditto.
8576 * objc-lang.c (objc_printstr): Ditto.
8577 * m2-lang.c (m2_printstr): Ditto.
8578 * jv-valprint.c (java_print_value_fields): Ditto.
8579 * f-lang.c (f_printstr): Ditto.
8580 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8581 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8582 for repeat_count_threshold.
8583 * Makefile.in (cp-valprint.o): Update dependencies.
8584
5ea2bd7f 85852003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 8586
5ea2bd7f
JJ
8587 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8588 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
8589 they start with mov r2,r12. Support skipping over indirect stores
8590 of the input registers. Upon hitting a non-nop branch instruction
8591 or predicated instruction, bail out by setting lim_pc to the current
8592 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
8593 beyond our calculated value and we have trust_limit set,
8594 use the lim_pc value.
8595
cc8c88f3
AC
85962003-05-15 Andrew Cagney <cagney@redhat.com>
8597
8598 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8599 generic_find_dummy_frame.
8600 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8601 (deprecated_generic_find_dummy_frame): Update.
8602 (deprecated_read_register_dummy): Update.
8603 * frame.c (deprecated_generic_get_saved_register): Update.
8604
909cd28e
TR
86052003-05-15 Theodore A. Roth <troth@openavr.org>
8606
8607 * avr-tdep.c (avr_breakpoint_from_pc): New function.
8608 (avr_gdbarch_init): Set breakpoint_from_pc method.
8609
b923b08d
AC
86102003-05-15 Andrew Cagney <cagney@redhat.com>
8611
8612 * regcache.c (build_regcache): Set deprecated_register_valid
8613 directly.
8614 (deprecated_grub_regcache_for_register_valid): Delete function.
8615 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8616 declaration.
8617
ae2f03ac 86182003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
8619
8620 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
8621 * symtab.c (lookup_symbol_aux): Delete calls to
8622 lookup_symbol_aux_minsyms.
8623 (lookup_symbol_aux_minsyms): Comment out function and
8624 prototype. Delete lookup by mangled name.
ae2f03ac 8625
18ec9831
KB
86262003-05-14 Kevin Buettner <kevinb@redhat.com>
8627
8628 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8629 correctly indicate an empty stack and ``stack_allocated'' to the
8630 indicate the number of elements initially allocated.
8631 (dwarf_expr_grow_stack): Simplify method for computing new
8632 stack size. Don't loop infinitely if ``stack_len'' is zero.
8633 (execute_stack_op): Move ``ctx->in_reg'' initialization
8634 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8635 be used in conjuction with DW_OP_piece. Revise error message
8636 accordingly.
8637
de18ac1f
TR
86382003-05-14 Theodore A. Roth <troth@openavr.org>
8639
8640 * MAINTAINERS: Update my email address.
8641 * avr-tdep.c: Ditto.
8642
176620f1
EZ
86432003-05-14 Elena Zannoni <ezannoni@redhat.com>
8644
8645 * symtab.h (enum domain_enum): Rename from namespace_enum.
8646 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8647 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8648 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8649 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8650 TYPES_NAMESPACE, METHODS_NAMESPACE.
8651 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8652 (struct symbol, struct partial_symbol): Rename field
8653 'namespace_enum namespace' to 'domain_enum domain'.
8654 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8655 Delete old define kludge for namespace.
8656
8657 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8658 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8659 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8660 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8661 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8662 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8663 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8664 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8665 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8666 occurrences of the above.
8667
b7f31508
ILT
86682003-05-14 Ian Lance Taylor <ian@airs.com>
8669
8670 * Makefile.in (install-only): Use $(SHELL) when running
8671 mkinstalldirs.
8672
2fdbdd39
ILT
86732003-05-13 Ian Lance Taylor <ian@airs.com>
8674
a208d82c
ILT
8675 * MAINTAINERS (write after approval): Add myself.
8676
2fdbdd39
ILT
8677 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
8678 second and third arguments.
8679 * ser-tcp.c (_initialize_ser_tcp): Likewise.
8680 * ser-unix.c (_initialize_ser_hardwire): Likewise.
8681
fbd9dcd3
AC
86822003-05-13 Andrew Cagney <cagney@redhat.com>
8683
8684 * defs.h (store_address): Delete declaration.
8685 findvar.c (store_address): Delete function.
8686 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
8687 store_unsigned_integer.
8688 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
8689 * v850-tdep.c (v850_push_arguments): Ditto.
8690 * sparc-tdep.c (sparc_get_saved_register): Ditto.
8691 * sh-tdep.c (sh64_get_saved_register): Ditto.
8692 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
8693 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
8694 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
8695 (mips_get_saved_register): Ditto.
8696 * ia64-tdep.c (ia64_get_saved_register): Ditto.
8697 (find_func_descr, ia64_push_arguments): Ditto.
8698 * i386-tdep.c (i386_push_arguments): Ditto.
8699 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8700 * frv-tdep.c (frv_push_arguments): Ditto.
8701 * frame.c (legacy_saved_regs_prev_register): Ditto.
8702 (deprecated_generic_get_saved_register): Ditto.
8703 * findvar.c (unsigned_address_to_pointer): Ditto.
8704 * dwarf2read.c (dwarf2_const_value): Ditto.
8705 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8706 * alpha-tdep.c (alpha_push_arguments): Ditto.
8707
6760f9e6
JB
87082003-05-12 J. Brobecker <brobecker@gnat.com>
8709
8710 * NEWS: Mention that the hppa-hpux port has been partially
8711 multiarched (32bit ABIT only, so far).
8712
30e221b4
AC
87132003-05-11 Andrew Cagney <cagney@redhat.com>
8714
8715 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
8716 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
8717 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
8718 sim/testsuite/sim/arm/misaligned2.ms, and
8719 sim/testsuite/sim/arm/misaligned3.ms.
8720 * disasm.h (struct ui_file): Add opaque struct declaration.
8721 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
8722 * frame.h (struct ui_file): Ditto.
8723
dea7f9ba
MK
87242003-05-11 Mark Kettenis <kettenis@gnu.org>
8725
8726 * value.h: Pretty print.
8727
01986c48
MK
87282003-05-10 Mark Kettenis <kettenis@gnu.org>
8729
8730 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
8731
123a958e
AC
87322003-05-08 Andrew Cagney <cagney@redhat.com>
8733
8734 * regcache.h (max_register_size): Delete declaration.
8735 * regcache.c (max_register_size): Delete function.
8736 (struct regcache_descr): Delete field "max_register_size".
8737 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
8738 registers fit in MAX_REGISTER_SIZE.
8739 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
8740 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
8741 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
8742 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
8743 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
8744 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
8745 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
8746 * dve3900-rom.c, hppa-tdep.c: Ditto.
8747
eb294659
DC
87482003-05-08 David Carlton <carlton@math.stanford.edu>
8749
8750 * valops.c (push_word): Fix typo.
8751
d9d9c31f
AC
87522003-05-08 Andrew Cagney <cagney@redhat.com>
8753
8754 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
8755 * gdbarch.h: Re-generate.
8756 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
8757 (legacy_max_register_raw_size): Delete declaration.
8758 * regcache.c (legacy_max_register_raw_size): Delete function.
8759 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
8760 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
8761 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
8762 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
8763 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
8764 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
8765 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
8766 * findvar.c, dwarf2cfi.c: Ditto.
8767
22540ece
AC
87682003-05-08 Andrew Cagney <cagney@redhat.com>
8769
8770 * mips-tdep.c (read_signed_register): New function, moved to here
8771 from "regcache.c".
8772 (read_signed_register_pid): Ditto.
8773 * regcache.c (read_signed_register_pid): Delete function, moved to
8774 "mips-tdep.c".
8775 (read_signed_register): Ditto.
8776 * regcache.h (read_signed_register): Delete declaration.
8777 (read_signed_register_pid): Delete declaration.
8778
0c92afe8
AC
87792003-05-08 Andrew Cagney <cagney@redhat.com>
8780
8781 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
8782 * gdbarch.h: Re-generate.
8783 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
8784 (legacy_max_register_virtual_size): Delete declaration.
8785 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
8786 * d10v-tdep.c (d10v_print_registers_info): Ditto.
8787 * tracepoint.c (memrange_sortmerge): Ditto.
8788 * sparc-tdep.c (sparc_print_registers): Ditto.
8789 * regcache.c (legacy_max_register_virtual_size): Delete function.
8790
6037b830
JB
87912002-05-08 J. Brobecker <brobecker@gnat.com>
8792
8793 * fork-child.c (escape_bang_in_quoted_argument): New function.
8794 (fork_inferior): Escape '!' characters in quoted arguments
8795 only when needed.
8796
5d62c8b1
JB
87972003-05-08 J. Brobecker <brobecker@gnat.com>
8798
8799 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
8800 the language of the CU is not currently supported by GDB.
8801
20a0e81d
JB
88022003-05-08 J. Brobecker <brobecker@gnat.com>
8803
8804 * defs.h (language): Add language_minimal enum value.
8805 * c-lang.c (minimal_language_defn): New language definition.
8806 (_initialize_c_language): Add the new minimal language to the list
8807 of languages known to GDB.
8808
710ee10a
KB
88092003-05-08 Kevin Buettner <kevinb@redhat.com>
8810
8811 * frame.c (get_frame_type): Don't attempt to lazily initialize
8812 frame's unwinder for legacy frames.
8813
1750fa04
AC
88142003-05-07 Andrew Cagney <cagney@redhat.com>
8815
8816 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
8817 and "regcache" parameters.
8818 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
8819
ddf9f258 88202003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
8821
8822 * dwarf2read.c (dwarf_decode_lines): Only use output of
8823 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
8824 the current address.
8825
87767c29
AC
88262003-05-07 Andrew Cagney <cagney@redhat.com>
8827
8828 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
8829 code.
8830
5e7b2f39
JB
88312003-05-07 Jim Blandy <jimb@redhat.com>
8832
8833 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
8834 'maint info symtabs' and 'maint info psymtabs'.
8835 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
8836 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
8837 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
8838 Declarations updated.
8839 * maint.c (maintenance_list_command): Delete.
8840 (_initialize_maint_cmds): Update calls to add_cmd.
8841 * gdbcmd.h (maintenancelistlist): Delete declaration.
8842 * cli/cli-cmds.c (maintenancelistlist): Delete.
8843 (init_cmd_lists): Don't initialize it.
8844 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
8845
f6684c31
AC
88462003-05-07 Andrew Cagney <cagney@redhat.com>
8847
8848 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
8849 "regcache".
8850 (d10v_print_registers_info): Update.
8851 (d10v_dmap_register, d10v_imap_register): Delete functions.
8852 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
8853 and "imap_register".
8854 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
8855 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
8856 * arch-utils.c (generic_remote_translate_xfer_address): Add
8857 "regcache" and "gdbarch" parameters.
8858 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
8859 parameter. Change class to multi-arch.
8860 * gdbarch.h, gdbarch.c: Re-generate.
8861 * remote.c (remote_xfer_memory): Use
8862 gdbarch_remote_translate_xfer_address.
8ffd9b1b 8863
e4846b08
JJ
88642003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8865
8866 * infrun.c (prev_pc): Move declaration ahead of proceed().
8867 (proceed): Refresh prev_pc value before resuming.
8868 (stop_stepping): Remove code to refresh prev_pc.
8869
6b71b8ac
KW
88702003-05-06 Kris Warkentin <kewarken@qnx.com>
8871
8872 * nto-tdep.c: Removed stray comment.
8873
47979a4b
KW
88742003-05-06 Kris Warkentin <kewarken@qnx.com>
8875
8876 * i386-nto-tdep.c: Fix old K&R function definitions.
8877 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
8878 Also change add_show_from_set() call to add_setshow_cmd().
8879 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
8880
00905d52
AC
88812003-05-05 Andrew Cagney <cagney@redhat.com>
8882
8883 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
8884 (fprint_dummy_frames): New function.
8885 (maintenance_print_dummy_frames): New function.
8886 (_initialize_dummy_frame): Add command "maint print dummy-frames".
8887 * frame.c (fprint_frame_id): Make global.
8888 * frame.h (fprint_frame_id): Declare.
8889 * Makefile.in (dummy-frame.o): Update dependencies.
8890
b1e29e33
AC
88912003-05-05 Andrew Cagney <cagney@redhat.com>
8892
8893 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
8894 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
8895 SIZEOF_CALL_DUMMY_WORDS.
8896 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
8897 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
8898 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
8899 CALL_DUMMY_BREAKPOINT_OFFSET.
8900 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
8901 CALL_DUMMY_START_OFFSET.
8902 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
8903 * gdbarch.h, gdbarch.c: Re-generate.
8904 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
8905 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
8906 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
8907 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
8908 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
8909 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
8910 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
8911 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
8912 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
8913 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
8914 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
8915 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
8916 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
8917 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
8918 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
8919
89202003-05-05 Kris Warkentin <kewarken@qnx.com>
8921
8922 * configure.tgt: Add i[3456]86-*-nto*.
8923 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
8924 * nto-tdep.c: New file. Neutrino target support routines.
8925 * nto-tdep.h: New file. Neutrino target header.
8926 * config/tm-qnxnto.h: New file.
8927 * config/i386/i386nto.mt: New file.
8928 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 8929
0ce3d317
AC
89302003-05-04 Andrew Cagney <cagney@redhat.com>
8931
8932 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
8933 (load_infrun_state): Ditto.
8934 (struct thread_info): Drop "prev_func_name" field.
8935 * thread.c (load_infrun_state): Update.
8936 (save_infrun_state): Update.
8937 * infrun.c (prev_func_name): Delete variable.
8938 (init_wait_for_inferior): Do not clear prev_func_name.
8939 (stop_stepping, keep_going, context_switch): Do not swap
8940 prev_func_name.
8941 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
8942 instead of PC_IN_SIGTRAMP.
8943
46654a5b
AC
89442003-05-04 Andrew Cagney <cagney@redhat.com>
8945
8946 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8947 REGISTER_BYTE with register_offset_hack.
8948 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
8949 that REGISTER_BYTE is consistent with the regcache.
8950 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
8951 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 8952
14b08c1b
MK
89532003-05-04 Mark Kettenis <kettenis@gnu.org>
8954
04c8243f
MK
8955 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
8956 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
8957
14b08c1b
MK
8958 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
8959
c7a11e01
JB
89602003-05-03 J. Brobecker <brobecker@gnat.com>
8961
8962 From Thierry Schneider <tpschneider1@yahoo.com>
8963 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
8964 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
8965 (mi-cmd-symbol.o): Add rule.
8966
7043d8dc
AC
89672003-05-03 Andrew Cagney <cagney@redhat.com>
8968
8969 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
8970 comments noteing that it replaces the old FIX_CALL_DUMMY code.
8971 * gdbarch.h, gdbarch.c: Re-generate.
8972 * d10v-tdep.c (d10v_push_dummy_code): New function.
8973 (d10v_gdbarch_init): Set push_dummy_code.
8974 * infcall.c (legacy_push_dummy_code): New function.
8975 (generic_push_dummy_code): New function.
8976 (push_dummy_code): New function.
8977 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
8978 instead of dummy_addr, to push_dummy_call. Move call to
8979 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
8980 switch.
8981 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
8982
92bf2b80
AC
89832003-05-03 Andrew Cagney <cagney@redhat.com>
8984
8985 * disasm.h (print_insn): Declare.
8986 * disasm.c (init_gdb_disassemble_info): New function.
8987 (gdb_disassembly): Call init_gdb_disassemble_info.
8988 (gdb_print_insn): New function.
8989 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
8990 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
8991 * mcore-tdep.c: Include "disasm.h"
8992 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
8993 * d10v-tdep.c: Include "disasm.h".
8994 (display_trace): Call gdb_print_insn, instead of print_insn.
8995 (print_insn): Delete function.
8996 * printcmd.c: Include "disasm.h".
8997 (print_insn): Delete function.
8998 (print_formatted): Call gdb_print_insn, instead of print_insn.
8999 * Makefile.in (printcmd.o): Update dependencies.
9000 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 9001
27d94c49
AC
90022003-05-02 Andrew Cagney <cagney@redhat.com>
9003
82de1e5b
AC
9004 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9005 PC_REGNUM, re-indent.
9006 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9007 PC_REGNUM isn't set.
9008
27d94c49
AC
9009 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9010 * gdbarch.h, gdbarch.c: Re-generate.
9011 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9012 register_virtual_size, pc_regnum, or register_bytes.
9013 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9014 (d10v_register_type): Use D10V_PC_REGNUM.
9015 (d10v_print_registers_info, d10v_read_pc): Ditto.
9016 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9017 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9018
a9c0dc7f
DC
90192003-05-02 David Carlton <carlton@bactrian.org>
9020
9021 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9022 the name with mstrsave.
9023
e33d66ec
EZ
90242003-05-02 Elena Zannoni <ezannoni@redhat.com>
9025
9026 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9027 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9028 (host_charset_name, target_charset_name): New vars for use by
9029 set/show commands.
9030 (host_charset_enum, target_charset_enum): New enums for set/show
9031 commands.
9032 (set_charset_sfunc, set_host_charset_sfunc,
9033 set_target_charset_sfunc): New functions.
9034 (set_host_charset, set_target_charset): Make static.
9035 (list_charsets, set_host_charset_command,
9036 set_target_charset_command): Delete functions.
9037 (show_charset_command): Rewrite as....
9038 (show_charset): Hook this up with the set/show command mechanism.
9039 (_initialize_charset): Change names of charsets to match the
9040 set/show enums. Use host_charset_name and target_charset_name.
9041 Use set/show mechanism for charset, host-charset, target-charset
9042 commands. Do not make 'show host-charset' and 'show
9043 target-charset' be aliases of 'show charset'.
9044
9045 * charset.h (set_host_charset, set_target_charset): Don't export,
9046 they are not used outside the file.
9047
2b6fd0d8
AC
90482003-05-01 Andrew Cagney <cagney@redhat.com>
9049
9050 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9051 (gdb_disassembly): Make "di" non static, always initialize and
9052 cleanup. Always use dis_asm_read_memory.
9053 (gdb_dis_asm_read_memory): Delete function.
9054
6ae2f580
AC
90552003-05-01 Andrew Cagney <cagney@redhat.com>
9056
9057 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9058 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9059
810ecf9f
AC
90602003-04-30 Andrew Cagney <cagney@redhat.com>
9061
9062 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9063 "tm_print_insn_info".
9064 (TARGET_PRINT_INSN_INFO): Delete macro.
9065 (dis_asm_read_memory): Delete function declaration.
9066 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9067 (tm_print_insn_info): Delete variable definition.
9068 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9069 * gdbarch.h, gdbarch.c: Re-generate.
9070 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9071 "deprecated_tm_print_insn_info".
9072 * mcore-tdep.c (mcore_dump_insn): Ditto.
9073 * mips-tdep.c (mips_gdbarch_init): Ditto.
9074 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9075 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9076 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9077 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9078 instead of TARGET_PRINT_INSN_INFO, add comment.
9079 * s390-tdep.c (s390_get_frame_info): Instead of
9080 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9081 (s390_check_function_end, s390_is_sigreturn): Ditto.
9082 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9083 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9084 * disasm.c: Include "gdbcore.h".
9085 (_initialize_disasm): New function, initialize
9086 "deprecated_tm_print_insn_info".
9087 (deprecated_tm_print_insn_info): New variable.
9088 (dis_asm_read_memory): Moved from "corefile.c", made static.
9089 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9090 * Makefile.in (disasm.o): Update dependencies.
9091
07020390
AC
90922003-04-30 Andrew Cagney <cagney@redhat.com>
9093
9094 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9095
a9fa03de
AF
90962003-04-29 Adam Fedor <fedor@gnu.org>
9097
9098 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9099 * infcall.c (find_function_addr): Make non-static.
9100 * infcall.h (find_function_addr): Declare.
9101 * Makefile.in (eval.o): Update dependencies.
9102
1bae87b9
AF
91032003-04-28 Adam Fedor <fedor@gnu.org>
9104
9105 * symtab.c (symbol_find_demangled_name): Check for and demangle
9106 ObjC symbols.
9107 (symbol_init_demangled_name): Init for language_objc as well.
9108
0ba6dca9
AC
91092003-04-28 Andrew Cagney <cagney@redhat.com>
9110
9111 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9112 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9113 * gdbarch.h, gdbarch.c: Re-generate.
9114 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9115 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9116 * inferior.h (deprecated_read_fp): Rename read_fp.
9117 (generic_target_read_fp): Delete declaration.
9118 * regcache.c (generic_target_read_fp): Delete function.
9119 (deprecated_read_fp): Replace read_fp, use
9120 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9121 * d10v-tdep.c (d10v_read_fp): Delete function.
9122 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9123
9124 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9125 deprecated_target_read_fp to generic_target_read_fp.
9126 * sh-tdep.c (sh_gdbarch_init): Ditto.
9127 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9128 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9129 * frv-tdep.c (frv_gdbarch_init): Ditto.
9130
9131 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9132 deprecated_fp_regnum.
9133 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9134 * vax-tdep.c (vax_gdbarch_init): Ditto.
9135 * v850-tdep.c (v850_gdbarch_init): Ditto.
9136 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9137 * sh-tdep.c (sh_gdbarch_init): Ditto.
9138 * s390-tdep.c (s390_gdbarch_init): Ditto.
9139 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9140 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9141 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9142 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9143 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9144 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9145 * i386-tdep.c (i386_gdbarch_init): Ditto.
9146 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9147 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9148 * frv-tdep.c (frv_gdbarch_init): Ditto.
9149 * cris-tdep.c (cris_gdbarch_init): Ditto.
9150 * avr-tdep.c (avr_gdbarch_init): Ditto.
9151 * arm-tdep.c (arm_gdbarch_init): Ditto.
9152 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9153
9154 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9155 * v850-tdep.c (v850_gdbarch_init): Ditto.
9156 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9157 * sh-tdep.c (sh_gdbarch_init): Ditto.
9158 * s390-tdep.c (s390_gdbarch_init): Ditto.
9159 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9160 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9161 * mips-tdep.c (mips_gdbarch_init): Ditto.
9162 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9163 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9164 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9165 * frv-tdep.c (frv_gdbarch_init): Ditto.
9166 * avr-tdep.c (avr_gdbarch_init): Ditto.
9167 * arm-tdep.c (arm_gdbarch_init): Ditto.
9168
9169 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9170 DEPRECATED_FP_REGNUM.
9171 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9172 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9173 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9174 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9175 (sparc32_register_virtual_type): Ditto.
9176 * sh-tdep.c (sh64_frame_chain): Ditto.
9177 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9178 (sh_nofp_frame_init_saved_regs): Ditto.
9179 (sh64_nofp_frame_init_saved_regs): Ditto.
9180 (sh_fp_frame_init_saved_regs): Ditto.
9181 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9182 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9183 * procfs.c (procfs_fetch_registers): Ditto.
9184 (procfs_store_registers): Ditto.
9185 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9186 (store_inferior_registers, fetch_core_registers): Ditto.
9187 (fetch_kcore_registers, clear_regs): Ditto.
9188 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9189 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9190 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9191 * nlm/i386.c (do_status): Ditto.
9192 * mipsv4-nat.c (supply_gregset): Ditto.
9193 * mips-tdep.c: Ditto for comments.
9194 * mips-nat.c (fetch_inferior_registers): Ditto.
9195 (store_inferior_registers, fetch_core_registers): Ditto.
9196 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9197 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9198 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9199 (i386_do_pop_frame, i386_register_type): Ditto.
9200 * hppa-tdep.c (hppa_frame_chain): Ditto.
9201 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9202 (hppa_pop_frame, hppa_read_fp): Ditto.
9203 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9204 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9205 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9206 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9207 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9208 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9209 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9210 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9211 * blockframe.c: Ditto for comments.
9212 * arch-utils.h: Ditto for comments.
9213 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9214 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9215 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9216 * alpha-tdep.h: Ditto for comments.
9217 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9218 (alpha_cannot_store_register): Ditto.
9219 (alpha_push_dummy_frame): Ditto.
9220 * alpha-nat.c (supply_gregset): Ditto.
9221
9222 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9223 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9224 * config/sparc/tm-sparc.h: Update comment.
9225
9226 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9227 deprecated_read_fp instead of TARGET_READ_FP.
9228 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9229 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9230 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9231 deprecated_read_fp instead of read_fp.
9232 * s390-tdep.c (s390_push_arguments): Ditto.
9233 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9234 * frame.h: Ditto in comments.
9235 * frame.c (legacy_get_prev_frame): Ditto.
9236 * dummy-frame.c (dummy_frame_this_id): Ditto.
9237 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9238
d7a27068
AC
92392003-04-28 Andrew Cagney <cagney@redhat.com>
9240
9241 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9242 * gdbarch.h, gdbarch.c: Re-generate.
9243 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9244 * vax-tdep.c (_initialize_vax_tdep): Update.
9245 * v850-tdep.c (_initialize_v850_tdep): Update.
9246 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9247 * s390-tdep.c (_initialize_s390_tdep): Update.
9248 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9249 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9250 * mips-tdep.c (_initialize_mips_tdep): Update.
9251 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9252 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9253 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9254 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9255 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9256 * frv-tdep.c (_initialize_frv_tdep): Update.
9257 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9258 (_initialize_cris_tdep): Update.
9259 * arch-utils.c (legacy_print_insn): Update.
9260 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9261
d2630e69
AF
92622003-04-26 Adam Fedor <fedor@gnu.org>
9263
9264 * linespec.c (decode_objc): New function to decode ObjC calls
9265 (decode_line_1): Check for ObjC calls (using decode_objc)
9266 * Makefile (linespec.o): Update dependencies.
9267
3086aeae
DJ
92682003-04-26 Daniel Jacobowitz <drow@mvista.com>
9269
9270 * breakpoint.h (struct breakpoint_ops): New.
9271 (struct breakpoint): Add ops member.
9272
9273 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9274 (mention): Use new breakpoint ops member.
9275 (set_raw_breakpoint): Initialize ops field to NULL.
9276 (print_exception_catchpoint, print_one_exception_catchpoint)
9277 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9278 (gnu_v3_exception_catchpoint_ops): New.
9279 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9280
1fbec6c3
AF
92812003-04-25 Adam Fedor <fedor@gnu.org>
9282
9283 * Makefile.in (COMMON_OBS): Add objc-lang.o
9284
0ef21242
AC
92852003-04-25 Andrew Cagney <cagney@redhat.com>
9286
9287 * d10v-tdep.c (print_insn): Delete function.
9288 (display_trace): Use TARGET_PRINT_INSN.
9289 (_initialize_d10v_tdep): Do not set tm_print_insn.
9290 (d10v_gdbarch_init): Set print_insn.
9291
f75493ed
AC
92922003-04-25 Andrew Cagney <cagney@redhat.com>
9293
9294 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9295 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9296 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9297 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9298 (nr_dmap_regs, a0_regnum): ... new functions.
9299 (d10v_print_registers_info): Use a0_regnum, use register_size.
9300 (d10v_register_byte): Delete function.
9301 (d10v_register_raw_size): Delete function.
9302 (d10v_register_type): Use a0_regnum.
9303 (d10v_print_registers_info): Use a0_regnum.
9304 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9305 (d10v_gdbarch_init): Do not set register_byte or
9306 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9307 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9308 extract_address.
9309 (trace_command): Use XCALLOC.
9310 (print_insn): Delete reference to tm_print_insn.
9311 (saved_regs_unwinder): Use store_unsigned_integer instead of
9312 store_address.
9313 * frame.h (FRAME_OBSTACK_CALLOC): Define
9314
2202b100
DC
93152003-04-25 David Carlton <carlton@bactrian.org>
9316
9317 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9318
4e45ca2e
AF
93192003-04-24 Adam Fedor <fedor@gnu.org>
9320
9321 * objc-lang.c: Include "valprint.h"
9322 * Makefile.in (objc-lang.o): Update dependencies.
9323
93de3e7f
AF
93242003-04-24 Adam Fedor <fedor@gnu.org>
9325
8ffd9b1b 9326 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
9327 architecture dependant compilation and mark as unimplemented
9328 (until they get put in the gdbarch vector).
9329
0f20eeea
DC
93302003-04-23 David Carlton <carlton@bactrian.org>
9331
9332 * cp-support.c (cp_find_first_component): Accept 'operator' in
9333 more locations.
9334
74cfe982
AC
93352003-04-23 Andrew Cagney <cagney@redhat.com>
9336
9337 * infcall.c (call_function_by_hand): Eliminate redundant
9338 indentation. Move "saved_async" and "old_cleanups" to where they
9339 are needed.
8ffd9b1b 9340
52557533
AC
93412003-04-23 Andrew Cagney <cagney@redhat.com>
9342
9343 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9344 and "buffer". Move the "name" code to where it is needed.
9345
158775de
AC
93462003-04-23 Andrew Cagney <cagney@redhat.com>
9347
9348 * infcall.c (call_function_by_hand): Move variables "start_sp",
9349 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9350 code to ON_STACK switch branch.
8ffd9b1b 9351
ebc7896c
AC
93522003-04-23 Andrew Cagney <cagney@redhat.com>
9353
9354 * infcall.c (call_function_by_hand): Make declaration of "i",
9355 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9356 lint.
9357
d727590f
AC
93582003-04-23 Andrew Cagney <cagney@redhat.com>
9359
9360 * infcall.c (call_function_by_hand): Delete variable
9361 "n_method_args". Localize "param_type"'s declaration to the loop
9362 that it is used. Reinstate code assigning to said variable -
9363 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9364 Rationalize code using "param_type".
9365
d585e13a
AC
93662003-04-22 Andrew Cagney <cagney@redhat.com>
9367
9368 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9369 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9370 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9371 to DEPRECATED_PUSH_RETURN_ADDRESS.
9372
051caad9
KB
93732003-04-22 Kevin Buettner <kevinb@redhat.com>
9374
9375 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9376 on the DWARF2 register number prior to fetching a register.
9377
77296879
JB
93782003-04-22 J. Brobecker <brobecker@gnat.com>
9379
9380 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9381 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 9382 this macro was always set to 0.
77296879
JB
9383 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9384 considering the fact that this macro was always set to 0.
9385 * hppa-tdep.h (hppa_store_return_value): Likewise.
9386 (hppa_extract_return_value): Likewise.
9387
4252f1df
JB
93882003-04-22 J. Brobecker <brobecker@gnat.com>
9389
9390 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9391 the hppa-pro target only.
9392
14604c6b
JB
93932003-04-21 J. Brobecker <brobecker@gnat.com>
9394
9395 Ongoing multi-arch conversion effort for HP/UX:
9396 * config/pa/tm-hppa.h: Move all macro that are no longer
9397 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9398 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9399
77eb01d1
JB
94002003-04-21 J. Brobecker <brobecker@gnat.com>
9401
9402 * config/pa/tm-hppa.h: Obsolete a section that was only used
9403 for hppa-pro.
9404
61995b3b
JB
94052003-04-21 J. Brobecker <brobecker@gnat.com>
9406
9407 Ongoing multi-arch conversion for HP/UX.
9408 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9409 if already defined (allows hppa64 to stay non-multiarched for now).
9410 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9411
4aa79dcc
AC
94122003-04-21 Andrew Cagney <cagney@redhat.com>
9413
9414 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9415
0f751ff2
AC
94162003-04-21 Andrew Cagney <cagney@redhat.com>
9417
9418 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9419 "i386_num_mmx_regs".
9420
04714b91
AC
94212003-04-21 Andrew Cagney <cagney@redhat.com>
9422
9423 * infcall.c: New file.
9424 * infcall.h: New file.
9425 * valarith.c: Include "infcall.h".
9426 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9427 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9428 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9429 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9430 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9431 (SFILES): Add "infcall.c"
9432 (COMMON_OBS): Add "infcall.o".
9433 (infcall.o): Specify dependencies.
9434 * value.h (call_function_by_hand): Delete declaration.
9435 * inferior.h (run_stack_dummy): Delete declaration.
9436 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9437 (run_stack_dummy): Move to "infcall.c", merged into
9438 call_function_by_hand.
9439 * valops.c (call_function_by_hand): Moved to "infcall.c".
9440 (find_function_addr, value_arg_coerce): Ditto.
9441 (unwindonsignal_p, coerce_float_to_double): Ditto.
9442 (_initialize_valops): Move "set/show coerce-float-to-double", and
9443 "set/show unwindonsignal" commands to "infcall.c".
9444 * v850-tdep.c, target.h: Update comments.
9445 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9446 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9447 (sh64_init_extra_frame_info): Update comments.
9448 * mn10300-tdep.c: Update comments.
9449 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9450 * config/sparc/tm-sparc.h: Update comments.
9451 * breakpoint.h: Update comments.
9452 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9453 * arm-tdep.c: Update comment.
9454
f9d3c2a8
MK
94552003-04-19 Mark Kettenis <kettenis@gnu.org>
9456
c40e1eab
MK
9457 * i386-tdep.c (i386_num_register_names): New variable.
9458 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9459 (MM0_REGNUM): Remove redundant parentheses in define.
9460 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9461 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9462 i386_mxcsr_regnum_p): Remove redundant parentheses.
9463 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 9464
94ea66b3
MK
9465 * i386-tdep.c (i386_extract_return_value,
9466 i386_store_return_value): Correct check for availability of
9467 floating-point registers.
9468
54299a1d
MK
9469 * i386-tdep.c (i386_frame_num_args): Remove function.
9470 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9471
c86c27af
MK
9472 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9473 mmx_regnum_to_fp_regnum. Adjust all callers.
9474
f9d3c2a8
MK
9475 * i386-tdep.c (i386_get_longjmp_target): Use
9476 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9477 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9478 extract_address.
9479
94ba74a9
MK
94802003-04-19 Mark Kettenis <kettenis@gnu.org>
9481
9482 * core-regset.c: Update comments to reflect reality. Re-order
9483 includes.
9484 (fetch_core_registers): Use switch instead of if. Remove
9485 redundant prototype.
9486
4074e13c
JB
94872003-04-18 Jim Blandy <jimb@redhat.com>
9488
9489 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 9490 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 9491
e3ab4aba
RH
94922003-04-17 Richard Henderson <rth@redhat.com>
9493
9494 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9495
627bf7c1
EZ
94962003-04-17 Michael Snyder <msnyder@redhat.com>
9497 Karen Bennet <bennet@redhat.com>
9498
9499 Committed by Elena Zannoni <ezannoni@redhat.com>
9500 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 9501
514621a9
EZ
95022003-04-17 Elena Zannoni <ezannoni@redhat.com>
9503
9504 * values.c (value_being_returned): Don't fetch the return
fbe586ae 9505 value if the return type is void.
514621a9 9506
b4acd559
JJ
95072003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9508
9509 * thread-db.c: Reindented.
8ffd9b1b 9510
530b167e 95112003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9512
9513 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9514 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
9515 as types.
9516
0a48e7e8
MS
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
8ffd9b1b 9540
ab9fe00e
KB
95412003-04-16 Kevin Buettner <kevinb@redhat.com>
9542
610a3745 9543 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
9544 the size of ``long double'' to 16, instead of 8.
9545
e64a344c
MK
95462003-04-16 Mark Kettenis <kettenis@gnu.org>
9547
9548 * i386-linux-nat.c: Add some whitespace to make things more
9549 readable.
9550 (fetch_register, store_register, fetch_inferior_registers,
9551 store_inferior_registers): Get rid of assignment in if-statement.
9552 (store_register): Fix typo in error message.
9553
25d41031
AC
95542003-04-16 Andrew Cagney <cagney@redhat.com>
9555
9556 * utils.c (xmmalloc): Always allocate something, matches
9557 libiberty/xmalloc's semantics.
9558 (xmrealloc, xmcalloc): Ditto.
9559
c50901fd
AC
95602003-04-16 Andrew Cagney <cagney@redhat.com>
9561
9562 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9563 update comments.
9564 (get_frame_type): Initialize unwind and type when needed.
9565 (get_frame_id, frame_register_unwind): Ditto.
9566
f81824a9
AC
95672003-04-16 Andrew Cagney <cagney@redhat.com>
9568
9569 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9570 obsolete.
9571 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9572 * sparcl-stub.c: Obsolete file.
9573 * config/sparc/tm-sparclet.h: Obsolete file.
9574 * sparclet-stub.c: Obsolete file.
9575 * sparclet-rom.c: Obsolete file.
9576 * sparcl-tdep.c: Obsolete file.
9577 * config/sparc/tm-sparclite.h: Obsolete file.
9578 * config/sparc/sparclite.mt: Obsolete file.
9579 * config/sparc/sparclet.mt: Obsolete file.
9580 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9581 sparc86x-*-* obsolete.
9582
9219021c
DC
95832003-04-15 David Carlton <carlton@math.stanford.edu>
9584
9585 * Makefile.in (SFILES): Add cp-namespace.c.
9586 (COMMON_OBS): Add cp-namespace.o.
9587 (block.o): Depend on gdb_obstack_h and cp_support_h.
9588 (buildsym.o): Depend on cp_support_h.
9589 (cp-namespace.o): New.
9590 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9591 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9592 (dwarf2read.o): Depend on cp_support_h.
9593 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9594 * dwarf2read.c (process_die): Set processing_has_namespace_info,
9595 processing_current_namespace.
9596 (read_namespace): Update processing_current_namespace; check for
9597 anonymous namespaces.
9598 (dwarf2_name): New function.
9599 (dwarf2_extension): Ditto.
9600 * cp-support.h: Update copyright, contributors.
9601 Add inclusion guards.
9602 Add opaque declaration for structs obstack, block, symbol.
9603 (struct using_direct): New struct.
9604 Add declarations for cp_find_first_component,
9605 cp_entire_prefix_len, processing_has_namespace_info,
9606 processing_current_namespace, cp_is_anonymous,
9607 cp_add_using_directive, cp_initialize_namespace,
9608 cp_finalize_namespace, cp_set_block_scope,
9609 cp_scan_for_anonymous_namespaces.
9610 * cp-namespace.c: New file.
9611 * cp-support.c: Update copyright.
9612 Include ctype.h, gdb_assert.h, gdbcmd.h.
9613 New variable maint_cplus_cmd_list.
9614 (cp_find_first_component): New function.
9615 (cp_entire_prefix_len, maint_cplus_command)
9616 (first_component_command, _initialize_cp_support): Ditto.
9617 * buildsym.c: Include cp-support.h.
9618 New variable using_list.
9619 (add_symbol_to_list): Check for anonymous namespaces.
9620 (finish_block): Set block's scope.
9621 (start_symtab): Initialize C++ namespace support.
9622 (end_symtab): Finalize C++ namespace support.
9623 * block.h: Add opaque declarations for structs
9624 block_namespace_info, using_direct, and obstack.
9625 Add declarations for block_set_scope and block_set_using.
9626 (struct block): Add 'language_specific' member.
9627 (BLOCK_NAMESPACE): New macro.
9628 * block.c: Include gdb_obstack.h and cp-support.h.
9629 (struct block_namespace_info): New struct.
9630 (block_set_scope): New function.
9631 (block_set_using, block_initialize_namespace): Ditto.
9632
d5a921c9
KB
96332003-04-14 Kevin Buettner <kevinb@redhat.com>
9634
9635 * solib-svr4.c (svr4_have_link_map_offsets): New function.
9636 (locate_base): Return early if there aren't any link map offsets.
9637 (svr4_solib_create_inferior_hook): Warn if shared library support
9638 is unavailable.
9639
d2a52b27
DC
96402003-04-14 David Carlton <carlton@math.stanford.edu>
9641
9642 * symtab.c (symbol_set_names): Add prefix when storing Java names
9643 in hash table. Fix for PR java/1039.
9644
980cae7a
DC
96452003-04-14 David Carlton <carlton@math.stanford.edu>
9646
9647 * symtab.c (symbol_set_names): Rename 'name' arg to
9648 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9649 * symtab.h: Change 'name' argument in declaration of
9650 symbol_set_names to 'linkage_name'.
9651 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9652
e227b13c
AC
96532003-04-14 Andrew Cagney <cagney@redhat.com>
9654
9655 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9656 return the fully sign-extended register value.
9657 (get_frame_pointer): Ditto.
9658 (mips_pop_frame): Initialize "proc_desc" after checking for a
9659 dummy frame.
9660
36712a20
AC
96612003-04-14 Andrew Cagney <cagney@redhat.com>
9662
9663 * mips-tdep.c (mips_push_dummy_frame): Delete function.
9664 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9665 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9666 (mips_push_register): Delete function.
9667 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9668 PUSH_FP_REGNUM.
9669
44ea7b70
JB
96702003-04-14 Jim Blandy <jimb@redhat.com>
9671
9672 * symmisc.c: #include "gdb_regex.h".
9673 (maintenance_list_symtabs, maintenance_list_psymtabs): New
9674 functions.
9675 * maint.c (maintenance_list_command): New function.
9676 (_initialize_maint_cmds): Register the above as commands.
9677 * symtab.h (maintenance_list_symtabs,
9678 maintenance_list_psymtabs): New declarations.
9679 * cli/cli-cmds.c (maintenancelistlist): New variable.
9680 (init_cmd_lists): Initialize it.
9681 * cli/cli-cmds.h (maintenancelistlist): New declaration.
9682 * gdbcmd.h (maintenancelistlist): New declaration.
9683 * Makefile.in (symmisc.o): Update dependencies.
9684
2d0c7962
EZ
96852003-04-14 Elena Zannoni <ezannoni@redhat.com>
9686
9687 * s390-nat.c: Include asm/types.h for addr_t.
9688
1947a811
CV
96892003-04-14 Corinna Vinschen <vinschen@redhat.com>
9690
9691 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
9692 actually incoming type.
9693
adb616d7
AC
96942003-04-13 Andrew Cagney <cagney@redhat.com>
9695
9696 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
9697 get_next_frame and get_frame_saved_regs.
9698
9b5e151c
AC
96992003-04-13 Andrew Cagney <cagney@redhat.com>
9700
9701 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
9702 of gdbarch_num_regs.
9703
ef6e7e13
AC
97042003-04-13 Andrew Cagney <cagney@redhat.com>
9705
9706 * frame.h: Mention what replaced what in "struct frame_info".
9707 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
9708 deprecated_update_frame_base_hack and
9709 deprecated_update_frame_pc_hack.
9710 * hppa-tdep.c: Ditto.
9711
61fbb938
DJ
97122003-04-13 Daniel Jacobowitz <drow@mvista.com>
9713
9714 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
9715 to read_reg and update its comment. Remove regnum member.
9716 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
9717 Don't call read_reg when setting in_reg. Call read_reg to get
9718 the frame base if it's in a register. Return the register number
9719 on the stack instead of in the context. Remove extra arguments
9720 to read_reg.
9721 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
9722 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
9723 the register number on the expression stack.
9724 (needs_frame_read_reg): Remove extra arguments.
9725
0d53c4c4
DJ
97262003-04-13 Daniel Jacobowitz <drow@mvista.com>
9727
9728 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
9729 made non-static.
9730 (execute_stack_op): All callers updated.
9731 * dwarf2expr.h: Add prototype for dwarf2_read_address.
9732 * dwarf2loc.c (find_location_expression): New function.
9733 (dwarf_expr_frame_base): Call it.
9734 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
9735 (dwarf2_tracepoint_var_ref): New function, broken out from
9736 locexpr_tracepoint_var_ref.
9737 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
9738 Make static.
9739 (loclist_read_variable, loclist_read_needs_frame): New functions.
9740 (loclist_describe_location, loclist_tracepoint_var_ref): New
9741 functions.
9742 (dwarf2_loclist_funcs): New struct location_funcs.
9743 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
9744 (struct dwarf2_locexpr_baton): Add comments.
9745 (dwarf2_loclist_funcs): New extern.
9746 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
9747 base_address and base_known.
9748 (dwarf_loc_buffer): New variable.
9749 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
9750 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
9751 (dwarf2_has_info): Initialize dwarf_loc_offset.
9752 (dwarf2_build_psymtabs): Read in .debug_loc.
9753 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
9754 DWARF_LOC_SIZE.
9755 (psymtab_to_symtab_1): Likewise. Move base address calculation
9756 here, from...
9757 (dwarf2_get_pc_bounds): ... here. Use the base address from
9758 cu_header.
9759 (dwarf2_symbol_mark_computed): Handle location lists.
9760
6aca59a3
DJ
97612003-04-13 Daniel Jacobowitz <drow@mvista.com>
9762
9763 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
9764 if the linkage name demangled successfully.
9765
aca1fcd0
MK
97662003-04-13 Mark Kettenis <kettenis@gnu.org>
9767
97095916
MK
9768 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
9769 disassmbly_flavour): Removed.
9770
aca1fcd0
MK
9771 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
9772
562a961f
MK
97732003-04-13 Mark Kettenis <kettenis@gnu.org>
9774
9775 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
9776
bd013d54
AC
97772003-04-12 Andrew Cagney <cagney@redhat.com>
9778
9779 * frame.h (struct frame_info): Move definition from here ...
9780 * frame.c (struct frame_info): ... to here.
9781
167ef8b1
AC
97822003-04-12 Andrew Cagney <cagney@redhat.com>
9783
9784 * gdbthread.h (save_infrun_state): Delete parameter
9785 "prev_func_start".
9786 (struct thread_info): Delete field "prev_func_start".
9787 (load_infrun_state): Ditto.
9788 * thread.c (load_infrun_state, save_infrun_state): Update.
9789 * infrun.c (prev_func_start): Delete variable.
9790 (context_switch, init_wait_for_inferior): Update.
9791 (stop_stepping, keep_going): Update.
9792
da3331ec
AC
97932003-04-12 Andrew Cagney <cagney@redhat.com>
9794
9795 * gdbarch.sh: Add missing opaque declarations.
9796 * gdbarch.h: Regnerate.
9797 * symtab.h: Add missing opaque declarations.
9798 * value.h, target.h, symfile.h, stabsread.h: Ditto.
9799 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
9800 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
9801 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
9802 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
9803 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
9804 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
9805 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
9806 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
9807 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
9808 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
9809 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
9810 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
9811
18adea3f
AC
98122003-04-11 Andrew Cagney <cagney@redhat.com>
9813
9814 * frame.c (get_frame_id): Return this frame's "id".
9815 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
9816 function start.
9817 (legacy_saved_regs_this_id): Replace function body with
9818 internal-error.
9819 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
9820 FRAME_OBSTACK_ZALLOC.
9821 (create_new_frame): Mark the frame ID as valid.
9822
2252e863
AO
98232003-04-11 Alexandre Oliva <aoliva@redhat.com>
9824
9825 * Makefile.in (libbfd_h): Added missing setting.
9826 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
9827 according to the selected ABI.
9828
a8245ab8
JJ
98292003-04-11 Jeff Johnston <jjohnstn@redhat.com>
9830
9831 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
9832
6913c89a
AC
98332003-04-11 Andrew Cagney <cagney@redhat.com>
9834
9835 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
9836 SAVED_PC_AFTER_CALL.
9837 * gdbarch.h, gdbarch.c: Regenerate.
9838 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9839 * x86-64-tdep.c (x86_64_init_abi): Update.
9840 * vax-tdep.c (vax_gdbarch_init): Update.
9841 * v850-tdep.c (v850_gdbarch_init): Update.
9842 * sparc-tdep.c (sparc_gdbarch_init): Update.
9843 * sh-tdep.c (sh_gdbarch_init): Update.
9844 * s390-tdep.c (s390_gdbarch_init): Update.
9845 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9846 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9847 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9848 * mips-tdep.c (mips_gdbarch_init): Update.
9849 * mcore-tdep.c (mcore_gdbarch_init): Update.
9850 * m68k-tdep.c (m68k_gdbarch_init): Update.
9851 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9852 * ia64-tdep.c (ia64_gdbarch_init): Update.
9853 (ia64_saved_pc_after_call): Update declaration.
9854 * i386ly-tdep.c (i386lynx_init_abi): Update.
9855 * i386-tdep.c (i386_gdbarch_init): Update.
9856 * hppa-tdep.c (hppa_gdbarch_init): Update.
9857 * h8300-tdep.c (h8300_gdbarch_init): Update.
9858 * frv-tdep.c (frv_gdbarch_init): Update.
9859 * cris-tdep.c (cris_gdbarch_init): Update.
9860 * avr-tdep.c (avr_gdbarch_init): Update.
9861 * arm-tdep.c (arm_gdbarch_init): Update.
9862 * alpha-tdep.c (alpha_gdbarch_init): Update.
9863 * ns32knbsd-nat.c (frame_num_args): Update.
9864 * ns32k-tdep.c (umax_frame_num_args): Update.
9865 * mips-tdep.c (mips_init_frame_pc_first): Update.
9866 * infrun.c (step_over_function): Update.
9867 * i386-linux-tdep.c (skip_hurd_resolver): Update.
9868 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
9869 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9870 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9871 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9872 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9873 * arm-linux-tdep.c (skip_hurd_resolver): Update.
9874 * arch-utils.c (init_frame_pc_default): Update.
9875 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9876 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
9877 declaration.
8ffd9b1b 9878
38edeab8
AC
98792003-04-11 Andrew Cagney <cagney@redhat.com>
9880
9881 * i387-tdep.c: Update copyright.
9882 (i387_to_double): Delete function.
9883 (double_to_i387): Delete function.
9884
81f8a206
AC
98852003-04-10 Andrew Cagney <cagney@redhat.com>
9886
9887 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
9888 frame's function's address. Simplify.
9889 (d10v_frame_unwind_cache): Check that the frame's function is
9890 non-zero.
9891
6e691f7a
JB
98922003-04-10 Jim Blandy <jimb@redhat.com>
9893
9894 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
9895 call to set_gdbarch_deprecated_push_arguments.
9896
7f78e237
AC
98972003-04-10 Andrew Cagney <cagney@redhat.com>
9898
9899 * frame.c (fprint_frame_id): New function.
9900 (fprint_frame_type, fprint_frame): New function.
9901 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
9902 (create_sentinel_frame, get_frame_id): Ditto.
9903 (frame_id_p, frame_id_eq): Ditto.
9904 (frame_id_inner, create_new_frame): Ditto.
9905 (legacy_get_prev_frame, get_prev_frame): Ditto.
9906 (deprecated_update_frame_pc_hack): Ditto.
9907 (frame_register_unwind): Ditto.
9908 (deprecated_update_frame_base_hack): Ditto.
9909
f870b49b
CV
99102003-04-10 Corinna Vinschen <vinschen@redhat.com>
9911
9912 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
9913 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
9914 frame_chain function.
9915 * Makefile.in: Add dependencies due to above change.
9916
7c86889b
CV
99172003-04-10 Corinna Vinschen <vinschen@redhat.com>
9918
9919 * blockframe.c (legacy_frame_chain_valid): Move call to
9920 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
9921 inside_entry_file.
9922
d0a55772
AC
99232003-04-09 Andrew Cagney <cagney@redhat.com>
9924
9925 * frame.h (struct frame_id): Replace "pc" and "base" with
9926 "stack_addr" and "code_addr". Update comments.
9927 (frame_id_build): Update parameter names and comment.
9928 (struct frame_info): Replace "id_p" and "id" with "this_id".
9929 * dummy-frame.c (dummy_frame_this_id): Update.
9930 * breakpoint.c (print_one_breakpoint): Update.
9931 * frame.c (get_frame_id): Update.
9932 (get_frame_base, frame_id_build): Update.
9933 (create_sentinel_frame, legacy_get_prev_frame): Update.
9934 (deprecated_update_frame_base_hack): Update.
9935 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
9936 (frame_id_inner): Ditto.
9937
ac16bf07
AC
99382003-04-09 Andrew Cagney <cagney@redhat.com>
9939
9940 * defs.h (gdb_print_host_address): Make "addr" parameter a
9941 pointer constant.
9942 * utils.c (gdb_print_host_address): Update.
9943
366cfc9e
KB
99442003-04-09 Kevin Buettner <kevinb@redhat.com>
9945
9946 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
9947 register number for R0 is 0.
9948
cd983b5c
JB
99492003-04-09 J. Brobecker <brobecker@gnat.com>
9950
9951 * frame.h (struct gdbarch): Add opaque structure definition
9952 to avoid a compilation warning on LynxOS 4.0.
9953
d1340264
AC
99542003-04-09 Andrew Cagney <cagney@redhat.com>
9955
9956 * frame.h (struct frame_info): Delete field "pc". Replace
9957 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
9958 structure.
9959 * frame.c (frame_pc_unwind): Update.
9960 (create_sentinel_frame): Do not set "pc".
9961 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
9962 (get_frame_pc): Call frame_pc_unwind.
9963 (deprecated_update_frame_pc_hack): Update.
9964 (create_new_frame): Use "pc" not "->pc".
9965
90a6fffb
AC
99662003-04-09 Andrew Cagney <cagney@redhat.com>
9967
9968 * frame.c (get_frame_id): Eliminate code updating "frame".
9969 (legacy_get_prev_frame): Ditto.
9970 (get_frame_base): Return id.base directly.
9971 (deprecated_update_frame_base_hack): Update "id.base".
9972 * frame.h (struct frame_info): Delete field "frame".
9973
2fbce691
AC
99742003-04-09 Andrew Cagney <cagney@redhat.com>
9975
9976 * NEWS: Mention that the "Sequent family" is obsolete.
9977 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
9978 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9979 * configure.host: Obsolete i[3456]86-sequent-bsd*,
9980 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9981 * config/i386/tm-ptx4.h: Obsolete file.
9982 * config/i386/tm-ptx.h: Obsolete file.
9983 * symm-tdep.c: Obsolete file.
9984 * config/i386/symmetry.mt: Obsolete file.
9985 * config/i386/tm-symmetry.h: Obsolete file.
9986 * symm-nat.c: Obsolete file.
9987 * config/i386/nm-symmetry.h: Obsolete file.
9988 * config/i386/xm-symmetry.h: Obsolete file.
9989 * config/i386/symmetry.mh: Obsolete file.
9990 * config/i386/nm-ptx4.h: Obsolete file.
9991 * config/i386/ptx4.mh: Obsolete file.
9992 * config/i386/ptx.mt: Obsolete file.
9993 * config/i386/ptx.mh: Obsolete file.
9994 * config/i386/xm-ptx4.h: Obsolete file.
9995 * config/i386/xm-ptx.h: Obsolete file.
9996
78c43945
AC
99972003-04-09 Andrew Cagney <cagney@redhat.com>
9998
9999 Obsolete mips*-*-mach3*.
10000 * NEWS: Mention that mips*-*-mach3* is obsolete.
10001 * m3-nat.c: Obsolete file.
10002 * config/nm-m3.h: Obsolete file.
10003 * config/mips/tm-mipsm3.h: Obsolete file.
10004 * config/mips/mipsm3.mt: Obsolete file.
10005 * config/mips/mipsm3.mh: Obsolete file.
10006 * config/mips/xm-mipsm3.h: Obsolete file.
10007 * mipsm3-nat.c: Obsolete file.
10008 * configure.host: Obsolete mips-dec-mach3*.
10009 * configure.tgt: Obsolete mips*-*-mach3*.
10010
f1908289
AC
100112003-04-09 Andrew Cagney <cagney@redhat.com>
10012
10013 * doublest.h: Update copyright.
10014 (deprecated_store_floating, deprecated_extract_floating): Rename
10015 store_floating and extract_floating. Update comments.
10016 * doublest.c: Update copyright.
10017 (extract_floating_by_length): Replace extract_floating.
10018 (store_floating_by_length): Replace store_floating.
10019 (deprecated_extract_floating): New function.
10020 (deprecated_store_floating): New function.
10021 (extract_typed_floating): Call extract_floating_by_length.
10022 (store_typed_floating): Call store_floating_by_length.
10023 * x86-64-tdep.c (x86_64_store_return_value): Update.
10024 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10025 (sh64_extract_return_value): Update.
10026 (sh_sh4_register_convert_to_virtual): Update.
10027 (sh_sh64_register_convert_to_virtual): Update.
10028 (sh_sh4_register_convert_to_raw): Update.
10029 (sh_sh64_register_convert_to_raw): Update.
10030 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10031 (rs6000_register_convert_to_raw): Update.
10032 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10033 (ia64_register_convert_to_raw): Update.
10034 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10035 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10036 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10037 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10038 (alpha_register_convert_to_raw): Update.
10039
4443bd83
AC
100402003-04-08 Andrew Cagney <cagney@redhat.com>
10041
10042 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10043 * gdbarch.h, gdbarch.c: Re-generate.
10044 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10045 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10046 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10047 conditionally, use frame_pc_unwind as an alternative. Add
10048 comments.
10049 * arch-utils.c (init_frame_pc_default): Only call
10050 SAVED_PC_AFTER_CALL when available.
10051
c0236d92
EZ
100522003-04-08 Elena Zannoni <ezannoni@redhat.com>
10053
fbe586ae 10054 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10055 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10056 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10057 (start_remote): Ditto.
10058 (handle_inferior_event): Ditto.
10059 (save_inferior_status): Ditto.
10060 (restore_inferior_status): Ditto.
10061 * infcmd.c (attach_command): Ditto.
10062 * fork-child.c (startup_inferior): Ditto.
fbe586ae 10063 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10064 * alpha-tdep.c (heuristic_proc_start): Ditto.
10065 * mips-tdep.c (heuristic_proc_start): Ditto.
10066 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10067 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10068 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10069 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10070 * remote-vx.c (vx_create_inferior): Ditto.
10071
100722003-04-08 Elena Zannoni <ezannoni@redhat.com>
10073
10074 * infrun.c (stop_soon_quietly): Make it an enum, to better
10075 override the default behavior of handle_inferior_event.
10076 (clear_proceed_status): Update uses of stop_soon_quietly to
10077 reflect that it is now an enum.
10078 (start_remote): Ditto.
10079 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10080 is set to handle the new GNU/Linux kernel behavior for
10081 attach/sigstop. Update uses of stop_soon_quietly.
10082 * inferior.h (enum stop_kind): New enum.
10083 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10084 Reset normal handle_inferior_event behavior, afterwards.
10085 * fork-child.c (startup_inferior): Update.
10086 * alpha-tdep.c (heuristic_proc_start): Update.
10087 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10088 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10089 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10090 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10091 * remote-vx.c (vx_create_inferior): Update.
10092 * mips-tdep.c (heuristic_proc_start): Update.
10093
1211bce3
EZ
100942003-04-07 Elena Zannoni <ezannoni@redhat.com>
10095
10096 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 10097 be freed more than once, causing wild memory corruptions.
1211bce3 10098 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 10099 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 10100 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 10101 with the "core" target.
1211bce3 10102
f0ef6b29
KB
101032003-04-07 Kevin Buettner <kevinb@redhat.com>
10104
10105 * mips-tdep.c (mips_print_fp_register): New function, created from
10106 do_fp_register_row(). Registers are now (also) printed as hex.
10107 Only one register is printed per row.
10108 (mips_print_register, do_fp_register_row): Print floating point
10109 registers with mips_print_fp_register().
10110
8cf71652
AC
101112003-04-06 Andrew Cagney <cagney@redhat.com>
10112
5e488a7b
AC
10113 * valprint.h (inspect_it): Add extern declaration.
10114 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10115 (selectors_info, classes_info): Ditto.
10116 (find_objc_msgcall): Fix indentation.
10117 (objc_printstr): Delete extern declarations.
10118
8cf71652
AC
10119 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10120
e6ba3bc9
AC
101212003-04-06 Andrew Cagney <cagney@redhat.com>
10122
10123 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10124 Update comment.
10125 * frame.c (legacy_saved_regs_this_id): Update.
10126 (legacy_get_prev_frame): Update.
10127 * xstormy16-tdep.c: Update comment.
10128 * sparc-tdep.c (sparc_frame_chain): Update comment.
10129 * blockframe.c (legacy_frame_chain_valid): Update.
10130
55e1d7e7
AC
101312003-04-06 Andrew Cagney <cagney@redhat.com>
10132
996179ee
AC
10133 * valprint.c (val_print_type_code_int): Delete #ifdef
10134 PRINT_TYPELESS_INTEGER code.
10135
55e1d7e7
AC
10136 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10137 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10138 multi-arch definition.
10139 * gdbarch.h: Re-generate.
10140
43bd9a9e
AC
101412003-04-05 Andrew Cagney <cagney@redhat.com>
10142
10143 Eliminate FRAME_FIND_SAVED_REGS.
10144 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10145 Change FSR parameter to a pointer.
10146 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10147 Assume FSR parameter is a pointer.
10148 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10149 Make fsr a pointer.
10150 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10151 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10152 saved_regs a pointer.
10153 (hppa_frame_saved_pc): Ditto.
10154 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10155 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10156 pointer.
10157 (restore_pc_queue): Make fsr a pointer.
10158 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10159 (hppa_frame_chain): Make saved_regs a pointer, call
10160 hppa_frame_init_saved_regs.
10161 * sparc-tdep.c: Include "gdb_assert.h".
10162 (sparc_frame_find_saved_regs): Replace internal_error with
10163 gdb_assert.
10164 * remote-vxsparc.c (vx_read_register): Delete reference to
10165 FRAME_FIND_SAVED_REGS.
10166 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10167 * gdbarch.h: Regenerate.
10168 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10169 (deprecated_get_frame_saved_regs): Delete declaration.
10170 (struct frame_saved_regs): Delete definition.
10171 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10172 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10173 (hppa_frame_find_saved_regs): Delete declaration.
10174 (FRAME_FIND_SAVED_REGS): Delete macro.
10175 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10176 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10177 FRAME_FIND_SAVED_REGS in comment.
10178
be41e9f4
AC
101792003-04-05 Andrew Cagney <cagney@redhat.com>
10180
10181 * frame.c (frame_func_unwind, get_frame_func): New functions.
10182 * frame.h (get_frame_func, frame_func_unwind): Declare.
10183 (struct frame_info): Add field "prev_func" for caching the
10184 previous frame's function address.
10185 * arm-tdep.c (arm_frameless_function_invocation): Combine
10186 get_pc_function_start and get_frame_pc into get_frame_func.
10187 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10188 (sh64_nofp_frame_init_saved_regs): Ditto.
10189 * s390-tdep.c (s390_function_start): Ditto.
10190 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10191 (rs6000_frameless_function_invocation): Ditto.
10192 (rs6000_frame_saved_pc): Ditto.
10193 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10194 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10195 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10196 (i386_frame_init_saved_regs): Ditto.
10197 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10198 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10199 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10200 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10201 * blockframe.c (frameless_look_for_prologue): Ditto.
10202
a01dd7cc
AC
102032003-04-05 Andrew Cagney <cagney@redhat.com>
10204
10205 * frame.c (legacy_get_prev_frame): Link prev to next at the
10206 function start. Update comments.
10207
5e5592e6
AC
102082003-04-05 Andrew Cagney <cagney@redhat.com>
10209
10210 * frame.c (get_frame_id): Update comment.
10211 (legacy_get_prev_frame): Update comment.
10212 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10213 * gdbarch.h: Regenerate.
10214 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10215 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10216
6fba5002
AC
102172003-04-05 Andrew Cagney <cagney@redhat.com>
10218
10219 * stack.c (print_frame_info): Use get_frame_pc.
10220
7df05f2b
AC
102212003-04-04 Andrew Cagney <cagney@redhat.com>
10222
10223 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10224 the frame's type from the unwinder.
10225 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10226 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10227 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10228 (get_frame_base_address): Use get_frame_type.
10229 (get_frame_locals_address, get_frame_args_address): Ditto.
10230 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10231 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10232 (struct frame_info): Add comment explaining why the frame contains
10233 a "type" field.
10234 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10235 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10236 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10237 NORMAL_FRAME.
10238 * frame-unwind.h: Include "frame.h".
10239 (struct frame_unwind): Add "type" field.
10240 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 10241
11889732
AC
102422003-04-04 Andrew Cagney <cagney@redhat.com>
10243
10244 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10245 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10246 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10247 get_frame_base.
10248 (d10v_unwind_dummy_id): Use frame_id_build.
10249 * frame.c (find_frame_sal): Use get_frame_pc.
10250 (create_new_frame): Use deprecated_update_frame_pc_hack and
10251 deprecated_update_frame_base_hack.
10252 (create_sentinel_frame): Add comment about ->pc going away.
10253 (get_prev_frame): Add comment about ->pc going away.
10254 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10255 frame_id_build, deprecated_update_frame_pc_hack and
10256 deprecated_update_frame_base_hack.
10257 (select_frame): Use get_frame_pc.
10258 (legacy_saved_regs_this_id): Use frame_id_build.
10259
50c46a0d
EZ
102602003-04-04 Elena Zannoni <ezannoni@redhat.com>
10261
fbe586ae
RH
10262 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10263 signed integer case.
10264 (classify_argument): Handle enumerations and references.
50c46a0d 10265
50bbdbd9
AC
102662003-04-04 Andrew Cagney <cagney@redhat.com>
10267
10268 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10269 ID to NULL.
10270
36018d2e
AF
102712003-04-01 Adam Fedor <fedor@gnu.org>
10272
10273 * gdb/objc-lang.c (selectors_info): Replace calls to
10274 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10275 SYMBOL_NATURAL_NAME.
10276 (classes_info, find_methods): Likewise.
10277
35cec841
KB
102782003-04-03 Kevin Buettner <kevinb@redhat.com>
10279
10280 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10281 ``mach'' to the value determined by bfd_default_set_arch_mach().
10282
43136899
BR
102832003-04-02 Bob Rossi <bob_rossi@cox.net>
10284
10285 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10286 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10287 (mi-cmd-file.o): Update dependencies.
10288
040b99fd
KB
102892003-04-01 Kevin Buettner <kevinb@redhat.com>
10290
10291 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10292 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10293
9a3d7dfd
AF
102942003-04-01 Adam Fedor <fedor@gnu.org>
10295
10296 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10297 * language.h (struct language_defn): Add la_demangle.
10298 (language_demangle): Declare.
10299 * language.c (language_demangle): New function.
10300 (unk_lang_demangle): Likewise.
10301 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 10302 Add ukn_lang_demangle.
9a3d7dfd 10303 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 10304 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
10305 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10306 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10307 * jv-lang.c (java_demangle): New function
10308 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
10309 * objc-lang.c (objc_demangle): Add options argument
10310 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
10311 * maint.c (maintenance_demangle): Replace switch with
10312 call to language_demangle.
10313 * utils.c (fprintf_symbol_filtered): Likewise.
10314
5e074003
AC
103152003-04-01 Andrew Cagney <cagney@redhat.com>
10316
10317 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10318 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10319 PRINT_TYPELESS_INTEGER.
10320 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10321 PUSH_RETURN_ADDRESS.
10322
270cb5d6
AC
103232003-04-01 Andrew Cagney <cagney@redhat.com>
10324
10325 * Makefile.in (d10v-tdep.o): Update dependencies.
10326 * d10v-tdep.c: Include "frame-base.h".
10327 (d10v_frame_unwind): Make constant.
10328 (d10v_frame_base_address): New function.
10329 (d10v_frame_base): New variable.
10330 (d10v_gdbarch_init): Set frame_base default.
10331 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10332 comment for base.
10333 (d10v_frame_unwind_cache): Set and use "prev_sp".
10334 (d10v_frame_this_id): Use the previous frame's inner most stack
10335 address and this frame's func address for the frame ID. Use
10336 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 10337
6bfb3e36
AC
103382003-04-01 Andrew Cagney <cagney@redhat.com>
10339
10340 * frame.h (get_frame_locals_address, get_frame_args_address):
10341 Refer to the base address, instead of the address of the first
10342 local or parameter.
8ffd9b1b 10343
da62e633
AC
103442003-04-01 Andrew Cagney <cagney@redhat.com>
10345
10346 Add frame debug info addresses:
10347 * frame-base.c: New file.
10348 * frame-base.h: New file.
10349 * frame.h (struct frame_base): Add opaque declaration.
10350 (get_frame_base): Update comment.
10351 (get_frame_base_address): Declare.
10352 (get_frame_locals_address): Declare.
10353 (get_frame_args_address): Declare.
10354 (struct frame_info): Add "base" and "base_cache". Update
10355 comments on the unwinder.
10356 * frame.c: Include "frame-base.h".
10357 (get_frame_locals_address): New function.
10358 (get_frame_base_address): New function.
10359 (get_frame_args_address): New function.
10360 * findvar.c (read_var_value): Use get_frame_locals_address and
10361 get_frame_args_address.
10362 * stack.c (frame_info): Use get_frame_locals_address and
10363 get_frame_args_address.
10364 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10365 moved to "frame-base.c".
10366 * printcmd.c (print_frame_nameless_args): Ditto.
10367 * symtab.h (address_class): Update comments.
10368 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10369 get_frame_base_address.
10370 * dwarf2expr.c (execute_stack_op): Ditto.
10371 * Makefile.in (frame_base_h): Define.
10372 (frame.o): Update dependencies.
10373 (frame-base.o): Add dependencies.
10374 (SFILES): Add frame-base.c.
10375 (COMMON_OBS): Add frame-base.o.
10376
3d30e9c2
AC
103772003-04-01 Andrew Cagney <cagney@redhat.com>
10378
10379 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10380 CALL_DUMMY_LENGTH): Ditto.
10381 * gdbarch.c: Re-generate.
10382 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10383 (CALL_DUMMY_LENGTH): Delete macro.
10384 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10385 * arm-tdep.c (arm_gdbarch_init): Ditto.
10386 * avr-tdep.c (avr_gdbarch_init): Ditto.
10387 * cris-tdep.c (cris_gdbarch_init): Ditto.
10388 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10389 * frv-tdep.c (frv_gdbarch_init): Ditto.
10390 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10391 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10392 * i386-tdep.c (i386_gdbarch_init): Ditto.
10393 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10394 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10395 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10396 * mips-tdep.c (mips_gdbarch_init): Ditto.
10397 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10398 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10399 * s390-tdep.c (s390_gdbarch_init): Ditto.
10400 * sh-tdep.c (sh_gdbarch_init): Ditto.
10401 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10402 * v850-tdep.c (v850_gdbarch_init): Ditto.
10403 * vax-tdep.c (vax_gdbarch_init): Ditto.
10404 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10405
ce0c7262
CV
104062003-04-01 Corinna Vinschen <vinschen@redhat.com>
10407
10408 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10409
73dd234f
AC
104102003-04-01 Andrew Cagney <cagney@redhat.com>
10411
10412 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10413 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10414 * gdbarch.h, gdbarch.c: Re-generate.
10415 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10416 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10417 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10418 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10419 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10420 * infcmd.c (run_stack_dummy): Simplify assuming
10421 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10422 * infrun.c (handle_inferior_event): Ditto.
10423 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10424 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10425 * arm-tdep.c (arm_gdbarch_init): Ditto.
10426 * avr-tdep.c (avr_gdbarch_init): Ditto.
10427 * cris-tdep.c (cris_gdbarch_init): Ditto.
10428 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10429 * frv-tdep.c (frv_gdbarch_init): Ditto.
10430 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10431 * i386-tdep.c (i386_gdbarch_init): Ditto.
10432 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10433 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10434 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10435 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10436 * mips-tdep.c (mips_gdbarch_init): Ditto.
10437 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10438 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10439 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10440 * s390-tdep.c (s390_gdbarch_init): Ditto.
10441 * sh-tdep.c (sh_gdbarch_init): Ditto.
10442 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10443 * v850-tdep.c (v850_gdbarch_init): Ditto.
10444 * vax-tdep.c (vax_gdbarch_init): Ditto.
10445 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10446
97606a13
DJ
104472003-04-01 Daniel Jacobowitz <drow@mvista.com>
10448
10449 * symfile.c (symfile_relocate_debug_section): Update call to
10450 bfd_simple_get_relocated_section_contents.
10451
e8ab51f7
AC
104522003-03-31 Andrew Cagney <cagney@redhat.com>
10453
10454 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10455 * gdbarch.h, gdbarch.c: Regenerate.
10456 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10457 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10458 available.
10459 * frame.h (generic_fix_call_dummy): Delete declaration.
10460 * dummy-frame.h: Update comment.
10461 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10462 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10463 fix_call_dummy.
10464 * sh-tdep.c (sh_gdbarch_init): Ditto.
10465 * s390-tdep.c (s390_gdbarch_init): Ditto.
10466 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10467 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10468 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10469 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10470 * i386-tdep.c (i386_gdbarch_init): Ditto.
10471 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10472 * frv-tdep.c (frv_gdbarch_init): Ditto.
10473 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10474 * cris-tdep.c (cris_gdbarch_init): Ditto.
10475 * avr-tdep.c (avr_gdbarch_init): Ditto.
10476 * arm-tdep.c (arm_gdbarch_init): Ditto.
10477
018d1b48
JB
104782003-03-31 J. Brobecker <brobecker@gnat.com>
10479
10480 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10481 (INIT_FRAME_AP): Likewise.
10482 (EXTRA_FRAME_INFO): Likewise.
10483
e9a2674e
AC
104842003-03-31 Andrew Cagney <cagney@redhat.com>
10485
10486 * gdbarch.sh: Include "symfile.h".
10487 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10488 * gdbarch.h, gdbarch.c: Re-generate.
10489 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10490 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10491 call_dummy_address, the default is at entry_point_address.
10492 * v850-tdep.c (v850_gdbarch_init): Ditto.
10493 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10494 * sh-tdep.c (sh_gdbarch_init): Ditto.
10495 * s390-tdep.c (s390_gdbarch_init): Ditto.
10496 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10497 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10498 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10499 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10500 * i386-tdep.c (i386_gdbarch_init): Ditto.
10501 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10502 * frv-tdep.c (frv_gdbarch_init): Ditto.
10503 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10504 * cris-tdep.c (cris_gdbarch_init): Ditto.
10505 * arm-tdep.c (arm_gdbarch_init): Ditto.
10506
e8a8712a
AC
105072003-03-31 Andrew Cagney <cagney@redhat.com>
10508
10509 * gdbarch.sh (CALL_DUMMY_P): Delete.
10510 * gdbarch.h, gdbarch.c: Re-generate.
10511 * inferior.h (CALL_DUMMY_P): Delete macro.
10512 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10513 * vax-tdep.c (vax_gdbarch_init): Update.
10514 * v850-tdep.c (v850_gdbarch_init): Update.
10515 * sparc-tdep.c (sparc_gdbarch_init): Update.
10516 * sh-tdep.c (sh_gdbarch_init): Update.
10517 * s390-tdep.c (s390_gdbarch_init): Update.
10518 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10519 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10520 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10521 * mips-tdep.c (mips_gdbarch_init): Update.
10522 * mcore-tdep.c (mcore_gdbarch_init): Update.
10523 * m68k-tdep.c (m68k_gdbarch_init): Update.
10524 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10525 * ia64-tdep.c (ia64_gdbarch_init): Update.
10526 * i386-tdep.c (i386_gdbarch_init): Update.
10527 * h8300-tdep.c (h8300_gdbarch_init): Update.
10528 * frv-tdep.c (frv_gdbarch_init): Update.
10529 * d10v-tdep.c (d10v_gdbarch_init): Update.
10530 * cris-tdep.c (cris_gdbarch_init): Update.
10531 * breakpoint.c (deprecated_frame_in_dummy): Update.
10532 * avr-tdep.c (avr_gdbarch_init): Update.
10533 * alpha-tdep.c (alpha_gdbarch_init): Update.
10534 * arm-tdep.c (arm_gdbarch_init): Update.
10535 * dummy-frame.c (dummy_frame_this_id): Update comments.
10536 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10537 * frame.c (legacy_get_prev_frame): Ditto.
10538 * valops.c (call_function_by_hand): Delete function.
10539 (hand_function_call): Rename to call_function_by_hand
10540
ed234cf8
AC
105412003-03-30 Andrew Cagney <cagney@redhat.com>
10542
10543 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 10544 * value.h (struct value): Update comment.
ed234cf8 10545
06c77151
AC
105462003-03-30 Andrew Cagney <cagney@redhat.com>
10547
6c2b5168
AC
10548 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10549 D10V_FP_REGNUM.
10550 (d10v_gdbarch_init): Do not set fp_regnum.
10551
06c77151
AC
10552 * frame.c (get_frame_base): Force ID initialization.
10553 (get_prev_frame): Move computation of the frame ID from here ...
10554 (get_frame_id): ... to here.
10555 (legacy_get_prev_frame): Mark the frame ID as valid.
10556 * frame.h (struct frame_info): Add field "id_p".
10557
97a1a11c
MK
105582003-03-30 Mark Kettenis <kettenis@gnu.org>
10559
10560 * i386-tdep.c (i386_store_struct_return): Removed.
10561 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10562
6c0e89ed
AC
105632003-03-30 Andrew Cagney <cagney@redhat.com>
10564
10565 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10566 * gdbarch.h, gdbarch.c: Regenerate.
10567 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10568 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10569 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10570 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10571 * i386-tdep.c (i386_gdbarch_init): Ditto.
10572 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10573 * cris-tdep.c (cris_gdbarch_init): Ditto.
10574 * vax-tdep.c (vax_gdbarch_init): Ditto.
10575 * s390-tdep.c (s390_gdbarch_init): Ditto.
10576 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10577 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10578 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10579 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10580 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10581 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10582 * sparc-tdep.c (sparc_gdbarch_init): Update.
10583 * sh-tdep.c (sh_gdbarch_init): Update.
10584 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10585 * mips-tdep.c (mips_gdbarch_init): Update.
10586 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10587 * ia64-tdep.c (ia64_gdbarch_init): Update.
10588 * frv-tdep.c (frv_gdbarch_init): Update.
10589 * avr-tdep.c (avr_gdbarch_init): Update.
10590 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10591 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
10592 instead of when push_dummy_call is not available.
8ffd9b1b 10593
f7dd6af2
AC
105942003-03-30 Andrew Cagney <cagney@redhat.com>
10595
10596 * infttrace.c: Include "gdbthread.h".
10597 (parent_attach_all): Fix function signature.
10598 (call_ptrace): Update call.
10599 * Makefile.in (infttrace.o): Update dependencies.
10600
28f617b3
AC
106012003-03-30 Andrew Cagney <cagney@redhat.com>
10602
10603 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10604 PUSH_RETURN_ADDRESS.
10605 * gdbarch.h, gdbarch.c: Regenerate.
10606 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10607 * x86-64-tdep.c (x86_64_init_abi): Update.
10608 * v850-tdep.c (v850_gdbarch_init): Update.
10609 * sparc-tdep.c (sparc_gdbarch_init): Update.
10610 * sh-tdep.c (sh_gdbarch_init): Update.
10611 * s390-tdep.c (s390_gdbarch_init): Update.
10612 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10613 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10614 * mips-tdep.c (mips_gdbarch_init): Update.
10615 * mcore-tdep.c (mcore_gdbarch_init): Update.
10616 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10617 * ia64-tdep.c (ia64_gdbarch_init): Update.
10618 * i386-tdep.c (i386_gdbarch_init): Update.
10619 * h8300-tdep.c (h8300_gdbarch_init): Update.
10620 * frv-tdep.c (frv_gdbarch_init): Update.
10621 * cris-tdep.c (cris_gdbarch_init): Update.
10622 * avr-tdep.c (avr_gdbarch_init): Update.
10623 * arm-tdep.c (arm_gdbarch_init): Update.
10624 * valops.c (hand_function_call): Update.
10625
4d628cd7
AC
106262003-03-29 Andrew Cagney <cagney@redhat.com>
10627
10628 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10629 sizeof_call_dummy_words.
10630 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10631 define.
10632 * gdbarch.h: Regenerate.
8ffd9b1b 10633
65e82032
AC
106342003-03-29 Andrew Cagney <cagney@redhat.com>
10635
10636 * infttrace.h: New file.
10637 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10638 (hpread_get_textlow): Detect an uninitialized dn_bufp.
10639 (hpread_read_doc_function_type): Detect an initialized type1.
10640 (hpread_quick_traverse): Initialize mod_name_string.
10641 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10642 (som_solib_get_solib_by_pc): Declare.
10643 (so_lib_thread_start_addr): Declare.
10644 (no_shared_libraries): Declare.
10645 * somread.c (init_import_symbols): Make static. Add forward
10646 declaration.
10647 * config/pa/nm-hppah.h: Include "infttrace.h" for
10648 parent_attach_all.
10649 (hppa_insert_hw_watchpoint): Declare.
10650 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10651 * hppah-nat.c: Include "gdb_string.h".
10652 (parent_attach_all): Delete extern declaration, moved to
10653 "infttrace.h".
10654 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10655 int.
10656 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10657 * Makefile.in (infttrace_h): Define.
10658 (hpread.o): Update dependencies.
10659 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10660 * hppa-hpux-tdep.c: Include "gdb_string.h".
10661 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10662 * infrun.c (handle_inferior_event): Always initialize
10663 stepped_after_stopped_by_watchpoint. Add default and remove
10664 fallthrough in switch statement.
10665 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10666 parameter to int.
10667 (hppa_remove_hw_watchpoint): Ditto.
10668
2c3bbe77
AC
106692003-03-29 Andrew Cagney <cagney@redhat.com>
10670
10671 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
10672 offset.
10673
2dd604e7
RE
106742003-03-29 Richard Earnshaw <rearnsha@arm.com>
10675
10676 * arm-tdep.c (arm_push_arguments): Delete.
10677 (struct stack_item): New type.
10678 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
10679 (arm_store_struct_return): Delte.
10680 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
10681 arm_push_arguments or arm_store_struct_return.
10682
e8933a55
AC
106832003-03-28 Andrew Cagney <cagney@redhat.com>
10684
10685 * Makefile.in (d10v-tdep.o): Update dependencies.
10686 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
10687 * d10v-tdep.c: Include "remote.h".
10688 (target_resume_hook): Delete extern declaration.
10689 (target_wait_loop_hook): Ditto.
10690 (tdisassemble_command): Eliminate assignment in "if" conditional.
10691 (d10v_ts2_register_sim_regno): Eliminate call to
10692 legacy_register_sim_regno.
10693 (d10v_ts3_register_sim_regno): Ditto.
10694
6949171e
JJ
106952003-03-28 Jeff Johnston <jjohnstn@redhat.com>
10696
10697 * thread.c: Reindented.
10698 * lin-lwp.c: Ditto.
10699 * linux-proc.c: Ditto.
10700
98c7071f
BR
107012003-03-28 Bob Rossi <bob_rossi@cox.net>
10702
fbe586ae 10703 * MAINTAINERS (write after approval): Add myself.
98c7071f 10704
5edc9ca6
TR
107052003-03-27 Theodore A. Roth <troth@openavr.org>
10706
10707 * objc-exp.y: Add missing semi-colons.
10708
378bfd1b
AC
107092003-03-27 Andrew Cagney <cagney@redhat.com>
10710
10711 * regcache.c (write_sp): Delete function and references.
10712 * inferior.h (write_sp): Delete declaration.
10713 * valops.c (hand_function_call): Replace write_sp with
10714 TARGET_WRITE_SP.
10715 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
10716 (sparc_pop_frame): Ditto.
8ffd9b1b 10717
56056df7
AC
107182003-03-27 Andrew Cagney <cagney@redhat.com>
10719
10720 * NEWS: Mention removal of support for hppa*-*-bsd* and
10721 hppa*-*-osf* natives, and hppa*-*-pro* target.
10722 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
10723 * config/pa/xm-pa.h: Obsolete file.
10724 * config/pa/xm-hppab.h: Obsolete file.
10725 * config/pa/nm-hppab.h: Obsolete file.
10726 * config/pa/tm-hppab.h: Obsolete file.
10727 * config/pa/tm-hppao.h: Obsolete file.
10728 * config/pa/nm-hppao.h: Obsolete file.
10729 * config/pa/tm-pro.h: Obsolete file.
10730 * config/pa/hppaosf.mt: Obsolete file.
10731 * config/pa/hppaosf.mh: Obsolete file.
10732 * config/pa/hppapro.mt: Obsolete file.
10733 * config/pa/hppabsd.mt: Obsolete file.
10734 * config/pa/hppabsd.mh: Obsolete file.
10735 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
10736 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
10737 hppa*-*-osf*.
10738
5873a88d
AC
107392003-03-27 Andrew Cagney <cagney@redhat.com>
10740
10741 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
10742 push_arguments. Don't set push_return_address or write_sp.
10743 (d10v_push_dummy_call): Replace d10v_push_arguments.
10744 (d10v_push_return_address, d10v_write_sp): Delete function,
10745 handled by push_dummy_call.
10746
b81774d8
AC
107472003-03-26 Andrew Cagney <cagney@redhat.com>
10748
10749 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
10750 (push_dummy_call): New pure multi-arch replacement with gdbarch,
10751 regcache and dummy_addr parameters.
10752 * gdbarch.h, gdbarch.c: Re-generate.
10753 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
10754 available; assume it will handle stack alignment and return
10755 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
10756 legacy_push_arguments.
10757 (legacy_push_arguments): Rename default_push_arguments.
10758 * value.h (legacy_push_arguments): Rename default_push_arguments.
10759 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
10760 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10761 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10762 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10763 * config/i386/tm-symmetry.h: Update.
10764 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10765 * x86-64-tdep.c (x86_64_init_abi): Update.
10766 * v850-tdep.c (v850_gdbarch_init): Update.
10767 * sparc-tdep.c (sparc_gdbarch_init): Update.
10768 * sh-tdep.c (sh_gdbarch_init): Update.
10769 * s390-tdep.c (s390_gdbarch_init): Update.
10770 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10771 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10772 * mips-tdep.c (mips_gdbarch_init): Update.
10773 * mcore-tdep.c (mcore_gdbarch_init): Update.
10774 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10775 * ia64-tdep.c (ia64_gdbarch_init): Update.
10776 * i386-tdep.c (i386_gdbarch_init): Update.
10777 * hppa-tdep.c (hppa_gdbarch_init): Update.
10778 * h8300-tdep.c (h8300_gdbarch_init): Update.
10779 * frv-tdep.c (frv_gdbarch_init): Update.
10780 * d10v-tdep.c (d10v_gdbarch_init): Update.
10781 * cris-tdep.c (cris_gdbarch_init): Update.
10782 * avr-tdep.c (avr_gdbarch_init): Update.
10783 * arm-tdep.c (arm_gdbarch_init): Update.
10784 * arm-linux-tdep.c (arm_linux_init_abi): Update.
10785 * alpha-tdep.c (alpha_gdbarch_init): Update.
10786
f541410f
DJ
107872003-03-26 Daniel Jacobowitz <drow@mvista.com>
10788
10789 * signals/signals.c (do_target_signal_to_host): Correct realtime
10790 signal range test.
10791
69f567ae
DJ
107922003-03-26 Daniel Jacobowitz <drow@mvista.com>
10793
10794 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
10795 (struct sal_chain, map_catch_names): Remove.
10796 (catch_exception_command_1): Don't call
10797 handle_gnu_4_16_catch_command.
10798
d5d14a5a
DJ
107992003-03-26 Daniel Jacobowitz <drow@mvista.com>
10800
10801 From Mark Dettinger <dettinge@de.ibm.com>:
10802 * dwarf2cfi.c (read_2u): Increment pointer by two.
10803
bdd73e22
DJ
108042003-03-26 Daniel Jacobowitz <drow@mvista.com>
10805
10806 * signals/signals.c: Fix typos in last change.
10807
960cb555
DJ
108082003-03-26 Daniel Jacobowitz <drow@mvista.com>
10809
10810 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
10811 not already defined. Use __SIGRTMIN if available.
10812 (target_signal_from_host): Remove SIGRTMIN block.
10813 (do_target_signal_to_host): Remove SIGRTMIN block; check that
10814 the signal is within the realtime range.
10815
f636b87d
AF
108162003-03-25 Adam Fedor <fedor@gnu.org>
10817
10818 * Makefile.in (infrun.o): Add $(language_h)
10819 * infrun.c (handle_inferior_event): Use skip_language_trampoline
10820 for language specific trampolines.
10821 * language.h (struct language_defn): Add skip_trampoline.
10822 (skip_language_trampoline): Declare.
10823 * language.c (unk_lang_trampoline, skip_language_trampoline):
10824 New functions.
10825 (unknown_language_defn, auto_language_defn, local_language_defn):
10826 Add ukn_lang_trampoline.
10827 * ada-lang.c (ada_language_defn): Add NULL for language
10828 specific skip_trampoline.
10829 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
10830 scm-lang.c: Likewise.
10831 * objc-lang.c (objc_skip_trampoline): New function.
10832 (objc_language_defn): Add objc_skip_trampoline.
10833
28f617b3 108342003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
10835
10836 * frame.c (get_prev_frame): Delay validating a frame's ID -
10837 non-NULL, didn't go backwards - until an attempt to unwind it to
10838 the previous frame.
10839
f933a9c5
AC
108402003-03-25 Andrew Cagney <cagney@redhat.com>
10841
10842 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
10843 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
10844 * gdbarch.h, gdbarch.c: Re-generate.
10845 * config/sparc/tm-sparc.h
10846 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
10847 * sparc-tdep.c (sparc_gdbarch_init): Set
10848 deprecated_extra_stack_alignment_needed.
10849 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10850 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
10851 extra_stack_alignment_needed.
10852 * v850-tdep.c (v850_gdbarch_init): Ditto.
10853 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10854 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10855 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10856 * cris-tdep.c (cris_gdbarch_init): Ditto.
10857 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10858 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 10859
4183d812
AC
108602003-03-25 Andrew Cagney <cagney@redhat.com>
10861
10862 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
10863 STORE_STRUCT_RETURN.
10864 * gdbarch.h, gdbarch.c: Regenerate.
10865 * d10v-tdep.c (d10v_store_struct_return): Delete function.
10866 (d10v_push_arguments): Set the struct return register.
10867 (d10v_gdbarch_init): Update.
10868 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10869 * x86-64-tdep.c (x86_64_init_abi): Update.
10870 * vax-tdep.c (vax_gdbarch_init): Update.
10871 * v850-tdep.c (v850_gdbarch_init): Update.
10872 * sparc-tdep.c (sparc_gdbarch_init): Update.
10873 * sh-tdep.c (sh_gdbarch_init): Update.
10874 * s390-tdep.c (s390_gdbarch_init): Update.
10875 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10876 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10877 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10878 * mips-tdep.c (mips_gdbarch_init): Update.
10879 * mcore-tdep.c (mcore_gdbarch_init): Update.
10880 * m68k-tdep.c (m68k_gdbarch_init): Update.
10881 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10882 * ia64-tdep.c (ia64_gdbarch_init): Update.
10883 * i386-tdep.c (i386_gdbarch_init): Update.
10884 * hppa-tdep.c (hppa_gdbarch_init): Update.
10885 * h8300-tdep.c (h8300_gdbarch_init): Update.
10886 * frv-tdep.c (frv_gdbarch_init): Update.
10887 * cris-tdep.c (cris_gdbarch_init): Update.
10888 * avr-tdep.c (avr_gdbarch_init): Update.
10889 * arm-tdep.c (arm_gdbarch_init): Update.
10890 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10891
1bf6d5cc
AC
108922003-03-25 Andrew Cagney <cagney@redhat.com>
10893
10894 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
10895 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
10896 CALL_DUMMY_STACK_ADJUST with a predicate variable.
10897 * gdbarch.h, gdbarch.c: Regenerate.
10898 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10899 call_dummy_stack_adjust_p.
10900 * vax-tdep.c (vax_gdbarch_init): Ditto.
10901 * v850-tdep.c (v850_gdbarch_init): Ditto.
10902 * sh-tdep.c (sh_gdbarch_init): Ditto.
10903 * s390-tdep.c (s390_gdbarch_init): Ditto.
10904 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10905 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10906 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10907 * mips-tdep.c (mips_gdbarch_init): Ditto.
10908 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10909 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10910 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10911 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10912 * i386-tdep.c (i386_gdbarch_init): Ditto.
10913 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10914 * frv-tdep.c (frv_gdbarch_init): Ditto.
10915 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10916 * cris-tdep.c (cris_gdbarch_init): Ditto.
10917 * avr-tdep.c (avr_gdbarch_init): Ditto.
10918 * arm-tdep.c (arm_gdbarch_init): Ditto.
10919 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10920 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10921 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
10922 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10923 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
10924 call_dummy_stack_adjust_p.
10925 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
10926 (CALL_DUMMY_STACK_ADJUST): Delete macro.
10927 * sparc-tdep.c (sparc32_push_arguments): Update.
10928 * valops.c (hand_function_call): Update.
10929
71c08af0
CV
109302003-03-25 Corinna Vinschen <vinschen@redhat.com>
10931
10932 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
10933 set_gdbarch_char_signed.
10934
30757f90
RE
109352003-03-25 Richard Earnshaw <rearnsha@arm.com>
10936
10937 PR cli/548
10938 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
10939
03d48a7d
RE
109402003-03-25 Richard Earnshaw <rearnsha@arm.com>
10941
10942 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
10943 (_initialize_arm_tdep): Don't set tm_print_insn.
10944
2cf6873c
AF
109452003-03-24 Adam Fedor <fedor@gnu.org>
10946
10947 * Makefile.in (YYOBJ): Add objc-exp.tab.o
10948 * objc-lang.h: Add multiple inclusion protection.
10949 (start_msglist, add_msglist, end_msglist): Additional declarations.
10950
17c0759e
RE
109512003-03-24 Richard Earnshaw <rearnsha@arm.com>
10952
10953 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
10954 value was renamed to ARM_FLOAT_SOFT_FPA.
10955
618ce49f
AC
109562003-03-23 Andrew Cagney <cagney@redhat.com>
10957
10958 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
10959 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
10960 * gdbarch.h, gdbarch.c: Regenerate.
10961 * valops.c (hand_function_call): Update.
10962 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10963 * frame.c (legacy_saved_regs_this_id): Update.
10964 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
10965 * dummy-frame.h: Update.
10966 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
10967 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10968 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
10969 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
10970 * config/m68k/tm-sun3.h: Update.
10971 * blockframe.c (inside_main_func, frame_chain_valid): Update.
10972 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10973 * x86-64-tdep.c (x86_64_init_abi): Update.
10974 * vax-tdep.c (vax_gdbarch_init): Update.
10975 * v850-tdep.c (v850_gdbarch_init): Update.
10976 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
10977 * sh-tdep.c (sh_gdbarch_init): Update.
10978 * s390-tdep.c (s390_gdbarch_init): Update.
10979 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
10980 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
10981 (frame_get_saved_regs): Update.
10982 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10983 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10984 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10985 * mips-tdep.c (mips_gdbarch_init): Update.
10986 * mcore-tdep.c (mcore_gdbarch_init): Update.
10987 * m68k-tdep.c (m68k_gdbarch_init): Update.
10988 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10989 * ia64-tdep.c (ia64_gdbarch_init): Update.
10990 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
10991 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10992 (i386_interix_back_one_frame): Update.
10993 * hppa-tdep.c (hppa_gdbarch_init): Update.
10994 (hppa_init_extra_frame_info): Update.
10995 * h8300-tdep.c (h8300_gdbarch_init): Update.
10996 * frv-tdep.c (frv_gdbarch_init): Update.
10997 * cris-tdep.c (cris_gdbarch_init): Update.
10998 * avr-tdep.c (avr_gdbarch_init): Update.
10999 * arm-tdep.c (arm_gdbarch_init): Update.
11000 * alpha-tdep.c (alpha_gdbarch_init): Update.
11001
fd50bc42
RE
110022003-03-22 Richard Earnshaw <rearnsha@arm.com>
11003
11004 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11005 (arm_get_fp_model): Declare.
11006 * arm-tdep.c (fp_model_strings): New string array.
11007 (arm_fp_model, current_fp_model): New variables.
11008 (arm_get_fp_model): New function.
11009 (arm_set_fp): New function.
11010 (set_fp_model_sfunc): New function.
11011 (show_fp_model): New function.
11012 (_initialize_arm_tdep): Add new command to set/show the FPU.
11013 (arm_extract_return_value): Use arm_get_fp_model.
11014 (arm_store_return_value): Likewise.
11015 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11016 to initialize the floating-point data types.
11017 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11018 model is FPA.
11019
26304000
RE
110202003-03-22 Richard Earnshaw <rearnsha@arm.com>
11021
11022 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11023 the current setting of each value.
11024 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 11025 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
11026 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11027 commands and add new version as subcommands of "set/show arm".
11028
afd7eef0
RE
110292003-03-22 Richard Earnshaw <rearnsha@arm.com>
11030
11031 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11032 (set_arm_command, show_arm_command): New functions.
11033 (_initialize_arm_tdep): Add them.
11034 (num_disassembly_options): Renamed from num_flavor_options.
11035 (valid_disassembly_styles): Renamed from valid_flavors.
11036 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 11037 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
11038 set_disassembly_flavor_sfunc.
11039 (set_disassembly_style): Renamed from set_disassembly_flavor.
11040 (arm_othernames): Updated.
11041 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11042 command. Add "set/show arm disassembly" commands. Deprecate
11043 "othernames" command.
11044
299a7944
RE
110452003-03-22 Richard Earnshaw <rearnsha@arm.com>
11046
11047 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11048 (arm-tdep.o): Depend on elf_arm_h.
11049
c1dac9e6
RE
110502003-03-22 Richard Earnshaw <rearnsha@arm.com>
11051
11052 * Makefile.in (coff_internal_h): Define.
11053 (arm-tdep.o): Update dependencies.
11054
2702d96c
RE
110552003-03-22 Richard Earnshaw <rearnsha@arm.com>
11056
11057 * arm-tdep.c (prologue_cache): Delete.
11058 (check_prologue_cache, save_prologue_cache): Delete.
11059 (arm_scan_prologue): Don't check or update the prologue_cache.
11060 (arm_gdb_arch_init): Don't initialize it.
11061 (_initialize_arm_tdep): Likewise.
11062
27d5d74b
SC
110632003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11064
11065 * MAINTAINERS (tui): Maintainer of tui code.
11066
1762d96d
CV
110672003-03-21 Corinna Vinschen <vinschen@redhat.com>
11068
11069 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11070 (i386-cygwin-tdep.o): Add dependencies.
11071 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11072 * i386-cygwin-tdep.c: New file.
11073 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11074 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11075
4c2e2391
AC
110762003-03-20 Andrew Cagney <cagney@redhat.com>
11077
f20d38b7
AC
11078 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11079 (handle_inferior_event): Remove code calling
11080 DYNAMIC_TRAMPOLINE_NEXTPC.
11081
0022b738
AC
11082 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11083 already has a full path.
11084
864dbc90
AC
11085 * main.c (gdb_main): Return 1.
11086 (captured_main): Call error to report an invalid interpreter.
11087
4c2e2391
AC
11088 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11089 * alpha-osf1-tdep.c: Include "gdb_string.h".
11090
5ef7553b
JB
110912003-03-19 J. Brobecker <brobecker@gnat.com>
11092
11093 Continuing work to convert the hppa targets to multiarch partial.
11094
11095 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11096 method, now that hppa_push_dummy_frame has a conformant prototype.
11097 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11098 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11099 for the switch to multiarch partial.
11100
7bde8967
KB
111012003-03-19 Kevin Buettner <kevinb@redhat.com>
11102
11103 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11104 when iss is issNull.
11105
b006a9e9
KB
111062003-03-18 Kevin Buettner <kevinb@redhat.com>
11107
11108 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11109 NUM_REGS bounds check.
11110
5e2e9765
KB
111112003-03-18 Kevin Buettner <kevinb@redhat.com>
11112
11113 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11114 * mips-tdep.c (gdb_assert.h): Include.
11115 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11116 (mips_register_name): Handle integer registers explicitly. Add
11117 bounds checking.
11118 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11119 (mips_lsi33k_reg_names): Don't list integer registers; they're
11120 handled by mips_register_name() now.
11121 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11122 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11123 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11124 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11125 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11126
a2867626
AC
111272003-03-18 Andrew Cagney <cagney@redhat.com>
11128
11129 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11130 a void pointer.
11131 * gdbtypes.h (print_scalar_formatted): Update declaration.
11132 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11133
06600e06
JB
111342003-03-18 J. Brobecker <brobecker@gnat.com>
11135
11136 * infrun.c (observer.h): Add #include.
11137 (normal_stop): Add call to observer_notify_normal_stop.
11138 * Makefile.in (infrun.o): Add dependency on observer.h.
11139
7daf4f5b
JB
111402003-03-18 J. Brobecker <brobecker@gnat.com>
11141
11142 Continuing work to convert the hppa targets to multiarch partial.
11143 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11144 parameter. Reformat comment.
11145 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11146 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11147 to match new profile.
11148
3371ccc0
JB
111492003-03-18 J. Brobecker <brobecker@gnat.com>
11150
11151 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11152 appear to be working in any case.
11153
4fbe891e
JB
111542003-03-18 J. Brobecker <brobecker@gnat.com>
11155
11156 * observer.c (observer_test_first_observer): New static variable.
11157 (observer_test_second_observer): Likewise.
11158 (observer_test_third_observer): Likewise.
11159 (observer_test_first_notification_function): New static function.
11160 (observer_test_second_notification_function): Likewise.
11161 (observer_test_third_notification_function): Likewise.
11162
a7ff40e7
JB
111632003-03-17 J. Brobecker <brobecker@gnat.com>
11164
11165 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11166 * somsolib.c (gdb_assert.h): Likewise.
11167 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11168 (somsolib.o): Likewise.
11169
26ca4152
AC
111702003-03-17 Andrew Cagney <cagney@redhat.com>
11171
11172 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11173 BFD. Simplify setting of di.endian.
11174
0a613259
AC
111752003-03-17 Andrew Cagney <cagney@redhat.com>
11176
11177 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11178 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11179
11180 From Elena Zannoni <ezannoni@redhat.com>
11181 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11182 vector and floating-point parameters.
11183 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11184 convention.
11185 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11186
1132738f
FN
111872003-03-17 Fernando Nasser <fnasser@redhat.com>
11188
11189 * MAINTAINERS: Remove my name from several maintainership roles.
11190
6dc42492
AC
111912003-03-17 Andrew Cagney <cagney@redhat.com>
11192
11193 Fix frame off-by-one bug.
11194 * frame-unwind.h (frame_this_id_ftype): Replace
11195 frame_unwind_id_ftype.
11196 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11197 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11198 with "prev_register".
11199 * frame-unwind.c (frame_unwind_find_by_pc): Return
11200 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11201 comment.
11202 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11203 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11204 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11205 (dummy_frame_unwind): Update.
11206 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11207 sentinel_frame_register_unwind.
11208 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11209 (sentinel_frame_unwinder): Update.
11210 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11211 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11212 * frame.c (create_sentinel_frame): Update. Initialize
11213 "prologue_cache" instead of "unwind_cache".
11214 (frame_register_unwind): Call this frame's prev_register with the
11215 next frame and this frame's prologue cache.
11216 (get_prev_frame): Simplify. Always call prev frame's this_id with
11217 this frame and prev frame's prologue cache. Document that this
11218 call is shifted one to the left when compared to the
11219 frame_register_unwind call.
11220 (legacy_saved_regs_prev_register): Replace
11221 frame_saved_regs_register_unwind.
11222 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11223 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11224 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11225 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11226 (d10v_frame_unwind): Update.
11227 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11228 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11229 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11230 "saved_regs" with "this_saved_regs".
11231
efd710d6
AC
112322003-03-16 Andrew Cagney <cagney@redhat.com>
11233
11234 * frame.c (frame_pop): Don't call target_store_registers. Fix
11235 problem reported by Mark Kettenis.
11236
4e259f09
MK
112372003-03-16 Mark Kettenis <kettenis@gnu.org>
11238
11239 * i386-tdep.c (i386_register_type): Renamed from
11240 i386_register_virtual_type. Adjust function signature.
11241 (i386_gdbarch_init): Set register_type instead of
11242 deprecated_max_register_raw_size,
11243 deprecated_max_register_virtual_size and register_virtual_type.
11244
055bb976
AC
112452003-03-14 Andrew Cagney <cagney@redhat.com>
11246
11247 * frame.c (get_prev_frame): When a legacy frame, always call
11248 legacy_get_prev_frame. Simplify unwind code using assumption that
11249 the unwinder is new.
11250 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11251 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11252 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11253
ac2adee5
AC
112542003-03-14 Andrew Cagney <cagney@redhat.com>
11255
11256 * frame.c (get_saved_register): Delete function.
11257 * frame.h (get_saved_register): Delete declaration.
11258 * xstormy16-tdep.c: Update comment.
11259 * regcache.h: Update comments.
11260 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11261 get_saved_register and extract_address, use
11262 frame_read_unsigned_register.
11263 (sparc_frame_saved_pc): Ditto.
11264 (sparc_get_saved_register): Instead of get_saved_register, use
11265 frame_register.
11266 (sparc_pop_frame): Ditto.
11267 * findvar.c: Update comments.
11268 (value_of_register): Call frame_register instead of
11269 get_saved_register.
11270 (value_from_register): Ditto.
11271 * config/sparc/tm-sparc.h: Update comment.
11272 * breakpoint.c: Update comment.
11273
129c1cd6
AC
112742003-03-14 Andrew Cagney <cagney@redhat.com>
11275
11276 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11277 GET_SAVED_REGISTER.
11278 * gdbarch.h, gdbarch.c: Re-generate.
11279 * frame.h: Update comments.
11280 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11281 * x86-64-tdep.c (x86_64_init_abi): Update.
11282 * sparc-tdep.c (sparc_gdbarch_init): Update.
11283 * sh-tdep.c (sh_gdbarch_init): Update.
11284 * mips-tdep.c (mips_gdbarch_init): Update.
11285 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11286 * cris-tdep.c (cris_gdbarch_init): Update.
11287 * ia64-tdep.c (ia64_gdbarch_init): Update.
11288 * frame.c (frame_register): Update.
11289 (get_saved_register): Update.
11290 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 11291
749b82f6
AC
112922003-03-13 Andrew Cagney <cagney@redhat.com>
11293
11294 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11295 * gdbarch.h, gdbarch.c: Regenerate.
11296 * valops.c (hand_function_call): Update comment.
11297 * stack.c (return_command): Update comment.
11298 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11299 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11300 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11301 * x86-64-tdep.c (x86_64_init_abi): Update.
11302 * vax-tdep.c (vax_gdbarch_init): Update.
11303 * v850-tdep.c (v850_gdbarch_init): Update.
11304 * sparc-tdep.c (sparc_gdbarch_init): Update.
11305 * sh-tdep.c (sh_gdbarch_init): Update.
11306 * s390-tdep.c (s390_gdbarch_init): Update.
11307 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11308 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11309 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11310 * mips-tdep.c (mips_gdbarch_init): Update.
11311 * mcore-tdep.c (mcore_gdbarch_init): Update.
11312 * m68k-tdep.c (m68k_gdbarch_init): Update.
11313 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11314 * ia64-tdep.c (ia64_gdbarch_init): Update.
11315 * i386-tdep.c (i386_gdbarch_init): Update.
11316 * hppa-tdep.c (hppa_gdbarch_init): Update.
11317 * h8300-tdep.c (h8300_gdbarch_init): Update.
11318 * frv-tdep.c (frv_gdbarch_init): Update.
11319 * cris-tdep.c (cris_gdbarch_init): Update.
11320 * avr-tdep.c (avr_gdbarch_init): Update.
11321 * arm-tdep.c (arm_gdbarch_init): Update.
11322 * alpha-tdep.c (alpha_gdbarch_init): Update.
11323
1594fa56
AC
113242003-03-13 Andrew Cagney <cagney@redhat.com>
11325
11326 * frame.c (legacy_frame_p): New function.
11327 (get_prev_frame): Use legacy_frame_p.
11328 * frame.h (legacy_frame_p): Declare.
11329
7717fda3
V
113302003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11331
fbe586ae 11332 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
11333 listing corrected.
11334
0c67cbe9
V
113352003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11336
fbe586ae 11337 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 11338
03febf99
AC
113392003-03-12 Andrew Cagney <cagney@redhat.com>
11340
11341 * frame.c (get_prev_frame): Rename the frame parameter to
11342 "this_frame".
11343 (get_next_frame, legacy_get_prev_frame): Ditto.
11344
0a1e1ca1
AC
113452003-03-12 Andrew Cagney <cagney@redhat.com>
11346
11347 * frame.c (get_current_frame): Check target_has_registers before
11348 checking target_has_stack.
11349 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11350 instead of deprecated_selected_frame.
11351 * findvar.c (value_of_register): Pass "frame", not
11352 deprecated_selected_frame, to value_of_builtin_reg.
11353
a66a9c23
AC
113542003-03-12 Andrew Cagney <cagney@redhat.com>
11355
11356 * regcache.c (regcache_cooked_write_signed): New function.
11357 (regcache_cooked_write_unsigned): New function.
11358 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11359 (regcache_cooked_read_signed): Fix regnum in range assertion.
11360 * regcache.h (regcache_cooked_write_signed): Declare.
11361 (regcache_cooked_write_unsigned): Declare.
11362
8bedc050
AC
113632003-03-12 Andrew Cagney <cagney@redhat.com>
11364
11365 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11366 * gdbarch.h, gdbarch.c: Re-generate.
11367 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11368 * x86-64-tdep.h: Update.
11369 * x86-64-tdep.c (x86_64_init_abi): Update.
11370 * v850-tdep.c (v850_gdbarch_init): Update.
11371 * sparc-tdep.c (sparc_gdbarch_init): Update.
11372 * sh-tdep.c (sh_gdbarch_init): Update.
11373 * s390-tdep.c (s390_gdbarch_init): Update.
11374 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11375 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11376 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11377 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11378 * mips-tdep.c (mips_gdbarch_init): Update.
11379 * mcore-tdep.c (mcore_gdbarch_init): Update.
11380 * m68k-tdep.c (m68k_gdbarch_init): Update.
11381 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11382 * ia64-tdep.c (ia64_gdbarch_init): Update.
11383 * i386-tdep.c (i386_gdbarch_init): Update.
11384 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11385 * hppa-tdep.c (hppa_gdbarch_init): Update.
11386 * h8300-tdep.c (h8300_gdbarch_init): Update.
11387 * frv-tdep.c (frv_gdbarch_init): Update.
11388 * cris-tdep.c (cris_gdbarch_init): Update.
11389 * avr-tdep.c (avr_gdbarch_init): Update.
11390 * arm-tdep.c (arm_gdbarch_init): Update.
11391 * alpha-tdep.c (alpha_gdbarch_init): Update.
11392 * sh-tdep.c (sh_init_extra_frame_info): Update.
11393 (sh64_init_extra_frame_info): Update.
11394 * ns32knbsd-nat.c (frame_num_args): Update.
11395 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11396 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11397 (xstormy16_frame_chain_valid): Update.
11398 * vax-tdep.c (vax_saved_pc_after_call): Update.
11399 * v850-tdep.c (v850_frame_chain): Update.
11400 (v850_pop_frame): Update.
11401 (v850_init_extra_frame_info): Update.
11402 * sparc-tdep.c (setup_arbitrary_frame): Update.
11403 * ns32k-tdep.c (umax_frame_num_args): Update.
11404 * s390-tdep.c (s390_pop_frame_regular): Update.
11405 * mn10300-tdep.c (mn10300_frame_chain): Update.
11406 (mn10300_pop_frame_regular): Update.
11407 (mn10300_init_extra_frame_info): Update.
11408 * mips-tdep.c (mips_init_frame_pc_first): Update.
11409 (mips_frame_chain): Update.
11410 (mips_pop_frame): Update.
11411 * mcore-tdep.c (mcore_frame_chain): Update.
11412 (mcore_pop_frame): Update.
11413 (mcore_init_extra_frame_info): Update.
11414 * arch-utils.c (init_frame_pc_default): Update.
11415 * m68k-tdep.c (isi_frame_num_args): Update.
11416 (delta68_frame_num_args): Update.
11417 (news_frame_num_args): Update.
11418 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11419 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11420 (alpha_frame_chain): Update.
11421 (alpha_pop_frame): Update.
11422 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11423 (hppa_init_extra_frame_info): Update.
11424 (hppa_frame_chain): Update.
11425 (hppa_frame_chain_valid): Update.
11426 * cris-tdep.c (cris_init_extra_frame_info): Update.
11427 * avr-tdep.c (avr_init_extra_frame_info): Update.
11428 * arm-tdep.c (arm_frame_chain_valid): Update.
11429 (arm_init_extra_frame_info): Update.
11430 (arm_pop_frame): Update.
11431 * frame.c (frame_pc_unwind): Update.
11432 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11433 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11434 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11435 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11436 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11437 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11438
7a25a7c1
AC
114392003-03-12 Andrew Cagney <cagney@redhat.com>
11440
11441 Eliminate the need for POP_FRAME.
11442 * frame.c (do_frame_unwind_register): New function.
11443 (frame_pop): When no POP_FRAME, pop the frame using register
11444 unwind and a scratch regcache.
11445 (frame_saved_regs_pop): Delete function.
11446 (trad_frame_unwinder): Update.
11447 * d10v-tdep.c (d10v_frame_pop): Delete function.
11448 (d10v_frame_unwind): Update.
11449 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11450 (sentinel_frame_unwinder): Update.
11451 * dummy-frame.c (dummy_frame_pop): Delete function.
11452 (dummy_frame_unwind): Update.
11453 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11454 (struct frame_unwind): Update.
11455
2f38ef89
KB
114562003-03-11 Kevin Buettner <kevinb@redhat.com>
11457
11458 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11459 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11460 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11461 Do range checks on register number obtained from debugging info.
11462 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11463 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11464 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11465 mapping function.
11466 (do_fp_register_row): Fix typo which caused double type to be
11467 used when attempting to unpack a float.
11468
552f4abf
JB
114692003-03-11 J. Brobecker <brobecker@gnat.com>
11470
11471 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11472
e0d2ae16
AC
114732003-03-11 Andrew Cagney <cagney@redhat.com>
11474
11475 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11476 frame. Problem found by Corinna Vinschen.
11477
ddbfdd06
PM
114782003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11479
11480 * doublest.c (floatformat_from_length): Accept also
11481 the real size of 'long double' type.
11482
088b2ddc 114832003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 11484
088b2ddc 11485 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
11486 * breakpoint.c (bpstat_copy): Copy the command lines as well
11487 as the old value, to match what is freed in bpstat_clear.
11488
f56f77c1
DC
114892003-03-10 David Carlton <carlton@math.stanford.edu>
11490
11491 * minsyms.c (add_minsym_to_hash_table): Replace
11492 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11493 (compare_minimal_symbols, compact_minimal_symbols)
11494 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11495 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11496 of DEPRECATED_SYMBOL_MATCHES_NAME.
11497 (lookup_minimal_symbol_solib_trampoline): Ditto.
11498
5602984a
AC
114992003-03-10 Andrew Cagney <cagney@redhat.com>
11500
11501 * regcache.h (regcache_cooked_read_ftype): Define.
11502 (regcache_save, regcache_restore): Add a cooked_read parameter.
11503 * regcache.c (regcache_save, regcache_restore): Update.
11504 (do_cooked_read): New function.
11505 (regcache_cpy): Pass do_cooked_read to regcache_save and
11506 regcache_restore.
11507
8bedc050
AC
115082003-03-10 Andrew Cagney <cagney@redhat.com>
11509
11510 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11511 * gdbarch.h, gdbarch.c: Re-generate.
11512 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11513 * x86-64-tdep.h: Update.
11514 * x86-64-tdep.c (x86_64_init_abi): Update.
11515 * v850-tdep.c (v850_gdbarch_init): Update.
11516 * sparc-tdep.c (sparc_gdbarch_init): Update.
11517 * sh-tdep.c (sh_gdbarch_init): Update.
11518 * s390-tdep.c (s390_gdbarch_init): Update.
11519 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11520 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11521 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11522 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11523 * mips-tdep.c (mips_gdbarch_init): Update.
11524 * mcore-tdep.c (mcore_gdbarch_init): Update.
11525 * m68k-tdep.c (m68k_gdbarch_init): Update.
11526 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11527 * ia64-tdep.c (ia64_gdbarch_init): Update.
11528 * i386-tdep.c (i386_gdbarch_init): Update.
11529 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11530 * hppa-tdep.c (hppa_gdbarch_init): Update.
11531 * h8300-tdep.c (h8300_gdbarch_init): Update.
11532 * frv-tdep.c (frv_gdbarch_init): Update.
11533 * cris-tdep.c (cris_gdbarch_init): Update.
11534 * avr-tdep.c (avr_gdbarch_init): Update.
11535 * arm-tdep.c (arm_gdbarch_init): Update.
11536 * alpha-tdep.c (alpha_gdbarch_init): Update.
11537 * sh-tdep.c (sh_init_extra_frame_info): Update.
11538 (sh64_init_extra_frame_info): Update.
11539 * ns32knbsd-nat.c (frame_num_args): Update.
11540 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11541 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11542 (xstormy16_frame_chain_valid): Update.
11543 * vax-tdep.c (vax_saved_pc_after_call): Update.
11544 * v850-tdep.c (v850_frame_chain): Update.
11545 (v850_pop_frame): Update.
11546 (v850_init_extra_frame_info): Update.
11547 * sparc-tdep.c (setup_arbitrary_frame): Update.
11548 * ns32k-tdep.c (umax_frame_num_args): Update.
11549 * s390-tdep.c (s390_pop_frame_regular): Update.
11550 * mn10300-tdep.c (mn10300_frame_chain): Update.
11551 (mn10300_pop_frame_regular): Update.
11552 (mn10300_init_extra_frame_info): Update.
11553 * mips-tdep.c (mips_init_frame_pc_first): Update.
11554 (mips_frame_chain): Update.
11555 (mips_pop_frame): Update.
11556 * mcore-tdep.c (mcore_frame_chain): Update.
11557 (mcore_pop_frame): Update.
11558 (mcore_init_extra_frame_info): Update.
11559 * arch-utils.c (init_frame_pc_default): Update.
11560 * m68k-tdep.c (isi_frame_num_args): Update.
11561 (delta68_frame_num_args): Update.
11562 (news_frame_num_args): Update.
11563 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11564 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11565 (alpha_frame_chain): Update.
11566 (alpha_pop_frame): Update.
11567 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11568 (hppa_init_extra_frame_info): Update.
11569 (hppa_frame_chain): Update.
11570 (hppa_frame_chain_valid): Update.
11571 * cris-tdep.c (cris_init_extra_frame_info): Update.
11572 * avr-tdep.c (avr_init_extra_frame_info): Update.
11573 * arm-tdep.c (arm_frame_chain_valid): Update.
11574 (arm_init_extra_frame_info): Update.
11575 (arm_pop_frame): Update.
11576 * frame.c (frame_pc_unwind): Update.
11577 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11578 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11579 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11580 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11581 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11582 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11583
12cc2063
AC
115842003-03-10 Andrew Cagney <cagney@redhat.com>
11585
11586 * gdbarch.sh (gdbarch_unwind_pc): New method.
11587 * gdbarch.h, gdbarch.c: Regenerate.
11588 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11589 but use read_pc and FRAME_SAVED_PC as fall backs.
11590 (frame_saved_regs_pc_unwind): Delete function.
11591 (trad_frame_unwinder): Update.
11592 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11593 (struct frame_unwind): Update.
11594 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11595 (dummy_frame_unwind): Update.
11596 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11597 (sentinel_frame_unwinder): Update.
11598 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11599 (d10v_frame_unwind): Update.
11600 (d10v_unwind_pc): New function.
11601 (d10v_gdbarch_init): Set unwind_pc.
11602
ef840a37
AC
116032003-03-10 Andrew Cagney <cagney@redhat.com>
11604
a2ce2e56
AC
11605 * gdbarch.h: Re-generate.
11606
ef840a37
AC
11607 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11608 PC.
11609 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11610 the PC register.
11611
08f3424b
MK
116122003-03-08 Mark Kettenis <kettenis@gnu.org>
11613
11614 * gdbarch.sh (save_dummy_frame_tos): Add comment.
11615
1248ede2
AC
116162003-03-08 Andrew Cagney <cagney@redhat.com>
11617
11618 * cli-out.c: Update copyright.
11619 (cli_out_data): Define typedef. Use instead of ui_out_data.
11620
f49bacc8
AC
116212003-03-08 Andrew Cagney <cagney@redhat.com>
11622
11623 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11624 the result.
11625
9b05f993
AC
116262003-03-07 Andrew Cagney <cagney@redhat.com>
11627
11628 * gdbarch.sh: Don't generate two macro definitions when an
11629 undefined macro taking no arguments.
11630 * gdbarch.h: Regenerate.
8ffd9b1b 11631
166f4c7b
ML
116322002-03-07 Michal Ludvig <mludvig@suse.cz>
11633
11634 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11635 (x86_64_unwind_dummy_id): New functions.
11636 (x86_64_init_abi): Register these two new functions.
11637
6d686a84
ML
116382003-03-07 Michal Ludvig <mludvig@suse.cz>
11639
11640 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 11641 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
11642 separate function.
11643 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11644
6314f104
AC
116452003-03-05 Andrew Cagney <cagney@redhat.com>
11646
11647 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11648 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11649 * frame.c (get_prev_frame): Restructure the frame ID unwind code
11650 to use unwind_dummy_id when a dummy frame.
11651 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11652 predicate.
11653 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 11654
ceea5145
AC
116552003-03-05 Andrew Cagney <cagney@redhat.com>
11656
11657 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11658 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11659 Do not use d10v_read_sp or d10v_read_fp when obtaining register
11660 values.
11661
0d843116
AC
116622003-03-05 Andrew Cagney <cagney@redhat.com>
11663
11664 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11665 (struct d10v_unwind_cache): Delete field "frameless". Replace
11666 "next_addr" with "sp_offset". Add "r11_offset".
11667 (d10v_frame_unwind_cache): Update.
11668 (prologue_find_regs): Update. When "mv r11, sp", save the
11669 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
11670 RN was saved in r11_offset.
11671
b2579786
AC
116722003-03-05 Andrew Cagney <cagney@redhat.com>
11673
11674 * frame.c (deprecated_update_frame_pc_hack): Also update the the
11675 cached PC value in the next frame.
11676
218e5956
AC
116772003-03-05 Andrew Cagney <cagney@redhat.com>
11678
11679 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
11680 "id_unwind_cache" with "id".
11681 (frame_id_unwind): Delete declaration.
11682 * frame.c (frame_id_unwind): Delete function.
11683 (get_prev_frame): Call the frame id unwind method directly. Store
11684 the returned next frame's ID value in NEXT_FRAME. Note that there
11685 is a problem with the wrong unwind ID being called with the wrong
11686 unwind cache.
11687
ed363b1b
DJ
116882003-03-05 Daniel Jacobowitz <drow@mvista.com>
11689
11690 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
11691
fe1f4a5e
DJ
116922003-03-05 James Ingham <jingham@apple.com>
11693 Daniel Jacobowitz <drow@mvista.com>
11694
11695 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
11696 (auto_cp_abi): New variable.
11697 (current_cp_abi, num_cp_abis): Make static.
11698 (CP_ABI_MAX): Define.
11699 (cp_abis): Turn into an array.
11700 (value_virtual_fn_field): Fix formatting.
11701 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
11702 takes a pointer.
11703 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
11704 (list_cp_abis, _initialize_cp_abi): New functions.
11705 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
11706 declarations for cp_abis, num_cp_abis, current_cp_abi, and
11707 switch_to_cp_abi. Update prototype for register_cp_abi.
11708 * Makefile.in (cp-abi.o): Update dependencies.
11709 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
11710 instead of switch_to_cp_abi.
11711 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
11712 register_cp_abi.
11713 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
11714 register_cp_abi.
11715 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
11716
e4adbba9
DJ
117172003-03-05 Daniel Jacobowitz <drow@mvista.com>
11718
11719 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
11720 * dwarf2loc.c: Include "regcache.h".
11721 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
11722 register_size.
11723 * Makefile.in (dwarf2loc.o): Update dependencies.
11724
91ccbfc1
TR
117252003-03-04 Theodore A. Roth <troth@openavr.org>
11726
11727 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
11728 number of io registers reported by remote target is not a multiple of
11729 step.
11730
3d4e8fd2
DC
117312003-03-04 David Carlton <carlton@math.stanford.edu>
11732
11733 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
11734 (lookup_symbol_aux_psymtabs): Update call to
11735 lookup_partial_symbol.
11736 (lookup_transparent_type, find_main_psymtab)
11737 (make_symbol_overload_list): Ditto.
11738
ed42d87b
KH
117392003-03-04 Kazu Hirata <kazu@cs.umass.edu>
11740
11741 * MAINTAINERS (Write after approval): Update my email address.
11742
a0ed5532
AC
117432003-03-03 Andrew Cagney <cagney@redhat.com>
11744
11745 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
11746 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
11747 predicate. Replace MAX_REGISTER_RAW_SIZE.
11748 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
11749 MAX_REGISTER_VIRTUAL_SIZE.
11750 * regcache.c (legacy_max_register_raw_size): New function.
11751 (legacy_max_register_virtual_size): New function.
11752 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
11753 (MAX_REGISTER_RAW_SIZE): Define.
11754 (legacy_max_register_raw_size): Declare.
11755 (legacy_max_register_virtual_size): Declare.
11756 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11757 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
11758 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11759 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11760 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11761 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11762 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11763 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11764 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11765 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11766 * vax-tdep.c (vax_gdbarch_init): Update.
11767 * v850-tdep.c (v850_gdbarch_init): Update.
11768 * sparc-tdep.c (sparc_gdbarch_init): Update.
11769 * sh-tdep.c (sh_gdbarch_init): Update.
11770 * s390-tdep.c (s390_gdbarch_init): Update.
11771 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11772 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11773 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11774 * mips-tdep.c (mips_gdbarch_init): Update.
11775 * mcore-tdep.c (mcore_gdbarch_init): Update.
11776 * m68k-tdep.c (m68k_gdbarch_init): Update.
11777 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11778 * ia64-tdep.c (ia64_gdbarch_init): Update.
11779 * i386-tdep.c (i386_gdbarch_init): Update.
11780 * hppa-tdep.c (hppa_gdbarch_init): Update.
11781 * h8300-tdep.c (h8300_gdbarch_init): Update.
11782 * frv-tdep.c (frv_gdbarch_init): Update.
11783 * cris-tdep.c (cris_gdbarch_init): Update.
11784 * avr-tdep.c (avr_gdbarch_init): Update.
11785 * arm-tdep.c (arm_gdbarch_init): Update.
11786 * alpha-tdep.c (alpha_gdbarch_init): Update.
11787 * d10v-tdep.c (d10v_gdbarch_init): Do not set
11788 max_register_raw_size or max_register_virtual_size.
11789
8e437497
DC
117902003-03-03 David Carlton <carlton@math.stanford.edu>
11791
11792 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
11793 SYMBOL_MATCHES_NAME, add comment.
11794 (SYMBOL_MATCHES_NATURAL_NAME): New.
11795 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
11796 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
11797 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
11798 * symtab.c (lookup_partial_symbol): Use
11799 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
11800 unhelpful comment.
11801 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
11802 SYMBOL_MATCHES_NAME.
11803 Fix for PR c++/33.
11804
25120b0d
DC
118052003-03-03 David Carlton <carlton@math.stanford.edu>
11806
11807 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
11808 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
11809 by regexp matching against SYMBOL_NATURAL_NAME.
11810
78a11fb4
DC
118112003-03-03 David Carlton <carlton@math.stanford.edu>
11812
11813 * linespec.c (find_method): Extract code into collect_methods.
11814 (collect_methods): New.
11815
645dd519
MK
118162003-03-02 Mark Kettenis <kettenis@gnu.org>
11817
b4700d91
MK
11818 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
11819 get_frame_base.
11820
645dd519
MK
11821 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
11822 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11823
0aa7e1aa
SC
118242003-03-02 Stephane Carrez <stcarrez@nerim.fr>
11825
8ffd9b1b 11826 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
11827 and not regnum when summing the size of all registers up to regnum.
11828
f30ee0bc
AC
118292003-03-01 Andrew Cagney <cagney@redhat.com>
11830
11831 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
11832 FRAME_INIT_SAVED_REGS.
11833 * gdbarch.h, gdbarch.c: Regenerate.
11834 * stack.c (frame_info): Update.
11835 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
11836 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
11837 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
11838 * ns32k-tdep.c (ns32k_pop_frame): Update.
11839 * mips-tdep.c (mips_pop_frame): Update.
11840 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
11841 * ia64-tdep.c (ia64_frame_chain): Update.
11842 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
11843 (ia64_frameless_function_invocation): Update.
11844 (ia64_init_extra_frame_info): Update.
11845 (ia64_pop_frame_regular): Update.
11846 * frame.h (struct frame_info): Update comment.
11847 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
11848 * frame.c (frame_saved_regs_register_unwind): Update.
11849 (frame_saved_regs_register_unwind): Update.
11850 (deprecated_generic_get_saved_register): Update.
11851 * cris-tdep.c: Update comment.
11852 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
11853 Rename macro.
11854 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11855 * x86-64-tdep.c (x86_64_init_abi): Update.
11856 * vax-tdep.c (vax_gdbarch_init): Update.
11857 * v850-tdep.c (v850_gdbarch_init): Update.
11858 * sparc-tdep.c (sparc_gdbarch_init): Update.
11859 * sh-tdep.c (sh_gdbarch_init): Update.
11860 * s390-tdep.c (s390_gdbarch_init): Update.
11861 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11862 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11863 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11864 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11865 * mips-tdep.c (mips_gdbarch_init): Update.
11866 * mcore-tdep.c (mcore_gdbarch_init): Update.
11867 * m68k-tdep.c (m68k_gdbarch_init): Update.
11868 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11869 * ia64-tdep.c (ia64_gdbarch_init): Update.
11870 * i386-tdep.c (i386_gdbarch_init): Update.
11871 * frv-tdep.c (frv_gdbarch_init): Update.
11872 * avr-tdep.c (avr_gdbarch_init): Update.
11873 * arm-tdep.c (arm_gdbarch_init): Update.
11874 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11875
42fa7c0f
AC
118762003-03-01 Andrew Cagney <cagney@redhat.com>
11877
11878 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
11879 option enum and switch. When no windows, set the interpreter to
11880 INTERP_CONSOLE.
8ffd9b1b 11881
49c7e338
AC
118822003-03-01 Andrew Cagney <cagney@redhat.com>
11883
11884 * main.c (captured_main): Replace magic option characters with an
11885 enum.
11886
e9582e71
AC
118872003-03-01 Andrew Cagney <cagney@redhat.com>
11888
11889 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
11890 INIT_EXTRA_FRAME_INFO.
11891 * gdbarch.h, gdbarch.c: Regenerate.
11892 * arm-tdep.c: Update comments.
11893 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
11894 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
11895 * frame.h, avr-tdep.c: Ditto.
11896 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
11897 (create_new_frame, legacy_get_prev_frame): Ditto.
11898 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11899 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11900 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
11901 deprecated_init_extra_frame_info instead of init_extra_frame_info.
11902 * x86-64-tdep.c (x86_64_init_abi): Ditto.
11903 * v850-tdep.c (v850_gdbarch_init): Ditto.
11904 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11905 * sh-tdep.c (sh_gdbarch_init): Ditto.
11906 * s390-tdep.c (s390_gdbarch_init): Ditto.
11907 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
11908 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11909 * mips-tdep.c (mips_gdbarch_init): Ditto.
11910 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11911 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11912 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11913 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11914 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11915 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11916 * frv-tdep.c (frv_gdbarch_init): Ditto.
11917 * cris-tdep.c (cris_gdbarch_init): Ditto.
11918 * avr-tdep.c (avr_gdbarch_init): Ditto.
11919 * arm-tdep.c (arm_gdbarch_init): Ditto.
11920 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11921 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11922
35cac7cf
AC
119232003-03-01 Andrew Cagney <cagney@redhat.com>
11924
11925 * gdbarch.sh (register_type): New function with predicate.
11926 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
11927 * gdbarch.h, gdbarch.c: Re-generate.
11928 * arch-utils.c (generic_register_byte): Use generic_register_size.
11929 (generic_register_size): When available, use
11930 gdbarch_register_type.
11931 * regcache.c (init_regcache_descr): When available, initialize the
11932 register type array using gdbarch_register_type. If the
11933 architecture supplies gdbarch_register_type, do not use the legacy
11934 regcache layout.
11935 * d10v-tdep.c (d10v_register_type): Replace
11936 d10v_register_virtual_type.
11937 (d10v_gdbarch_init): Set register_type instead of
11938 register_virtual_type.
11939
7b83296f
AC
119402003-03-01 Andrew Cagney <cagney@redhat.com>
11941
11942 * Makefile.in (ax-gdb.o): Update dependencies.
11943 * ax-gdb.c: Include "regcache.h".
11944 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
11945 * findvar.c (value_of_register): Ditto.
11946 * infcmd.c (default_print_registers_info): Ditto.
11947
eadc1c87
MK
119482003-03-01 Mark Kettenis <kettenis@gnu.org>
11949
11950 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
11951 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11952
14143612
MK
119532003-03-01 Mark Kettenis <kettenis@gnu.org>
11954
11955 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
11956 of STREQ.
11957
a55cc764
DJ
119582003-02-28 Daniel Jacobowitz <drow@mvista.com>
11959
11960 * Makefile.in (dwarf2loc.o): Update dependencies.
11961 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
11962 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
11963 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
11964 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
11965 (locexpr_tracepoint_var_ref): New function.
11966 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
11967
08a617da
AC
119682003-02-28 Andrew Cagney <cagney@redhat.com>
11969
11970 * regcache.c (register_size): New function.
11971 * regcache.h (register_size): Declare
11972 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
11973 max_register_size instead of MAX_REGISTER_RAW_SIZE.
11974
4224873a
DC
119752003-02-28 David Carlton <carlton@math.stanford.edu>
11976
11977 * linespec.c (decode_compound): Extract code into find_method.
11978 (find_method): New.
11979
ccdc5d7f
JB
119802003-02-28 J. Brobecker <brobecker@gnat.com>
11981
11982 * Makefile.in: Add rules to build and link in observer.o.
11983
974e8ced
JB
119842003-02-27 J. Brobecker <brobecker@gnat.com>
11985
11986 * observer.c: Minor comments edits.
11987
7a28f973
JB
119882003-02-27 J. Brobecker <brobecker@gnat.com>
11989
11990 * observer.h, observer.c: New file.
11991
27cddce2
AC
119922003-02-27 Andrew Cagney <cagney@redhat.com>
11993
11994 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
11995
b94a41a1
SC
119962003-02-27 Stephane Carrez <stcarrez@nerim.fr>
11997
11998 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
11999 (M6812_OP_STS_EXT): Likewise.
12000 (m6811_prologue): Use the above to recognize prologue.
12001 (m6812_prologue): Likewise.
12002
c8be8951
DC
120032003-02-27 David Carlton <carlton@math.stanford.edu>
12004
12005 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12006 SYMBOL_PRINT_NAME.
12007 (compare_psymbols): Ditto.
12008 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12009
d05bb1fc
MS
120102003-02-27 Michael Snyder <msnyder@redhat.com>
12011
4e845cd3
MS
12012 * f-lang.c (build_fortran_types): New function.
12013 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
12014 * doublest.c (extract_floating): Fix warning text.
12015
f3824013
AC
120162003-02-27 Andrew Cagney <cagney@redhat.com>
12017
12018 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12019 predicate. Replaces PUSH_DUMMY_FRAME.
12020 * gdbarch.h, gdbarch.c: Regnerate.
12021 * valops.c (hand_function_call): Update. Call
12022 generic_push_dummy_frame directly.
12023 * vax-tdep.c (vax_gdbarch_init): Update.
12024 * sparc-tdep.c (sparc_gdbarch_init): Update.
12025 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12026 * m68k-tdep.c (m68k_gdbarch_init): Update.
12027 * hppa-tdep.c (hppa_gdbarch_init): Update.
12028 * alpha-tdep.c (alpha_gdbarch_init): Update.
12029 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12030 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12031 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12032 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12033 push_dummy_frame to generic_push_dummy_frame.
12034 * v850-tdep.c (v850_gdbarch_init): Ditto.
12035 * sh-tdep.c (sh_gdbarch_init): Ditto.
12036 * s390-tdep.c (s390_gdbarch_init): Ditto.
12037 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12038 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12039 * mips-tdep.c (mips_gdbarch_init): Ditto.
12040 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12041 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12042 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12043 * i386-tdep.c (i386_gdbarch_init): Ditto.
12044 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12045 * frv-tdep.c (frv_gdbarch_init): Ditto.
12046 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12047 * cris-tdep.c (cris_gdbarch_init): Ditto.
12048 * avr-tdep.c (avr_gdbarch_init): Ditto.
12049 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 12050
ad188201
KB
120512003-02-26 Kevin Buettner <kevinb@redhat.com>
12052
12053 * mips-tdep.c (show_mips_abi): New function.
12054 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12055 command ``show mips abi''.
12056
6b37567a 120572003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 12058
6b37567a 12059 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 12060 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
12061 more sline entries have been seen for the function.
12062
d3e0a5bf
MC
120632003-02-26 Michael Chastain <mec@shout.net>
12064
12065 * configure: Regenerate with autoconf 000227.
12066
18972eea
MC
120672003-02-26 Michael Chastain <mec@shout.net>
12068
12069 Close PR build/660.
12070 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12071 for old libc5/glibc.
12072 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12073
0bbde931
KW
120742003-02-26 Kris Warkentin <kewarken@qnx.com>
12075
12076 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12077 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12078
27ca5dad
MC
120792003-02-26 Michael Chastain <mec@shout.net>
12080
12081 * configure.in: New variable HAVE_UINTPTR_T.
12082 * configure, config.in: Regenerated.
12083
6f88d630
DJ
120842003-02-26 Daniel Jacobowitz <drow@mvista.com>
12085
12086 Fix PR build/1097.
12087 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12088
b14185ce
AC
120892003-02-25 Andrew Cagney <cagney@redhat.com>
12090
12091 * frame.c (get_prev_frame): Add comment on check for
12092 inside_entry_func. Only check for inside_entry_file when not a
12093 dummy and not a sentinel. Check that the new frame is not inner
12094 to the old frame.
12095
ac2bd0a9
AC
120962003-02-25 Andrew Cagney <cagney@redhat.com>
12097
12098 * frame.c (frame_debug): New variable.
12099 (_initialize_frame): Add "set/show debug frame" command.
12100 (get_prev_frame): When frame_debug, print reason why unwind
12101 failed.
12102
b18a0fd2
MC
121032003-02-25 Michael Chastain <mec@shout.net>
12104
12105 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12106 to avoid uintptr_t definition problems.
12107
22abf04a
DC
121082003-02-25 David Carlton <carlton@math.stanford.edu>
12109
12110 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12111 (SYMBOL_LINKAGE_NAME): Ditto.
12112 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12113 SYMBOL_LINKAGE_NAME.
12114 (struct general_symbol_info): Expand comment.
12115 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12116 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12117 (SYMBOL_MATCHES_REGEXP): Ditto.
12118 * symtab.c (symbol_natural_name): New function.
12119 * objfiles.h: Replace all uses of SYMBOL_NAME by
12120 DEPRECATED_SYMBOL_NAME.
12121 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12122 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12123 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12124 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12125 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12126 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12127 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12128 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12129 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12130 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12131 * ada-exp.y: Ditto.
12132 * ada-exp.y: Update copyright.
12133 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12134 * cp-valprint.c: Ditto.
12135
1a5848f6
JJ
121362003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12137
12138 * infptrace.c (detach): Do not flag error if ptrace detach fails
12139 and errno is set to ESRCH.
12140
7343d46a
AC
121412003-02-24 Andrew Cagney <cagney@redhat.com>
12142
12143 * infptrace.c (udot_info): Change type of udot_off to long. Use
12144 paddr when printing udot_off's value.
12145
49fa1dc2
DC
121462003-02-24 David Carlton <carlton@math.stanford.edu>
12147
12148 * symtab.c (make_symbol_overload_list): Only read in partial
12149 symtabs containing a matching partial symbol.
12150
0fe19209
DC
121512003-02-24 David Carlton <carlton@math.stanford.edu>
12152
12153 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12154 do the comparison, not strcmp.
12155 * symfile.c (compare_psymbols): Ditto.
12156 * defs.h: Declare strcmp_iw_ordered.
12157 * utils.c (strcmp_iw_ordered): New function.
12158
8e3ee7b5
JB
121592003-02-24 Jim Blandy <jimb@redhat.com>
12160
12161 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12162 support, shared libs): Remove my name from here, to better reflect
12163 reality.
12164
7df1a324
KW
121652003-02-24 Kris Warkentin <kewarken@qnx.com>
12166
12167 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12168 (target_ops): Add to_have_continuable_watchpoint.
12169 * target.c (update_current_target): Add INHERIT line for
12170 to_have_continuable_watchpoint.
12171 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12172 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12173 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12174 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12175
d1c76907
EZ
121762003-02-24 Elena Zannoni <ezannoni@redhat.com>
12177
12178 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12179 maintainership.
12180
2610b0bf
KW
121812003-02-24 Kris Warkentin <kewarken@qnx.com>
12182
f46169db
KW
12183 * solib.c (solib_open): Call target defined search function after
12184 failing with solib-search-path.
12185 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12186 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 12187
9a3c34fe
KW
121882003-02-24 Kris Warkentin <kewarken@qnx.com>
12189
f46169db 12190 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 12191
2417dd25
SC
121922003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12193
12194 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12195
b631436b
SC
121962003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12197
12198 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12199 (m68hc11_add_reggroups): New function.
12200 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12201 (m68hc11_gdbarch_init): Install the reggroups.
12202 (_initialize_m68hc11_tdep): Initialize them.
12203
0aa8c1e4
JW
122042003-02-21 James E Wilson <wilson@tuliptree.org>
12205
12206 * MAINTAINERS: Update my email address.
12207
50ceaba5
DC
122082003-02-21 David Carlton <carlton@math.stanford.edu>
12209
12210 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12211
4c2df51b
DJ
122122003-02-21 Daniel Jacobowitz <drow@mvista.com>
12213
12214 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12215 * symtab.h: Add opaque declarations of struct axs_value and
12216 struct agent_expr.
12217 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12218 (struct location_funcs): New type.
12219 (struct symbol): Add "loc" to aux_value.
12220 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12221 * dwarf2read.c: Include "dwarf2expr.h".
12222 (dwarf2_symbol_mark_computed): New function.
12223 (read_func_scope): Use it.
12224 (var_decode_location): New function.
12225 (new_symbol): Use it.
12226 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12227
12228 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12229 (dwarf2expr_h, dwarf2loc_h): New variables.
12230 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12231 (dwarf2expr.o, dwarf2loc.o): New rules.
12232 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12233 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12234 LOC_COMPUTED_ARG.
12235 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12236 * m2-exp.y (yylex): Likewise.
12237 * printcmd.c (address_info, print_frame_args): Likewise.
12238 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12239 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12240 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12241 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12242 * symtab.c (lookup_block_symbol): Likewise.
12243
5784d15e
AF
122442003-02-20 Adam Fedor <fedor@gnu.org>
12245
12246 * symtab.h: Remove objc_specific struct
12247 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12248 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12249 Have language_objc use cplus_specific struct.
12250
d4cad8db
TT
122512003-02-20 Tom Tromey <tromey@redhat.com>
12252
12253 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12254 TYPE_NAME, when printing a String value. PR java/1075.
12255
2f9a90b4
AF
122562003-02-20 Adam Fedor <fedor@gnu.org>
12257
d38074a8 12258 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 12259 * objc-lang.c (find_methods): Make static.
2f9a90b4 12260
6f17862b
CF
122612003-02-20 Christopher Faylor <cgf@redhat.com>
12262
12263 * win32-nat.c (get_image_name): Check return value from
12264 ReadProcessMemory.
12265 (child_xfer_memory): Ditto.
12266
715d1656
AO
122672003-02-20 Alexandre Oliva <aoliva@redhat.com>
12268
12269 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12270 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12271 '${exec_prefix}' (in addition to the expansion thereof) as
12272 relocatable.
12273 * configure: Rebuilt.
12274
b1262a02
DC
122752003-02-20 David Carlton <carlton@math.stanford.edu>
12276
12277 * symtab.c (search_symbols): Revert the search_symbols part of my
12278 2002-12-23 patch. Add comment.
12279
7134143f
DJ
122802002-02-20 Daniel Jacobowitz <drow@mvista.com>
12281
12282 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12283 * dbxread.c (elfstab_build_psymtabs): Don't call
12284 install_minimal_symbols.
12285 (stabsect_build_psymtabs): Likewise.
12286 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12287 earlier.
12288 * somread.c (som_symfile_read): Call install_minimal_symbols
12289 and do_cleanups earlier.
12290 * nlmread.c (nlm_symfile_read): Likewise.
12291 * mdebugread.c (elfmdebug_build_psymtabs): Call
12292 install_minimal_symbols and make appropriate cleanups.
12293
cf466558
KB
122942003-02-20 Kevin Buettner <kevinb@redhat.com>
12295
12296 * solib.c (reload_shared_libraries): New function.
12297 (_initialize_solib): Add callbacks for ``set solib-search-path''
12298 and ``set solib-absolute-prefix''.
12299
de5ad195
DC
123002003-02-20 David Carlton <carlton@math.stanford.edu>
12301
12302 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12303 expand comment.
12304 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12305 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12306 * ada-typeprint.c (ada_typedef_print): Ditto.
12307 * ax-gdb.c (gen_var_ref): Ditto.
12308 * breakpoint.c (print_one_breakpoint): Ditto.
12309 * buildsym.c (finish_block): Ditto.
12310 * c-valprint.c (c_val_print): Ditto.
12311 * expprint.c (print_subexp): Ditto.
12312 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
12313 * infcmd.c (jump_command): Ditto.
12314 * linespec.c (decode_line_2, decode_compound): Ditto.
12315 * maint.c (maintenance_translate_address): Ditto.
12316 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
12317 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12318 Ditto.
8ffd9b1b
AJ
12319 * p-valprint.c (pascal_val_print): Ditto.
12320 * stabsread.c (define_symbol): Ditto.
de5ad195 12321 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
12322 (print_frame_arg_vars, return_command): Ditto.
12323 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12324 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
12325 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12326 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
12327 (rbreak_command): Ditto.
12328 * tracepoint.c (tracepoints_info): Ditto.
12329 * typeprint.c (typedef_print): Ditto.
12330 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
12331 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12332 * ada-typeprint.c: Update Copyright.
12333 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12334 * tracepoint.c, cli/cli-cmds.c: Ditto.
12335
f796e4be
KB
123362003-02-20 Kevin Buettner <kevinb@redhat.com>
12337
12338 * frame.c (generic_unwind_get_saved_register): Make non-static.
12339 * frame.h (generic_unwind_get_saved_register): Declare.
12340 * mips-tdep.c (read_next_frame_reg): Fetch register from
12341 current regcache when frame is NULL.
12342 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12343 that must be NULL.
12344 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12345 instead of frame_register_unwind().
12346
836cc9f4
AC
123472003-02-20 Andrew Cagney <ac131313@redhat.com>
12348
12349 * remote-sim.c (gdbsim_insert_breakpoint)
12350 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12351 code.
12352
501eef12
AC
123532003-02-20 Andrew Cagney <ac131313@redhat.com>
12354
12355 * remote.c (_initialize_remote): Add commands "set/show remote
12356 hardware-watchpoint-limit" and "set/show remote
12357 hardware-breakpoint-limit".
12358 (remote_hw_watchpoint_limit): Initialize to -1.
12359 (remote_hw_breakpoint_limit): Ditto.
12360 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12361
1b6bc7e0
CF
123622003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12363
12364 * coff-pe-read.c: New file - support reading of minimal symbols from a
12365 portable executable using the export table.
12366 * coff-pe-read.h: New file.
12367 * coffread.c: Include coff-pe-read.h.
12368 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12369 debugging symbols found.
12370 * Makefile.in (SFILES): Add coff-pe-read.o.
12371 (coff_pe_read_h): Define.
12372 (COMMON_OBS): Add coff-pe-read.o.
12373 (coffread.o): Add coff_pe_read_h dependency.
12374 (coff-pe-read.o): New target.
12375
fe898f56
DC
123762003-02-19 David Carlton <carlton@math.stanford.edu>
12377
12378 * Makefile.in (SFILES): Add block.c.
12379 (block_h): New.
12380 (COMMON_OBS): Add block.o.
12381 (block.o): New.
12382 (x86-64-tdep.o): Add $(block_h).
12383 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12384 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12385 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12386 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12387 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12388 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12389 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12390 * value.h: Add opaque declaration for struct block.
12391 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12392 * ada-lang.h: Ditto.
12393 * x86-64-tdep.c: #include "block.h"
12394 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12395 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12396 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12397 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12398 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12399 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12400 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12401 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12402 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12403 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12404 * symtab.c (block_function): Ditto.
12405 (contained_in): Ditto.
12406 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12407 block.h. Add opaque declaration for struct block.
12408 * symtab.h: Move block_function and contained_in declarations to
12409 block.h. Add opaque declarations for struct block, struct
12410 blockvector.
12411 (struct block): Move to block.h.
12412 (struct blockvector): Ditto.
12413 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12414 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12415 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12416 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12417 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12418 Ditto.
12419 * block.c: New file.
12420 * block.h: New file.
12421
173345b5
TR
124222003-02-19 Theodore A. Roth <troth@openavr.org>
12423
12424 * avr-tdep.c (avr_extract_return_value): Remove function.
12425 (avr_store_return_value): Remove function.
12426 (avr_extract_struct_value_address): Remove function.
12427 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12428
338ef23d
AC
124292003-02-19 Andrew Cagney <ac131313@redhat.com>
12430
12431 * rs6000-tdep.c: Include "gdb_assert.h".
12432 (registers_e500): Add "acc" and "spefscr".
12433 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12434 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12435 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12436 really is "r0".
12437 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12438
5412f5f3
KS
124392003-02-18 Keith Seitz <keiths@redhat.com>
12440
12441 * Makefile.in: Add gdbtk-interps.c.
12442
881324eb
KB
124432003-02-18 Kevin Buettner <kevinb@redhat.com>
12444
12445 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12446 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12447
6a2f5abf
AC
124482003-02-18 Andrew Cagney <cagney@redhat.com>
12449
12450 * symtab.h (struct objfile): Add opaque declaration.
12451
54c7009d
EZ
124522003-02-18 Elena Zannoni <ezannoni@redhat.com>
12453
12454 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
12455 * dbxread.c (process_one_symbol): Use last_function_start rather
12456 than function_start_offset to find the real beginning of the
12457 current function. The latter is just the text section offset on
12458 some systems, the former is always the real function start.
54c7009d 12459
7ee6d7eb
AC
124602003-02-17 Andrew Cagney <cagney@redhat.com>
12461
12462 * configure.in: Revert ${target} != ${host}.
12463
2846da9b
AC
124642003-02-17 Andrew Cagney <ac131313@redhat.com>
12465
12466 * configure.in (Makefile): Use the test ${target} != ${host},
12467 instead of the absence of the "nm.h" file, to determine of the
12468 configuration non-native.
12469 * configure: Regenerate.
8ffd9b1b 12470
3b27aeea
EZ
124712003-02-14 Elena Zannoni <ezannoni@redhat.com>
12472
fbe586ae 12473 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
12474
12475 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12476 conditionalize tui_active test.
12477 (lookup_cmd_1): Ditto.
12478
b0b1c2c0
MK
124792003-02-14 Mark Kettenis <kettenis@gnu.org>
12480
12481 * configure.in: Add check for _etext.
12482 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12483 available.
12484 * config.in, configure: regenerated.
12485
8f05cde5
DJ
124862003-02-14 Daniel Jacobowitz <drow@mvista.com>
12487
12488 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12489
021e7609
AC
124902003-02-14 Andrew Cagney <ac131313@redhat.com>
12491
12492 * main.c (tui_version): Delete variable.
12493 (captured_main): When --tui, set interpreter_p to "tui" instead of
12494 enabling tui_version.
12495 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12496 tui_version.
12497 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12498 * cli/cli-cmds.c (disassemble_command): Ditto.
12499 * defs.h (tui_version): Delete declaration.
12500 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12501 (tui-interp.o): Add rules.
12502 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12503
e325dcec
CF
125042003-02-14 Christopher Faylor <cgf@redhat.com>
12505
36ffb041 12506 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
12507 just-loaded dll.
12508
c4f90d87
JM
125092003-02-12 Jason Molenda (jmolenda@apple.com)
12510
fbe586ae
RH
12511 * symmisc.c (print_objfile_statistics): Include information about
12512 the number of psymtabs and symtabs in each object file.
c4f90d87 12513
e46e5ccd
KS
125142003-02-13 Keith R Seitz <keiths@redhat.com>
12515
12516 * main.h (struct captured_main_args): Add interpreter_p.
12517 * main.c (captured_main): Initialize interpreter_p from context.
12518 * gdb.c (main): Set interpreter_p argument.
12519 * Makefile.in (gdb.o): Add dependency for interps.h.
12520
fe97fe9c
AC
125212003-02-12 Andrew Cagney <ac131313@redhat.com>
12522
12523 * event-top.c (cli_command_loop): Delete declaration.
12524 (_initialize_event_loop): Delete function setting event_loop_hook.
12525 * event-top.h (cli_command_loop): Declare. Update copyright.
12526 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12527 * interps.c (current_interp_command_loop): When event_loop_p, call
12528 cli_command_loop.
12529
1cdac4ef
AC
125302003-02-12 Andrew Cagney <ac131313@redhat.com>
12531
12532 * interps.h (interp_command_loop_ftype): Change return type to
12533 void.
12534
48037ead
ML
125352003-02-12 Michal Ludvig <mludvig@suse.cz>
12536
12537 * x86-64-tdep.c (x86_64_extract_return_value)
12538 (x86_64_store_return_value): Use regcache instead of regbuf.
12539 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12540 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12541
033afc63
AC
125422003-02-11 Andrew Cagney <ac131313@redhat.com>
12543
12544 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12545 * aclocal.m4: Regenerate.
12546 * configure: Regenerate.
12547
12548 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12549 TCL_LD_SEARCH_FLAGS.
12550
40d02bca
ML
125512003-02-10 Michal Ludvig <mludvig@suse.cz>
12552
12553 * dwarf2cfi.c: Reindented.
12554
11308a41
AC
125552003-02-09 Andrew Cagney <ac131313@redhat.com>
12556
12557 * interps.c (clear_interpreter_hooks): Convert function definition
12558 to ISO C.
12559
e1c1c0f6
DC
125602003-02-07 David Carlton <carlton@math.stanford.edu>
12561
12562 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12563
ab5d3da6
KB
125642003-02-07 Kevin Buettner <kevinb@redhat.com>
12565
12566 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12567 (struct type): ...to here.
12568 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12569 field.
12570 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12571 (replace_type): Set length on all type variants for a given type.
12572
b8a92b82
AC
125732003-02-07 Andrew Cagney <ac131313@redhat.com>
12574
12575 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12576 <sys/stat.h>.
12577 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 12578
5cb316ef
AC
125792003-02-06 Andrew Cagney <ac131313@redhat.com>
12580
2555fe1a
AC
12581 * Makefile.in (symm-nat.o): Update dependencies.
12582 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12583 (lynx-nat.o, ia64-linux-nat.): Ditto.
12584 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12585 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12586 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12587
44270758
AC
12588 * Makefile.in (inflow_h): Define.
12589 (procfs.o, inflow.o, procfs.o): Update dependencies.
12590 * inftarg.c (child_stop): Delete extern declaration of
12591 inferior_process_group. Include "inflow.h".
12592 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
12593 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12594 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
12595 (our_process_group, inferior_process_group): Extern declarations.
12596
df8f7274
AC
12597 * procfs.c: Include "gdb_assert.h".
12598
5cb316ef
AC
12599 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12600 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12601 * jv-typeprint.c (java_type_print_base): Ditto.
12602 * typeprint.c (typedef_print): Eliminate STREQ.
12603 * cli/cli-script.c (define_command, define_command): Ditto.
12604 * main.c (captured_main): Ditto.
12605 * values.c (lookup_internalvar): Ditto.
12606 * utils.c (safe_strerror, parse_escape): Eliminate assignment
12607 within `if' conditional.
12608 * linespec.c (decode_line_2): Ditto.
12609 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12610 (bfd_openw_with_cleanup): Ditto.
12611
2a28ccea
MK
126122003-02-07 Mark Kettenis <kettenis@gnu.org>
12613
12614 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12615 legacy_extract_return_value and store_return_value to
12616 legacy_return_value.
12617
786b8124
CF
126182003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
12619
12620 * win32-nat.c (get_relocated_section_addrs): New function. Find
12621 section load addresses for symbol handling in relocated DLLs.
12622 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12623
b871e4ec
FF
126242003-02-05 Fred Fish <fnf@intrinsity.com>
12625
12626 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12627 '=' and '!='.
12628 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12629 with '&' and '=='.
12630 (angel_RDI_info): Ditto.
12631 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12632 with '&' and '!='.
12633 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 12634
4389a95a 126352003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
12636 Keith Seitz <keiths@redhat.com>
12637 Elena Zannoni <ezannoni@redhat.com>
12638 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
12639
12640 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12641 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12642 (SUBDIR_MI_OBS): Add "mi-interp.o".
12643 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12644 (SFILES): Add "interps.c".
12645 (COMMON_OBS): Add "interps.o".
12646 (interps_h, mi_main_h): Define.
12647 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12648 (mi-main.o, main.o, event-top.o): Update dependencies.
12649 * cli/cli-interp.c: New file.
12650 * interps.h, interps.c: New files.
12651 * top.c: (gdb_init): Don't install the default interpreter, handed
12652 by captured_main.
12653 * main.c: Include "interps.h".
12654 (interpreter_p): Note that it should malloc'ed.
12655 (captured_command_loop): Call current_interp_command_loop.
12656 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
12657 xfree and xstrdup when updating interpreter_p. Install the
12658 default interpreter. Add hack to stop mi1's copyright notice
12659 being encoded.
12660 * event-top.h (gdb_setup_readline): Declare.
12661 (gdb_disable_readline): Declare.
12662 * event-top.c: Include "interps.h".
12663 (display_gdb_prompt): Call current_interp_display_prompt_p.
12664 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12665 gdb_stdlog, and gdb_stdtarg.
12666 (_initialize_event_loop): Don't call gdb_setup_readline.
12667 * cli-out.c (cli_out_set_stream): New function.
12668 * cli-out.h (cli_out_set_stream): Declare.
12669
ff3b5810
MK
126702003-02-06 Mark Kettenis <kettenis@gnu.org>
12671
12672 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
12673 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
12674 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
12675 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
12676 config/i386/i386v42mp.mt: Removed.
12677
5b729aa5
MK
126782003-02-05 Mark Kettenis <kettenis@gnu.org>
12679
12680 * configure.tgt (*-*-solaris*): Set gdb_osabi to
12681 GDB_OSABI_SOLARIS.
12682
8cc15142
MC
126832003-02-05 Michael Chastain <mec@shout.net>
12684
12685 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
12686 2.12.1 and earlier versions.
12687
5aa5d4b9
AC
126882003-02-05 Andrew Cagney <ac131313@redhat.com>
12689
12690 Remove orphaned hosts, targets and files.
12691 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
12692 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
12693 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
12694 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
12695 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
12696 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
12697 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
12698 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
12699 * config/sparc/tm-sp64sim.h: Delete.
12700 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
12701 hosts.
12702 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
12703 mips*-dec-mach3* targets.
12704
b68767c1
MC
127052003-02-04 Michael Chastain <mec@shout.net>
12706
12707 * NEWS: Fix typo: sepcifying -> specifying.
12708
5ae7ca1d
MC
127092003-02-04 Michael Chastain <mec@shout.net>
12710
12711 * dwarfread.c: Add documentation on the state of dwarf-1,
12712 looking towards obsoletion.
12713
d08a4280
MC
127142003-02-03 Michael Chastain <mec@shout.net>
12715
12716 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
12717 gdb/testsuite/gdb.c++/pr-1023.exp.
12718
e9be73e4
AC
127192003-02-04 Andrew Cagney <ac131313@redhat.com>
12720
12721 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
12722 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
12723
12724 * utils.c (init_page_info): Delete reference to MPW in comments.
12725 * main.c (captured_main): Delete #ifdef MPW.
12726
05d57f6f
AC
127272003-02-04 Andrew Cagney <ac131313@redhat.com>
12728
8ffd9b1b 12729 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
12730 * monitor.c (monitor_expect): Obsolete reference to m32r.
12731 * configure.tgt: Mark m32r-*-elf* as obsolete.
12732 * MAINTAINERS: Mark m32k as obsolete.
12733 * m32r-rom.c: Obsolete file.
12734 * config/m32r/m32r.mt: Obsolete file.
12735 * config/m32r/tm-m32r.h: Obsolete file.
12736 * m32r-stub.c: Obsolete file.
12737 * m32r-tdep.c: Obsolete file.
12738
8b0e5691
AC
127392003-02-04 Andrew Cagney <ac131313@redhat.com>
12740
12741 * NEWS: Mention that the z8k-zilog-none is obsolete.
12742 * MAINTAINERS: Mark z8k as obsolete.
12743 * configure.tgt: Obsolete the z8k-*-coff* target.
12744 * config/z8k/z8k.mt: Obsolete file.
12745 * config/z8k/tm-z8k.h: Obsolete file.
12746 * z8k-tdep.c: Obsolete file.
12747
67f16606
AC
127482003-02-04 Andrew Cagney <ac131313@redhat.com>
12749
12750 * NEWS: Mention that the mn10200-elf is obsolete.
12751 * configure.tgt: Obsolete mn10200-*-* target.
12752 * breakpoint.c (update_breakpoints_after_exec): Update comment to
12753 mention that the mn10200 is obsolete.
12754 * breakpoint.h: Ditto.
12755 * MAINTAINERS: Mark the mn10200-elf as obsolete.
12756 * config/mn10200/mn10200.mt: Obsolete file.
12757 * config/mn10200/tm-mn10200.h: Obsolete file.
12758 * mn10200-tdep.c: Obsolete file.
12759
fd2299bd
AC
127602003-02-04 Andrew Cagney <ac131313@redhat.com>
12761
12762 * MAINTAINERS: Mark h8500 as obsolete.
12763 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
12764 * findvar.c (value_from_register): Ditto.
12765 * h8500-tdep.c: Mark file as obsolete.
12766 * config/h8500/h8500.mt: Ditto.
12767 * config/h8500/tm-h8500.h: Ditto.
12768 * NEWS: Mention that h8500 is obsolete.
12769
eb9a305d
DC
127702003-02-04 David Carlton <carlton@math.stanford.edu>
12771
12772 * objfiles.c (allocate_objfile): Always set name. Add comment at
12773 start of function.
12774 * jv-lang.c (get_dynamics_objfile): Add comment.
12775
406fc7fb
DC
127762003-02-04 David Carlton <carlton@math.stanford.edu>
12777
12778 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
12779 * printcmd.c (build_address_symbolic): Replace uses of
12780 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
12781 SYMBOL_NAME, and asm_demangle.
12782 Update copyright.
12783
93d91629
DC
127842003-02-04 David Carlton <carlton@math.stanford.edu>
12785
12786 * linespec.c (decode_compound): Extract code into
12787 lookup_prefix_sym.
12788 (lookup_prefix_sym): New function.
12789
1c5cb38e
DC
127902003-02-04 David Carlton <carlton@math.stanford.edu>
12791
12792 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
12793 FLOAT_COERCION_BADNESS.
12794 * gdbtypes.c (rank_one_type): Replace all uses of
12795 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
12796
0cf824c9
JB
127972003-02-04 Jim Blandy <jimb@redhat.com>
12798
12799 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
12800 section, let dwarf_macinfo_section point to it, not
12801 dwarf_loc_section.
12802
a2d356b0
DJ
128032003-02-04 Daniel Jacobowitz <drow@mvista.com>
12804
12805 Pointed out by Anton Blanchard <anton@samba.org>.
12806 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
12807 (ppc_linux_at_sigtramp_return_path): Use it.
12808
2de7ced7
DJ
128092003-02-04 Daniel Jacobowitz <drow@mvista.com>
12810
12811 * defs.h (streq): Add prototype.
12812 * utils.c (streq): New function.
12813
12814 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
12815 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
12816 * mdebugread.c (new_symbol): Likewise.
12817 * stabsread.c (define_symbol): Likewise.
12818 * coffread.c (process_coff_symbol): Likewise.
12819 * dwarfread.c (new_symbol): Likewise.
12820
12821 * minsyms.c (prim_record_minimal_symbol_and_info): Use
12822 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
12823 here.
12824 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
12825 SYMBOL_INIT_DEMANGLED_NAME.
12826 * objfiles.c: Include "hashtab.h".
12827 (allocate_objfile): Call htab_set_functions_ex for the
12828 demangled_names_hash.
12829 (free_objfile): Call htab_delete for the demangled_names_hash.
12830 * objfiles.h (struct htab): Add declaration.
12831 (struct objfile): Add demangled_names_hash.
12832 * symfile.c: Include "hashtab.h".
12833 (reread_symbols): Call htab_delete for the demangled_names_hash.
12834 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
12835 SYMBOL_NAME in the bcache.
12836 * symtab.c: Include "hashtab.h". Update comments.
12837 (create_demangled_names_hash, symbol_set_names): New functions.
12838 (symbol_find_demangled_name): New function, broken out from
12839 symbol_init_demangled_names.
12840 (symbol_init_demangled_names): Use it.
12841 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
12842 (SYMBOL_SET_NAMES): New macro.
12843 (symbol_set_names): Add prototype.
12844
15831452
JB
128452003-02-03 Jim Blandy <jimb@redhat.com>
12846
12847 Use a single, consistent representation for an empty minimal
12848 symbol table in an objfile.
12849 * objfiles.c (terminate_minimal_symbol_table): New function.
12850 (allocate_objfile): Call it.
12851 * objfiles.h (terminate_minimal_symbol_table): New declaration.
12852 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 12853 non-NULL.
15831452
JB
12854 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
12855 objfile has minimal symbols, compare minimal_symbol_count to zero,
12856 instead of comparing msymbols with NULL.
12857 * objfiles.c (have_minimal_symbols): Same.
12858 * solib-sunos.c (solib_add_common_symbols): Call
12859 terminate_minimal_symbol_table.
12860 * symfile.c (reread_symbols): Same.
8ffd9b1b 12861
ffc65945
KB
128622003-02-03 Kevin Buettner <kevinb@redhat.com>
12863
12864 * s390-tdep.c (s390_address_class_type_flags)
12865 (s390_address_class_type_flags_to_name)
12866 (s390_address_class_name_to_type_flags): New functions.
12867 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
12868 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
12869
f211c6d4
MS
128702003-02-03 Michael Snyder <msnyder@redhat.com>
12871
12872 * arm-tdep.c: Fix spell-o in comment.
12873
659b0389
ML
128742003-02-03 Michal Ludvig <mludvig@suse.cz>
12875
12876 * dwarf2cfi.c (pointer_encoding): Added new parameter.
12877 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 12878 error messages to contain BFD filename.
659b0389 12879
3b31d625
EZ
128802003-02-02 Elena Zannoni <ezannoni@redhat.com>
12881
997b089a 12882 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
12883 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
12884 (do_mixed_source_and_assembly): Use
12885 make_cleanup_ui_out_tuple_begin_end and
12886 make_cleanup_ui_out_tuple_begin_end.
12887 (do_mixed_source_and_assembly): Ditto.
12888 * thread.c (do_captured_list_thread_ids): Ditto.
12889 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
12890 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
12891 ui_out_tuple_end): Delete prototypes.
12892 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
12893 ui_out_list_end, ui_out_tuple_end): Delete.
12894
12895 From Kevin Buettner <kevinb@redhat.com>:
12896 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
12897 * ui-out.c (make_cleanup_ui_out_table_begin_end)
12898 (do_cleanup_table_end): New functions.
12899 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
12900 Use cleanups to invoke_ui_out_tuple_end().
12901 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
12902 * cli/cli-setshow.c (cmd_show_list): Use
12903 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 12904
5b181d62
AC
129052003-02-02 Andrew Cagney <ac131313@redhat.com>
12906
12907 * frame.c (frame_unwind_register): New function.
12908 (frame_unwind_unsigned_register): Use.
12909 (frame_unwind_signed_register): Use.
12910 (frame_read_register): New function.
12911 * frame.h (frame_unwind_register): Declare.
12912 (frame_read_register): Declare.
12913
12914 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
12915 and frame_unwind_register instead of read_memory, write_register
12916 and deprecated_write_register_bytes.
12917
5f601589
AC
129182003-02-02 Andrew Cagney <ac131313@redhat.com>
12919
12920 * frame.h: Note that namelen can be negative.
12921 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
12922 NAME's length.
12923
12924 * NEWS: Mention that the d10v's `regs' command is deprecated.
12925 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
12926 (d10v_print_registers_info): New function.
12927 (show_regs): Call d10v_print_registers_info.
12928 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
12929
6a3fe0a4
MK
129302003-02-02 Mark Kettenis <kettenis@gnu.org>
12931
12932 * stack.c (print_frame_info): Restore call to annotate_frame_begin
12933 lost in the previous patch.
12934
075559bc
AC
129352003-02-01 Andrew Cagney <ac131313@redhat.com>
12936
12937 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
12938 * stack.c (print_frame_info_base): Output complete FRAME tuple
12939 for synthesized frames.
075559bc 12940
6789195b
AC
129412003-02-02 Andrew Cagney <ac131313@redhat.com>
12942
12943 * mips-nat.c (zerobuf): Delete.
12944 (fetch_inferior_registers): Alloc local zerobuf.
12945 (fetch_core_registers): Alloc local zerobuf.
12946 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
12947 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
12948 * thread-db.c (thread_db_store_registers): Ditto.
12949 * sh-tdep.c (sh_do_register): Ditto.
12950 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
12951 * remote-sim.c (gdbsim_store_register): Ditto.
12952 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
12953 * remote-e7000.c (fetch_regs_from_dump): Ditto.
12954 * monitor.c (monitor_supply_register): Ditto.
12955 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
12956 * mips-nat.c (fetch_inferior_registers): Ditto.
12957 * m68klinux-nat.c (fetch_register): Ditto.
12958 * lynx-nat.c (fetch_inferior_registers): Ditto.
12959 (fetch_inferior_registers): Ditto.
12960 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
12961 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
12962 (hpux_thread_store_registers): Ditto.
12963 * hppah-nat.c (fetch_register): Ditto.
12964 * hppab-nat.c (fetch_register): Ditto.
12965 * hppa-tdep.c (pa_register_look_aside): Ditto.
12966 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
12967 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
12968
e669114a
AC
129692003-02-01 Andrew Cagney <ac131313@redhat.com>
12970
12971 * gdbarch.sh: Explictly specify all method levels. When a
12972 variable with an empty level, provide a non-multi-arch default.
12973 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
12974 * gdbarch.h: Re-generate.
12975 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
12976 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
12977
9a043c1d
AC
129782003-02-01 Andrew Cagney <ac131313@redhat.com>
12979
12980 * defs.h (host_pointer_to_address): Delete declaration.
12981 (address_to_host_pointer): Delete declaration.
12982 * utils.c (host_pointer_to_address): Delete function.
12983 (address_to_host_pointer): Delete function.
12984 * procfs.c (procfs_address_to_host_pointer): New function.
12985 * procfs.c (proc_set_watchpoint): Use.
12986 (procfs_can_use_hw_breakpoint): Update comments.
12987 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
12988 (som_solib_add): Use.
12989 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
12990 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 12991
7ca9f392
AC
129922003-02-01 Andrew Cagney <ac131313@redhat.com>
12993
94bbfd30
AC
12994 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
12995 strlen d_name.
12996
7ca9f392
AC
12997 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
12998 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
12999 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13000 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13001 (define_symbol): Update.
13002 * symfile.c (generic_load): Remove references to nindy.
13003 * symtab.c: Remove references to nindy.
13004
31a85ea2
AC
130052003-02-01 Andrew Cagney <ac131313@redhat.com>
13006
13007 * infcmd.c (print_float_info): Delete code conditional on
13008 FLOAT_INFO.
13009 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13010 * config/m68k/nm-apollo68b.h: Ditto.
13011 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13012 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13013 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13014
f6e85fc8
MK
130152003-02-01 Mark Kettenis <kettenis@gnu.org>
13016
6015b6a0
MK
13017 * config/i386/tm-i386os9k.h: Removed.
13018
f7a30bdf
MK
13019 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13020 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13021 they're identical to i[3456]86-*-sysv* now.
13022 * config/i386/i386v32.mh: Removed.
13023 * config/i386/xm-i386v32.h: Removed.
13024 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13025
28d52111
MK
13026 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13027
4d3f6bce
MK
13028 * config/i386/i386dgux.mh: Removed.
13029 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13030
f6e85fc8
MK
13031 * configure.in: Fix typo.
13032 * configure: Regenerated.
13033
53955967
DC
130342003-01-31 David Carlton <carlton@math.stanford.edu>
13035
13036 * dwarf2read.c (dwarf2_locate_sections): Set
13037 dwarf_ranges_section.
13038
b1364885
AC
130392003-01-31 Andrew Cagney <ac131313@redhat.com>
13040
8dbb1c65
AC
13041 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13042 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 13043
8731e58e
AC
13044 * utils.c: Re-indent.
13045
b1364885
AC
13046 * config/djgpp/fnchange.lst: Delete nindy files.
13047 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13048 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13049 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13050 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13051 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13052 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13053 * Makefile.in (init.c): Remove nindy references.
13054 (saber_gdb): Delete rule.
13055 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13056 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13057 and a68v-nat.c.
13058 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13059 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13060 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13061 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13062 nindy-share/stop.h.
13063 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13064 * saber.suppress: Delete file.
13065
086df311
DJ
130662003-01-31 Daniel Jacobowitz <drow@mvista.com>
13067
13068 * dbxread.c (stabs_data): New static variable.
13069 (fill_symbuf): Support an in-memory buffer for stabs data.
13070 (stabs_seek): New function.
13071 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13072 (read_ofile_symtab): Use stabs_seek.
13073 (elfstab_build_psymtabs): Take an asection* instead of
13074 an offset and size. Relocate the stabs data if necessary.
13075 Save the section* for dbx_psymtab_to_symtab.
13076 * dwarf2read.c: Add section variables for each debug section.
13077 (dwarf2_locate_sections): Fill them in.
13078 (dwarf2_read_section): Take an asection* argument.
13079 Relocate the section contents if necessary.
13080 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13081 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13082 it to dwarf2_read_section.
13083 (dwarf2_build_frame_info): Update callers.
13084 * elfread.c (elf_symfile_read): Update call to
13085 elfstab_build_psymtabs.
13086 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13087 (DBX_STAB_SECTION): New macro.
8ffd9b1b 13088 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
13089 * symfile.c (symfile_dummy_outputs): New function.
13090 (symfile_relocate_debug_section): New function.
13091 * symfile.h (symfile_relocate_debug_section): Add prototype.
13092
87d1b352
RH
130932003-01-31 Richard Henderson <rth@redhat.com>
13094
13095 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13096 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13097 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13098 * alpha-tdep.c (alpha_register_name): Add "unique".
13099 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13100 (ALPHA_UNIQUE_REGNUM): New.
13101 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13102
c48861fb
AC
131032003-01-31 Andrew Cagney <ac131313@redhat.com>
13104
13105 * README: Remove reference to Ericsson 1800 monitor.
13106 * Makefile.in (remote-es.o): Delete rule.
13107 (ALLDEPFILES): Delete remote-es.c.
13108 * remote-es.c: Delete file.
13109 * config/m68k/es1800.mt: Delete file.
13110 * config/djgpp/fnchange.lst: Update.
13111 * configure.tgt: Delete m68*-ericsson-* target.
13112
d764a824
AF
131132003-01-31 Adam Fedor <fedor@gnu.org>
13114
13115 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13116 Remove duplicate/shadowing variable of same name.
13117
fe36c4f4
JB
131182003-01-30 Jim Blandy <jimb@redhat.com>
13119
13120 * symfile.c (find_separate_debug_file): Assert that the objfile's
13121 directory name we compute ends with a slash, and then assume that
13122 that's so everywhere we use it.
13123
cb741690
DJ
131242003-01-30 Daniel Jacobowitz <drow@mvista.com>
13125
13126 * valops.c (value_assign): Flush frame cache after stores to memory
13127 also.
13128
96ee5227
AC
131292003-01-30 Andrew Cagney <ac131313@redhat.com>
13130
13131 * Makefile.in (mon960-rom.o): Delete rule.
13132 * mon960-rom.c: Delete file.
13133
7f6104a9
AC
131342003-01-30 Andrew Cagney <ac131313@redhat.com>
13135
13136 * d10v-tdep.c: Include "frame-unwind.h".
13137 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13138 list.
13139 (next_addr, uses_frame): Delete.
13140 (struct d10v_unwind_cache): Define.
13141 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13142 Use info instead of next_addr and uses_frame globals.
13143 (d10v_frame_init_saved_regs): Delete function.
13144 (d10v_init_extra_frame_info): Delete function.
13145 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13146 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13147 init_frame_pc or frame_saved_pc.
13148 (d10v_pop_frame): Delete function.
13149 (do_d10v_pop_frame): Delete function.
13150 (d10v_frame_chain): Delete function.
13151 (d10v_frame_chain_valid): Delete function.
13152 (d10v_frame_pc_unwind): New function.
13153 (d10v_frame_id_unwind): New function.
13154 (saved_regs_unwinder): New function.
13155 (d10v_frame_register_unwind): New function.
13156 (d10v_frame_pop): New function.
13157 (d10v_frame_unwind): New variable.
13158 (d10v_frame_p): New function.
13159 (d10v_frame_saved_pc): Delete function.
13160 * Makefile.in (d10v-tdep.o): Update dependencies.
13161
cad2e848
JB
131622003-01-30 J. Brobecker <brobecker@gnat.com>
13163
13164 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13165 causing some regressions due to a change in the default value
13166 for this macro.
13167
af34e669
DJ
131682003-01-29 Richard Henderson <rth@redhat.com>
13169 Elena Zannoni <ezannoni@redhat.com>
13170 Daniel Jacobowitz <drow@mvista.com>
13171
13172 Fix PR gdb/961.
8ffd9b1b 13173 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
13174 variables.
13175 (RANGES_SECTION): New.
13176 (dwarf_ranges_buffer): New variable.
13177 (struct comp_unit_head): Add member "die".
13178 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13179 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13180 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13181 (dwarf2_locate_sections): Likewise.
13182 (dwarf2_build_psymtabs): Read .debug_ranges.
13183 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13184 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13185 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13186 Look for DW_AT_ranges and return the bounding box.
13187
baa93fa6
CF
131882003-01-29 Brian Ford <ford@vss.fsi.com>
13189
13190 * win32-nat.c (cygwin_pid): Removed as unused.
13191 (child_attach): Try fall back to Cygwin pid.
13192
c63f977f
JB
131932003-01-29 Jim Blandy <jimb@redhat.com>
13194
13195 * objfiles.h (struct objfile): Doc fix.
13196
d62d1979
AC
131972003-01-29 Andrew Cagney <ac131313@redhat.com>
13198
13199 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13200 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13201 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13202 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13203 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13204 (FRAME_SAVED_PC): Change to a function with predicate.
13205 * gdbarch.h, gdbarch.c: Re-generate.
13206
1ae18a04
AC
132072003-01-28 Andrew Cagney <ac131313@redhat.com>
13208
52287340
AC
13209 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13210
1ae18a04
AC
13211 * complaints.c (complain): Delete function.
13212 * complaints.h (struct deprecated_complaint): Delete definition.
13213 (complain): Delete declaration.
13214
f2c16bd6
KB
132152003-01-28 Kevin Buettner <kevinb@redhat.com>
13216
13217 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13218 dummy frames.
13219
a94dd1fd
AC
132202003-01-27 Andrew Cagney <ac131313@redhat.com>
13221
13222 * sentinel-frame.h, sentinel-frame.c: New files.
13223 * Makefile.in (frame.o): Update dependencies.
13224 (SFILES): Add sentinel-frame.c.
13225 (sentinel_frame_h): Define.
13226 (COMMON_OBS): Add sentinel-frame.o.
13227 (sentinel-frame.o): Specify dependencies.
13228 * frame.c: Include "sentinel-frame.h".
13229 (frame_register_unwind): Rewrite assuming that there is always a a
13230 ->next frame.
13231 (frame_register, generic_unwind_get_saved_register): Ditto.
13232 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13233 (create_sentinel_frame, unwind_to_current_frame): New functions.
13234 (get_current_frame): Rewrite using create_sentinel_frame and
13235 unwind_to_current_frame. When possible, always create a frame.
13236 (create_new_frame): Set next to the sentinel frame.
13237 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13238 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13239 ID cache when necessary.
13240 (frame_saved_regs_id_unwind): Use frame_relative_level.
13241 (deprecated_generic_get_saved_register): Use frame_relative_level,
13242 get_frame_saved_regs, get_frame_pc, get_frame_base and
13243 get_next_frame.
13244 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13245 frame_register.
13246
5378adc4
DJ
132472003-01-27 Daniel Jacobowitz <drow@mvista.com>
13248
13249 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13250
51ee2ddc
DJ
132512003-01-27 Daniel Jacobowitz <drow@mvista.com>
13252
13253 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13254 (maintenance_set_profile_cmd): Use error () instead of warning ().
13255
d9feb4e7
DJ
132562003-01-27 Daniel Jacobowitz <drow@mvista.com>
13257
13258 * configure.in: Check that -pg works if using --enable-profiling.
13259 Check for monstartup and _mcleanup regardless of --enable-profiling.
13260 * maint.c: Check for monstartup and _mcleanup before using them.
13261 * config.in: Regenerated.
13262 * configure: Regenerated.
13263
2d188dd3
NC
132642003-01-24 Nick Clifton <nickc@redhat.com>
13265
13266 * Add sh2e support:
13267
13268 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13269
13270 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13271 (sh2e_show_regs): New.
13272 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13273 * config/sh/tm-sh.h: Added sh2e to comments.
13274
cb3c37b2
JB
132752003-01-23 Jim Blandy <jimb@redhat.com>
13276
13277 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13278 symbols found)" message here; we haven't checked for a separate
13279 debug info file yet, so we don't know yet.
13280 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13281 we've looked everywhere. Also, there's no need to print a special
13282 message when we're loading the separate debug info file: the one
13283 symbol_file_add prints is fine.
13284
5b5d99cf
JB
132852003-01-23 Alexander Larsson <alexl@redhat.com>
13286 Jim Blandy <jimb@redhat.com>
13287
13288 Add support for executables whose debug info has been separated
13289 out into a separate file, leaving only a link behind.
13290 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13291 and separate_debug_objfile_backlink.
13292 (put_objfile_before): New declaration.
13293 * symfile.c: #include "filenames.h".
13294 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13295 debug info in a separate file, read that, too. Save the addrs
13296 argument, so we can use it again to read the separated debug info;
13297 syms_from_objfile modifies the table we pass it.
13298 (reread_symbols): After re-reading an objfile, call
13299 reread_separate_symbols to refresh its separate debug info
13300 objfile, if it has one.
13301 (reread_separate_symbols, find_separate_debug_file,
13302 get_debug_link_info, separate_debug_file_exists): New functions.
13303 (debug_file_directory): New global var.
13304 (_initialize_symfile): Initialize debug_file_directory, and
13305 provide the new `set debug-file-directory' command to let the user
13306 change it.
13307 * objfiles.c (free_objfile): If this objfile has its debug info in
13308 a separate objfile, free that one too. If this is itself a
13309 separate debug info objfile, clear our parent's backlink.
13310 (put_objfile_before): New function.
13311 * utils.c (gnu_debuglink_crc32): New function.
13312 * defs.h (gnu_debuglink_crc32): New declaration.
13313 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13314 * configure.in: Handle --with-separate-debug-dir config option.
13315 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13316 * acconfig.h (DEBUGDIR): New macro.
13317 * configure, aclocal.m4, config.in: Regenerated.
13318
7e8580c1
JB
133192003-01-22 Jim Blandy <jimb@redhat.com>
13320
7904e09f
JB
13321 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13322 like the old symbol_file_add, but taking new arguments: you can
13323 now pass in either a `struct section_addr_info' list to say where
13324 each section is loaded, or a `struct section_offsets' table. Pass
13325 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 13326 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
13327 with the appropriate quiescent values for the new arguments.
13328
7e8580c1
JB
13329 * symfile.c: #include "gdb_assert.h".
13330 (syms_from_objfile): Add the ability to pass in a section offset
13331 table directly, as an alternative to the section_addr_info table.
13332 Document arguments better.
13333 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13334 * symfile.h (syms_from_objfile): Update declaration.
13335 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13336 syms_from_objfile.
13337 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13338
d28f9cdf
DJ
133392003-01-22 Daniel Jacobowitz <drow@mvista.com>
13340
13341 Original patch by Tom Tromey <tromey@cygnus.com> and
13342 Jason Molenda <jmolenda@apple.com>.
13343 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13344 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13345 * NEWS: Mention profiling.
13346 * configure.in (--enable-gdbtk): Fix typo.
13347 (--enable-profiling): New. Set PROFILE_CFLAGS.
13348 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13349 Fill in function.
13350 (profiling_state): New variable.
13351 (mcleanup_wrapper): New function.
13352 (_initialize_maint): Remove NOTYET, fix call to
13353 add_setshow_boolean_cmd for "maint set profile".
13354 * configure: Regenerated.
13355
df21e465
MH
133562003-01-21 Martin M. Hunt <hunt@redhat.com>
13357
13358 * Makefile.in (install-gdbtk): Install PNG images too.
13359
73c1f219
AC
133602003-01-21 Andrew Cagney <ac131313@redhat.com>
13361
13362 * exec.c (text_start): Delete global variable.
13363 (exec_file_attach): Make text_start local to the function.
13364 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13365 * valops.c (hand_function_call): Delete code that handles
13366 BEFORE_TEXT_END and AFTER_TEXT_END.
13367 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13368 of CALL_DUMMY_LOCATION.
13369 * gdbarch.c: Regenerate.
13370 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13371 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13372 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13373 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13374 (text_end): Delete extern declaration.
13375
eb4f72c5
AC
133762003-01-21 Andrew Cagney <ac131313@redhat.com>
13377
13378 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13379 * blockframe.c (backtrace_below_main): Move to "frame.c".
13380 (frame_chain_valid): Delete check for backtrace_below_main.
13381 (_initialize_blockframe): Delete initialization, move ``set
13382 backtrace-below-main'' command to "frame.c".
13383 (do_flush_frames_sfunc): Delete function.
13384 * frame.c: Include "command.h" and "gdbcmd.h".
13385 (frame_type_from_pc): New function.
13386 (create_new_frame): Use frame_type_from_pc.
13387 (legacy_get_prev_frame): New function.
13388 (get_prev_frame): Rewrite. When an old style frame, call
13389 legacy_get_prev_frame. Otherwize, unwind the PC first.
13390 (_initialize_frame): Add ``set backtrace-below-main'' command.
13391 * Makefile.in (frame.o): Update dependencies.
13392
778ce8cc
AC
133932003-01-19 Andrew Cagney <ac131313@redhat.com>
13394
13395 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13396 DEPRECATED_REGISTERS_INFO.
13397
01c193c8
AC
133982003-01-19 Andrew Cagney <ac131313@redhat.com>
13399
13400 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13401 Maintainers'. Update `Various Maintainers'.
13402
dedc2a2b
AC
134032003-01-19 Andrew Cagney <ac131313@redhat.com>
13404
13405 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13406 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13407 Suppress actual parameters when `-'.
13408 * gdbarch.h, gdbarch.c: Regenerate.
13409
b7261c70
AC
134102003-01-19 Andrew Cagney <ac131313@redhat.com>
13411
13412 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13413 code handling dummy frames.
13414
dbe9fe58
AC
134152003-01-19 Andrew Cagney <ac131313@redhat.com>
13416
13417 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13418 (struct frame_unwind): Add field pop.
13419 * frame.h (frame_pop): Declare.
13420 * frame.c (frame_saved_regs_pop): New function.
13421 (trad_frame_unwinder): Add frame_saved_regs_pop.
13422 (frame_pop): New function.
13423 * dummy-frame.c (dummy_frame_pop): New function.
13424 (discard_innermost_dummy): New function.
13425 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13426 (dummy_frame_unwind): Add dummy_frame_pop.
13427 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13428 * valops.c (hand_function_call): Ditto.
13429 * stack.c (return_command): Ditto.
13430
570b8f7c
AC
134312003-01-18 Andrew Cagney <ac131313@redhat.com>
13432
13433 * cris-tdep.c: Fix function declaration indentation.
13434 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13435 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13436 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13437 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13438 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13439 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13440
134412003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
13442
13443 * README (Unpacking and Installation -- quick overview):
13444 Warn against ".../gdb-5.3/gdb/configure".
13445
494cca16
AC
134462003-01-18 Andrew Cagney <ac131313@redhat.com>
13447
13448 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13449 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13450 (struct frame_unwind): Declare opaque.
13451 (dummy_frame_p): Declare function.
13452 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13453 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13454 * dummy-frame.c: Include "frame-unwind.h".
13455 (dummy_frame_p): New function.
13456 (dummy_frame_unwind): New variable.
13457 * frame.c: Include "frame-unwind.h".
13458 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13459 to use the new unwind field.
13460 (set_unwind_by_pc): Delete function.
13461 (create_new_frame, get_prev_frame): Set unwind field using
13462 frame_unwind_find_by_pc.
13463 (trad_frame_unwind, trad_frame_unwinder): New variables.
13464 * frame.h (trad_frame_unwind): Declare variable.
13465 (frame_id_unwind_ftype): Delete declaration.
13466 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13467 (struct frame_unwind): Declare opaque.
13468 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13469 register_unwind with a single unwind pointer.
13470 * frame-unwind.h, frame-unwind.c: New files.
13471 * Makefile.in (SFILES): Add frame-unwind.c.
13472 (frame_unwind_h): Define.
13473 (COMMON_OBS): Add frame-unwind.o.
13474 (frame-unwind.o): Specify dependencies.
13475 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 13476
4efb68b1
AC
134772003-01-18 Andrew Cagney <ac131313@redhat.com>
13478
13479 * ada-valprint.c: Eliminate PTR.
13480 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13481 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13482 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13483 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13484 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13485 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13486 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 13487
a84d24ee
AC
134882003-01-17 Andrew Cagney <ac131313@redhat.com>
13489
762f08a3
AC
13490 * main.c (captured_main): Don't use PTR.
13491 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13492 * gdbtypes.c (lookup_primitive_typename): Ditto.
13493 (lookup_struct_elt_type): Ditto.
13494 * f-valprint.c (info_common_command): Ditto.
13495 (list_all_visible_commons): Ditto.
13496 * jv-typeprint.c (java_type_print_base): Ditto.
13497
a84d24ee
AC
13498 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13499 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13500 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13501 i386-interix-nat.c and i386-interix-tdep.c. Rename
13502 m68klinux-nat.c and m68klinux-tdep.c. Rename
13503 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13504 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13505 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13506 * main.c (captured_main): Use xfree, not free.
13507
c170fb60
AC
135082003-01-16 Andrew Cagney <ac131313@redhat.com>
13509
13510 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13511 ID back using a parameter.
13512 * frame.c (frame_id_unwind): Update call.
13513 (frame_saved_regs_id_unwind): Update.
13514 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13515 * dummy-frame.h (struct frame_id): Add opaque declaration.
13516 (dummy_frame_id_unwind): Update declaration.
13517
867f3898
AC
135182003-01-15 Andrew Cagney <ac131313@redhat.com>
13519
13520 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13521
40622be8 135222003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 13523
40622be8 13524 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 13525
ae66c1fc
EZ
135262003-01-14 Elena Zannoni <ezannoni@redhat.com>
13527
997b089a 13528 Fix PR gdb/898
ae66c1fc
EZ
13529 * breakpoint.c (until_break_command): Add new argument. Use it to
13530 decide whether to stop only at the current frame or not.
13531 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 13532 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
13533 call.
13534 (advance_command): New function.
13535 (_initialize_infcmd): Update help string for 'until' command.
13536 Add new 'advance' command.
13537
a04257e6
DC
135382003-01-14 David Carlton <carlton@math.stanford.edu>
13539
13540 * linespec.c (decode_line_1): Normalize comments.
13541 (set_flags): Ditto.
13542 (locate_first_half): Ditto.
13543 (decode_compound): Ditto.
13544 (symtab_from_filename): Ditto.
13545 (decode_all_digits): Ditto.
13546 (decode_dollar): Ditto.
13547 (find_methods): Ditto.
13548 (find_toplevel_char): Ditto.
13549
1bac305b
AC
135502003-01-13 Andrew Cagney <ac131313@redhat.com>
13551
13552 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13553 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13554 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13555 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13556 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13557 * language.c, language.h, m32r-tdep.c: Update copyright.
13558 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13559 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13560 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13561 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13562 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13563 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13564
25caa7a8
EZ
135652003-01-13 Elena Zannoni <ezannoni@redhat.com>
13566
13567 * stabsread.h (process_later, resolve_cfront_continuation):
13568 Obsolete.
13569 Update copyright years.
13570 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13571 Update copyright year.
13572 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 13573 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
13574 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13575 Update copyright year.
13576 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13577 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13578 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13579 (parse_partial_symbols): Obsolete cfront support.
13580 * stabsread.c
13581 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13582 macros.
13583 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13584 read_cfront_baseclasses, read_cfront_member_functions,
13585 resolve_cfront_continuation,read_cfront_static_fields,
13586 copy_cfront_struct_fields): Obsolete functions.
13587 (define_symbol, read_one_struct_field): Obsolete cfront support.
13588 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13589 Update Copyright year.
13590
7789c6f5
EZ
135912003-01-13 Elena Zannoni <ezannoni@redhat.com>
13592
13593 * stack.c (print_frame_info, print_stack_frame_base_stub,
13594 print_stack_frame_base, show_and_print_stack_frame_stub,
13595 show_and_print_stack_frame, print_only_stack_frame_stub,
13596 print_only_stack_frame): Delete functions.
13597 (print_stack_frame_stub): Call print_frame_info instead of
13598 print_frame_info_base.
13599 (print_frame_info_base): Rename to print_frame_info.
13600 (backtrace_command_1): Call print_frame_info, instead of
13601 print_frame_info_base.
13602 (current_frame_command): Call print_stack_frame, instead of
13603 print_only_stack_frame.
13604 (frame_command): Call print_stack_frame, instead of
13605 show_and_print_stack_frame.
13606 (up_command): Ditto.
13607 (down_command): Ditto.
13608 * frame.h (print_only_stack_frame): Delete prototype.
13609 * infrun.c (normal_stop): Call print_stack_frame, instead of
13610 show_and_print_stack_frame.
13611 * thread.c (info_threads_command): Call print_stack_frame, instead
13612 of print_only_stack_frame.
13613
3f5a3016
AC
136142003-01-13 Andrew Cagney <ac131313@redhat.com>
13615
d99ba314
AC
13616 * README (Graphical interface to GDB): Update URL. Point at
13617 gdb/links/.
13618
3f5a3016
AC
13619 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
13620 version match.
13621
083ae935
DJ
136222003-01-13 Daniel Jacobowitz <drow@mvista.com>
13623
13624 * symtab.c (find_pc_sect_line): Don't consider end-of-function
13625 lines.
13626
5365276c
DJ
136272003-01-13 Daniel Jacobowitz <drow@mvista.com>
13628
13629 * thread-db.c (attach_thread): Prototype.
13630 (struct private_thread_info): Remove lwpid. Add thread handle (th),
13631 thread information (ti), and valid flags (th_valid, ti_valid).
13632 (attach_thread): Move target_pid_to_str call to after the thread
13633 is added to GDB's list. Initialize the cache.
13634 (thread_get_info_callback, thread_db_map_id2thr)
13635 (thread_db_get_info): New functions.
13636 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13637 (thread_db_store_registers, thread_db_thread_alive)
13638 (thread_db_get_thread_local_address): Use them.
13639 (thread_db_pid_to_str): Likewise. Return "Missing" instead
13640 of calling error() for threads in unknown state.
13641
13642 (clear_lwpid_callback): New function.
13643 (thread_db_resume): Use it to clear the cache.
13644
9fc30b6b
DJ
136452003-01-13 Daniel Jacobowitz <drow@mvista.com>
13646
13647 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13648 (resume_callback): Remove dead code.
13649
8f871025
AC
136502003-01-13 Andrew Cagney <ac131313@redhat.com>
13651
13652 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13653 predicate.
13654 * gdbarch.h, gdbarch.c: Regenerate.
13655 * stack.c (frame_info): Only initialize the saved registers when
13656 FRAME_INIT_SAVED_REGS_P.
13657 * frame.c (frame_saved_regs_register_unwind): Assert
13658 FRAME_INIT_SAVED_REGS_P.
13659 (deprecated_generic_get_saved_register): Ditto.
13660
3f565f1e
DJ
136612003-01-13 Daniel Jacobowitz <drow@mvista.com>
13662
13663 * source.c (openp): Squelch warning about "filename".
13664
072b1022
DJ
136652003-01-13 Daniel Jacobowitz <drow@mvista.com>
13666
13667 * source.c (openp): If the file does not exist don't necessarily
13668 search the path.
13669
973ccf8b
DJ
136702003-01-13 Daniel Jacobowitz <drow@mvista.com>
13671
13672 Fix PR gdb/872.
13673 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
13674 (integer_types_same_name_p): New function.
13675 (rank_one_type): Use it.
13676 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
13677
030292b7
DJ
136782003-01-13 Daniel Jacobowitz <drow@mvista.com>
13679
13680 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
13681 variables.
13682 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
13683 * configure.in: Add --with-sysroot.
13684 * configure: Regenerated.
13685 * main.c (gdb_sysroot): New variable.
13686 (captured_main): Initialize gdb_sysroot.
13687 * defs.h (gdb_sysroot): New extern declaration.
13688 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
13689
afb5d334
MC
136902003-01-12 Michael Chastain <mec@shout.net>
13691
13692 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
13693
751ceeb4
MC
136942003-01-12 Michael Chastain <mec@shout.net>
13695
13696 * top.c (print_gdb_version): Bump copyright year to 2003.
13697
94cd26f8
DC
136982003-01-12 David Carlton <carlton@bactrian.org>
13699
13700 * linespec.c (symtab_from_filename): Rename variable 's' to
13701 'file_symtab'.
13702
1ce79225
AC
137032003-01-12 Andrew Cagney <ac131313@redhat.com>
13704
13705 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
13706 dummy frame.
13707 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
13708
fa1fd571
AC
137092003-01-12 Andrew Cagney <ac131313@redhat.com>
13710
13711 * d10v-tdep.c: Include "gdb_assert.h".
13712 (d10v_store_return_value): Rewrite to match current interface.
13713 (d10v_extract_struct_value_address): Ditto.
13714 (d10v_extract_return_value): Ditto.
13715 (d10v_gdbarch_init): Set store_restore_value,
13716 extract_struct_value_address and extract_return_value.
13717
68b8d23e
JB
137182003-01-12 J. Brobecker <brobecker@gnat.com>
13719
13720 * hpread.c (set_namestring): New procedure replacing the
13721 SET_NAMESTRING macro.
13722 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
13723 by calls to set_namestring.
13724
137252003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
13726
13727 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
13728 a compilation warning.
13729 (hpread_process_one_debug_symbol): Likewise.
13730
88d262ca
DC
137312003-01-10 David Carlton <carlton@math.stanford.edu>
13732
13733 * linespec.c (decode_line_1): Rename variable 's' to
13734 'file_symtab'.
13735 (decode_all_digits): Rename argument 's' to 'file_symtab'.
13736 (decode_dollar): Ditto.
13737 (decode_variable): Ditto.
13738 (symbol_found): Ditto.
13739
86669319
MC
137402003-01-09 Michael Chastain <mec@shout.net>
13741
13742 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
13743
616a9dc4
CV
137442003-01-07 Corinna Vinschen <vinschen@redhat.com>
13745
13746 * win32-nat.c (set_process_privilege): New function.
13747 (child_attach): Call set_process_privilege() to enable the
13748 SE_DEBUG_NAME user privilege if available in process token.
13749
3269bcfa
JB
137502003-01-10 J. Brobecker <brobecker@gnat.com>
13751
13752 * hpread.c (hpread_process_one_debug_symbol): Fix a small
13753 compilation error in the previous revision.
13754
2b0ee454
DC
137552003-01-09 David Carlton <carlton@math.stanford.edu>
13756
13757 * linespec.c: Update copyright.
13758
b3ba1b44
DJ
137592003-01-09 Daniel Jacobowitz <drow@mvista.com>
13760
13761 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
13762 than inferior_ptid.
13763 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
13764
4ef3f3be
AC
137652003-01-09 Andrew Cagney <ac131313@redhat.com>
13766
479ab5a0
AC
13767 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
13768 Update comments.
13769 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
13770 (frame_saved_regs_zalloc): Update.
13771 (frame_saved_regs_register_unwind): Update.
13772 (create_new_frame): Update.
13773 (get_prev_frame): Update.
13774 (frame_extra_info_zalloc): Update.
13775 (deprecated_get_frame_saved_regs): Update.
13776 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
13777 * cris-tdep.c: Update comment.
13778
bde58177
AC
13779 * somsolib.h: Fix function indentation.
13780 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
13781 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
13782 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
13783 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
13784 * somsolib.c, inftarg.c: Remove assignment in if conditional.
13785
4ef3f3be
AC
13786 * infrun.c (follow_fork): Use ISO C definition.
13787 * expprint.c (print_subexp): Use xfree instead of free.
13788 * charset.c: Include "gdb_string.h" instead of <string.h>.
13789 (register_iconv_charsets): Use ISO C definition.
13790 (host_charset, target_charset): Ditto.
13791 * Makefile.in (charset.o): Update dependencies.
13792 (mi-cmd-env.o): Update dependencies.
13793
1c615f7a
AC
137942003-01-08 Andrew Cagney <cagney@redhat.com>
13795
13796 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
13797 get_frame_base.
13798
c9a1dc08
AC
137992003-01-08 Andrew Cagney <ac131313@redhat.com>
13800
13801 * gdb_mbuild.sh: Add --keep option. When specified, keep the
13802 build directories. Save edited gdb output in Mbuild.log. If a
13803 build fails, remove any final GDB executable.
13804
dbad9d94
AC
138052003-01-08 Andrew Cagney <ac131313@redhat.com>
13806
13807 * gdb_mbuild.sh: Edit the output of `maint print architecture'
13808 replacing hex constants with function names and stripping leading
13809 file name directory prefixes.
13810
8d357cca
AC
138112003-01-08 Andrew Cagney <cagney@redhat.com>
13812
13813 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
13814 get_frame_base.
13815
bca02a8a
DC
138162003-01-08 David Carlton <carlton@math.stanford.edu>
13817
13818 * linespec.c (decode_line_1): Move code into decode_variable.
13819 (decode_variable): New function.
13820
7f8ab3a0
AC
138212003-01-08 Andrew Cagney <ac131313@redhat.com>
13822
13823 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
13824
7b5849cc
AC
138252003-01-08 Andrew Cagney <cagney@redhat.com>
13826
13827 * cris-tdep.c (cris_frame_init_saved_regs): Use
13828 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
13829 saved_regs buffer.
13830 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
13831 (sh64_nofp_frame_init_saved_regs): Ditto.
13832 (sh_fp_frame_init_saved_regs): Ditto.
13833 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
13834 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13835 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13836 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13837
72a5efb3
DJ
138382003-01-08 Daniel Jacobowitz <drow@mvista.com>
13839
13840 * minsyms.c (lookup_minimal_symbol): Update comment.
13841 (lookup_minimal_symbol_text): Update comment. Use the hash table.
13842 (lookup_minimal_symbol_solib_trampoline): Likewise.
13843
11c02a10
AC
138442003-01-08 Andrew Cagney <cagney@redhat.com>
13845
aab3ea25
AC
13846 * d10v-tdep.c (d10v_init_extra_frame_info): Use
13847 frame_relative_level.
13848
da50a4b7
AC
13849 * alpha-tdep.c: Use get_frame_extra_info.
13850 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13851 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
13852 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13853 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
13854
11c02a10
AC
13855 * alpha-tdep.c: Use get_next_frame.
13856 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13857 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13858 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
13859 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
13860 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
13861 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
13862 * xstormy16-tdep.c: Ditto.
8ffd9b1b 13863
1e2330ba
AC
138642003-01-07 Andrew Cagney <cagney@redhat.com>
13865
13866 * alpha-tdep.c: Use get_frame_base.
13867 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13868 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13869 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13870 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13871 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
13872 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13873 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
13874 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 13875
2d75187b
AC
138762003-01-07 Andrew Cagney <cagney@redhat.com>
13877
13878 * frame.c (deprecated_get_frame_context): New function.
13879 (deprecated_set_frame_context): New function.
13880 * frame.h (deprecated_get_frame_context): Declare.
13881 (deprecated_set_frame_context): Declare.
13882 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
13883 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 13884
483d36b2
AC
138852003-01-07 Andrew Cagney <cagney@redhat.com>
13886
13887 * frame.c (deprecated_set_frame_next_hack): New function.
13888 (deprecated_set_frame_prev_hack): New function.
13889 * frame.h (deprecated_set_frame_next_hack): Declare.
13890 (deprecated_set_frame_prev_hack): Declare.
13891 * mcore-tdep.c (analyze_dummy_frame): Use
13892 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
13893 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13894
14e91ac5
DC
138952003-01-07 David Carlton <carlton@math.stanford.edu>
13896
13897 * linespec.c (decode_line_1): Move code into decode_dollar.
13898 (decode_dollar): New function.
13899
b0c6b05c
AC
139002003-01-07 Andrew Cagney <cagney@redhat.com>
13901
13902 * arm-tdep.c (arm_init_extra_frame_info): Use
13903 deprecated_update_frame_base_hack.
13904 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
13905 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13906 (fix_frame_pointer): Ditto.
13907 (mn10300_analyze_prologue): Ditto.
13908
a00a19e9
AC
139092003-01-07 Andrew Cagney <cagney@redhat.com>
13910
13911 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
13912 extra_info using frame_extra_info_zalloc.
13913 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
13914 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
13915 (sh64_init_extra_frame_info): Ditto.
13916 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
13917 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
13918 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13919 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
13920 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
13921 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
13922 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
13923 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
13924 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
13925 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
13926 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
13927 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
13928
13929 * mn10300-tdep.c (analyze_dummy_frame): Use
13930 deprecated_set_frame_extra_info_hack.
13931 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13932
1fb4c65b
JB
139332003-01-07 J. Brobecker <brobecker@gnat.com>
13934
13935 * mdebugread.c (parse_symbol): Skip stProc entries which storage
13936 class is not scText. These do not define "real" procedures.
13937 (parse_partial_symbols): Likewise.
13938
9fe7d6bf
MS
139392003-01-06 Michael Snyder <msnyder@redhat.com>
13940
13941 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
13942
f6c609c4
AC
139432003-01-06 Andrew Cagney <ac131313@redhat.com>
13944
13945 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
13946 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
13947 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
13948 deprecated_frame_xmalloc_with_cleanup.
13949 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
13950 deprecated_frame_xmalloc.
13951 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
13952 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
13953
d995ff4b
AC
139542003-01-06 Andrew Cagney <cagney@redhat.com>
13955
84dc46cb
AC
13956 * x86-64-linux-tdep.c: Include "osabi.h".
13957 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
13958
d995ff4b
AC
13959 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
13960
66140c26
AC
139612003-01-06 Andrew Cagney <cagney@redhat.com>
13962
13963 * MAINTAINERS (Target Instruction Set Architectures): Update
13964 arm-elf. Can be built with -Werror, has been multiarched.
13965
13966 * value.h (unpack_long): Make buffer parameter constant.
13967 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
13968 * scm-lang.h (scm_parse): Ditto.
13969 * defs.h (extract_typed_address, extract_address): Ditto.
13970 (extract_long_unsigned_integer): Ditto.
13971 * inferior.h (unsigned_pointer_to_address): Ditto.
13972 (signed_pointer_to_address): Ditto.
13973 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
13974 * gdbarch.h, gdbarch.c: Regenerate.
13975 * findvar.c (extract_long_unsigned_integer): Update.
13976 (extract_address): Update.
13977 (extract_typed_address): Update.
13978 (unsigned_pointer_to_address): Update.
13979 * values.c (unpack_long): Update.
13980 (unpack_double): Update.
13981 (unpack_pointer): Update.
13982 (unpack_field_as_long): Update.
13983 * d10v-tdep.c (d10v_pointer_to_address): Update.
13984 * avr-tdep.c (avr_pointer_to_address): Update.
13985 * scm-lang.c (scm_unpack): Update.
13986 * findvar.c (signed_pointer_to_address): Update.
13987
b089b3da
ML
139882003-01-06 Michal Ludvig <mludvig@suse.cz>
13989
8ffd9b1b 13990 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
13991 since it is in i386-tdep.c.
13992
aff87235
JB
139932003-01-06 J. Brobecker <brobecker@gnat.com>
13994
13995 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
13996 failure introduced in the previous change.
13997
34f5e845
MC
139982003-01-05 Michael Chastain <mec@shout.net>
13999
14000 * README: Remove references to deleted remote-*.c files:
14001 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14002 remote-nrom.c, remote-os9k.c, remote-udi.c.
14003
28bcfd30
MK
140042003-01-05 Mark Kettenis <kettenis@gnu.org>
14005
14006 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14007 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14008 i386_get_longjmp_target.
14009
15a5b3ee
AC
140102003-01-05 Andrew Cagney <ac131313@redhat.com>
14011
14012 * arm-tdep.c (prologue_cache): Change to a pointer.
14013 (_initialize_arm_tdep): Allocate prologue_cache.
14014 (check_prologue_cache): Update.
14015 (save_prologue_cache): Update.
14016 (arm_gdbarch_init): Update.
14017
c263362b
DJ
140182003-01-04 Daniel Jacobowitz <drow@mvista.com>
14019
14020 * stabsread.c (update_method_name_from_physname): Call complaint()
14021 instead of error.
14022
51603483
DJ
140232003-01-04 Daniel Jacobowitz <drow@mvista.com>
14024
14025 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14026 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14027 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14028
14029 * blockframe.c: Include "gdbcmd.h" and "command.h".
14030 (backtrace_below_main): New variable.
14031 (file_frame_chain_valid, func_frame_chain_valid)
14032 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14033 (generic_func_frame_chain_valid): Remove functions.
14034 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14035 (_initialize_blockframe): New function.
14036 * Makefile.in (blockframe.o): Update dependencies.
14037 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14038 comment. Call frame_chain_valid ().
14039 * frame.h: Remove old prototypes. Add prototype for
14040 frame_chain_valid and update comments to match.
14041 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14042 Remove old comment.
14043 * gdbarch.h: Regenerated.
14044 * gdbarch.c: Regenerated.
14045
14046 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14047 set_gdbarch_frame_chain_valid.
14048 * avr-tdep.c (avr_gdbarch_init): Likewise.
14049 * cris-tdep.c (cris_gdbarch_init): Likewise.
14050 * frv-tdep.c (frv_gdbarch_init): Likewise.
14051 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14052 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14053 (i386_nw_init_abi): Likewise.
14054 (i386_gdbarch_init): Likewise.
14055 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14056 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14057 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14058 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14059 * mips-tdep.c (mips_gdbarch_init): Likewise.
14060 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14061 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14062 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14063 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14064 * s390-tdep.c (s390_gdbarch_init): Likewise.
14065 * sh-tdep.c (sh_gdbarch_init): Likewise.
14066 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14067 * v850-tdep.c (v850_gdbarch_init): Likewise.
14068 * vax-tdep.c (vax_gdbarch_init): Likewise.
14069 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14070
14071 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14072 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14073 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14074 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14075 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14076 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14077 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14078 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14079
b00a8037
DJ
140802002-01-04 Daniel Jacobowitz <drow@mvista.com>
14081
14082 * Makefile.in (acconfig_h): Remove incorrect macro.
14083 (config_h): Define.
14084 (osabi.o): Update dependencies.
14085 * configure.tgt: Set gdb_osabi based on target triplet.
14086 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14087 * configure: Regenerated.
14088 * config.in: Regenerated.
14089 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14090 (GDB_OSABI_DEFAULT): Define if not already defined.
14091 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14092 (set_osabi_string): New variables.
14093 (gdbarch_register_osabi): Add new OS ABI to
14094 gdb_osabi_available_names.
14095 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14096 (set_osabi, show_osabi): New functions.
14097 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14098
4be87837
DJ
140992003-01-04 Daniel Jacobowitz <drow@mvista.com>
14100
14101 * arch-utils.c (gdbarch_info_init): Set osabi to
14102 GDB_OSABI_UNINITIALIZED.
14103 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14104 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14105 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14106 * gdbarch.c: Regenerated.
14107 * gdbarch.h: Regenerated.
14108 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14109 there's no BFD.
14110 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14111 * osabi.h (enum gdb_osabi): Move to defs.h.
14112 (gdbarch_init_osabi): Update prototype.
14113 * defs.h (enum gdb_osabi): Moved here.
14114 * Makefile.in: Update dependencies.
14115
14116 * alpha-tdep.h: Don't include "osabi.h".
14117 (struct gdbarch_tdep): Remove osabi member.
14118 * alpha-tdep.c: Include "osabi.h".
14119 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14120 iterate over arches. Update call to gdbarch_init_osabi.
14121 (alpha_dump_tdep): Don't dump osabi.
14122 * alpha-linux-tdep.c: Include "osabi.h".
14123 * alpha-osf1-tdep.c: Include "osabi.h".
14124 * alphafbsd-tdep.c: Include "osabi.h".
14125 * alphanbsd-tdep.c: Include "osabi.h".
14126
14127 * arm-tdep.h: Don't include "osabi.h".
14128 (struct gdbarch_tdep): Remove osabi member.
14129 * arm-tdep.c: Include "osabi.h".
14130 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14131 iterate over arches. Update call to gdbarch_init_osabi.
14132 (arm_dump_tdep): Don't dump osabi.
14133 * arm-linux-tdep.c: Include "osabi.h".
14134 * armnbsd-tdep.c: Include "osabi.h".
14135
14136 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14137 Update call to gdbarch_init_osabi.
14138
14139 * i386-tdep.h: Don't include "osabi.h".
14140 (struct gdbarch_tdep): Remove osabi member.
14141 * i386-tdep.c: Include "osabi.h".
14142 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14143 iterate over arches. Update call to gdbarch_init_osabi.
14144 (i386_dump_tdep): Don't dump osabi.
14145 * i386-linux-tdep.c: Include "osabi.h".
14146 * i386-sol2-tdep.c: Include "osabi.h".
14147 * i386bsd-tdep.c: Include "osabi.h".
14148 * i386gnu-tdep.c: Include "osabi.h".
14149 * i386ly-tdep.c: Include "osabi.h".
14150 * i386nbsd-tdep.c: Include "osabi.h".
14151 * i386obsd-tdep.c: Include "osabi.h".
14152
14153 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14154 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14155 check osabi when iterating over arches. Update call to
14156 gdbarch_init_osabi.
14157 (mips_dump_tdep): Don't dump osabi.
14158
14159 * ns32k-tdep.h: Don't include "osabi.h".
14160 (struct gdbarch_tdep): Remove.
14161 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14162 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14163 allocate tdep. Update call to gdbarch_init_osabi.
14164 (ns32k_dump_tdep): Remove.
14165 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14166 * ns32knbsd-tdep.c: Include "osabi.h".
14167
14168 * ppc-tdep.h: Don't include "osabi.h".
14169 (struct gdbarch_tdep): Remove osabi member.
14170 * rs6000-tdep.c: Include "osabi.h".
14171 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14172 osabi when iterating over arches. Update call to
14173 gdbarch_init_osabi.
14174 (rs6000_dump_tdep): Don't dump osabi.
14175 * ppc-linux-tdep.c: Include "osabi.h".
14176 * ppcnbsd-tdep.c: Include "osabi.h".
14177
14178 * sh-tdep.h: Don't include "osabi.h".
14179 (struct gdbarch_tdep): Remove osabi member.
14180 * sh-tdep.c: Include "osabi.h".
14181 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14182 iterate over arches. Update call to gdbarch_init_osabi.
14183 (sh_dump_tdep): Don't dump osabi.
14184 * shnbsd-tdep.c: Include "osabi.h".
14185
14186 * sparc-tdep.c: Include "osabi.h".
14187 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14188 iterate over arches. Update call to gdbarch_init_osabi.
14189 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14190 tdep structure.
14191
14192 * vax-tdep.h: Don't include "osabi.h".
14193 (struct gdbarch_tdep): Remove.
14194 * vax-tdep.c: Include "osabi.h".
14195 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14196 iterate over arches. Don't allocate tdep. Update call
14197 to gdbarch_init_osabi.
14198 (vax_dump_tdep): Remove.
14199 (_initialize_vax_tdep): Update call to gdbarch_register.
14200
a881cf8e
DJ
142012003-01-04 Daniel Jacobowitz <drow@mvista.com>
14202
14203 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14204 entirely.
14205 (breakpoint_re_set_one): Don't fetch the value for a disabled
14206 watchpoint.
14207
1e698235
DJ
142082003-01-04 Daniel Jacobowitz <drow@mvista.com>
14209
14210 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14211 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14212 (COERCE_FLOAT_TO_DOUBLE): Remove.
14213 * gdbarch.c: Regenerate.
14214 * gdbarch.h: Regenerate.
14215 * Makefile.in: Remove value_h from gdbarch_h.
14216 * valops.c (coerce_float_to_double): New variable.
14217 (default_coerce_float_to_double): Remove.
14218 (standard_coerce_float_to_double): Remove.
14219 (value_arg_coerce): Use coerce_float_to_double.
14220 (_initialize_valops): Add "set coerce-float-to-double".
14221 * value.h (default_coerce_float_to_double): Remove prototype.
14222 (standard_coerce_float_to_double): Remove prototype.
14223
14224 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14225 prototyped.
14226 * mdebugread.c (parse_symbol): Likewise.
14227 * stabsread.c (define_symbol): Mark all functions as prototyped.
14228
14229 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14230 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14231 set_gdbarch_coerce_float_to_double.
14232 * arm-tdep.c (arm_gdbarch_init): Likewise.
14233 * frv-tdep.c (frv_gdbarch_init): Likewise.
14234 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14235 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14236 * mips-tdep.c (mips_gdbarch_init): Likewise.
14237 (mips_coerce_float_to_double): Remove.
14238 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14239 (rs6000_coerce_float_to_double): Remove.
14240 * s390-tdep.c (s390_gdbarch_init): Likewise.
14241 * sh-tdep.c (sh_gdbarch_init): Likewise.
14242 (sh_coerce_float_to_double): Remove.
14243 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14244 (sparc_coerce_float_to_double): Remove.
14245 * v850-tdep.c (v850_gdbarch_init): Likewise.
14246 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14247 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14248 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14249 (hppa_coerce_float_to_double): Remove prototype.
14250 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14251
f436a26a
DJ
142522003-01-04 Daniel Jacobowitz <drow@mvista.com>
14253
14254 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14255
248f8055
DJ
142562003-01-04 Daniel Jacobowitz <drow@mvista.com>
14257
14258 Suggested by Stewart Brown <sb24@avaya.com>:
14259 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14260 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14261 (c_type_print_varspec_suffix): Likewise.
14262
72cfdc76
MK
142632003-01-04 Mark Kettenis <kettenis@gnu.org>
14264
bfd260bb
MK
14265 * configure.in: Don't set and AC_SUBST SUBDIRS.
14266 * configure: Regenerated.
14267
72cfdc76
MK
14268 * configure.in: Remove code dealing with shared libraries.
14269 * Makefile.in: Remove HLDFLAGS and HLDENV.
14270 * configure: Regenerated.
14271
c8b8a898
AC
142722003-01-04 Andrew Cagney <ac131313@redhat.com>
14273
14274 * frame.c (deprecated_frame_xmalloc): New function.
14275 (deprecated_set_frame_saved_regs_hack): New function.
14276 (deprecated_set_frame_extra_info_hack): New function.
14277 * frame.h (deprecated_frame_xmalloc): Declare.
14278 (deprecated_set_frame_saved_regs_hack): Declare.
14279 (deprecated_set_frame_extra_info_hack): Declare.
14280
14abd0fb
MK
142812003-01-04 Mark Kettenis <kettenis@gnu.org>
14282
8ee53726
MK
14283 * configure.in: Move code that provides the --enable-gdbtk option
14284 right after the code that handles the --enable-tui option, and
14285 polish it somewhat.
14286 * configure: Regenerated.
14287
14abd0fb
MK
14288 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14289 AC_CHECK_FUNCS and remove the old check for pread64.
14290 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14291 * acconfig.h (_GNU_SOURCE): Add.
14292 (HAVE_PREAD64): Remove.
14293 * configure, aclocal.m4, config.in: Regenerated.
14294
b2fb4676
AC
142952003-01-03 Andrew Cagney <ac131313@redhat.com>
14296
14297 * alpha-tdep.c: Use get_frame_saved_regs.
14298 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14299 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14300 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14301 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14302 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14303
8dcde887
MK
143042003-01-03 Mark Kettenis <kettenis@gnu.org>
14305
14306 * configure.in: Remove all use of the SUBDIRS variable; add
14307 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14308 code providing the --enable-multi-ice option, and move it right in
14309 front of the code that checks whether gdbserver is supported.
14310 Polish that too.
14311 * configure: Regenerated.
14312 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14313 @SUBDIRS@.
14314
8ccd593b
AC
143152003-01-03 Andrew Cagney <cagney@redhat.com>
14316
14317 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14318 * avr-tdep.c, cris-tdep.c: Ditto.
14319 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14320 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 14321
91151a06
MK
143222003-01-03 Mark Kettenis <kettenis@gnu.org>
14323
14324 * configure.in: Remove --enable-netrom option.
14325 * configure: Regenerated.
14326
8fe84d01
MK
143272003-01-03 Mark Kettenis <kettenis@gnu.org>
14328
14329 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14330 declaration for `struct re_pattern_buffer' instead.
14331 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14332
f0394be6
JB
143332003-01-03 J. Brobecker <brobecker@gnat.com>
14334
14335 * mdebugread.c (parse_symbol): Count until the stEnd matching
14336 the structure name.
14337
27e9bf90
MK
143382003-01-02 Mark Kettenis <kettenis@gnu.org>
14339
93d331ba
MK
14340 * configure.in: Remove --with-cpu option.
14341 subscripts. Remove evil changequotes here.
14342 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14343 * config.in, configure: Regenerated.
8ffd9b1b 14344
27e9bf90
MK
14345 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14346 * configure.in: Cleanup section that sources GDB and BFD configure
14347 subscripts. Remove evil changequotes here.
14348 * config.in, configure: Regenerated.
14349
50abf9e5
AC
143502003-01-02 Andrew Cagney <ac131313@redhat.com>
14351
14352 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14353 frame accessor methods.
14354 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14355 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14356 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14357 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14358 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14359 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14360 * z8k-tdep.c: Ditto.
8ffd9b1b 14361
287c1a40
MK
143622003-01-02 Mark Kettenis <kettenis@gnu.org>
14363
f5dbc56d
MK
14364 * configure.in: Remove UI_OUT configuration code.
14365 * ada-lang.c: Update assuming UI_OUT is always true.
14366 * Makefile.in (UIOUT_CFLAGS): Remove.
14367 * configure: Regenerated.
14368 * TODO: Remove blurb about elimination of -DUI_OUT.
14369
627af7ea
MK
14370 * configure.in: Move code that provides the --enable-gdbcli,
14371 --enable-gdbmi options right before the code that handles the
14372 --enable-tui option. Polish a bit.
14373 * configure: Regenerated.
14374
06825bd1
MK
14375 * configure.in: Rewrite check for GNU regex and the
14376 --without-included regex option, and move it into the "Checks for
14377 library functions" section. This makes us use the system regex
14378 again by default on systems with version 2 of the GNU C library.
14379 This was apparently broken.
14380 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14381 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14382 * config.in, configure: Regenerated.
14383
287c1a40
MK
14384 * configure.in: Move code that provides the --enable-tui option
14385 before the "Checks for libraries" section. Polish the code
14386 somewhat and set need_curses to yes if we build the TUI. Rewrite
14387 code that looks for a library providing termcap functionality to
14388 match more closely what's done in the Readline library, and move
14389 it into to the "Checks for libraries" section.
14390 * configure: Regenerated.
14391 * Makefile.in (TERMCAP): Remove variable.
14392 * config/i386/go32.mh (TERMCAP): Remove variable.
14393
684e56bf
AC
143942003-01-02 Andrew Cagney <ac131313@redhat.com>
14395
14396 * MAINTAINERS: Mention gdb_mbuild.sh.
14397 * gdb_mbuild.sh: Rewrite.
14398
e1ea1d75
MK
143992003-01-02 Mark Kettenis <kettenis@gnu.org>
14400
14401 * configure.in: Fix typo in last change.
14402 * config.in, configure: Regenerated.
14403
1b831c93
AC
144042003-01-02 Andrew Cagney <ac131313@redhat.com>
14405
14406 * valarith.c (value_binop): Delete obsolete code and comments.
14407 * configure.host: Ditto.
14408 * buildsym.h (make_blockvector): Ditto.
14409 * buildsym.c (make_blockvector): Ditto.
14410 * defs.h (enum language): Ditto.
14411 (chill_demangle): Ditto.
14412 * elfread.c (elf_symtab_read): Ditto.
14413 * dwarfread.c (CHILL_PRODUCER): Ditto.
14414 (set_cu_language): Ditto.
14415 (handle_producer): Ditto.
14416 * expprint.c (print_subexp): Ditto.
14417 * gdbtypes.c (chill_varying_type): Ditto.
14418 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14419 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14420 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14421 (chill_varying_type): Ditto.
14422 * language.h (_LANG_chill): Ditto.
14423 * language.c (binop_result_type, integral_type): Ditto.
14424 (character_type, string_type, structured_type): Ditto.
14425 (lang_bool_type, binop_type_check): Ditto.
14426 * stabsread.h (os9k_stabs): Ditto.
14427 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14428 (define_symbol, read_type, read_struct_fields): Ditto.
14429 (read_array_type, read_enum_type, read_huge_number): Ditto.
14430 (read_range_type, start_stabs): Ditto.
14431 * symfile.c (init_filename_language_table): Ditto.
14432 (add_psymbol_with_dem_name_to_list): Ditto.
14433 * symtab.c (symbol_init_language_specific): Ditto.
14434 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14435 * symtab.h (struct general_symbol_info): Ditto.
14436 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14437 * typeprint.c (typedef_print): Ditto.
14438 * utils.c (fprintf_symbol_filtered): Ditto.
14439 * valops.c (value_cast, search_struct_field, value_slice): Delete
14440 obsolete code.
14441 (varying_to_slice): Delete function.
14442 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14443 (varying_to_slice): Delete declaration.
14444 * MAINTAINERS: Update.
14445
8bb2c122
MK
144462003-01-02 Mark Kettenis <kettenis@gnu.org>
14447
97bf5e38
MK
14448 * configure.in: Reorganize "Checks for library functions section"
14449 a bit. Remove check for `btowc' and `isascii' functions.
14450 * configure: Regenerated.
14451
5ee754fc
MK
14452 * acconfig.h (_MSE_INT_H): Remove.
14453 * configure.in: Create "Checks for header files" section, and move
14454 appropriate tests there. Don't check for objlist.h, wchar.h,
14455 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14456 misdetection fix. Also add "Checks for types", "Checks for
14457 compiler characteristics" and "Checks for library functions"
14458 sections.
14459 * config.in, configure: Regenerated.
14460
8bb2c122
MK
14461 * configure.in: Create "Checks for programs" section, and move
14462 appropriate tests there.
14463
9a156167
MK
144642003-01-01 Mark Kettenis <kettenis@gnu.org>
14465
14466 * configure.in: Create "Checks for libraries" section, and move
14467 appropriate tests there. Cleanup check for wctype in libw. Use
14468 AC_SEARCH_LIBS to see whether we need libsocket.
14469 * configure: Regenerated.
14470
a80e2bcb 14471For older changes see ChangeLog-2002
c906108c
SS
14472\f
14473Local Variables:
14474mode: change-log
14475left-margin: 8
14476fill-column: 74
14477version-control: never
14478End:
This page took 1.218142 seconds and 4 git commands to generate.