* aout-target.h, aoutf1.h, bfdio.c, bfdwin.c: Update copyright date.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
474e5826
CV
12003-11-03 Corinna Vinschen <vinschen@redhat.com>
2
3 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
4 (sh_sh4al_dsp_register_name): Ditto.
5 (sh4_nofpu_show_regs): Ditto.
6 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
7 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
8
2160782c
AC
92003-11-03 Andrew Cagney <cagney@redhat.com>
10
11 * bcache.c: Include "gdb_assert.h".
12 (struct bcache): Add fields "expand_count" and
13 "expand_hash_count".
14 (expand_hash_table): Update the expand counts.
15 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
16 on object sizes and hashes.
17 * Makefile.in (bcache.o): Update dependencies.
18
85302095
AC
192003-11-03 Andrew Cagney <cagney@redhat.com>
20
21 * exec.c (xfer_memory): Eliminate xfer_fn.
22
526eef89
KB
232003-10-31 Kevin Buettner <kevinb@redhat.com>
24
25 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
26 (opcodes/frv-desc.h): Include.
27 (iacc0h_regnum, iacc0l_regnum): Define.
28 (last_spr_regnum, frv_num_regs): Update.
29 (new_variant): Don't supply default names for holes in the SPRs.
30 Supply names for iacc0h_regnum and iacc0l_regnum.
31 (frv_register_type): Use symbolic constants first_fpr_regnum and
32 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
33 builtin_type_int instead of builtin_type_int32.
34 (frv_register_sim_regno): New function.
35 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
36 * Makefile.in (gdb_sim_frv_h): Define.
37 (frv-tdep.o): Update dependencies.
38
9e815ec2
AC
392003-10-31 Andrew Cagney <cagney@redhat.com>
40
41 * avr-tdep.c (avr_frame_this_id): Do not call
42 deprecated_inside_entry_file.
43 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
44 * m32r-tdep.c (m32r_frame_this_id): Ditto.
45 * d10v-tdep.c (d10v_frame_this_id): Ditto.
46 * arm-tdep.c (arm_prologue_this_id): Ditto.
47 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
48
e372db49
JB
492003-10-31 Jim Blandy <jimb@redhat.com>
50
51 * elfread.c (elf_symtab_read): Allocate correct number of tail
52 elements to sectinfo structure. (Fix from Woody LaRue.)
53
e8bcf01f
AC
542003-10-31 Andrew Cagney <cagney@redhat.com>
55
56 * stack.c (return_command): Use get_frame_type, instead of
57 CALL_DUMMY_HAS_COMPLETED.
58 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
59 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
60
4c05fe53
MK
612003-10-31 Mark Kettenis <kettenis@gnu.org>
62
63 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
64 explicitly specify size of array.
65 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
66 TDEP->sc_num_regs.
67
c8b91b89
AC
682003-10-31 Andrew Cagney <cagney@redhat.com>
69
70 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
71 function.
72 (s390_gdbarch_init): Set extract_struct_value_address.
73 * arch-utils.c (generic_cannot_extract_struct_value_address):
74 Delete function.
75 * arch-utils.h (generic_cannot_extract_struct_value_address):
76 Delete definition.
77
fdfb6fc8
MK
782003-10-31 Mark Kettenis <kettenis@gnu.org>
79
80 * i386-linux-nat.c (fetch_core_registers): Remove.
81 (linux_elf_core_fns): Remove.
82 (_initialize_i386_linux_nat): Remove.
83
2f4950cd
AC
842003-10-31 Andrew Cagney <cagney@redhat.com>
85
86 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
87 "exec.h".
88 (exec_entry_point): New function.
89 (enable_break): Create a "tmp_bfd_target", use that and
90 entry_point_address when computing the relocation offset.
91 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
92 * Makefile.in (solib-svr4.o): Update dependencies.
93
bba2d28d
AC
942003-10-31 Andrew Cagney <cagney@redhat.com>
95
96 * defs.h (XZALLOC): Define.
97 * target.h (struct target_ops): Add "to_data";
98 * bfd-target.h, bfd-target.c: New files.
99 * Makefile.in (SFILES): Add "bfd-target.c".
100 (COMMON_OBS): Add "bfd-target.o".
101 (bfd-target.o): Specify dependencies.
102 (bfd_target_h): Define.
103 * defs.h (XZALLOC): Define.
104
6066c3de
AC
1052003-10-31 Andrew Cagney <cagney@redhat.com>
106
107 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
108 adjust_breakpoint_address.
109 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
110 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
111 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
112 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
113
4b8a223f
AC
1142003-10-31 Andrew Cagney <cagney@redhat.com>
115
116 * target.h (struct target_ops): Replace "to_read_partial" and
117 "to_write_partial" with "to_xfer_partial". Update comments.
118 * target.c (debug_to_write_partial): Delete function.
119 (debug_to_xfer_partial): Replace debug_to_read_partial.
120 (add_target, update_current_target, setup_target_debug): Set
121 "to_xfer_partial" instead of "to_read_partial" and
122 "to_write_partial".
123 (default_xfer_partial): Replace "default_write_partial".
124 (default_read_partial): Delete.
125 (target_read_partial, target_write_partial): Call
126 "to_xfer_partial".
127 * remote.c (init_remote_ops): Set "to_xfer_partial".
128 (init_remote_async_ops): Ditto.
129 (remote_xfer_partial): Replace "remote_read_partial".
130
66a72d25
MK
1312003-10-31 Mark Kettenis <kettenis@gnu.org>
132
133 * i386-tdep.c (i386_supply_fpregset): Support floating-point
134 registers in `fxsave' format.
135 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
136
9a12a2a0
MK
1372003-10-30 Mark Kettenis <kettenis@gnu.org>
138
e9f1aad5
MK
139 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
140 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
141 TDEP->gregset_num_regs and tdep->sizeof_gregset.
142
bb489b3c
MK
143 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
144 specify size of array.
145 (i386_linux_init_abi): Remove initialization of
146 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
147 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
148
da285bc4
MK
149 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
150 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
151 core-regset.o.
152
9a12a2a0
MK
153 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
154 the ELF header.
155
0e24ac5d
MK
1562003-10-29 Mark Kettenis <kettenis@gnu.org>
157
6d6d8e9c
MK
158 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
159 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
160 core-regset.o.
161
25e60c9b
MK
162 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
163
0e24ac5d
MK
164 * corelow.c: Include "arch-utils.h", "regset.h" and
165 "gdb_assert.h".
166 (core_gdbarch): New variable.
167 (sniff_core_bfd): Don't sniff if we have support for register sets
168 in CORE_GDBARCH.
169 (core_close): Reset CORE_GDBARCH.
170 (core_open): Initialize CORE_GDBARCH.
171 (get_core_register_section): Use register sets if they are
172 supported by CORE_GDBARCH.
173 (get_core_registers): Don't print error message if we have support
174 for register sets in CORE_GDBARCH.
175
0a0a4ac3
AC
1762003-10-29 Andrew Cagney <cagney@redhat.com>
177
178 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
179 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
180
7b097ae3
MK
1812003-10-29 Mark Kettenis <kettenis@gnu.org>
182
183 * objfiles.h (clear_objfile_data): New prototype.
184 * objfiles.c (clear_objfile_data): New function.
185 * symfile.c (reread_symbols): Clear per-objfile data.
186
46f45a4a
JJ
1872003-10-28 Jeff Johnston <jjohnstn@redhat.com>
188
189 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
190 printf_unfiltered instead of printf_filtered for output messages.
191 (add_symbol_file_command): Ditto.
192 (reread_symbols): Ditto.
193 (overlay_auto_command): Ditto.
194 (overlay_manual_command): Ditto.
195 (overlay_off_command): Ditto.
196
2b026650
MK
1972003-10-27 Mark Kettenis <kettenis@gnu.org>
198
199 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
200 (gdbarch_from_bfd): New function.
201 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
202 deprecated_select_gdbarch_hack.
203 * arch-utils.h (gdbarch_from_bfd): New prototype.
204
0bcad584 2052003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
206
207 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
208 arch_info. Use warning instead of fprintf_filtered. Do not use
209 deprecated bfd_printable_arch_mach.
210
7f398216
KB
2112003-10-26 Kevin Buettner <kevinb@redhat.com>
212
213 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
214 Delete.
215 (frv_register_type): Rename from frv_register_virtual_type. Add
216 ``struct gdbarch *'' parameter.
217 (frv_gdbarch_init): Delete calls to the following functions:
218 set_gdbarch_deprecated_size(),
219 set_gdbarch_deprecated_register_bytes(),
220 set_gdbarch_deprecated_register_raw_size(),
221 set_gdbarch_deprecated_max_register_raw_size(),
222 set_gdbarch_deprecated_register_virtual_size(),
223 set_gdbarch_deprecated_max_register_virtual_size(),
224 set_gdbarch_deprecated_register_virtual_size(),
225 set_gdbarch_deprecated_register_virtual_type().
226 Add call to function set_gdbarch_register_type().
227
bcf48cc7
MK
2282003-10-26 Mark Kettenis <kettenis@gnu.org>
229
6c7de422
MK
230 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
231 FDOFF_REGNUM): Remove defines.
232 * win32-nat.c (do_child_fetch_inferior_registers): Include
233 "i387-tdep.h".
3e685d41 234 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
235 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
236 undefine I387_ST0_REGNUM.
237
f783586b
MK
238 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
239 * x86-64-tdep.c (x86_64_store_return_value): Use
240 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
241
bcf48cc7
MK
242 Change register numbers to enumartion values.
243 * i386-tdep.h (enum i386_regnum): New.
244 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
245 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
246 I386_ST0_REGNUM): Remove defines.
247 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
248 I386_EDI_REGNUM): Remove defines.
249
b6591e8b
AC
2502003-10-24 Andrew Cagney <cagney@redhat.com>
251
252 * target.c: Include "gdbcore.h".
253 (get_target_memory, get_target_memory_unsigned): New functions.
254 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
255 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
256 Use get_target_memory_unsigned.
257 * Makefile.in (target.o): Update dependencies.
258
5f724446
AC
2592003-10-24 Andrew Cagney <cagney@redhat.com>
260
ce2826aa
AC
261 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
262 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
263 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
264 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
265 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
266
5f724446
AC
267 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
268 (can_run_code_for): Use the OO term "singleton".
269
fc70c2a0
AC
2702003-10-23 Andrew Cagney <cagney@redhat.com>
271
272 * Makefile.in (stack.o): Add $(regcache_h).
273 * stack.c: Include "regcache.h"
274 (return_command): Rewrite. Use get_frame_id and
275 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
276 about unhandled return-values.
277 * value.h (set_return_value): Delete declaration.
278 * values.c (set_return_value): Delete function.
279
4afcc598
JJ
2802003-10-23 Jeff Johnston <jjohnstn@redhat.com>
281
282 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
283 (pseudo_regs): Add comment regarding register stack registers.
284 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
285 (floatformat_valid): New static routine.
286 (floatformat_ia64_ext): Add name field and set up is_valid routine
287 to floatformat_valid().
288 (examine_prologue): For the previous cfm, use
289 frame_unwind_register()
290 if the cfm is not stored in a register-stack register. Save the
291 previous cfm value in the prev_cfm field. Add debug output.
292 (ia64_frame_this_id): Use frame_id_build_special() to also register
293 the bsp. Add debug output.
294 (ia64_sigtramp_frame_this_id): Ditto.
295 (ia64_frame_prev_register): Look at cache saved_regs for a few more
296 registers and also add some checks for framelessness before accepting
297 current register values for fields such as return address. For cfm,
298 use the cached prev_cfm field if available. Add comment to explain
299 PSR logic. Add debug output.
300 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
301 as part of initialization.
302 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
303 calculated. Cache the bsp and cfm values.
304 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
305 instead of using ia64_frame_prev_register() which doesn't expect most
306 registers to be saved. The saved values for bsp and sp
307 can be taken from the cache. Add debug output.
308 (ia64_push_dummy_call): Use frame_id_build_special() to also register
309 the bsp.
310
6cfae0bc
JB
3112003-10-23 Jim Blandy <jimb@redhat.com>
312
313 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
314 architecture the current arch can run code for --- but not if it's
315 a superset.
316 (can_run_code_for): New function.
317
fcd182f9
JW
3182003-10-22 James E Wilson <wilson@specifixinc.com>
319
320 * MAINTAINERS: Move myself from paper trail section back to write
321 after approval section.
322
4646aa9d
AC
3232003-10-22 Andrew Cagney <cagney@redhat.com>
324
325 * exec.h: New file.
326 * win32-nat.c: Include "exec.h".
327 * solib.c: Include "exec.h".
328 * target.h (build_section_table): Delete declaration.
329 * somsolib.c: Include "exec.h".
330 (exec_ops): Delete extern declaration.
331 * rs6000-nat.c: Update copyright. Include "exec.h".
332 (exec_ops): Delete extern declaration.
333 * pa64solib.c: Update copyright. Include "exec.h".
334 (exec_ops): Delete extern declaration.
335 * exec.c: Update copyright. Include "exec.h".
336 * corelow.c: Update dependencies. Include "exec.h".
337 * Makefile.in (exec_h): Define.
338 (exec.o, somsolib.o): Update dependencies.
339 (pa64solib.o, corelow.o): Update dependencies.
340
0088c768
AC
3412003-10-22 Andrew Cagney <cagney@redhat.com>
342
343 * target.c: Include "gdb_assert.h" (target_read): Call
344 "target_read_partial", not "target_write_partial".
345 (default_read_partial, default_write_partial): New function.
346 (target_read_partial, target_write_partial): Simplify, assume that
347 there is always a read/write method.
348 (update_current_target, add_target): Always set "to_read_partial"
349 and "to_write_partial".
350 (target_write, target_read): Fail on a zero byte transfer.
351 * Makefile.in (target.o): Update dependencies.
352 * target.h: Update copyright date.
353 (target_object): Fix typo.
354
e2d0e7eb
AC
3552003-10-22 Andrew Cagney <cagney@redhat.com>
356
357 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
358 multi-arch method, add "targ" parameter.
359 (struct target_ops): Declare.
360 * gdbarch.h, gdbarch.c: Re-generate.
361 * Makefile.in (c-valprint.o): Update dependencies.
362 * arch-utils.h: Update copyright.
363 (convert_from_func_ptr_addr_identity): Declare.
364 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
365 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
366 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
367 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
368 * infcall.c (find_function_addr, call_function_by_hand): Update.
369 * c-valprint.c: Include "target.h".
370 (print_function_pointer_address): Update.
371
f1c07ab0
AC
3722003-10-22 Andrew Cagney <cagney@redhat.com>
373
374 * target.c (target_close): New function.
375 (debug_to_close): Use "target_close".
376 (push_target): Use "target_close".
377 (unpush_target): Use "target_close".
378 (pop_target): Use "target_close".
379 * target.h (struct target_ops): Add "to_xclose".
380 (target_open): Delete macro. Move comment to "to_open".
381 (target_close): Replace macro with function that takes a target.
382 * top.c (quit_target): Pass "current_target" to "target_close".
383
5520a790
EZ
3842003-10-21 Elena Zannoni <ezannoni@redhat.com>
385
386 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
387 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
388 * symtab.h (lookup_minimal_symbol_text): Update.
389 * breakpoint.c (create_overlay_event_breakpoint,
390 create_longjmp_breakpoint): Update callers.
391 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
392 * symtab.c (find_pc_sect_line): Ditto.
393
caa92b73
AC
3942003-10-21 Andrew Cagney <cagney@redhat.com>
395
396 * target.c (errno): Delete extern declaration.
397
aa2a9a3c
JJ
3982003-10-20 Jeff Johnston <jjohnstn@redhat.com>
399
400 * ia64-tdep.c: Change all occurrences of
401 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
402 (ia64_frame_prev_register): Minor whitespace change.
403
4beec2b7
MC
4042003-10-20 Michael Chastain <mec@shout.net>
405
406 * config/djgpp/fnchange.lst: Add lines for:
407 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
408 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
409 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
410 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
411 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
412 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
413 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
414
92ad9cd9
AC
4152003-10-20 Andrew Cagney <cagney@redhat.com>
416
417 * values.c (register_value_being_returned): Update comments. Use
418 "gdbarch_return_value" when available.
419 (using_struct_return): Ditto.
420 (set_return_value): Ditto. Use "gdbarch_return_value" when
421 available.. Print a warning, and not an error, when an unhandled
422 return type is encountered.
423 * infcmd.c: Include "gdb_assert.h".
424 (print_return_value): When gdbarch_return_value_p, and using
425 struct return, assume that the value is not available.
426 * defs.h (return_value_convention): Define.
427 * gdbarch.sh (gdbarch_return_value): New predicate method.
428 * gdbarch.h, gdbarch.c: Re-generate
429 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
430
198beae2
AC
4312003-10-20 Andrew Cagney <cagney@redhat.com>
432
433 * symtab.c: Replace "struct sec" with "struct bfd_section".
434 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
435
24d693a6 4362003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
437
438 * config/djgpp/fnchange.lst: Add lines for:
439 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
440 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
441 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
442
21ad8dc3
MK
4432003-10-19 Mark Kettenis <kettenis@gnu.org>
444
445 * amd64fbsd-nat.c (fetch_inferior_registers,
446 store_inferior_registers): Remove functions.
447 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
448
cced5e27
MK
4492003-10-18 Mark Kettenis <kettenis@gnu.org>
450
451 Add NetBSD/amd64 native configuration:
452 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
453 * amd64nbsd-tdep.c: New file.
454 * amd64nbsd-nat.c: New file.
455 * amd64bsd-nat.c: New file.
456 * config/i386/nbsd64.mh: New file.
457 * config/i386/nbsd64.mt: New file.
458 * configure.host: Add x86_64-*-netbsd*.
459 * configure.tgt: Add x86_64-*-netbsd*.
460 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
461 New targets.
462 * NEWS (New native configurations): Mention NetBSD/amd64.
463
666de3fd
MC
4642003-10-17 Michael Chastain <mec@shout.net>
465
466 * config/djgpp/fnchange.lst: Remove dead lines for:
467 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
468 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
469 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
470 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
471 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
472 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
473 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
474 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
475 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
476 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
477 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
478 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
479 gdb/config/sparc/tm-sparclite.h,
480 gdb/gdbtk/generic/ChangeLog-2001,
481 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
482 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
483 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
484 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
485 gdb/testsuite/gdb.mi/mi0-var-block.exp,
486 gdb/testsuite/gdb.mi/mi0-var-child.exp,
487 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
488 gdb/testsuite/gdb.mi/mi0-var-display.exp,
489 itcl/iwidgets3.0.0/demos/extfileselectionbox,
490 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
491 itcl/iwidgets3.0.0/demos/fileselectionbox,
492 itcl/iwidgets3.0.0/demos/fileselectiondialog,
493 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
494 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
495 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
496 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
497 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
498 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
499 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
500 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
501 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
502 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
503 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
504 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
505 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
506 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
507 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
508 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
509 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
510 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
511 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
512 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
513 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
514 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
515 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
516 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
517 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
518 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
519 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
520 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
521 itcl/iwidgets3.0.0/demos/html/shell.n.html,
522 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
523 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
524 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
525 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
526 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
527 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
528 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
529 itcl/iwidgets3.0.0/demos/scrolledcanvas,
530 itcl/iwidgets3.0.0/demos/scrolledframe,
531 itcl/iwidgets3.0.0/demos/scrolledhtml,
532 itcl/iwidgets3.0.0/demos/scrolledlistbox,
533 itcl/iwidgets3.0.0/demos/scrolledtext,
534 itcl/iwidgets3.0.0/demos/selectionbox,
535 itcl/iwidgets3.0.0/demos/selectiondialog,
536 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
537 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
538 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
539 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
540 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
541 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
542 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
543 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
544 itcl/iwidgets3.0.0/doc/scrolledframe.n,
545 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
546 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
547 itcl/iwidgets3.0.0/doc/scrolledtext.n,
548 itcl/iwidgets3.0.0/doc/selectionbox.n,
549 itcl/iwidgets3.0.0/doc/selectiondialog.n,
550 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
551 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
552 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
553 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
554 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
555 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
556 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
557 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
558 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
559 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
560 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
561 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
562 itcl/iwidgets3.0.0/generic/selectionbox.itk,
563 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
564 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
565 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
566 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
567 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
568 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
569 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
570 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
571 itcl/iwidgets3.0.0/tests/scrolledframe.test,
572 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
573 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
574 itcl/iwidgets3.0.0/tests/scrolledtext.test,
575 itcl/iwidgets3.0.0/tests/selectionbox.test,
576 itcl/iwidgets3.0.0/tests/selectiondialog.test,
577 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
578 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
579 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
580 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
581 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
582 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
583 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
584 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
585 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
586 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
587 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
588 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
589 tk/mac/tkMacProjects.sit.hqx.
590
1e3ff5ad
AC
5912003-10-17 Andrew Cagney <cagney@redhat.com>
592
8db32d44
AC
593 * target.c (target_section_by_addr): New function.
594 (do_xfer_memory): Use "target_section_by_addr".
595 * target.h (target_section_by_addr): Declare.
596
1e3ff5ad
AC
597 * target.h (struct target_ops): Add "to_read_partial" and
598 "to_write_partial", delete "to_query".
599 (target_read_partial, target_write_partial): Declare.
600 (target_read, target_write): Declare.
601 (target_query): Delete macro.
602 * target.c (target_read_partial): New function.
603 (target_write_partial, target_read, target_write): New function.
604 (update_current_target): Delete inheritance of "to_query". Add
605 comments about "to_read_partial" and "to_write_partial".
606 (debug_to_partial_read, debug_to_partial_write): New functions.
607 (debug_to_query): Delete function.
608 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
609 instead of "to_query".
610 * remote.c (remote_read_partial): Replace "remote_query".
611 (init_remote_ops): Set "to_read_partial" instead of "to_query".
612 (init_remote_async_ops): Ditto.
613 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
614 "target_read_partial" instead of "target_query".
615 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
616 Use "target_read_partial" instead of "target_query".
617
48c66725
JJ
6182003-10-17 Jeff Johnston <jjohnstn@redhat.com>
619
620 * frame.h (struct frame_id): Add new field: special_addr.
621 (frame_id_build_special): New prototype.
622 * frame.c (frame_id_build_special): New function.
623 (frame_id_build): Change to call frame_id_build_special().
624 (frame_id_eq): Change to also test special_addr field.
625 (frame_id_inner): Update comment.
626
7998dfc3
AC
6272003-10-17 Andrew Cagney <cagney@redhat.com>
628
629 * target.c (update_current_target): Perform the target cleanup.
630 Put the target stack beneath the squashed "current_target".
631 (add_target): Delete disabled call to "cleanup_target".
632 (cleanup_target): Delete function.
633 (push_target, unpush_target): Do not call "cleanup_target".
634
9c04404e 6352003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
636
637 * target.c (target_stack): Change to a static target_ops.
638 (update_current_target): Walk the "struct target_ops" stack.
639 (pop_target, do_xfer_memory, target_info): Ditto.
640 (find_target_beneath): Ditto.
641 (push_target): Rewrite to use the "struct target_ops" stack.
642 (unpush_target): Ditto.
643 * target.h (struct target_stack_item): Delete definition.
644 (target_stack): Delete declaration.
645 (struct target_ops): Add field "beneath".
646
c98a2b49 6472003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
648
649 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
650 declaration.
651 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
652 (h8300_examine_prologue): Use h8300_normal_mode flag
653 (h8300_gdbarch_init): Set architecture info for normal mode
654
506fb367
DJ
6552003-10-16 Daniel Jacobowitz <drow@mvista.com>
656
657 * remote.c (remote_protocol_vcont): New variable.
658 (set_remote_protocol_vcont_packet_cmd): New function.
659 (show_remote_protocol_vcont_packet_cmd): New function.
660 (init_all_packet_configs): Handle remote_protocol_vcont.
661 (remote_vcont_probe): New function.
662 (remote_vcont_resume): New function.
663 (remote_resume): Use it.
664 (remote_async_resume): Call remote_resume.
665 (_initialize_remote): Add verbose-resume packet commands.
666
65815ea1
AC
6672003-10-16 Andrew Cagney <cagney@redhat.com>
668
669 * infrun.c (handle_inferior_event): Add comment about
670 "frame_id_inner" being too weak.
671
40324f1b
EZ
6722003-10-16 Elena Zannoni <ezannoni@redhat.com>
673
674 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
675 second parameter, which is always null. Remove
676 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
677 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
678 accordingly.
679 * somsolib.c (som_solib_create_inferior_hook,
680 som_solib_desire_dynamic_linker_symbols): Update callers.
681 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
682
6832003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
684
685 * remote-m32r-sdi.c : New file, interface to m32r on-chip
686 debug interface, SDI (Scalable Debug Interface).
687 * NEWS: Mention m32r SDI protocol was supported.
688 * Makefile.in (remote-m32r-sdi.o): Add build rule.
689 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
690
51931cbb
JJ
6912003-10-15 Jeff Johnston <jjohnstn@redhat.com>
692
693 * ia64-linux-tdep.c: Include gdbcore.h.
694 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
695 (ia64_linux_sigcontext_register_addr): Find the address of the
696 sigcontext area stored in the sigframe instead of using
697 a magic offset constant.
698
84e7fd53
AC
6992003-10-15 Andrew Cagney <cagney@redhat.com>
700
701 * remote.c (remote_search): Delete function.
702 * target.h (target_search): Delete disabled macro.
703 (struct target_ops): Delete disabled field "to_search".
704
0f4d7c52
KB
7052003-10-14 Kevin Buettner <kevinb@redhat.com>
706
707 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
708 instead of deprecated_inside_entry_file().
709
2e952408
CV
7102003-10-14 Corinna Vinschen <vinschen@redhat.com>
711
712 * sh-tdep.c: Fix copy/paste hangover in comment.
713 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
714 mode.
715 (sh3e_sh4_extract_return_value): Ditto.
716
7e86466e
RH
7172003-10-13 Richard Henderson <rth@redhat.com>
718
719 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
720 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
721 match c_val_print a bit closer.
722
46a16dba
KB
7232003-10-13 Kevin Buettner <kevinb@redhat.com>
724
725 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
726 (frv_gdbarch_adjust_breakpoint_address): New function.
727 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
728 method.
729
76897487
KB
7302003-10-13 Kevin Buettner <kevinb@redhat.com>
731
732 * breakpoint.h (struct breakpoint): Add new member
733 ``requested_address''.
734 * breakpoint.c (breakpoint_adjustment_warning)
735 (adjust_breakpoint_address): New static functions.
736 (print_it_typical): Issue warning if breakpoint's address is different
737 from its requested address.
738 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
739 (breakpoint_re_set_one): Set breakpoint's
740 ``requested_address'' field. Set ``address'' field to the
741 result of calling adjust_breakpoint_address() on the requested
742 address.
743
a1131521
KB
7442003-10-13 Kevin Buettner <kevinb@redhat.com>
745
746 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
747 * gdbarch.h, gdbarch.c: Regenerate.
748
6ce6d90f
MK
7492003-10-11 Mark Kettenis <kettenis@gnu.org>
750
155c1d33
MK
751 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
752 TDEP->sc_num_regs.
753
8a96bc77
MK
754 * i386fbsd-tdep.c: New file.
755 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
756 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
757 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
758 i386bsd-tdep.c.
759 (_initialize_i386fbsd_tdep): New function.
760 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
761 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
762 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
763 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
764 TDEP->sc_num_regs.
765 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
766 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
767 to initialize TDEP->sc_num_regs.
768 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
769 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
770 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
771 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
772 FreeBSD ELF OS/ABI's here.
773 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
774 (i386fbsd-tdep.o): New target.
775 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
776 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
777
477f40d1
MK
778 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
779 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
780 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
781 in initialization of TDEP->sc_num_regs.
782
c6b33596
MK
783 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
784 (x86_64_init_abi): Initialize regset_from_core_section if
785 appropriate.
786
8446b36a
MK
787 * i386-tdep.c (i386_regset_from_core_section): New function.
788 (i386_gdbarch_init): Initialize regset_from_core_section if
789 appropriate.
790 * i386-tdep.h (i386_regset_from_core_section): New declaration.
791
c783cbd6
MK
792 * i386-tdep.h (struct regset): Declare opaque.
793
6ce6d90f
MK
794 * gdbarch.sh (regset_from_core_section): New method.
795 (struct regset): Declare opaque.
796 * gdbarch.c, gdbarch.h: Regenerated.
797
b98ed7be
AM
7982003-10-11 Alan Modra <amodra@bigpond.net.au>
799
800 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
801 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
802 Correct test for pc within section.
803
f6214256
MK
8042003-10-11 Mark Kettenis <kettenis@gnu.org>
805
806 * gdbarch.sh: Remove trailing whitepsace from comments.
807
a8f4cde1
RM
8082003-10-08 Roland McGrath <roland@redhat.com>
809
810 * gcore.c (make_mem_sec): Function removed, folded into ...
811 (gcore_create_callback): ... here. To omit a section, clear its
812 SEC_LOAD bit rather than zeroing its size.
813 Omit read-only sections only if they correspond to a known disk file.
814 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
815
74276724
MS
8162003-10-10 Michael Snyder <msnyder@redhat.com>
817
818 * d10v-tdep.c: Fix typo in comment.
819
e754ae69
AC
8202003-10-10 Andrew Cagney <cagney@redhat.com>
821
822 * rs6000-tdep.c (e500_store_return_value): Delete function.
823 (e500_extract_return_value): Delete function.
824 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
825 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
826 "ppc_sysv_abi_restore_return_value" where applicable.
827 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
828 (ppc_sysv_abi_extract_return_value): Declare.
829 (ppc_sysv_abi_broken_store_return_value): Declare.
830 (ppc_sysv_abi_broken_extract_return_value): Declare.
831 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
832 * ppc-sysv-tdep.c (return_value_convention): Move definition to
833 start of file.
834 (do_ppc_sysv_return_value): New function.
835 (ppc_sysv_abi_extract_return_value): New function.
836 (ppc_sysv_abi_store_return_value): New function.
837 (ppc_sysv_abi_broken_extract_return_value): New function.
838 (ppc_sysv_abi_broken_store_return_value): New function.
839 (ppc_sysv_abi_use_struct_convention): Call
840 do_ppc_sysv_return_value.
841
8d4ce20a
JB
8422003-10-10 J. Brobecker <brobecker@gnat.com>
843
844 * blockframe.c (inside_main_func): No longer use symbol_lookup()
845 to lookup the main function symbol.
846
afce3d2a
CV
8472003-10-10 Corinna Vinschen <vinschen@redhat.com>
848
849 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
850 types correctly.
851 (sh_push_dummy_call_fpu): Fix argument passing rules.
852 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
853 float types.
854 (sh3e_sh4_store_return_value): Ditto.
855
7fe958be
EZ
8562003-10-10 Elena Zannoni <ezannoni@redhat.com>
857
858 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
859 comment.
860
3f997a97
CV
8612003-10-10 Corinna Vinschen <vinschen@redhat.com>
862
863 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
864 more readable code. Accomodate passing of bitfields.
865
8be9034a
AC
8662003-10-10 Andrew Cagney <cagney@redhat.com>
867
868 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
869 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
870 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
871 * ppc-sysv-tdep.c: Include "gdb_assert.h".
872 (ppc64_sysv_abi_push_dummy_call): New function.
873 (ppc64_sysv_abi_broken_push_dummy_call): New function.
874 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
875 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
876
85a453d5
KI
8772003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
878
879 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
880 * README: Ditto.
881 * d10v-tdep.c: Ditto.
882 * h8300-tdep.c: Ditto.
883 * remote-e7000.c: Ditto.
884 * remote-hms.c: Ditto.
885 * ser-e7kpc.c: Ditto.
886 * sh-stub.c: Ditto.
887 * sh-tdep.c: Ditto.
888 * sh-tdep.h: Ditto.
889 * sh3-rom.c: Ditto.
890 * sh64-tdep.c: Ditto.
891 * top.c: Ditto.
892 * wince.c: Ditto.
893 * config/d10v/d10v.mt: Ditto.
894 * config/sh/embed.mt: Ditto.
895 * config/sh/linux.mt: Ditto.
896 * config/sh/tm-linux.h: Ditto.
897 * config/sh/tm-sh.h: Ditto.
898 * config/sh/wince.mt: Ditto.
899
221c12ff
AC
9002003-10-09 Andrew Cagney <cagney@redhat.com>
901
902 * ppc-tdep.h (struct type): Declare opaque.
903 * x86-64-tdep.h (struct regcache): Declare opaque.
904 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
905 coding style.
906
ef5200c1
AC
9072003-10-09 Andrew Cagney <cagney@redhat.com>
908
909 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
910 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
911 (SOFTWARE_SINGLE_STEP_P): Ditto.
912 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
913 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
914 (SOFTWARE_SINGLE_STEP_P): Ditto.
915 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
916 software_single_step to rs6000_software_single_step.
a8f4cde1 917
9644bbdd
AC
9182003-10-09 Andrew Cagney <cagney@redhat.com>
919
920 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
921
db72fa6b
MS
9222003-10-09 Michael Snyder <msnyder@redhat.com>
923
f3efb16c
MS
924 * frame.h: Fix typo in comment.
925 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
926 * d10v-tdep.c: Random whitespace/comment tweaks.
927
9a5cef92
EZ
9282003-10-09 Elena Zannoni <ezannoni@redhat.com>
929
930 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 931 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 932 on stack.
a8f4cde1 933
9a5cef92
EZ
934 Based on input by Stephen Clarke (stephen.clarke@superh.com):
935 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
936 in detail.
a8f4cde1 937
0f317a0c
DJ
9382003-10-09 Daniel Jacobowitz <drow@mvista.com>
939
940 * remote-mips.c (mips_initialize): Remove unneeded call to
941 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
942
bbab2f46
DJ
9432003-10-09 Daniel Jacobowitz <drow@mvista.com>
944
945 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
946 a memory pointer.
947
550950b8
JJ
9482003-10-08 Jeff Johnston <jjohnstn@redhat.com>
949
950 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
951 for any lwp we resume.
952 (running_callback): Add lwps that have pending status events
953 against them to be considered running.
954
15c69bc7
KI
9552003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
956
957 * m32r-tdep.c : Include "dis-asm.h".
958 * Makefile.in (m32r-tdep.o): Update dependencies.
959
51065942
JB
9602003-10-06 J. Brobecker <brobecker@gnat.com>
961
962 * completer.h (get_gdb_completer_word_break_characters): Delete.
963 * completer.c: include language.h.
964 (gdb_completer_word_break_characters): Delete.
965 (get_gdb_completer_word_break_characters): Delete.
966 (location_completer): Use the word break characters of the current
967 language.
968 (complete_line): Likewise.
969 (line_completion_function): Likewise.
970 (skip_quoted_chars): Likewise.
971 * Makefile.in (completer.o): Add dependency on language.h.
972 * top.c (init_main): Set the readline word break characters
973 to GDB's default word break characters.
974
6084f43a
JB
9752003-10-06 J. Brobecker <brobecker@gnat.com>
976
977 * language.h (language_defn): new field, la_word_break_characters.
978 * language.c (unknown_language_defn): Set new field to
979 default_word_break_characters.
980 (auto_language_defn): Likewise.
981 (local_language_defn): Likewise.
982 * ada-lang.c (ada_language_defn): Likewise.
983 * c-lang.c (c_language_defn): Likewise.
984 (cplus_language_defn): Likewise.
985 (asm_language_defn): Likewise.
986 (minimal_language_defn): Likewise.
987 * f-lang.c (f_language_defn): Likewise.
988 * jv-lang.c (java_language_defn): Likewise.
989 * m2-lang.c (m2_language_defn): Likewise.
990 * objc-lang.c (objc_language_defn): Likewise.
991 * p-lang.c (pascal_language_defn): Likewise.
992 * scm-lang.c (scm_language_defn): Likewise.
993
944fcfab
AC
9942003-10-06 Andrew Cagney <cagney@redhat.com>
995
996 * ppc-sysv-tdep.c: Re-indent.
997
9f0a5303
JB
9982003-10-06 J. Brobecker <brobecker@gnat.com>
999
1000 * language.h (default_word_break_characters): Add prototype.
1001 * language.c (default_word_break_characters): New function.
1002
7270b6ed
AS
10032003-10-06 Andreas Schwab <schwab@suse.de>
1004
1005 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1006 with %eax.
1007
a5d61f66
AC
10082003-10-06 Andrew Cagney <cagney@redhat.com>
1009
1010 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1011 "h8500-tdep.c".
1012 (z8k-tdep.o): Delete custom build rule.
1013
28a86f5c
AC
10142003-10-06 Andrew Cagney <cagney@redhat.com>
1015
1bfd8a83
AC
1016 * Makefile.in: Update all dependencies.
1017
17144ef8
AC
1018 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1019 No longer list PA as as obsolete candidate. List m32r as
1020 broken instead of obsolete.
a8f4cde1 1021
a5679ae5
AC
1022 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1023 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1024 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1025 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1026 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1027 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1028 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1029 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1030 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1031 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1032 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1033 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1034 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1035 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1036 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1037 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1038 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1039 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1040 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1041 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1042 * config/z8k/z8k.mt: Ditto.
1043
4a8269c0
AC
1044 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1045 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1046 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1047 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1048 sparclite were removed.
1049 * configure.host, configure.tgt: Remove corresponding tuples.
1050
41989fcd
AC
1051 * breakpoint.c, breakpoint.h: Remove obsolete code.
1052 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1053 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1054 * stabsread.h, xcoffread.c: Ditto.
1055
28a86f5c
AC
1056 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
1057 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
1058 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
1059 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
1060
4efdaa0d
DL
10612003-10-06 David Lecomber <dsl@sources.redhat.com>
1062
1063 * f-valprint.c: Reformatting
1064
ae53de43
MK
10652003-10-06 Mark Kettenis <kettenis@gnu.org>
1066
a8bb57e7
MK
1067 * x86-64-tdep.c: Remove duplicate comment.
1068
ae53de43
MK
1069 * x86-64-tdep.c (x86_64_store_return_value): Don't use
1070 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
1071 names for return values. This fixes a bug since we looked at %rbx
1072 instead of %rdx.
1073
473f17b0
MK
10742003-10-05 Mark Kettenis <kettenis@gnu.org>
1075
2c261fae
MK
1076 * x86-64-tdep.c: Include "regset.h".
1077
473f17b0
MK
1078 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
1079 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
1080 sizeof_fpregset.
1081 * i386-tdep.c: Include "regset.h".
1082 (i386_supply_gregset): New function.
1083 (i386_supply_fpregset): New function.
1084 (i386_gdbarch_init): Initialze register set-related members of
1085 TDEP.
1086 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
1087 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
1088
afd48b75
AC
10892003-10-03 Andrew Cagney <cagney@redhat.com>
1090
1091 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
1092 set extract_return_value, store_return_value and
1093 use_struct_convention to ppc64_sysv_abi_extract_return_value,
1094 ppc64_sysv_abi_store_return_value and
1095 ppc64_sysv_abi_use_struct_convention.
1096 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
1097 (ppc64_sysv_abi_store_return_value): Declare.
1098 (ppc64_sysv_abi_use_struct_convention): Declare.
1099 * ppc-sysv-tdep.c (enum return_value_convention): Define.
1100 (ppc64_sysv_abi_extract_return_value): New function.
1101 (ppc64_sysv_abi_store_return_value): New function.
1102 (ppc64_sysv_abi_use_struct_convention): New function.
1103 (ppc64_sysv_abi_return_value): New function.
1104
9b540880
AC
11052003-10-03 Andrew Cagney <cagney@redhat.com>
1106
1107 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
1108 convert a descriptor to a function when it's in the ".opd"
1109 section.
1110
8748518b
CV
11112003-10-03 Corinna Vinschen <vinschen@redhat.com>
1112
1113 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
1114 reg_size to keep GCC silent.
1115
0fd85043
CV
11162003-10-03 Corinna Vinschen <vinschen@redhat.com>
1117
1118 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
1119 base for DW_EH_PE_textrel encodings.
1120 (read_encoded_value): Add a DW_EH_PE_textrel case.
1121 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
1122 section.
1123
37b517aa
MK
11242003-10-03 Mark Kettenis <kettenis@gnu.org>
1125
1126 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
1127
12c266ea
AC
11282003-10-02 Andrew Cagney <cagney@redhat.com>
1129
1130 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
1131 REGISTER_RAW_SIZE.
1132 * gdbarch.h, gdbarch.c: Re-generate.
1133 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
1134 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
1135 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1136 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1137 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
1138 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
1139 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
1140 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
1141 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
1142 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
1143 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
1144 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
1145 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
1146 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
1147 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
1148 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 1149
78ba4af6
JB
11502003-10-02 Jim Blandy <jimb@redhat.com>
1151
1152 * dwarf2read.c (struct die_info): Doc fix.
1153
617daa0e
CV
11542003-10-02 Corinna Vinschen <vinschen@redhat.com>
1155
1156 * sh-tdep.c: Running thru gdb_indent.sh.
1157
e5e33cd9
CV
11582003-10-02 Corinna Vinschen <vinschen@redhat.com>
1159
1160 * sh-tdep.c (sh_justify_value_in_reg): New function.
1161 (sh_stack_allocsize): Ditto.
1162 (flt_argreg_array): New array used for floating point argument
1163 passing.
1164 (sh_init_flt_argreg): New function.
a8f4cde1 1165 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
1166 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
1167 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
1168 Fix argument passing strategy.
1169 (sh_push_dummy_call_nofpu): Ditto.
1170
5fe830e4
AC
11712003-10-01 Andrew Cagney <cagney@redhat.com>
1172
1173 * value.h (register_value_being_returned): Declare. Replace
1174 "value_being_returned".
1175 * infcall.c (call_function_by_hand): Use
1176 register_value_being_returned.
1177 * infcmd.c (print_return_value): Call
1178 "register_value_being_returned", handle struct return locally.
1179 * values.c (register_value_being_returned): New function. Replace
1180 "value_being_returned".
a8f4cde1 1181
5fe830e4 11822003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
1183
1184 * linux-proc.c (linux_do_registers): New function.
1185 (linux_make_note_section): Use linux_do_registers in case of
1186 single threaded inferior programs.
1187
64f395bf
AC
11882003-10-01 Andrew Cagney <cagney@redhat.com>
1189
1190 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
1191 use STRUCT_ADDR. When not using "struct return convention", pass
1192 "0" to "value_being_returned". Add FIXMEs.
1193 * infcmd.c (print_return_value): Pass an explicit 0/1 to
1194 value_being_returned. Add comments.
1195 * values.c (value_being_returned): Add fixme.
1196 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
1197 (hppa_value_returned_from_stack): Add FIXME.
1198
639d11d3
DC
11992003-09-30 David Carlton <carlton@kealia.com>
1200
1201 * dwarf2read.c (struct die_info): Add 'parent' field; replace
1202 'has_children' and 'next' by 'child' and 'sibling'.
1203 (read_comp_unit): Rework algorithm, breaking body into
1204 read_die_and_children and read_die_and_siblings.
1205 (read_die_and_children, read_die_and_siblings): New.
1206 (read_full_die): Add 'has_children' argument; set it instead of
1207 the die's 'has_children' field. Minor formatting cleanup.
1208 (free_die_list): Use die->child and die->sibling instead of
1209 die->next.
1210 (dump_die_list): Ditto.
1211 (sibling_die): Use die->sibling.
1212 (psymtab_to_symtab_1): Use die's 'child' field in place of its
1213 'has_children' and 'next' fields.
a8f4cde1
RM
1214 (process_die, read_file_scope, read_func_scope)
1215 (read_lexical_block_scope, read_structure_scope)
1216 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
1217 (read_namespace, read_subroutine_type, dump_die): Ditto.
1218
5bffac25
AC
12192003-09-30 Andrew Cagney <cagney@redhat.com>
1220
1221 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
1222 to 224, not 220.
1223
f30992d4
AC
12242003-09-30 Andrew Cagney <cagney@redhat.com>
1225
1226 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
1227 REGISTER_VIRTUAL_SIZE.
1228 * gdbarch.h, gdbarch.c: Regenerate.
1229 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
1230 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
1231 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
1232
2e092625
AC
12332003-09-29 Andrew Cagney <cagney@redhat.com>
1234
1235 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
1236 DEPRECATED_REGISTER_VIRTUAL_TYPE.
1237 * gdbarch.h, gdbarch.c: Regenerate.
1238 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
1239 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
1240
1241 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
1242 * remote-vxmips.c (vx_read_register): Ditto.
1243 * remote-vx68.c (vx_read_register): Ditto.
1244 * gnu-nat.c (inf_validate_procs): Ditto.
1245
7a5dd6ee
JB
12462003-09-29 J. Brobecker <brobecker@gnat.com>
1247
1248 * infcall.c (call_function_by_hand): Fix build failure
1249 introduced in the previous change to this file.
1250
1fe43d45
AC
12512003-09-29 Andrew Cagney <cagney@redhat.com>
1252
1253 * NEWS: Mention Objective-C.
1254
e28a332c
JG
12552003-09-29 Jerome Guitton <guitton@act-europe.fr>
1256
1257 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
1258 test if the register has been saved on the stack.
1259 (arm_scan_prologue_cache): When analysing the instruction
1260 "str lr, [sp, #-4]", save the address where lr has been stored.
1261
9ff63c35
AC
12622003-09-28 Andrew Cagney <cagney@redhat.com>
1263
7f5f525d
AC
1264 * frame.c (frame_read_unsigned_register): Delete function.
1265 * frame.h (frame_read_unsigned_register): Delete declaration.
1266 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1267 get_frame_register_unsigned.
1268 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
1269 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1270 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 1271
7f5f525d
AC
1272 * frame.h (frame_read_register): Delete declaration.
1273 * frame.c (frame_read_register): Delete function.
1274 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
1275 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
1276 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
1277 * mips-tdep.c (mips_register_to_value): Ditto.
1278 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
1279 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1280
1281 * frame.c (frame_read_signed_register): Delete function.
1282 (frame_read_unsigned_register): Update comments.
1283 * frame.h (frame_read_signed_register): Delete declaration.
1284 * h8300-tdep.c (h8300_print_register): Use
1285 get_frame_register_signed.
1286 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1287
9ff63c35
AC
1288 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
1289 Rename VALUE_RETURNED_FROM_STACK.
1290 * infcmd.c (print_return_value): Update.
1291 * infcall.c (call_function_by_hand): Update.
1292
41d041d6
MK
12932003-09-28 Mark Kettenis <kettenis@gnu.org>
1294
1295 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
1296 regcache argument and reverse the order of the other two
1297 arguments. Remove local regcache variable. Determine
1298 architecture from REGCACHE. Update comments.
1299 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
1300 reverse the order of the other two arguments. Remove local
1301 regcache variable. Determine architecture from REGCACHE. Update
1302 comments.
1303 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
1304 prototypes. Update comments.
1305 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
1306 comment.
1307 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
1308 Update.
1309 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
1310 * i386-interix-nat.c (supply_fpregset): Update.
1311 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
1312 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
1313 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
1314 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
1315 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
1316 Update.
1317 * i386obsd-tdep.c (fetch_core_registers): Update.
1318 * i386v4-nat.c (supply_fpregset): Update.
1319 * x86-64-linux-nat.c (supply_fpregset): Update.
1320 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 1321
1cb97e17
MK
13222003-09-27 Mark Kettenis <kettenis@gnu.org>
1323
5716833c
MK
1324 * i386-tdep.h: Put opaque declarations in alphabetical
1325 order. Remove spurious whitespace.
1326 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
1327 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
1328 * i386-tdep.c (MM0_REGNUM): Remove define.
1329 (i386_mmx_regnum_p): Add gdbarch argument.
1330 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
1331 Rewrite using new macro definitions for FPU/SSE registers.
1332 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
1333 definitions from i387-tdep.h.
1334 (i386_register_name): Update.
1335 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
1336 new macro definitions for FPU/SSE registers.
1337 (i386_extract_return_value): Determine whether floating-point
1338 registers are present by examining REGCACHE's architecture.
1339 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
1340 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
1341 FPU/SSE registers.
1342 (i386_register_type): Update.
1343 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
1344 definitions for FPU registers. Use REGCACHE's architecture to
1345 determine the appropriate register numbers.
1346 (i386_pseudo_register_read, i386_pseudo_register_write,
1347 i386_register_reggroup_p): Update.
1348 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
1349 TDEP->mm0_regnum.
1350 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
1351 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
1352 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
1353 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
1354 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
1355 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
1356 *' to `void *'.
1357 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
1358 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
1359 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
1360 definitions for FPU/SSE registers.
1361 (FXSAVE_MXCSR_ADDR): New define.
1362 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
1363 TDEP->mm0_regnum.
1364 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
1365 (I387_ST0_REGNUM): Define.
1366
41d35cb0
MK
1367 * regcache.h (get_regcache_arch): New prototype.
1368 * regcache.c (get_regcache_arch): New function.
1369
54e74f72
MK
1370 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
1371 whitespace.
1372
1cb97e17
MK
1373 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
1374 Initialize using ARRAY_SIZE.
1375
0968aa8c
AC
13762003-09-27 Andrew Cagney <cagney@redhat.com>
1377
1378 * arch-utils.c (deprecated_init_frame_pc_default): Rename
1379 "init_frame_pc_default".
1380 * arch-utils.h (deprecated_init_frame_pc_default): Update.
1381 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1382 * vax-tdep.c (vax_gdbarch_init): Update.
1383 * v850-tdep.c (v850_gdbarch_init): Update.
1384 * sh64-tdep.c (sh64_gdbarch_init): Update.
1385 * s390-tdep.c (s390_gdbarch_init): Update.
1386 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1387 * mcore-tdep.c (mcore_gdbarch_init): Update.
1388 * h8300-tdep.c (h8300_gdbarch_init): Update.
1389 * cris-tdep.c (cris_gdbarch_init): Update.
1390 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
1391
54c84734
MK
13922003-09-26 Mark Kettenis <kettenis@gnu.org>
1393
1394 * regset.h: New file.
1395 * Makefile.in (regset_h): Add.
1396
1b1d3794
AC
13972003-09-25 Andrew Cagney <cagney@redhat.com>
1398
1399 * frame.h (deprecated_frame_saved_regs): Rename
1400 get_frame_saved_regs.
1401 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
1402 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1403 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
1404 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
1405 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
1406
e6beb428
AC
14072003-09-25 Andrew Cagney <cagney@redhat.com>
1408
1409 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
1410 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
1411 and Java.
1412 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
1413 arm*-*-* do not use the new frame code.
1414
710122da
DC
14152003-09-25 David Carlton <carlton@kealia.com>
1416
1417 * c-exp.y: Remove 'register' declarations.
1418 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
1419
79c2c32d
DC
14202003-09-25 David Carlton <carlton@kealia.com>
1421
1422 * c-exp.y: Include cp-support.h. Add qualified_type.
1423 (yylex): Delete nested type hack; add comments.
1424 * cp-namespace.c (cp_lookup_nested_type): New function.
1425 * cp-support.h: Declare cp_lookup_nested_type.
1426 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
1427 instead of value_struct_elt_for_reference.
1428 * valops.c: Include cp-support.h.
1429 (value_aggregate_elt): New function.
1430 (value_namespace_elt): Ditto.
1431 (value_struct_elt_for_reference): Make static.
1432 * value.h: Delete declaration of value_struct_elt_for_reference;
1433 add declaration for value_aggregate_elt.
1434 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
1435 (valops.o): Ditto.
1436
898c62f5
DJ
14372003-09-25 Daniel Jacobowitz <drow@mvista.com>
1438
1439 * stack.c: Include "reggroups.h".
1440 (frame_info): Only display registers in all_reggroup.
1441 * Makefile.in (stack.o): Update dependencies.
1442
28cd8767
JG
14432003-09-25 Jerome Guitton <guitton@act-europe.fr>
1444
1445 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
1446 "add ip, sp #n" in the prologue.
1447 (arm_scan_prologue): Ditto.
1448
a4ab2b5d
JG
14492003-09-25 Jerome Guitton <guitton@act-europe.fr>
1450
1451 * MAINTAINERS (write after approval): Add myself.
1452
3f244638
AS
14532003-09-25 Andreas Schwab <schwab@suse.de>
1454
1455 * m68k-tdep.c: Include "dwarf2-frame.h".
1456 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
1457 * Makefile.in (m68k-tdep.o): Update dependencies.
1458
1c0159e0
CV
14592003-09-25 Corinna Vinschen <vinschen@redhat.com>
1460
1461 * sh-tdep.c (struct frame_extra_info): Remove.
1462 (struct sh_frame_cache): New structure.
1463 (GET_SOURCE_REG): New macro extracting source register of an opcode.
1464 (GET_TARGET_REG): Ditto but target register.
1465 (GET_PUSHED_REG): Remove.
1466 (IS_MOV_ARG_TO_REG): New macro.
1467 (IS_MOV_ARG_TO_IND_R14): New macro.
1468 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
1469 (IS_MOVW_PCREL_TO_REG): New macro.
1470 (IS_MOVL_PCREL_TO_REG): New macro.
1471 (IS_SUB_REG_FROM_SP): New macro.
1472 (IS_ARG_MOV): Remove.
1473 (IS_MOV_TO_R14): Remove.
1474 (IS_RESTORE_FP): New macro.
1475 (IS_RTS): New macro.
1476 (IS_LDS): New macro.
1477 (IS_MOV_FP_SP): New macro.
1478 (IS_ADD_REG_TO_FP): New macro.
1479 (IS_ADD_IMM_FP): New macro.
1480 (sh_skip_prologue_hard_way): Remove.
1481 (sh_saved_pc_after_call): Remove.
1482 (sh_frame_chain): Remove.
1483 (sh_find_callers_reg): Remove.
a8f4cde1 1484 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
1485 (sh_fp_frame_init_saved_regs): Remove.
1486 (sh_init_extra_frame_info): Remove.
1487 (sh_analyze_prologue): New function.
1488 (sh_skip_prologue): Remove deprecated code. Rely on new function
1489 sh_analyze_prologue when after_prologue fails.
1490 (sh_frame_saved_pc): Remove.
1491 (sh_alloc_frame_cache): New function.
1492 (sh_frame_cache): Ditto.
1493 (sh_frame_prev_register): Ditto.
1494 (sh_frame_this_id): Ditto.
1495 (sh_frame_unwind): New structure defining the heuristic frame
1496 sniffer interface.
1497 (sh_frame_sniffer): New function.
1498 (sh_unwind_sp): Ditto.
1499 (sh_unwind_pc): Ditto.
1500 (sh_unwind_dummy_id): Ditto.
1501 (sh_frame_base_address): Ditto.
1502 (sh_frame_base): New structure defining new frame base code.
1503 (sh_in_function_epilogue_p): New function.
1504 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
1505 code and to call all new code instead. Initialize dwarf2 and
1506 heuristic frame sniffer.
1507
5f9769d1
PH
15082003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1509
a8f4cde1
RM
1510 * parser-defs.h (struct exp_descriptor): New definition, containing
1511 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
1512 evaluating expressions.
1513 (exp_descriptor_standard): Declare new variable.
1514 (print_subexp): Make global and declare here (from expprint.c).
1515 (dump_subexp): Ditto.
1516 (dump_subexp_body_standard): Declare.
1517 (operator_length_standard): Declare.
1518 (op_name_standard): Declare.
1519 (print_subexp): Declare.
1520 (print_subexp_standard): Declare.
1521
1522 * language.h (struct language_defn): Add la_exp_desc field to hold
1523 pointer to table for language-specific operators.
1524 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
1525
1526 * parse.c (operator_length): Move most code to new
5f9769d1 1527 operator_length_standard function. Use language-specific information.
a8f4cde1 1528 (operator_length_standard): New function taking most code from
5f9769d1
PH
1529 operator_length.
1530 (exp_descriptor_standard): New constant.
a8f4cde1
RM
1531
1532 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 1533 and OP_EXTENDED_LAST.
a8f4cde1
RM
1534
1535 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
1536 Make global; remove static declaration.
1537 Move most code to print_subexp_standard.
a8f4cde1 1538 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
1539 print_subexp.
1540 (op_name): Add expression to argument signature.
a8f4cde1 1541 Use langauge-specific op_name.
5f9769d1
PH
1542 Move most code to op_name_standard.
1543 (op_name_standard): New function, containing code formerly in op_name.
1544 (dump_subexp): Use new version of op_name function.
1545 Use language-specific dump_subexp_body, and move most existing code to
1546 dump_subexp_body_standard.
1547 (dump_raw_expression): Use new op_name interface.
1548 (dump_subexp_body): Move most code to dump_subexp_body_standard.
1549 (dump_subexp_body_standard): New function, containing code formerly
1550 in dump_subexp_body.
a8f4cde1 1551
5f9769d1
PH
1552 * language.c (unknown_language): Add default la_exp_desc field and
1553 remove evaluate_exp field.
1554 (auto_language): Ditto.
1555 (local_language): Ditto.
1556 * f-lang.c (f_language_defn): Ditto.
1557 * c-lang.c (c_language_defn): Ditto.
1558 (cplus_language_defn): Ditto.
1559 (asm_language_defn): Ditto.
1560 (minimal_language_defn): Ditto.
1561 * p-lang.c (pascal_language_defn): Ditto.
1562 * m2-lang.c (m2_language_defn): Ditto.
1563 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
1564
1565 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
1566 Java-specific expression evaluator.
1567 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
1568 field.
a8f4cde1 1569 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
1570 Scheme-specific expression evaluator.
1571 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
1572 field.
1573 * objc-lang.c (print_object_command): Take evaluate_exp from the
1574 la_exp_desc field.
a8f4cde1 1575
5f9769d1 1576 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
1577
1578 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
1579 la_exp_desc's type.
1580 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 1581
24daaebc
PH
15822003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1583
1584 * parser-defs.h (operator_length): Declare.
a8f4cde1 1585
24daaebc
PH
1586 * parse.c (length_of_subexp): Use operator_length to get operator
1587 lengths and arities for operators.
1588 Move most code to new operator_length function.
a8f4cde1 1589 (operator_length): New function absorbing most code from
24daaebc
PH
1590 length_of_subexp.
1591 (prefixify_subexp): Remove large case and use operator_length instead.
1592 (parse_exp_1): Use renamings:
a8f4cde1 1593 dump_prefix_expression => dump_raw_expression and
24daaebc 1594 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 1595
24daaebc
PH
1596 * expression.h (dump_prefix_expression): Rename to ...
1597 (dump_raw_expression): New name.
1598 (dump_postfix_expression): Rename to ...
1599 (dump_prefix_expression): New name.
a8f4cde1 1600
24daaebc
PH
1601 * expprint.c (dump_subexp): Make global. Add comment.
1602 Move most existing code to dump_subexp_body.
1603 (dump_subexp_body): New function.
1604 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 1605 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
1606 work before the expression is prefixified.
1607 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 1608 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 1609 that's what it does.
a8f4cde1 1610 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
1611 prefixified expression.
1612 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 1613
8c2957c4
JB
16142003-09-22 Jim Blandy <jimb@redhat.com>
1615
1616 * dwarf2read.c (read_array_type): When building the type for an
1617 array of unspecified length, make sure to choose the upper bound
1618 so that the array's total length comes out to be zero --- that's
1619 how we represent such arrays.
1620
592e3010
MC
16212003-09-22 Michael Chastain <mec@shout.net>
1622
1623 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
1624
365c70b1
JJ
16252003-09-22 Jeff Johnston <jjohnstn@redhat.com>
1626
1627 * top.c (quit_force): Fix indirect call to quit_target so
1628 a struct qt_args pointer is passed.
1629
5d6eb653
AC
16302003-09-22 Andrew Cagney <cagney@redhat.com>
1631
1632 * arch-utils.h (init_frame_pc_noop): Delete declaration.
1633 * arch-utils.c (init_frame_pc_noop): Delete function.
1634 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
1635 "init_frame_pc".
1636 * mips-tdep.c (mips_gdbarch_init): Ditto.
1637 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1638 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
1639 declaration.
1640 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1641 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
1642 declaration.
1643 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1644
b222a67f
AG
16452003-09-22 Anthony Green <green@redhat.com>
1646
1647 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
1648 declaration.
1649
d5b5ac79
AC
16502003-09-20 Andrew Cagney <cagney@redhat.com>
1651
deafb061
AC
1652 * breakpoint.c: Eliminate ARGSUSED.
1653 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
1654 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
1655 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
1656 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
1657 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
1658 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
1659 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
1660 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
1661 * wince.c, remote-vx.c: Ditto.
1662
d5b5ac79
AC
1663 * cli/cli-script.c: Remove "register" attributes.
1664 * config/pa/tm-hppa.h: Ditto.
1665 * cli/cli-decode.c: Ditto.
1666 * cli/cli-cmds.c: Ditto.
1667
c6316faa
AC
16682003-09-19 Andrew Cagney <cagney@redhat.com>
1669
1670 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
1671 DEPRECATED_NPC_REGNUM.
1672 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
1673
f4f99b11
CF
16742003-09-19 Christopher Faylor <cgf@redhat.com>
1675
1676 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
1677
1708f284
JB
16782003-09-19 Jim Blandy <jimb@redhat.com>
1679
1680 * macrotab.c (macro_include): Use the correct comparison to find
1681 the appropriate place for this inclusion in the list.
1682
b9fbf434
AC
16832003-09-19 Andrew Cagney <cagney@redhat.com>
1684
1685 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
1686 (DEPRECATED_HPUX_TEXT_END): Define.
1687 (deprecated_hpux_text_end): Declare.
1688 (struct target_ops): Declare opaque.
1689 * hppah-nat.c (text_end): Make static.
1690 (deprecated_hpux_text_end): New function.
1691 * exec.c (text_end): Delete global variable.
1692 (NEED_TEXT_START_END): Do not define.
1693 (exec_file_attach): Replace code computing "text_end" code with
1694 call to DEPRECATED_HPUX_TEXT_END.
1695
5b03f266
AC
16962003-09-19 Andrew Cagney <cagney@redhat.com>
1697
1698 * utils.c (align_up, align_down): New functions.
1699 * defs.h (align_up, align_down): Declare.
1700 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
1701 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
1702 and "align_down".
1703 (round_up, round_down): Delete functions.
1704 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1705 "align_down".
1706 (ROUND_DOWN, ROUND_UP): Delete macros.
1707 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
1708 * h8300-tdep.c: Replace "round_up" and "round_down" with
1709 "align_up" and "align_down".
1710 (round_up, round_down): Delete macros.
1711 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1712 "align_down".
1713 (ROUND_UP, ROUND_DOWN): Delete macros.
1714
51db5742
JB
17152003-09-18 J. Brobecker <brobecker@gnat.com>
1716
1717 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
1718 hard-coded constant. Use the proper machine name instead.
1719
77949794
AC
17202003-09-17 Andrew Cagney <cagney@redhat.com>
1721
1722 * sparc-tdep.c (legacy_register_name): Delete function.
1723 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
1724 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
1725 * infcmd.c (gdb_register_name): Delete variable.
1726 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
1727 REGISTER_NAME and "tm.h".
1728 * gdbarch.h, gdbarch.c: Regenerate.
1729 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
1730 REGISTER_NAMES in comments.
1731 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
1732 * m68klinux-nat.c (regmap): Ditto.
1733
b55c33cc
JB
17342003-09-17 Jim Blandy <jimb@redhat.com>
1735
1736 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
1737
957e27ac
AC
17382003-09-17 Andrew Cagney <cagney@redhat.com>
1739
1740 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
1741 (ppcnbsd_init_abi): Set "use_struct_convention" to
1742 "ppcnbsd_use_struct_convention".
1743
192cb3d4
MK
17442003-09-17 Mark Kettenis <kettenis@gnu.org>
1745
1746 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1747 * gdbarch.h, gdbarch.c: Regenerate.
1748 (stabs_argument_has_addr): New architecture method.
1749 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1750 * arch-utils.c: Include "buildsym.h".
1751 (default_stabs_argument_has_addr): New function.
1752 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1753 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1754
efe59759
AC
17552003-09-17 Andrew Cagney <cagney@redhat.com>
1756
1757 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
1758 * gdbarch.h, gdbarch.c: Regenerate.
1759 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
1760 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
1761 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
1762 * sparcnbsd-tdep.c: Update.
a8f4cde1 1763
62700349
AC
17642003-09-17 Andrew Cagney <cagney@redhat.com>
1765
1766 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
1767 * gdbarch.h, gdbarch.c: Regenerate.
1768 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
1769 * d10v-tdep.c, frame.c: Update.
1770 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1771 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1772 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
1773 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
1774 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1775 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
1776 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
1777 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
1778 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
1779 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
1780 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
1781 * config/pa/nm-hppah.h: Update.
1782
b9ff3018
AC
17832003-09-16 Andrew Cagney <cagney@redhat.com>
1784
1785 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
1786 "use_struct_convention" to "ppc_linux_use_struct_convention".
1787 (ppc_linux_use_struct_convention): New function.
1788 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
1789 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
1790 "rs6000_use_struct_convention".
1791 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
1792 declaration.
1793 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1794 Delete function.
1795
aa1ee363
AC
17962003-09-16 Andrew Cagney <cagney@redhat.com>
1797
1798 * buildsym.c: Remove more occurances of "register".
1799 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
1800 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
1801 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
1802 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
1803 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
1804 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
1805 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
1806 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
1807
f2ea0907
CV
18082003-09-16 Corinna Vinschen <vinschen@redhat.com>
1809
1810 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
1811 numbers to enumeration values.
1812 * sh-tdep.c: Accomodate above change.
1813 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
1814 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
1815 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
1816 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
1817 (IS_FPUSH): Rename from IS_FMOV.
1818 (sh_extract_struct_value_address): Remove useless comment.
1819 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1820 instead of own local values.
1821 (sh_dump_tdep): Remove.
1822 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1823 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1824
1c704f11
AC
18252003-09-15 Andrew Cagney <cagney@redhat.com>
1826
1827 * doublest.c (convert_floatformat_to_doublest): No longer need to
1828 cast "exp_bias" to an int. Reverts 2002-12-04 change.
1829
ac79b88b
DJ
18302003-09-15 Daniel Jacobowitz <drow@mvista.com>
1831
1832 * values.c (unpack_double): Call floatformat_is_valid.
1833
1c671366
MK
18342003-09-15 Mark Kettenis <kettenis@gnu.org>
1835
de5227fb
MK
1836 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1837 ps_strings into a long.
1838
1c671366
MK
1839 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1840 _initialize_am64fbsd_nat.
1841
a604369a
KB
18422003-09-15 Kevin Buettner <kevinb@redhat.com>
1843
1844 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1845 associated with DW_AT_ranges attribute is out of bounds.
1846
b3cacbee
DL
18472003-09-15 David Lecomber <dsl@sources.redhat.com>
1848
1849 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1850
d0f37bb2
MC
18512003-09-14 Michael Chastain <mec@shout.net>
1852
1853 * config/m68k/nm-apollo68v.h: Delete.
1854 * config/m68k/xm-apollo68v.h: Delete.
1855
69517000
AC
18562003-09-14 Andrew Cagney <cagney@redhat.com>
1857
1858 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1859 * dcache.c: Update copyrights and descriptions.
1860 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1861
ef8b349d
AC
18622003-09-14 Andrew Cagney <cagney@redhat.com>
1863
1864 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1865 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1866
52f0bd74
AC
18672003-09-14 Andrew Cagney <cagney@redhat.com>
1868
1869 * alpha-nat.c: Remove some occurances of "register".
1870 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1871 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1872 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1873 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1874 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1875 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1876 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1877 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1878 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1879 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1880 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1881 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1882 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1883 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1884 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1885 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1886 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1887 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1888 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1889 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1890 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1891 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 1892
4a4b3fed
AC
18932003-09-13 Andrew Cagney <cagney@redhat.com>
1894
1895 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1896 * ppc-tdep.h (struct regcache): Declare opaque.
1897 * objfiles.h (struct objfile_data): Declare opaque.
1898 * cp-support.h (struct objfile): Declare opaque.
1899 * linux-nat.h (target_waitstatus): Declare opaque.
1900
2110b94f
MK
19012003-09-14 Mark Kettenis <kettenis@gnu.org>
1902
1c671366
MK
1903 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1904 (stabs_argument_has_addr): New architecture method.
1905 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1906 * arch-utils.c: Include "buildsym.h".
1907 (default_stabs_argument_has_addr): New function.
1908 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1909 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1910
2110b94f
MK
1911 * cris-tdep.c (cris_gdbarch_init): Set
1912 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1913 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1914 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1915 * mips-tdep.c (mips_gdbarch_init): Likewise.
1916 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1917 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1918
48436ce6
AC
19192003-09-13 Andrew Cagney <cagney@redhat.com>
1920
1921 * values.c (using_struct_return): Delete "function" and "funcaddr"
1922 parameters.
1923 * value.h (using_struct_return): Update declaration.
1924 * infcmd.c (finish_command_continuation): Update.
1925 (finish_command): Update.
1926 * infcall.c (call_function_by_hand): Update.
1927 * eval.c (evaluate_subexp_standard): Update.
1928
403d9909
CF
19292003-09-13 Christopher Faylor <cgf@redhat.com>
1930
1931 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1932 SSE registers since gdb will not operate correctly without this.
1933 Restore include file ordering munged in previous change.
1934 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1935
ebf7d56b
MK
19362003-09-13 Mark Kettenis <kettenis@gnu.org>
1937
8e823e25
MK
1938 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1939 REG_STRUCT_HAS_ADDR.
1940 * gdbarch.c, gdbarch.h: Updated.
1941 * infcall.c (call_function_by_hand): Update.
1942 * stabsread.c (define_symbol): Updated.
a8f4cde1 1943
ebf7d56b
MK
1944 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1945
d3f13f72
CF
19462003-09-12 Christopher Faylor <cgf@redhat.com>
1947
1948 * win32-nat.c: Reorganize so that defines used by target headers are
1949 actually defined by the system headers.
1950 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1951 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1952
14f75137
JB
19532003-09-12 Jim Blandy <jimb@redhat.com>
1954
d646061f
JB
1955 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1956 the file has no .data, .bss, or .rodata sections. Instead wait
1957 until we see a variable alleged to live in one of those sections.
1958
2a13f9bc
JB
1959 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1960 .bss section, presume that any variables we find live in the
1961 .rodata section.
1962
4f49b26b
JB
1963 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1964 offsets for global and static variables.
1965
14f75137
JB
1966 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1967 symbol types are, by definition, in the .data section, so it is
1968 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1969 If there is no .data section, there should be no N_DATA or N_DATA
1970 | N_EXT symbols.
1971
212c460c
MK
19722003-09-12 Mark Kettenis <kettenis@gnu.org>
1973
1974 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1975 (amd64fbsd_sigcontext_addr): Rewrite.
1976 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1977 with correct values.
1978 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1979 (amd64fbsd_init_abi): Fix typo.
1980
68856ea3
AC
19812003-09-12 Andrew Cagney <cagney@redhat.com>
1982
1983 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1984 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1985
627b3ba2
AC
19862003-09-12 Andrew Cagney <cagney@redhat.com>
1987
1988 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1989 "entry_file_highpc". Update comments.
1990 * defs.h (deprecated_inside_entry_file): Rename
1991 "inside_entry_file".
1992 * blockframe.c (deprecated_inside_entry_file): Rename
1993 "inside_entry_file".
1994 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1995 * vax-tdep.c (vax_frame_chain): Update.
1996 * sh64-tdep.c (sh64_frame_chain): Update.
1997 * sh-tdep.c (sh_frame_chain): Update.
1998 * rs6000-tdep.c (rs6000_frame_chain): Update.
1999 * ns32k-tdep.c (ns32k_frame_chain): Update.
2000 * mips-tdep.c (mips_frame_chain): Update.
2001 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2002 * m32r-tdep.c (m32r_frame_this_id): Update.
2003 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2004 * frv-tdep.c (frv_frame_this_id): Update.
2005 * d10v-tdep.c (d10v_frame_this_id): Update.
2006 * cris-tdep.c (cris_frame_chain): Update.
2007 * blockframe.c (legacy_frame_chain_valid): Update.
2008 * avr-tdep.c (avr_frame_this_id): Update.
2009 * arm-tdep.c (arm_prologue_this_id): Update.
2010 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2011 * objfiles.c (objfile_relocate): Update.
2012 * mipsread.c (mipscoff_symfile_read): Update.
2013 (mipscoff_symfile_read): Update.
2014 * mdebugread.c (parse_partial_symbols): Update.
2015 * dwarfread.c (read_file_scope): Update.
2016 * dwarf2read.c (read_file_scope): Update.
2017 * dbxread.c (read_dbx_symtab): Update.
2018 (read_dbx_symtab): Update.
2019 * coffread.c (complete_symtab): Update.
2020
b0abbc58
JJ
20212003-09-12 Jeff Johnston <jjohnstn@redhat.com>
2022
2023 * top.c (quit_target): New static helper function.
2024 (quit_force): Moved code to quit_target(). Call quit_target()
2025 via catch_errors() to catch errors during quit.
2026
a1632d59
DC
20272003-09-11 David Carlton <carlton@kealia.com>
2028
2029 * buildsym.c (finish_block): Use allocate_block to allocate the
2030 block.
2031 * mdebugread.c (new_block): Add FIXME.
2032
5c4e30ca
DC
20332003-09-11 David Carlton <carlton@kealia.com>
2034
2035 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2036 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2037 (recursive_dump_type): Ditto.
2038 * printcmd.c (print_formatted): Ditto.
2039 * typeprint.c (print_type_scalar): Ditto.
2040 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2041 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2042 * cp-support.h: Declare cp_check_possible_namespace_symbols,
2043 maint_cplus_cmd_list.
2044 * cp-support.c: Make maint_cplus_cmd_list extern.
2045 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2046 command.h.
2047 (lookup_symbol_file): Look in possible namespace blocks when
2048 appropriate.
2049 (initialize_namespace_symtab): New.
2050 (get_possible_namespace_block, free_namespace_block)
2051 (check_possible_namespace_symbols)
2052 (check_possible_namespace_symbols_loop)
2053 (check_one_possible_namespace_symbol)
2054 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
2055 (_initialize_cp_namespace): Ditto.
2056 * block.h: Declare allocate_block.
2057 * block.c (allocate_block): New.
2058 * jv-lang.c (get_java_class_symtab): Allocate blocks via
2059 allocate_block.
2060 * symfile.h: Update declaration of add_psymbol_to_list.
2061 * symfile.c (add_psymbol_to_list): Return the partial symbol in
2062 question.
2063 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
2064 scan_partial_symbols_call.
2065 (scan_partial_symbols): Add NAMESPACE argument; update calls to
2066 helper functions.
2067 (add_partial_symbol): If necessary, scan mangled names for names
2068 of namespaces.
2069 (add_partial_namespace): Add NAMESPACE argument; generate partial
2070 symbols associated to namespaces.
2071 (add_partial_enumeration): Add NAMESPACE argument.
2072 (new_symbol): Allow namespace syms.
2073 (read_namespace): Generate namespace syms.
2074 * objfiles.h: Add opaque declaration of struct symtab.
2075 (struct objfile): Add cp_namespace_symtab member.
2076 * objfiles.c (allocate_objfile): Set
2077 objfile->cp_namespace_symtab.
2078 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
2079 dictionary_h, command_h.
2080
33a7c2fc
AC
20812003-09-11 Andrew Cagney <cagney@redhat.com>
2082
2083 * rs6000-tdep.c (rs6000_push_dummy_call): Use
2084 regcache_raw_write_signed to set SP_REGNUM, move the operation to
2085 near the function's end.
2086 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
2087 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
2088 regcache_raw_write_signed to set SP_REGNUM.
2089
63cd24fe
EZ
20902003-09-11 Elena Zannoni <ezannoni@redhat.com>
2091
2092 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
2093 orig_addrs is set up properly.
2094
f27dd7fd
AC
20952003-09-11 Andrew Cagney <cagney@redhat.com>
2096
2097 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
2098 * gdbarch.h, gdbarch.c: Re-generate.
2099 * infcall.c (call_function_by_hand): Update.
2100 * hppa-tdep.c (hppa_push_arguments): Update.
2101 * ada-lang.c (place_on_stack): Update.
2102 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2103 * sparc-tdep.c (sparc_gdbarch_init): Update.
2104 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2105 * hppa-tdep.c (hppa_gdbarch_init): Update.
2106 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
2107 stack_align.
2108
f630a401
DJ
21092003-09-11 Daniel Jacobowitz <drow@mvista.com>
2110
2111 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
2112 register do need a frame.
2113
0ddabb4c
AC
21142003-09-11 Andrew Cagney <cagney@redhat.com>
2115
2116 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
2117 buildable since GDB 5.0.
2118 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
2119 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
2120 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
2121 * irix4-nat.c: Delete file.
2122 * config/mips/irix4.mh: Delete file.
2123 * config/mips/irix3.mh: Delete file.
2124 * config/mips/irix3.mt: Delete file.
2125 * config/mips/tm-irix3.h: Delete file.
2126 * config/mips/nm-irix3.h: Delete file.
2127 * config/mips/xm-irix3.h: Delete file.
2128 * config/mips/nm-irix4.h: Delete file.
2129 * config/mips/xm-irix4.h: Delete file.
2130 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
2131
fde2cceb
JB
21322003-09-10 J. Brobecker <brobecker@gnat.com>
2133
2134 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
2135 * Makefile.in (hppa-tdep.o): Update dependencies.
2136
66f667f5
JW
21372003-09-10 James E Wilson <wilson@specifixinc.com>
2138
ef5fd69f
JW
2139 * MAINTAINERS: Change my e-mail address. Move to paper trail
2140 section.
66f667f5 2141
53e8aaea
KB
21422003-09-10 Kevin Buettner <kevinb@redhat.com>
2143
2144 * MAINTAINERS (frv): New ISA entry.
2145
dcc6aaff
KB
21462003-09-10 Kevin Buettner <kevinb@redhat.com>
2147
2148 * frv-tdep.c (dis-asm.h): Include.
2149 * Makefile.in (frv-tdep.o): Update dependencies.
2150
932644f0
JJ
21512003-09-09 Jeff Johnston <jjohnstn@redhat.com>
2152
2153 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
2154 Fix typo for high range of floating registers.
2155
91c24f0a
DC
21562003-09-09 David Carlton <carlton@kealia.com>
2157
2158 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
2159 highpc initialization here out of scan_partial_symbols.
2160 (scan_partial_symbols): Restructure into a recursive version,
2161 calling add_partial_namespace and add_partial_enumeration when
2162 appropriate.
2163 (add_partial_namespace): New.
2164 (add_partial_enumeration, locate_pdi_sibling): Ditto.
2165
c9263853
AC
21662003-09-09 Andrew Cagney <cagney@redhat.com>
2167
e56a0ecc
AC
2168 * rs6000-tdep.c (ppc_push_return_address): Delete function.
2169 (rs6000_push_dummy_call): Set LR to BP_ADDR.
2170 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
2171 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2172
794a477a
AC
2173 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
2174 (rs6000_push_dummy_call): Set the "TOC" register.
2175
c9263853
AC
2176 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
2177 methods "max_register_raw_size", "max_register_virtual_size" or
2178 "register_virtual_size".
2179
afa7d0b2
ILT
21802003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
2181
2182 * MAINTAINERS: Update my e-mail address.
2183
7a41266b
AC
21842003-09-09 Andrew Cagney <cagney@redhat.com>
2185
2186 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
2187 (rs6000_push_dummy_call): Store the struct return address.
2188 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2189
77b2b6d4
AC
21902003-09-09 Andrew Cagney <cagney@redhat.com>
2191
2192 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
2193 "ppc_sysv_abi_push_arguments".
2194 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
2195 "ppc_sysv_abi_push_arguments".
2196 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
2197 instead of "push_arguments".
2198 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
2199
e8a7b686
AC
22002003-09-09 Andrew Cagney <cagney@redhat.com>
2201
2202 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
2203 instead of CALL_DUMMY_ADDRESS.
2204
f86f5ca3
PH
22052003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
2206
2207 * p-lang.c: Eliminate "register".
2208 * c-lang.c: Ditto.
2209 * expprint.c: Ditto.
2210 * f-lang.c: Ditto.
2211 * jv-lang.c: Ditto.
2212 * language.c: Ditto.
2213 * m2-lang.c: Ditto.
2214 * parse.c: Ditto.
2215 * scm-lang.c: Ditto.
2216 * objc-lang.c: Ditto.
2217
83ee270e
NC
22182003-09-09 Nick Clifton <nickc@redhat.com>
2219
2220 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
2221
a89aa300
AC
22222003-09-04 Andrew Cagney <cagney@redhat.com>
2223
2224 * avr-tdep.c: Include "dis-asm.h".
2225 * cris-tdep.c: Include "dis-asm.h".
2226 (cris_delayed_get_disassembler): Use "struct disassemble_info"
2227 instead of corresponding typedef.
2228 * h8300-tdep.c: Include "dis-asm.h".
2229 * ia64-tdep.c: Include "dis-asm.h".
2230 * i386-tdep.c: Include "dis-asm.h".
2231 (i386_print_insn): Use "struct disassemble_info" instead of
2232 corresponding typedef.
2233 * m68k-tdep.c: Include "dis-asm.h".
2234 * mcore-tdep.c: Include "dis-asm.h".
2235 * mips-tdep.c: Include "dis-asm.h".
2236 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
2237 instead of corresponding typedef.
2238 * ns32k-tdep.c: Include "dis-asm.h".
2239 * s390-tdep.c: Include "dis-asm.h".
2240 * sparc-tdep.c: Include "dis-asm.h".
2241 * vax-tdep.c: Include "dis-asm.h".
2242 * v850-tdep.c: Include "dis-asm.h".
2243 * mn10300-tdep.c: Include "dis-asm.h".
2244 * rs6000-tdep.c: Include "dis-asm.h".
2245 * xstormy16-tdep.c: Include "dis-asm.h".
2246 (_initialize_xstormy16_tdep): Delete "extern" declaration of
2247 print_insn_xstormy16.
2248 * Makefile.in (v850-tdep.o): Update dependencies.
2249 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
2250 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
2251 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
2252 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
2253 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
2254 (gdbarch_h): Remove $(dis_asm_h).
2255 * disasm.c: Include "dis-asm.h".
2256 (dis_asm_read_memory): Use "struct disassemble_info" instead of
2257 corresponding typedef.
2258 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
2259 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
2260 * gdbarch.sh: Do not include "dis-asm.h".
2261 (struct disassemble_info): Declare opaque.
2262 (TARGET_PRINT_INSN): Update declaration.
2263 * gdbarch.h, gdbarch.c: Re-generate.
2264
88a82a65
AC
22652003-09-08 Andrew Cagney <cagney@redhat.com>
2266
2267 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
2268 CALL_DUMMY_ADDRESS, change to a predicate.
2269 * gdbarch.h, gdbarch.c: Re-generate.
2270 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2271 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
2272 * infcall.c (call_function_by_hand): Ditto.
2273 * sparc-tdep.c (sparc_push_return_address): Ditto.
2274 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
2275 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
2276 CALL_DUMMY_ADDRESS with entry_point_address.
2277 * v850-tdep.c (v850_push_return_address): Ditto.
2278 * s390-tdep.c (s390_push_return_address): Ditto.
2279 * rs6000-tdep.c (ppc_push_return_address): Ditto.
2280 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
2281 * mcore-tdep.c (mcore_push_return_address): Ditto.
2282 * cris-tdep.c (cris_push_return_address): Ditto.
2283 * arm-tdep.c (arm_push_return_address): Ditto.
2284
3e2c4033
AC
22852003-09-08 Andrew Cagney <cagney@redhat.com>
2286
2287 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
2288 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
2289 and REG_UNMODIFIED to REG_SAME_VALUE.
2290 (execute_cfa_program): Update.
2291 (dwarf2_frame_cache): Update. Initialize table to
2292 REG_UNSPECIFIED, complain if CFI fails to specify a register's
2293 location.
2294 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
2295
39efb398
AC
22962003-09-08 Andrew Cagney <cagney@redhat.com>
2297
2298 * gnu-nat.c: Remove "inline" function attribute.
2299 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
2300
f5cb5aca
KB
23012003-09-08 Kevin Buettner <kevinb@redhat.com>
2302
2303 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
2304 target.
2305
1cb761c7
KB
23062003-09-08 Kevin Buettner <kevinb@redhat.com>
2307
2308 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
2309 (frame_extra_info): Rename this struct to frv_unwind_cache.
2310 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
2311 Add fields ``prev_sp'' and ``base''.
2312 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
2313 (frv_saved_pc_after_call, frv_init_extra_frame_info)
2314 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
2315 Delete.
2316 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
2317 Revise all callers. Fill in the unwind cache argument and make
2318 other adjustments to account for new frame mechanisms.
2319 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
2320 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
2321 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
2322 (frv_frame_unwind, frv_frame_base): New structs.
2323 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
2324 additional arguments expected by this method and adjust function
2325 body accordingly.
2326 (frv_gdbarch_init): Remove calls to the following functions:
2327 set_gdbarch_deprecated_init_frame_pc(),
2328 set_gdbarch_deprecated_saved_pc_after_call(),
2329 set_gdbarch_deprecated_frame_chain(),
2330 set_gdbarch_deprecated_frame_saved_pc(),
2331 set_gdbarch_deprecated_frame_init_saved_regs(),
2332 set_gdbarch_deprecated_push_arguments(),
2333 set_gdbarch_deprecated_push_return_address(),
2334 set_gdbarch_deprecated_pop_frame(),
2335 set_gdbarch_deprecated_call_dummy_words(),
2336 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2337 set_gdbarch_deprecated_init_extra_frame_info(),
2338 set_gdbarch_deprecated_dummy_write_sp(), and
2339 set_gdbarch_deprecated_pc_in_call_dummy().
2340 Add calls to the following functions:
2341 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
2342 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
2343 frame_base_set_default().
2344 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 2345
68f6cf99
MK
23462003-09-09 Mark Kettenis <kettenis@gnu.org>
2347
2348 * dwarf2-frame.c (read_encoded_value): Add support for
2349 DW_EH_PE_aligned encoding.
2350
73b65bb0
DJ
23512003-09-08 Daniel Jacobowitz <drow@mvista.com>
2352
2353 * infrun.c (normal_stop): Don't print a message if the inferior
2354 has exited.
2355
7c8a5605
JB
23562003-09-08 Jim Blandy <jimb@redhat.com>
2357
2358 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
2359 * dbxread.c: #include "gdb_assert.h".
2360 (read_dbx_symtab): If the objfile has no .data section, use the
2361 section index for the .bss section instead.
2362
7dd88986
DJ
23632003-09-08 Daniel Jacobowitz <drow@mvista.com>
2364
2365 * frame.c (deprecated_safe_get_selected_frame): New function.
2366 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
2367 * findvar.c (read_var_value): Call it.
2368
55ff77ac
CV
23692003-09-08 Corinna Vinschen <vinschen@redhat.com>
2370
2371 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
2372 (sh64-tdep.o): Add dependencies.
2373 * configure.tgt: Add FIXME to sh-*-linux*.
2374 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
2375 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 2376 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
2377 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
2378 * sh64-tdep.c: New file, containing all sh64 related code from
2379 sh-tdep.c.
2380 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
2381 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 2382 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
2383 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
2384 * config/sh/wince.mt (TDEPFILES): Ditto.
2385
bfb39158
DJ
23862003-09-07 Daniel Jacobowitz <drow@mvista.com>
2387
2388 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
2389 (stop_wait_callback): Handle !lp->signalled also.
2390 (lin_lwp_has_pending, flush_callback): New functions.
2391 (lin_lwp_wait): Call flush_callback.
2392 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
2393 (linux_proc_pending_signals): New function.
2394 * linux-nat.h (linux_proc_pending_signals): Add prototype.
2395
9407de8e
DJ
23962003-09-07 Daniel Jacobowitz <drow@mvista.com>
2397
2398 From Nick Kelsey <nickk@ubicom.com>:
2399 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
2400 when the stop PC is at the beginning of a function also.
2401
2ef47cd0
DJ
24022003-09-06 Daniel Jacobowitz <drow@mvista.com>
2403
2404 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
2405 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
2406
6f4492c8
MK
24072003-09-06 Mark Kettenis <kettenis@gnu.org>
2408
2409 * sol-thread.c: Include "gdb_string.h".
2410
d3420b2f
MK
24112003-09-03 Mark Kettenis <m.kettenis@osp.nl>
2412
2413 * gcore.c: Reorder include files in alphabetical order. Include
2414 "gdb_assert.h". Various coding style fixes.
2415 (derive_stack_segment, derive_heap_segment): Replace check for
2416 non-null BOTTOM and TOP with gdb_assert.
2417 (derive_heap_segment): Replace check for successful creation of
2418 ZERO with gdb_assert.
2419 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
2420
5220ea4c
AC
24212003-09-04 Andrew Cagney <cagney@redhat.com>
2422
2423 * thread-db.c (verbose_dlsym): New function.
2424 (thread_db_load): Use verbose_dlsym
2425 (thread_db_new_objfile): Print that libthread_db was loaded, and
2426 that thread debugging was enabled.
2427
6e8c2c06
AC
24282003-09-04 Andrew Cagney <cagney@redhat.com>
2429
2430 * configure.tgt: Add "mips64*-*-*" target. Delete
2431 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
2432 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
2433 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
2434 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
2435 mips*-sony-*, and mips64*-*-elf* targets.
2436 * config/mips/embedl.mt: Delete file.
2437 * config/mips/embedl64.mt: Delete file.
2438 * config/mips/mips.mt: Delete file.
2439 * config/mips/mips64.mt: Delete file.
2440 * config/mips/tm-embed.h: Delete file.
2441 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
2442 * config/mips/embed64.mt: Delete out-of-date comment.
2443
3a3bc038
AC
24442003-09-04 Andrew Cagney <cagney@redhat.com>
2445
2446 * hppa-tdep.c (hppa_gdbarch_init): Set
2447 "have_nonsteppable_watchpoint".
2448 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2449 * mips-tdep.c (mips_dump_tdep): Do not print
2450 HAVE_NONSTEPPABLE_WATCHPOINT.
2451 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
2452 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2453 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2454 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2455
a957e642
CV
24562003-09-04 Corinna Vinschen <vinschen@redhat.com>
2457
2458 * breakpoint.c (watchpoint_check): Remove accidentally checked in
2459 unused code. Add comment.
2460
a6fbcf2f
CV
24612003-09-04 Corinna Vinschen <vinschen@redhat.com>
2462
2463 * breakpoint.c (watchpoint_check): Check for pc being in an
2464 epilogue if watchpoint frame couldn't be found.
2465
c14a44d5
AC
24662003-09-04 Andrew Cagney <cagney@redhat.com>
2467
2468 * Makefile.in: Re-generate all dependencies.
2469
f6c40618
AC
24702003-09-03 Andrew Cagney <cagney@redhat.com>
2471
2472 * arch-utils.h (legacy_print_insn): Delete declaration.
2473 * arch-utils.c (legacy_print_insn): Delete function.
2474 * disasm.c (deprecated_tm_print_insn_info): Delete.
2475 (_initialize_disasm): Delete function, contained code initializing
2476 deprecated_tm_print_insn_info.
2477 * gdbarch.sh (deprecated_tm_print_insn): Delete.
2478 (deprecated_tm_print_insn_info): Delete.
2479 (TARGET_PRINT_INSN): Do not provide a default.
2480 * gdbarch.h, gdbarch.c: Re-generate.
2481
242e8be5
AC
24822003-09-03 Andrew Cagney <cagney@redhat.com>
2483
2484 * disasm.c (fprintf_disasm): New function.
2485 (gdb_disassemble_info): Call "init_disassemble_info", instead of
2486 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
2487 reverts 2003-08-14 change.
2488 (_initialize_disasm): Call "init_disassemble_info", instead of
2489 INIT_DISASSEMBLE_INFO_NO_ARCH.
2490
3ffc3dda
MS
24912003-09-03 Michael Snyder <msnyder@redhat.com>
2492
2493 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
2494
52d16ba8
AC
24952003-09-03 Andrew Cagney <cagney@redhat.com>
2496
2497 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
2498 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
2499 * symfile.c (syms_from_objfile): Update.
2500 (reread_symbols): `Update
2501 * exec.c (exec_file_attach): Update.
2502 (exec_file_attach): Update.
2503 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
2504 2003-08-29 change.
2505 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
2506
eb5492fa
DJ
25072003-09-03 Daniel Jacobowitz <drow@mvista.com>
2508
2509 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
2510 trad-frame.h.
2511 (arm_get_cache): Delete macro.
2512 (struct arm_prologue_cache): Update comments. Make saved_regs into
2513 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
2514 to prev_sp.
2515 (thumb_scan_prologue): Update for cache changes. Don't call
2516 DEPRECATED_PC_IN_CALL_DUMMY.
2517 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
2518 argument and use it in desperation search for our prologue. Do not
2519 search past the specified PC.
2520 (arm_make_prologue_cache): Simplify.
2521
2522 (arm_prologue_this_id, arm_prologue_prev_register)
2523 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
2524 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
2525 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
2526 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
2527 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
2528
2529 (arm_frame_chain_valid, arm_find_callers_reg)
2530 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
2531 (arm_pop_frame): Delete obsolete methods.
2532 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
2533
2534 (arm_gdbarch_init): Update for new frame methods. Register prologue
2535 and sigtramp unwinders. Set the default frame base method.
2536
2537 * Makefile.in (arm-tdep.o): Update dependencies.
2538 * varobj.c (find_frame_addr_in_frame_chain): Call
2539 get_frame_base_address.
2540 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2541
24de872b
DJ
25422003-09-03 Daniel Jacobowitz <drow@mvista.com>
2543
2544 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
2545 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
2546 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
2547 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
2548 Take NEXT_FRAME and CACHE arguments. Call
2549 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
2550 Set unwound_pc in CACHE instead of modifying the frame argument.
2551 Don't bother checking the frame type when looking for sigtramp
2552 frames.
2553 (arm_make_prologue_cache, arm_frame_chain)
2554 (arm_init_extra_frame_info): New functions.
2555
9b8d791a
DJ
25562003-09-03 Daniel Jacobowitz <drow@mvista.com>
2557
2558 * arm-tdep.c (arm_get_cache): Define.
2559 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
2560 unwound_sp, unwound_pc, and saved_regs.
2561 (thumb_scan_prologue): Take a cache instead of the frame.
2562 (arm_scan_prologue): Likewise.
2563 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
2564 instead of a temporary frame.
2565 (arm_init_extra_frame_info): Allocate and use a cache.
2566 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
2567
7ee3275f
AC
25682003-09-03 Andrew Cagney <cagney@redhat.com>
2569
2570 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
2571 * config/mips/wince.mt (TM_CLIBS): Ditto.
2572 * config/sh/wince.mt (TM_CLIBS): Ditto.
2573 * config/pa/hppa64.mt (TM_CLIBS): Delete.
2574 * config/sparc/sp64.mt (CC): Delete.
2575
57b29be7
AC
25762003-09-03 Andrew Cagney <cagney@redhat.com>
2577
2578 * defs.h: Do not include "arch-utils.h".
2579 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
2580 GDB_MULTI_ARCH_PURE.
2581 * configure.in (GDB_MULTI_ARCH): Do not define.
2582 * configure, config.in: Regenerate.
2583 * configure.tgt: Do not set variable "gdb_multi_arch".
2584 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
2585 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
2586 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
2587 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
2588 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
2589 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
2590 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
2591 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
2592 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
2593 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
2594 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
2595 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
2596 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
2597 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
2598 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
2599 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
2600 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
2601 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 2602
12e035e2
MC
26032003-08-30 Michael Chastain <mec@shout.net>
2604
2605 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
2606 * config/m68k/nm-hp300hpux.h: Delete.
2607 * config/m68k/tm-hp300hpux.h: Delete.
2608 * config/m68k/xm-hp300hpux.h: Delete.
2609 * config/m68k/xm-hp300bsd.h: Delete.
2610 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
2611 tm-hp300hpux.h, xm-hp300hpux.h.
2612 * somsolib.c: Remove comment about hp300 shared libraries.
2613
bda34dc2
MK
26142003-08-31 Mark Kettenis <kettenis@gnu.org>
2615
5bca7895
MK
2616 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
2617 Only define PTRACE_GET_THREAD_AREA is not already defined.
2618 Various style fixes in code and comments and some additional
2619 spelling fixes in comments. Move after functions dealing with
2620 debug registers.
2621 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
2622 Fix coding-style.
2623
bda34dc2
MK
2624 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
2625 frame_unwind_register_unsigned instead of
2626 frame_unwind_unsigned_register.
2627
c890192f
MK
26282003-08-30 Mark Kettenis <kettenis@gnu.org>
2629
2630 * configure.in: Search for gethostbyname in libnsl.
2631 * configure: Regenerated.
2632
60fac5b8
MK
26332003-08-29 Mark Kettenis <kettenis@gnu.org>
2634
e294916c
MK
2635 * configure.in: Remove redundant AC_MSG_RESULT in check for
2636 uintptr_t in stdint.h.
2637 * configure: Regenerated.
2638
c40d267a
MK
2639 * amd64-nat.h (struct regcache): Add opaque declaration.
2640
60fac5b8
MK
2641 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
2642 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
2643 Change "register array" to "register cache" in comments.
2644 (x86_64_linux_gregset64_reg_offset): New variable.
2645 (GETREGS_SUPPLIES): Remove macro.
2646 (supply_gregset): Call amd64_supply_native_gregset instead of
2647 x86_64_linux_supply_gregset.
2648 (fill_gregset): Rename `regno' to `regnum'. Call
2649 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
2650 (store_regs): Rename `regno' to `regnum'.
2651 (store_fpregs): Rename `regno' to `regnum'.
2652 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
2653 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2654 Reorganize function a bit.
2655 (store_inferior_registers): Rename `regno' to `regnum'. Use
2656 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2657 Reorganize function a bit.
2658 (_initialize_x86_64_linux_nat): New function.
2659 * config/i386/x86-64linux.mh.
2660
546143b6
AC
26612003-08-29 Andrew Cagney <cagney@redhat.com>
2662
2663 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
2664 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
2665 (target_remove_watchpoint): Delete macro.
2666 (target_insert_watchpoint): Delete macro.
2667 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
2668 (remote_mips_stopped_by_watchpoint): Delete declaration.
2669 (remote_mips_remove_watchpoint): Delete declaration.
2670 (remote_mips_set_watchpoint): Delete declaration.
2671 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
2672 * remote-mips.c (_initialize_remote_mips): Set
2673 "to_insert_watchpoint", "to_stopped_by_watchpoint",
2674 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
2675 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
2676 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
2677 (mips_stopped_by_watchpoint): Rename
2678 remote_mips_stopped_by_watchpoint.
2679 (mips_can_hardware_watchpoint): Rename
2680 remote_mips_can_use_hardware_watchpoint, update function
2681 signature.
2682
7bace51b
MK
26832003-08-29 Mark Kettenis <kettenis@gnu.org>
2684
b0f5c6f2
MK
2685 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
2686 USER_DS. We haven't given them a register number yet.
2687
2a6d284d
MK
2688 * amd64-nat.h: New file.
2689 * amd64-nat.c: New file.
2690 * amd64fbsd-nat.c: Include "amd64-nat.h".
2691 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
2692 (amd64fbsd32_r_reg_offset): New variable.
2693 (supply_gregset): Simply call amd64_supply_native_gregset.
2694 (fill_gregset): Rename `regno' to `regnum'. Simply call
2695 amd64_collect_native_gregset.
2696 (fill_fpregset): Rename `regno' to `regnum'.
2697 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
2698 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2699 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2700 `fpregset_t'. Call amd64_supply_native_gregset instead of
2701 supply_gregset. Call x86_64_supply_fxsave instead of
2702 supply_fpregset.
2703 (store_inferior_registers): Rename `regno' to `regnum'. Replace
2704 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2705 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2706 `fpregset_t'. Call amd64_collect_native_gregset instead of
2707 fill_gregset. Call x86_64_collect_fxsave instead of
2708 fill_fpregset.
2709 (_initialize_am64fbsd_nat): Initialize
2710 amd64_native_gregset32_reg_offset and
2711 amd64_native_gregset64_reg_offset.
2712 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
2713
a16d75cc
MK
2714 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
2715 null pointer. Fix typo in comment.
2716
7bace51b
MK
2717 * regcache.c (supply_register): Reimplement to call
2718 regcache_raw_supply.
2719 (regcache_collect): Reimplement by calling regcache_raw_collect.
2720
9a661b68
MK
27212003-08-28 Mark Kettenis <kettenis@gnu.org>
2722
2723 * regcache.c (register_buffer): Consitify first argument.
2724 (regcache_raw_supply, regcache_raw_collect): New
2725 functions.
2726
e94cc8fa
DJ
27272003-08-28 Daniel Jacobowitz <drow@mvista.com>
2728
2729 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
2730 by Nathan J. Williams.
2731
c64bd0ce
DJ
27322003-08-28 Daniel Jacobowitz <drow@mvista.com>
2733
2734 * lin-lwp.c (wait_lwp): New function, copied from
2735 stop_wait_callback. Clean up.
2736 (stop_wait_callback): Use wait_lwp.
2737
e5ab0dce
AC
27382003-08-28 Andrew Cagney <cagney@redhat.com>
2739
2740 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
2741 flavour and disassembler options.
2742 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
2743 (mips_gdbarch_init): Set "print_insn". Delete initialization of
2744 deprecated_tm_print_insn_info.
a8f4cde1 2745
a788de9b
AC
27462003-08-27 Andrew Cagney <cagney@redhat.com>
2747
2748 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
2749 Use target_read_memory.
2750 (s390_get_frame_info): Update. Do not reference
2751 deprecated_tm_print_insn_info.
2752 (s390_check_function_end, s390_is_sigreturn): Ditto.
2753
36482093
AC
27542003-08-27 Andrew Cagney <cagney@redhat.com>
2755
2756 * Makefile.in (cris-tdep.o): Update dependencies.
2757 * cris-tdep.c: Include "gdb_assert.h".
2758 (cris_gdbarch_init): Set print_insn.
2759 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
2760 (cris_delayed_get_disassembler): Simplify, directly call the
2761 disassembler returned by cris_get_disassembler.
2762 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
2763 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
2764 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
2765 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
2766 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
2767 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
2768 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
2769 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
2770 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
2771 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
2772 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
2773 (gdb_print_insn_sparc): Delete function.
2774 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
2775 deprecated_tm_print_insn_info.
2776 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
2777 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
2778 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
2779 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
2780 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
2781 * s390-tdep.c (gdb_print_insn_s390): Delete function.
2782 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
2783 (s390_gdbarch_init): Set print_insn.
2784
0285512f
AC
27852003-08-27 Andrew Cagney <cagney@redhat.com>
2786
2787 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
2788 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
2789 * infcall.c (call_function_by_hand): Convert the entry point
2790 address into a code address.
2791
cdcd5552
AC
27922003-08-27 Andrew Cagney <cagney@redhat.com>
2793
2794 * dsrec.c: Include "gdb_string.h".
2795 * Makefile.in (dsrec.o): Update dependencies.
2796
e85cddad
MC
27972003-08-27 Michael Chastain <mec@shout.net>
2798
2799 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
2800
8bbfbb23
AC
28012003-08-27 Andrew Cagney <cagney@redhat.com>
2802
2803 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
2804 (alpha_osf1_init_abi): Do not set call_dummy_address.
2805
ba058b66
DC
28062003-08-27 David Carlton <carlton@kealia.com>
2807
2808 From Randolph Chung <tausq@debian.org>:
2809 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
2810 compiles with -Wformat-nonliteral -Werror.
2811
87f84c9d
JB
28122003-08-26 Jim Blandy <jimb@redhat.com>
2813
2814 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
2815 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
2816 bfd_lookup_symbol, since we only want symbols in code sections.
2817 (look_for_base): Pass zero as the SECT_FLAGS argument to
2818 bfd_lookup_symbol, since we're not concerned about which section
2819 the symbol is in.
2820
102d615a
JJ
28212003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2822
2823 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 2824 we are frameless or the return address register is already known.
102d615a 2825
cc7ad3ea
AC
28262003-08-26 Andrew Cagney <cagney@redhat.com>
2827
2828 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2829 in size. Add comments.
2830
af8b88dd
JJ
28312003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2832
2833 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 2834 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 2835
e0a4f5a1
JM
28362003-08-26 Jason Merrill <jason@redhat.com>
2837
2838 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2839 case out of #ifdef MIPS block.
2840
4ae9ee8e
DJ
28412003-08-25 Daniel Jacobowitz <drow@mvista.com>
2842
2843 PR java/1322
2844 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2845 available before calling SECT_OFF_TEXT.
3c164570 2846 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 2847
004d836a
JJ
28482003-08-25 Jeff Johnston <jjohnstn@redhat.com>
2849
a8f4cde1 2850 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
2851 bof, and nat0-nat127 as pseudo-registers.
2852 (ia64_frame_cache): New struct used to cache frame info.
2853 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 2854 register grouping so registers without names are still saved and
004d836a 2855 restored.
a8f4cde1 2856 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
2857 pseudo values.
2858 (ia64_pseudo_register_read): New routine to read pseudo-registers.
2859 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 2860 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
2861 ia64_frame_cache.
2862 (examine_prologue): Change prototype to add next_frame pointer.
2863 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 2864 current frame matches the cfm that should occur for the prologues
004d836a
JJ
2865 alloc insn and if equal, mark as not frameless. At end of routine,
2866 if not frameless, calculate registers for the previous frame and store
2867 in the cache, if a cache is provided.
2868 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2869 and pass 0 for next_frame.
2870 (ia64_store_return_value): Change to use convert_typed_floating()
2871 instead of calling ia64_convert_to_raw().
2872 (ia64_extract_return_value): Change to use convert_typed_floating()
2873 instead of calling ia64_convert_to_virtual().
2874 (ia64_frame_cache): New routine to support new frame model.
2875 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2876 (ia64_frame_sniffer): Ditto.
2877 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2878 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2879 (ia64_sigtramp_frame_prev_register): Ditto.
2880 (ia64_sigtramp_frame_sniffer): Ditto.
2881 (ia64_frame_base_address): Ditto.
2882 (ia64_extract_struct_value_address): Change to issue error message.
2883 (ia64_frame_align): New routine to align sp.
2884 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 2885 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
2886 ia64_push_dummy_call().
2887 (ia64_push_return_address): Ditto.
2888 (ia64_unwind_dummy_id): New function.
2889 (ia64_unwind_pc): Ditto.
2890 (ia64_convert_register_p): Ditto.
2891 (ia64_register_to_value): Ditto.
2892 (ia64_value_to_register): Ditto.
2893 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2894 (ia64_register_byte, ia64_register_raw_size): Ditto.
2895 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2896 (ia64_saved_pc_after_call): Ditto.
2897 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2898 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2899 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2900 (ia64_register_convert_to_raw): Ditto.
2901 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2902 (ia64_init_extra_frame_info): Ditto.
2903 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2904 (ia64_gdbarch_init): Remove registering of deprecated functions that
2905 are no longer used. Add registration of new gdbarch functions.
2906 Remove registering deprecated_write_sp. Replace
2907 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2908 Delete set_gdbarch_deprecated_register_convertible(),
2909 set_gdbarch_deprecated_register_convert_to_virtual(), and
2910 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2911 set_gdbarch_deprecated_register_size(),
2912 set_gdbarch_deprecated_register_bytes(),
2913 set_gdbarch_pcregnum(),
2914 set_gdbarch_deprecated_register_byte(),
2915 set_gdbarch_deprecated_register_raw_size(),
2916 set_gdbarch_deprecated_max_register_raw_size(),
2917 set_gdbarch_deprecated_register_virtual_size(),
2918 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2919 Replace set_gdbarch_deprecated_extract_return_value() with
2920 set_gdbarch_extract_return_value(). Remove calls to:
2921 set_gdbarch_deprecated_saved_pc_after_call();
2922 set_gdbarch_deprecated_frame_chain(),
2923 set_gdbarch_deprecated_frame_saved_pc(),
2924 set_gdbarch_deprecated_frame_init_saved_regs(),
2925 set_gdbarch_deprecated_get_saved_register(),
2926 set_gdbarch_deprecated_call_dummy_words(),
2927 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2928 set_gdbarch_deprecated_init_extra_frame_info(),
2929 set_gdbarch_deprecated_frame_args_address(),
2930 set_gdbarch_deprecated_frame_locals_address(),
2931 and set_gdbarch_deprecated_dummy_write_sp().
2932 Add set_gdbarch_convert_register_p(),
2933 set_gdbarch_register_to_value(),
2934 set_gdbarch_value_to_register(),
2935 set_gdbarch_push_dummy_call(),
2936 set_gdbarch_frame_align(),
2937 set_gdbarch_unwind_dummy_id(),
2938 set_gdbarch_unwind_pc(),
2939 frame_unwind_append_sniffer(),
2940 frame_unwind_append_sniffer(),
2941 and frame_base_set_default().
2942
aede7613
CD
29432003-08-25 Chris Demetriou <cgd@broadcom.com>
2944
2945 * configure.tgt: Document need for special "mipsisa64" handling.
2946 (mipsisa64*-*-linux64): Handle as target linux64.
2947 (mipsisa64*-*-*): Handle as target embed64.
2948
43c3a82e
MC
29492003-08-18 Michael Chastain <mec@shout.net>
2950
2951 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2952 objfile bug.
2953
6564f77d
MK
29542003-08-24 Mark Kettenis <kettenis@gnu.org>
2955
2de139ba
MK
2956 * i387-tdep.h: Update copyright date.
2957 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2958
6564f77d
MK
2959 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2960 CFLAGS games to reflect reality.
2961
42cf1509
AC
29622003-08-24 Andrew Cagney <cagney@redhat.com>
2963
2964 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2965 GDB_MULTI_ARCH is always non-zero.
2966 * osabi.c (_initialize_gdb_osabi): Ditto.
2967 (gdbarch_init_osabi): Ditto.
2968 * sparc-tdep.c: Ditto for #if code.
2969
0485f6ad
MK
29702003-08-23 Mark Kettenis <kettenis@gnu.org>
2971
2972 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2973 Update comments.
2974 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2975 comments.
2976 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2977 x86_64_supply_fxsave.
2978 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2979 x86_64_supply_fxsave.
2980 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2981 x86_64_supply_fxsave.
2982
c7716133
AJ
29832003-08-23 Andreas Jaeger <aj@suse.de>
2984
2985 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2986 i387_supply_fxsave.
2987
ed504bdf
MK
29882003-08-23 Mark Kettenis <kettenis@gnu.org>
2989
2990 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2991 i387_supply_register.
2992 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2993 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2994 i387_supply_fsave.
2995 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2996 i387_supply_fxsave.
2997 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2998 i387_supply_fsave.
2999 * i386bsd-nat.c (supply_fpregset): Adjust call to
3000 i387_supply_fsave.
3001 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
3002 call to i387_supply_fxsave. Call i387_supply_fsave instead of
3003 supply_fpregset.
3004 (store_inferior_registers): Remove extraneous whitespace. Call
3005 i387_fill_fsave instead of fill_fpregset.
3006 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3007 (supply_fpregset): Likewise.
3008 * i386v4-nat.c (supply_fpregset): Adjust call to
3009 i387_supply_fsave.
3010 * i386-interix-nat.c (supply_fpregset): Adjust call to
3011 i387_supply_fsave.
3012 * i386-linux-nat.c (supply_fpregset): Adjust call to
3013 i387_supply_fsave.
3014 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3015 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3016 i387supply_fsave and i387_supply_fxsave.
3017 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3018 Incorporate code from `i387_supply_register.
3019 (i387_supply_register): Remove.
3020 (i387_supply_fxsave): Add `regnum' argument.
3021 Update comments.
3022 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3023 prototype.
3024 (i387_supply_register): remove prototype.
3025 Update comments.
a8f4cde1 3026
4be5d520
MC
30272003-08-22 Michael Chastain <mec@shout.net>
3028
3029 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3030 Add lines for files in gdb/testsuite/gdb.cp/* that are
3031 still not 8.3 unique.
3032
7ed85d26
DJ
30332003-08-22 Daniel Jacobowitz <drow@mvista.com>
3034
3035 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3036 TYPE_VPTR_FIELDNO is valid.
3037
eb0d3137
MK
30382003-08-19 Mark Kettenis <kettenis@gnu.org>
3039
3040 * utils.c (set_width_command): Remove prototypes.
3041 (set_screen_size): New prototype.
3042 (init_page_info): Simplify by fetching the screen size from
3043 Readline. Call set_screen_size.
3044 (set_screen_size): New function.
3045 (set_width): Add missing whitespace in comment.
3046 (set_width_command): Call set_screen_size.
3047 (set_height_command): New function.
3048 (initialize_utils): Fix formatting. Make "set height" command
3049 call set_height_command. Remove redundant code that turns off
3050 pagination if output isn't a terminal. Remove redundant call to
3051 set_width_command.
a8f4cde1 3052
7e6d0ac8
MK
30532003-08-22 Mark Kettenis <kettenis@gnu.org>
3054
3567a8ea
MK
3055 * sparc64-tdep.h (sparc64_regnum): Fix comment.
3056 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
3057 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
3058 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
3059 `case' keyword.
3060 (sparc64_register_info): Give the reister with number
3061 SPARC64_STATE_REGNUM a name.
3062 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
3063 %asi and %ccr.
3064 (sparc64_push_dummy_call): Take BIAS into account when checking
3065 stcak alignment.
3066 (sparc_software_single_step): Remove assertions that check whether
3067 NPC and NNPC were zero.
3068 (sparc_supply_rwindow): Make public. Merge functionality with
3069 sparc64_supply_rwindow.
3070 (sparc_fill_rwindow): Make public. Merge functionality with
3071 sparc64_fill_rwindow.
3072 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
3073 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
3074 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
3075 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
3076 sparc_supply_rwindow instead of sparc64_supply_rwindow.
3077
7e6d0ac8
MK
3078 * reggroups.c: Add whitespace after declarations of local
3079 variables in functions.
3080
72e5f484
MC
30812003-08-21 Michael Chastain <mec@shout.net>
3082
3083 * gdbtypes.h: Change array bound type from an int to enum.
3084
435ac228
AC
30852003-08-21 Andrew Cagney <cagney@redhat.com>
3086
3087 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
3088 * config/sparc/tm-sparc.h: Ditto.
3089 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
3090 unconditionally.
3091 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
3092
0d0e1a63
MK
30932003-07-13 Mark Kettenis <kettenis@gnu.org>
3094
3095 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
3096 (register_objfile_data, set_objfile_data, objfile_data): New
3097 prototypes.
3098 * objfiles.c (objfile_alloc_data, objfile_free_data): New
3099 prototypes.
3100 (allocate_objfile): Call objfile_alloc_data.
3101 (free_objfile): Call objfile_free_data.
3102 (struct objfile_data): New.
3103 (struct objfile_data_registration): New.
3104 (struct objfile_data_registry): New.
3105 (objfile_data_registry): New variable.
3106 (register_objfile_data): New function.
3107 (objfile_alloc_data, objfile_free_data): New functions.
3108 (set_objfile_data, objfile_data): New functions.
3109 * dwarf2-frame.c (dwarf2_frame_data): New variable.
3110 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
3111 (_initialize_dwarf2_frame): New function and prototype.
3112
d90cf509
AC
31132003-08-21 Andrew Cagney <cagney@redhat.com>
3114
3115 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
3116 a specific architecture.
3117 * arch-utils.h (set_architecture_from_arch_mach): Delete
3118 declaration.
3119 (target_architecture_hook): Delete declaration.
3120 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
3121 (default_float_format): Assume GDB_MULTI_ARCH.
3122 (default_double_format): Assume GDB_MULTI_ARCH.
3123 (set_endian_from_file): Delete function.
3124 (arch_ok): Delete function.
3125 (set_arch): Delete function.
3126 (set_architecture_from_arch_mach): Delete function.
3127 (set_architecture_from_file): Delete function.
3128 (set_architecture): Assume GDB_MULTI_ARCH.
3129 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
3130
8b39fe56
MK
31312003-08-21 Mark Kettenis <kettenis@gnu.org>
3132
3133 Rewrite FreeBSD/sparc64 native configuration.
3134 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
3135 * sparc64fbsd-nat.c: New file.
3136 * sparc64fbsd-tdep.c: New file.
3137 * sparc64-tdep.c sparc64-tdep.h: New files.
3138 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
3139 sparc64fbsd-tdep.o): New dependencies.
3140 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
3141 and sparc64fbsd-tdep.c.
3142 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
3143 * config/sparc/fbsd.mh: Remove copyright notice.
3144 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
3145 sparcbsd-nat.o.
3146 * config/sparc/fbsd.mt: Remove copyright notice.
3147 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
3148 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
3149 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
3150 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
3151 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
3152 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
3153 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
3154 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
3155 "sparc/tm-sp64.h".
3156 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
3157 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
3158
a7f19c79
MC
31592003-08-21 Michael Chastain <mec@shout.net>
3160
3161 * symtab.h: Add doco on the space critical structures and
3162 some measurements of space usage.
3163
da08ea5b
MS
31642003-08-21 Michael Snyder <msnyder@redhat.com>
3165
3166 * tracepoint.c (trace_dump_command): Trace break address
3167 is subject to DECR_PC_AFTER_BREAK.
3168 (set_traceframe_context): Make "trace_line" an int.
3169 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 3170
6df2bf50
MS
31712003-08-20 Michael Snyder <msnyder@redhat.com>
3172
3173 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
3174 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
3175 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 3176 argument passing.
a8f4cde1 3177 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
3178 functions, replace sh_push_dummy_call.
3179 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
3180
0955bbf0
MC
31812003-08-20 Michael Chastain <mec@shout.net>
3182
3183 * gdbtypes.h (struct main_type): Rearrange to save space.
3184
260a4188
MS
31852003-08-20 Michael Snyder <msnyder@redhat.com>
3186
3187 * trad-frame.c: Comment typo fix.
3188
8baa6f92
KB
31892003-08-20 Michael Snyder <msnyder@redhat.com>
3190 Kevin Buettner <kevinb@redhat.com>
3191
3192 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
3193 (frv_frame_init_saved_regs): Add declaration.
3194 (frame_extra_info): Add new field ``saved_regs''.
3195 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
3196 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
3197 Update frame related code.
3198 (frv_extract_struct_value_address): Adjust formatting.
3199 * Makefile.in (frv-tdep.o): Update dependencies.
3200 * config/frv/tm-frv.h (target_insert_watchpoint)
3201 (target_remove_watchpoint, target_insert_hw_breakpoint)
3202 (target_remove_hw_breakpoint): Delete these macros.
3203 (remote_insert_watchpoint, remote_remove_watchpoint)
3204 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
3205 these declarations.
3206
87193939
MC
32072003-08-20 Michael Chastain <mec@shout.net>
3208
3209 * defs.h (ENUM_BITFIELD): New macro.
3210 * symtab.h (ENUM_BITFIELD): Use it.
3211 (BYTE_BITFIELD): Remove old macro, which was already disabled.
3212
062103ba
SA
32132003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
3214
3215 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 3216
8b148df9
AC
32172003-08-18 Andrew Cagney <cagney@redhat.com>
3218
3219 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
3220 * gdbarch.h, gdbarch.c: Re-generate.
3221 * infcall.c (call_function_by_hand): Adjust the SP by
3222 frame_red_zone_size before allocating any stack space.
3223 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
3224 * x86-64-tdep.c (x86_64_frame_align): New function.
3225 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
3226
3227 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
3228 Remove code adjusting SP so that it skips over the Red Zone.
3229
954a4db8
MK
32302003-08-18 Mark Kettenis <kettenis@gnu.org>
3231
3232 * NEWS (New native configurations): Mention FreeBSD/amd64.
3233
1a241548
AC
32342003-08-18 Andrew Cagney <cagney@redhat.com>
3235
3236 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
3237 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
3238 "m68k_frame_p".
3239 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
3240
f82b2acd
MK
32412003-08-18 Mark Kettenis <kettenis@gnu.org>
3242
3243 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
3244
4056d258
ML
32452003-08-18 Michal Ludvig <mludvig@suse.cz>
3246
3247 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
3248 Define.
3249 * i386-linux-nat.c: Include "linux-nat.h".
3250 (child_post_startup_inferior): New function.
a8f4cde1 3251
99ab4326
MK
32522003-08-18 Mark Kettenis <kettenis@gnu.org>
3253
3254 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
3255 at the start of a frameless function. This probably fixes PR
3256 backtrace/1338.
3257
c8d5f0d6
MC
32582003-08-17 Michael Chastain <mec@shout.net>
3259
3260 * symfile.c (find_sym_fns): Remove special case for apollo target.
3261
9016a515
DJ
32622003-08-17 Daniel Jacobowitz <drow@mvista.com>
3263
3264 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
3265 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
3266 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
3267 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
3268 (linux_supports_tracevforkdone): New function.
3269 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
3270 TRACEVFORKDONE.
3271 (child_follow_fork): Handle vfork.
3272 (linux_handle_extended_wait): Likewise. Also handle exec.
3273 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
3274 * NEWS: Mention fork tracing.
3275
c538c11c
DJ
32762003-08-17 Daniel Jacobowitz <drow@mvista.com>
3277
3278 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3279
4de4c07c
DJ
32802003-08-17 Daniel Jacobowitz <drow@mvista.com>
3281
3282 * Makefile.in (i386-linux-nat.o): Update dependencies.
3283 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
3284 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
3285 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
3286 * i386-linux-nat.c: Include "linux-nat.h".
3287 (child_post_startup_inferior): New function.
3288 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
3289 * infptrace.c (kill_inferior): Wrap in #ifdef.
3290 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
3291 attaching to each LWP.
3292 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
3293 (init_lin_lwp_ops): Fill in some more operations.
3294 * linux-nat.h (linux_enable_event_reporting)
3295 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
3296 prototypes.
3297 * linux-nat.c (linux_enable_event_reporting): New function.
3298 (child_post_attach, linux_child_post_startup_inferior)
3299 (child_post_startup_inferior, child_follow_fork)
3300 (linux_handle_extended_wait, kill_inferior): New functions.
3301
7996bcec
AC
33022003-08-16 Andrew Cagney <cagney@redhat.com>
3303
3304 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
3305 * gdbarch.h, gdbarch.c: Re-generate.
3306
3d48a7a0
MK
33072003-08-16 Mark Kettenis <kettenis@gnu.org>
3308
3309 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
3310
7989c619
AC
33112003-08-16 Andrew Cagney <cagney@redhat.com>
3312
3313 * NEWS: Mention that "set prompt-escape-char" was deleted.
3314 * top.c (get_prompt_1): Delete function.
3315 (gdb_prompt_escape):
3316 (init_main): Do not clear "gdb_prompt_escape". Delete "set
3317 prompt-escape-char" command.
3318 (MAX_PROMPT_SIZE): Delete macro.
3319 (get_prompt): Simplify, do not call get_prompt_1.
3320
07978cd8
AC
33212003-08-16 Andrew Cagney <cagney@redhat.com>
3322
3323 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
3324 -Werror. -Wformat-nonliteral problems.
3325
3ff7cf9e
JB
33262003-08-15 J. Brobecker <brobecker@gnat.com>
3327
3328 Further multiarching work mostly for hppa64-*-hpux11:
3329 * hppa-tdep.h: New file.
3330 * hppa-tdep.c: #include hppa-tdep.c.
3331 (hppa32_num_regs): Renamed from hppa_num_regs.
3332 (hppa64_num_regs): New constant.
3333 (hppa64_call_dummy_breakpoint_offset): New constant.
3334 (hppa32_call_dummy_length): New constant.
3335 (hppa64_call_dummy_length): New constant.
3336 (hppa32_stack_align): Make name 32bit explicit.
3337 (hppa32_register_virtual_type): Likewise.
3338 (hppa32_extract_return_value): Likewise.
3339 (hppa32_use_struct_convention): Likewise.
3340 (hppa32_store_return_value): Likewise.
3341 (hppa64_register_virtual_type): New function.
3342 (hppa64_extract_return_value): New function.
3343 (hppa64_use_struct_convention): New function.
3344 (hppa64_store_return_value): New function.
3345 (hppa_frame_locals_address): Remove declaration, function does
3346 not exist anymore.
3347 (hppa_register_byte): Add support for PA64 ABI.
3348 (hppa_gdbarch_init): Add support for PA64 ABI.
3349 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
3350 Make name 32bit explicit.
3351 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
3352 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
3353 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
3354 (hppa64_hpux_frame_base_before_sigtramp): New function.
3355 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
3356 * config/pa/tm-hppa64.h: Remove macros that are no longer
3357 necessary now that the gdbarch vector is properly setup.
a8f4cde1 3358 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
3359 * config/pa/tm-hppah.h: Update function calls in macros
3360 following the function renaming in hppa-hpux-tdep.c.
3361 * Makefile.in (hppa_tdep_h): New variable.
3362 (hppa-tdep.o): Add dependency over hppa_tdep_h.
3363
5d05ca6d
MS
33642003-08-14 Michael Snyder <msnyder@redhat.com>
3365
3366 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
3367
37ba2569
JB
33682003-08-13 J. Brobecker <brobecker@gnat.com>
3369
3370 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
3371 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
3372 routine.
3373
aed7f26a
MS
33742003-08-13 Michael Snyder <msnyder@redhat.com>
3375
3376 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
3377 (frv_saved_pc_after_call): Use deprecated ftype.
3378 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
3379 (frv_remote_translate_xfer_address): Remove.
3380 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
3381
752d4ac1
JB
33822003-08-13 J. Brobecker <brobecker@gnat.com>
3383
3384 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
3385 initialization after the common gdbarch initialization, not before.
3386
1426ac1d
JB
33872003-08-13 J. Brobecker <brobecker@gnat.com>
3388
3389 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
3390 (ADDR_BITS_REMOVE): Remove, redundant.
3391
b6fbdd1d
JB
33922003-08-13 J. Brobecker <brobecker@gnat.com>
3393
3394 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
3395 gdbarch method to clear the 2 low bits of text addresses.
3396
44160db3
AC
33972003-08-12 Andrew Cagney <cagney@redhat.com>
3398
3399 * Makefile.in (dsrec.o): Update dependencies.
3400 * dsrec.c: Include "gdb_assert.h".
3401 (make_srec): Use snprintf instead of sprintf, use a literal format
3402 string.
3403
bcf7d3ca
AC
34042003-08-12 Andrew Cagney <cagney@redhat.com>
3405
3406 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
3407 FRAME_OBSTACK_ZALLOC.
3408
49ed40de
KB
34092003-08-12 Kevin Buettner <kevinb@redhat.com>
3410
3411 * i386-tdep.c (i386_gdbarch_init): Enable default support for
3412 SSE registers.
3413
b246147c
MK
34142003-08-10 Mark Kettenis <kettenis@gnu.org>
3415
3416 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
3417 amd64fbsd_sc_reg_offset): Add extern declarations.
3418 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
3419 declarations.
3420
d95fdc0d
BE
34212003-08-11 Ben Elliston <bje@wasabisystems.com>
3422
3423 * MAINTAINERS (write after approval): Update my mail address.
3424
cf6a0e73
AC
34252003-08-10 Andrew Cagney <cagney@redhat.com>
3426
3427 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
3428
f837910f
MK
34292003-08-10 Mark Kettenis <kettenis@gnu.org>
3430
e2dbbd2d
MK
3431 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3432 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
3433 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
3434 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
3435 i386bsd_sc_reg_offset): Add extern declarations.
3436 * i386obsd-nat.c: Include "i386-tdep.h"
3437 (_initialize_i386obsd_nat): Remove extern declarations.
3438 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
3439 declarations.
3440 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
3441 declarations.
3442
f837910f
MK
3443 * i386-tdep.c (i386_register_to_value): Use get_frame_register
3444 instead of frame_read_register.
3445 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
3446 instead of frame_read_register. Use I386_ESP_REGNUM instead of
3447 SP_REGNUM.
3448 (i386_frame_prev_register): Use frame_unwind_register_unsigned
3449 instead of frame_unwind_unsigned_register. Use
3450 I386_EFLAGS_REGISTER instead of PS_REGNUM.
3451 (i386_get_longjmp_target): Use regcache_read_unsigned_register
3452 instead of read_register. Use builtin_type_void_data_ptr instead
3453 of builtin_type_void_func_ptr when extracting the address of the
3454 jmp_buf.
3455 (i386_extract_return_value, i386_store_return_value,
3456 i386_pseudo_register_read, i386_pseudo_register_write): Use
3457 register_size instead REGISTER_RAW_SIZE.
3458
edcf254d
AC
34592003-08-10 Andrew Cagney <cagney@redhat.com>
3460
3461 * infcall.c (call_function_by_hand): Use xstrprintf instead of
3462 sprintf. Make "name" constant.
3463
26604a34
MK
34642003-08-10 Mark Kettenis <kettenis@gnu.org>
3465
192285c6
MK
3466 * i387-tdep.c (i387_register_to_value): Use get_frame_register
3467 instead of frame_read_register.
f837910f
MK
3468 (i387_print_float_info): Use get_frame_register and
3469 get_frame_register_unsigned instead of frame_register_read.
192285c6 3470
f0925262
MK
3471 * i386fbsd-nat.c: Include "i386-tdep.h".
3472 (child_resume): Make `eflags' an ULONGEST. Use
3473 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
3474 instead of register_read and register_write.
3475
a144416f
MK
3476 * i386bsd-nat.c (fetch_inferior_registers,
3477 store_inferior_registers): Don't use && at the end of a line.
3478 (_initialize_i386bsd_nat): Fix typo.
3479
fec74868
MK
3480 * frame.c (_initialize_frame): Add missing backslash.
3481
87232496
MK
3482 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3483 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
3484 and supply_register instead of manipulating the register buffer
3485 directly.
3486
c9b9de0b
MK
3487 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3488 * config/i386/nm-i386sol2.h
3489 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
3490
26604a34
MK
3491 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
3492 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
3493 instructions that GCC likes to mingle into the prologue. Fixes
3494 gdb/1253 and gdb/1255.
3495
25d29d70
AC
34962003-08-09 Andrew Cagney <cagney@redhat.com>
3497
3498 Fix GDB PR cli/926.
3499 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
3500 * command.h (add_setshow_uinteger_cmd): Declare.
3501 * frame.c (set_backtrace_cmd): New function.
3502 (show_backtrace_cmd): New function.
3503 * frame.c (_initialize_frame): Replace "set/show
3504 backtrace-below-main" with "set/show backtrace past-main". Add
3505 command "set/show backtrace limit".
3506 (backtrace_past_main): Rename "backtrace_below_main".
3507 (backtrace_limit): New variable.
3508 (get_prev_frame): Update. Check the backtrace_limit.
3509
9ebf4acf
AC
35102003-08-09 Andrew Cagney <cagney@redhat.com>
3511
3512 * defs.h (xstrprintf): Declare.
3513 * utils.c (xstrprintf): New function.
3514 * breakpoint.c (insert_breakpoints): Replace sprintf and
3515 non-literal format strings, with xstrprintf and cleanups.
3516 (delete_breakpoint,breakpoint_re_set): Ditto.
3517 (commands_command, insert_breakpoints): Ditto.
3518 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
3519 (break_at_finish_command_1): Ditto.
3520
3771659b
AC
35212003-08-09 Andrew Cagney <cagney@redhat.com>
3522
3523 * MAINTAINERS (language support): List Adam Fedor as Objective C
3524 maintainer.
3525
b4263afa
JB
35262003-08-08 J. Brobecker <brobecker@gnat.com>
3527
3528 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
3529 are now multiarched.
3530
d84defb1
JB
35312003-08-08 J. Brobecker <brobecker@gnat.com>
3532
3533 * config/pa/tm-hppa64.h: Remove lots of macros that are no
3534 longer necessary now that hppa64 is partially multiarch'ed.
3535
f786f615
AC
35362003-08-08 Andrew Cagney <cagney@redhat.com>
3537
3538 * interps.c (interp_set): Check for a NULL "old_interp".
3539
c938e9b0
L
35402003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3541
3542 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
3543 (install-only): Support DESTDIR.
3544 (uninstall): Likewise.
3545 (install-gdbtk): Likewise.
3546
9a146a11
EZ
35472003-08-08 Elena Zannoni <ezannoni@redhat.com>
3548
3549 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
3550 contains something meaningful at all times.
3551
3552Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 3553
62599e99 3554 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 3555
56296155
BC
3556Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
3557
62599e99 3558 * MAINTAINERS (write after approval): Added self.
56296155 3559
9710e734
AC
35602003-08-07 Andrew Cagney <cagney@redhat.com>
3561
3562 * inferior.h (AT_SYMBOL): Define.
3563 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
3564 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
3565 * mips-tdep.c (mips_call_dummy_address): Delete function.
3566 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
3567 set call_dummy_address.
3568
98b3ab73
AC
35692003-08-07 Andrew Cagney <cagney@redhat.com>
3570
3571 * language.c (op_error): Delete function.
3572 (binop_type_check): Delete function.
3573 * language.h (type_op_error, range_op_error): Delete macros.
3574 (op_error): Delete declaration.
3575
2fcf52f0
AC
35762003-08-07 Andrew Cagney <cagney@redhat.com>
3577
3578 * interps.h (INTERP_MI2, INTERP_MI3): Define.
3579
abd4220e 35802003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 3581
abd4220e 3582 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 3583 (x86_64_push_arguments): Skip the red zone.
abd4220e 3584
9dd5f34f
AC
35852003-08-05 Andrew Cagney <cagney@redhat.com>
3586
3587 * reggroups.c (reggroup_next): Check for the final entry.
3588
e5e78edc
AC
35892003-08-04 Andrew Cagney <cagney@redhat.com>
3590
ab4e3d93
AC
3591 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
3592 * cli/cli-script.c (define_command): Call query directly, instead
3593 of passing it a buffer.
3594 * ocd.c (ocd_error): Pass error a constant format string.
3595 * remote-mips.c (mips_error): Use fputs_filtered.
3596
1062ca82
AC
3597 * solib-svr4.c (_initialize_svr4_solib): Update
3598 register_gdbarch_data call.
3599 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
3600
fcc1c85c
AC
3601 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
3602 (register_gdbarch_data): Delete "free" parameter. Update
3603 comments.
3604 * gdbarch.h, gdbarch.c: Re-generate.
3605 * reggroups.c (_initialize_reggroup): Update.
3606 * gnu-v3-abi.c (init_gnuv3_ops): Update.
3607 * frame-base.c (_initialize_frame_base): Update.
3608 * frame-unwind.c (_initialize_frame_unwind): Update.
3609 * user-regs.c (_initialize_user_regs): Update.
3610 * remote.c (_initialize_remote): Update.
3611 * regcache.c (_initialize_regcache): Update.
3612
116f06ea
AC
3613 * regcache.c (xfree_regcache_descr): Delete function.
3614 (_initialize_regcache): Update call to register_gdbarch_data.
3615 (init_regcache_descr, init_legacy_regcache_descr): Use
3616 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
3617
e5e78edc
AC
3618 * remote.c (free_remote_state): Delete function.
3619 (_initialize_remote): Update register_gdbarch_data.
3620 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
3621 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
3622
6c7d17ba
AC
36232003-08-04 Andrew Cagney <cagney@redhat.com>
3624
3625 * reggroups.c (struct reggroup_el): Define.
3626 (struct reggroups): Delete field "nr_group". Replace array
3627 "group" with a "first" to "last" linked list.
3628 (reggroups_init): Update. Allocate using gdbarch's obstack.
3629 (reggroups_free): Delete function.
3630 (add_group): Update. Add "el" parameter.
3631 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
3632 (default_groups): Update.
3633 (reggroup_next): Replace reggroups.
3634 (reggroups_dump): Update.
3635 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
3636 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
3637 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
3638
89b7795b
DJ
36392003-08-04 Daniel Jacobowitz <drow@mvista.com>
3640
3641 * Makefile.in (tui-interp.o): Update dependencies.
3642
306d9ac5
DC
36432003-08-04 David Carlton <carlton@kealia.com>
3644
3645 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
3646 to internal_error call.
3647 * source.c (forward_search_command): Add "%s" format argument.
3648 (reverse_search_command): Ditto.
3649 * top.c (quit_confirm): Ditto.
3650 * cli/cli-setshow.c (do_setshow_command): Ditto.
3651 * cp-valprint.c (cp_print_class_method): Replace
3652 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
3653 (cp_print_class_member): Ditto.
3654 * event-top.c (command_line_handler): Ditto.
3655 * linux-proc.c (linux_info_proc_cmd): Ditto.
3656 * p-typeprint.c (pascal_type_print_base): Ditto.
3657 * p-valprint.c (pascal_object_print_class_method): Ditto.
3658 (pascal_object_print_class_member): Ditto.
3659 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
3660 * remote.c (remote_cisco_section_offsets): Ditto.
3661 * top.c (command_line_input): Ditto.
3662 * utils.c (vwarning,error_stream,quit): Ditto.
3663 * valprint.c (print_floating,print_binary_chars)
3664 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
3665
57bfe177
AC
36662003-08-04 Andrew Cagney <cagney@redhat.com>
3667
3668 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
3669
e546b999
AC
36702003-08-02 Andrew Cagney <cagney@redhat.com>
3671
3672 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
3673 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
3674 amd64fbsd-nat.c.
3675
91092ee5
AC
36762003-08-02 Andrew Cagney <cagney@redhat.com>
3677
3678 * Makefile.in: Update all dependencies and definitions.
3679
889f28e2
AF
36802003-08-02 Adam Fedor <fedor@gnu.org>
3681
3682 * linespec.c (is_objc_method_format): New function
3683 (decode_line_1, locate_first_half): Use it.
3684 Fixes PR objc/1298
3685
880bc914
AC
36862003-08-01 Andrew Cagney <cagney@redhat.com>
3687
3688 * NEWS: Mention that m32r is multi-arch.
3689 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
3690 * configure.tgt: Recognize m32r-*-*.
3691 * config/m32r/tm-m32r.h: Delete file.
3692 * config/m32r/m32r.mt: New file.
a8f4cde1 3693 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
3694 gethostname succeeds, in order to avoid a compilation
3695 warning.
3696 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
3697 compiler warning.
3698
19f59343
MS
36992003-08-01 Michael Snyder <msnyder@redhat.com>
3700
3701 * sh-tdep.c (sh_frame_align): New gdbarch method.
3702 (sh_gdbarch_init): Set up frame_align method.
3703
4e7d7511
MS
37042003-07-31 Michael Snyder <msnyder@redhat.com>
3705
3706 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
3707 which is already covered by the new frames infrastructure.
3708
63022984
AC
37092003-07-31 Andrew Cagney <cagney@redhat.com>
3710
3711 * user-regs.c (struct user_reg): Add "next" link.
3712 (struct user_regs): Replace "user" with "first" and "last" links.
3713 (append_user_reg): Add pre-allocated "reg" parameter.
3714 (builtin_user_regs): Provide initial value for "last".
3715 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
3716 (user_regs_init): Allocate memory from the gdbarch obstack.
3717 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
3718 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
3719 linked list.
3720 (usernum_to_user_reg): New function.
3721 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
3722 (value_of_user_reg): Use usernum_to_user_reg.
3723 (user_regs_free): Delete function.
3724 (_initialize_user_regs): Update register_gdbarch_data call.
3725
7cf6e574
DJ
37262003-07-31 Daniel Jacobowitz <drow@mvista.com>
3727
3728 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
3729
c48a845b
MS
37302003-07-30 Michael Snyder <msnyder@redhat.com>
3731
4e7d7511 3732 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 3733 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
3734 value_being_returned.
3735 * infcmd.c (print_return_value): Pass zero as struct_addr.
3736 * values.c (value_being_returned): If struct_addr is passed,
3737 use it instead of trying to recover it from the inferior.
3738
f0d8db19
KB
37392003-07-30 Kevin Buettner <kevinb@redhat.com>
3740
3741 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
3742 the prologue analyzer won't need to attempt to extract the pc
3743 value from the woefully incomplete dummy frame.
3744 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
3745 possible. Disable code which modifies the frame.
3746
e5c113a1
AC
37472003-07-28 Andrew Cagney <cagney@redhat.com>
3748
3749 * annotate.c (annotate_breakpoints_headers): Restrict annotation
3750 to level 2.
3751 (annotate_breakpoints_table, annotate_record): Ditto.
3752 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
3753 (annotate_field_name_end, annotate_field_value): Ditto.
3754 (annotate_field_end, annotate_frame_source_begin): Ditto.
3755 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
3756 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
3757 (annotate_frame_begin, annotate_frame_function_name): Ditto.
3758 (annotate_frame_address_end, annotate_frame_address): Ditto.
3759 (annotate_frame_args, annotate_frame_end): Ditto.
3760 (annotate_frame_where, annotate_arg_begin): Ditto.
3761 (annotate_arg_name_end, annotate_arg_value): Ditto.
3762 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
3763 (annotate_function_call, annotate_signal_name): Ditto.
3764 (annotate_signal_string, annotate_signal_name_end): Ditto.
3765 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
3766 (annotate_value_begin, annotate_value_history_value): Ditto.
3767 (annotate_value_history_end, annotate_value_end): Ditto.
3768 (annotate_display_begin, annotate_display_number_end): Ditto.
3769 (annotate_display_format, annotate_display_expression): Ditto.
3770 (annotate_display_expression_end, annotate_display_value): Ditto.
3771 (annotate_display_end, annotate_array_section_begin): Ditto.
3772 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
3773 (annotate_elt, annotate_array_section_end): Ditto.
3774
bb1db049
AC
37752003-07-28 Andrew Cagney <cagney@redhat.com>
3776
3777 * regcache.c (struct regcache_descr): Update comments on
3778 nr_raw_registers.
3779 (init_legacy_regcache_descr): Don't set nr_raw_registers or
3780 sizeof_raw_register_valid_p.
3781 (init_regcache_descr): Set nr_raw_registers and
3782 sizeof_raw_register_valid_p before calling
3783 init_legacy_regcache_descr.
3784
20e6603c
AC
37852003-07-28 Andrew Cagney <cagney@redhat.com>
3786
3787 * mips-tdep.c (print_gp_register_row): Print the GPR's register
3788 MOD NUM_REGS.
3789
db742940
DJ
37902003-07-28 Daniel Jacobowitz <drow@mvista.com>
3791
3792 * thread.c (info_threads_command): Use get_selected_frame ().
3793 Check that there is at least one non-sentinel frame.
3794
ce7f4371
SC
37952003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3796
3797 * m68hc11-tdep.c (struct frame_extra_info): Remove.
3798 (m68hc11_pop_frame): Remove.
3799 (m68hc11_frame_saved_pc): Remove.
3800 (m68hc11_frame_chain): Remove.
3801 (m68hc11_frame_init_saved_regs): Remove.
3802 (m68hc11_init_extra_frame_info): Remove.
3803 (m68hc11_store_struct_return): Remove.
3804 (m68hc11_saved_pc_after_call): Remove.
3805
1ea653ae
SC
38062003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3807
3808 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
3809 frame unwind information.
3810 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
3811 and adapted for frame unwinding.
3812 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
3813 (m68hc11_unwind_pc): New function.
3814 (m68hc11_frame_unwind_cache): New function to analyze frames.
3815 (m68hc11_frame_this_id): New function to create new frame struct.
3816 (m68hc11_frame_prev_register): New function to unwind a register from
3817 the frame.
3818 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3819 (m68hc11_frame_p): New function for the above.
3820 (m68hc11_frame_base_address): New function to return fp of frame.
3821 (m68hc11_frame_args_address): Update for frame.
3822 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3823 (m68hc11_unwind_sp): New function.
3824 (m68hc11_unwind_dummy_id): New function.
3825 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3826 calls.
3827
c8a7f6ac
SC
38282003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3829
3830 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3831 (m68hc11_guess_from_prologue): Advance the pc and frame size only
3832 when we are beyond the current pc.
3833
3dc990bf
SC
38342003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3835
3836 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3837 from m68hc11_push_arguments.
3838 (m68hc11_push_arguments): Remove.
3839 (m68hc11_push_return_address): Remove.
3840 (m68hc11_gdbarch_init): Install the above; remove above deprecated
3841 handlers; remove deprecated_extra_stack_alignment_needed.
3842
222e5d1d
AC
38432003-07-27 Andrew Cagney <cagney@redhat.com>
3844
3845 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3846 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3847 REAL_PC and not the pointer.
3848 * hppa-hpux-tdep.c: Include frame.h
3849
a7e9a47e
AC
38502003-07-27 Andrew Cagney <cagney@redhat.com>
3851
3852 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3853 GDB_MULTI_ACH_PARTIAL.
3854
7e3dd49e
AC
38552003-07-27 Andrew Cagney <cagney@redhat.com>
3856
3857 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3858 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3859 operator at start and not end of line.
3860 (decode_prologue): Ditto.
3861 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3862 frame_unwind_register_unsigned instead of
3863 frame_unwind_unsigned_register.
3864 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3865 read_register.
3866 (m32r_push_dummy_call): Use register_size instead of
3867 REGISTER_RAW_SIZE.
3868 (m32r_frame_sniffer): Replace m32r_frame_p.
3869 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3870 * m32r-rom.c (report_transfer_performance): Delete extern
3871 declaration.
3872 (m32r_load, m32r_upload_command): Use print_transfer_performance
3873 instead of report_transfer_performance.
3874 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3875 / add_show_from_set.
3876
0880807f
AC
38772003-07-26 Andrew Cagney <cagney@redhat.com>
3878
3879 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3880 store_return_value and extract_struct_value_address.
3881
64ae9269
DJ
38822003-07-26 Daniel Jacobowitz <drow@mvista.com>
3883
3884 PR c++/1267
3885 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3886 NULL, default to the section containing PC.
3887
e286caf2
SC
38882003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3889
3890 * NEWS: Mention "regs" deprecated for m68hc11 too.
3891
3892 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3893 (m68hc11_print_register): New function to print out one register.
3894 (m68hc11_print_registers_info): New function to print registers.
3895 (show_regs): Deprecate and use the above.
3896 (m68hc11_gdbarch_init): Install the print_registers_info.
3897
705b278b
JJ
38982003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3899
3900 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3901 that we have a SIGTRAP before returning non-zero.
3902
63cd4198
EZ
39032003-07-23 Michal Ludvig <mludvig@suse.cz>
3904 Elena Zannoni <ezannoni@redhat.com>
3905
a8f4cde1 3906 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
3907 find_function_start_sal() returns empty record.
3908
6926787d
AS
39092003-07-23 Andreas Schwab <schwab@suse.de>
3910
3911 * ia64-tdep.c (ia64_print_insn): New function.
3912 (ia64_gdbarch_init): Set print_insn to it.
3913 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3914 deprecated_tm_print_insn_info.
3915
708cc1b6
MS
39162003-07-22 Michael Snyder <msnyder@redhat.com>
3917
3918 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3919 handle 8-bit returns (long long).
3920 (h8300h_extract_return_value): Ditto.
3921 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3922
aebd7893
AC
39232003-07-22 Andrew Cagney <cagney@redhat.com>
3924
3925 * gdbarch.c Include "gdb_obstack.h".
3926 (struct gdbarch): Add an "obstack".
3927 (alloc_gdbarch_data): Allocate the gdbarch data using
3928 GDBARCH_OBSTACK_CALLOC.
3929 (free_gdbarch_data): Delete function.
3930 (gdbarch_obstack_zalloc): New function.
3931 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3932 Assert that the architecture is not initialized.
3933 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3934 vector from the obstack.
3935 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3936 architecture obstack.
3937 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3938 (set_gdbarch_data): Assert that the data is not initialized.
3939 (struct gdbarch_data): Delete member "free".
3940 (register_gdbarch_data): Do not initialize "free".
3941 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 3942
153721e6
AC
39432003-07-22 Andrew Cagney <cagney@redhat.com>
3944
3945 * configure.in (build_warnings): Add -Wformat-nonliteral.
3946 * configure: Re-generate.
3947
c193f044 39482003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
3949
3950 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 3951
c3228f12
EZ
39522003-07-22 Elena Zannoni <ezannoni@redhat.com>
3953
3954 * findvar.c (read_var_value): Remove case for thread local storage
3955 variables. It is now entirely handled by the dwarf2 location
3956 expression code.
3957 * printcmd.c (address_info): Ditto.
3958 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3959 enumeration value.
3960 (struct symbol): Remove objfile field, which was used by
3961 LOC_THREAD_LOCAL_STATIC only.
3962 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3963 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3964 usage of objfile pointer.
3965 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3966 thread local variables.
3967 Add include of objfiles.h.
3968 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3969 storage variables.
3970 * Makefile.in (dwarf2loc.o): Update dependencies.
3971
aef9bcd2
AC
39722003-07-22 Andrew Cagney <cagney@redhat.com>
3973
3974 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3975 get_frame_base.
3976 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3977 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3978 (struct value): Add opaque declaration.
3979 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3980
d95a8903
AC
39812003-07-21 Andrew Cagney <cagney@redhat.com>
3982
3983 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3984 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3985
4db73d49
SC
39862003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3987
a8f4cde1 3988 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
3989 regcache_cooked_read_unsigned instead of read_register.
3990 (m68hc11_saved_pc_after_call): Likewise.
3991 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3992 instead of write_register.
3993 (m68hc11_register_type): New function.
3994 (m68hc11_register_virtual_type): Remove.
3995 (m68hc11_store_return_value): Convert to use the regcache.
3996 (m68hc11_extract_struct_value_address): Likewise.
3997 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3998 m68hc11_register_type; undeprecate store_return_value and
3999 extract_struct_value_address.
4000
ef2b8fcd
SC
40012003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4002
4003 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4004 and translate to use regcache.
4005 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4006
625b0b97
AC
40072003-07-18 Andrew Cagney <cagney@redhat.com>
4008
4009 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4010 * gdbarch.h, gdbarch.c: Re-generate.
4011 * i386-tdep.c (i386_gdbarch_init): Do not set
4012 DWARF2_BUILD_FRAME_INFO.
4013 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4014 unconditionally.
4015 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4016 DWARF2_BUILD_FRAME_INFO.
4017
22b0d388
AC
40182003-07-18 Andrew Cagney <cagney@redhat.com>
4019
4020 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4021 * disasm.c (gdb_disassemble_info): Initilize di.arch.
4022
1ce5d6dd
AC
40232003-07-18 Andrew Cagney <cagney@redhat.com>
4024
4025 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4026 frame_unwind_address_in_block, instead of frame_pc_unwind.
4027 (dwarf2_frame_cache): Ditto.
4028
e6e5e94c
AC
40292003-07-18 Andrew Cagney <cagney@redhat.com>
4030
4031 * user-regs.h (struct gdbarch): Declare opaque.
4032 * ui-out.h (struct ui_file): Declare opaque.
4033 * dwarf2-frame.h (struct frame_info): Declare opaque.
4034
5483d879
KW
40352003-07-18 Kris Warkentin <kewarken@qnx.com>
4036
4037 * nto-procfs.c: Clean ARI hits. Change #include <..> to
4038 #include "...".
4039 (procfs_meminfo): Change strerror to safe_strerror.
4040 (procfs_can_run): Remove K&R badness.
4041
278a7cf7
MS
40422003-07-17 Michael Snyder <msnyder@redhat.com>
4043
4044 * remote-sim.c: Comment typo fix.
4045
606e3b82
AC
40462003-07-17 Andrew Cagney <cagney@redhat.com>
4047
4048 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
4049 configure.
4050 * sparc-tdep.c (sparc_intreg_size): Make non-static.
4051 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4052 GDB_MULTI_ARCH_PARTIAL.
4053
c43af07c
EZ
40542003-07-17 Elena Zannoni <ezannoni@redhat.com>
4055
4056 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4057 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
4058 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
4059
3b85b0f1
TR
40602003-07-16 Theodore A. Roth <troth@openavr.org>
4061
4062 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
4063 found.
4064 (avr_frame_unwind_cache): Don't unwind FP for main.
4065 Update a comment.
4066 Save the computed prev_sp.
4067 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 4068 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
4069 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
4070
336d1bba
AC
40712003-07-16 Andrew Cagney <cagney@redhat.com>
4072
4073 * frame-base.h (frame_base_p_ftype): Delete definition.
4074 (frame_base_append_predicate): Delete declaration.
4075 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
4076 (frame_unwind_append_predicate): Delete declaration.
4077 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
4078 (append_predicate): Delete parameter "p".
4079 (frame_unwind_append_predicate): Delete function.
4080 (frame_unwind_append_sniffer): Update call to append_predicate.
4081 (frame_unwind_free): Delete function.
4082 (_initialize_frame_unwind): Pass NULL as "free" to
4083 register_gdbarch_data.
4084 (frame_unwind_init): Append the dummy_frame_sniffer.
4085 (frame_unwind_find_by_frame): Simplify.
4086 * frame-base.c (struct frame_base_table): Delete field "p".
4087 (append_predicate): Delete parameter "p".
4088 (frame_base_append_predicate): Delete function.
4089 (frame_base_append_sniffer): Update call to append_predicate.
4090 (frame_base_free): Delete function.
4091 (frame_base_find_by_frame): Simplify.
4092 (_initialize_frame_base): Pass NULL as "free" to
4093 register_gdbarch_data.
4094 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
4095 (x86_64_sigtramp_frame_sniffer): Replace
4096 "x86_64_sigtramp_frame_p".
4097 (x86_64_init_abi): Set the frame unwind sniffers.
4098 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
4099 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
4100 (m68k_gdbarch_init): Set the frame unwind sniffers.
4101 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
4102 "i386_sigtramp_frame_p".
4103 (i386_frame_sniffer): Replace "i386_frame_p".
4104 (i386_gdbarch_init): Set the frame unwind sniffers.
4105 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
4106 (avr_gdbarch_init): Set the frame unwind sniffers.
4107 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
4108 "alpha_sigtramp_frame_p"
4109 (alpha_heuristic_frame_sniffer): Replace
4110 "alpha_heuristic_frame_p".
4111 (alpha_gdbarch_init): Set the frame unwind sniffers.
4112 (alpha_dwarf2_init_abi): Ditto.
4113 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
4114 "alpha_debug_frame_p".
4115 (alpha_mdebug_frame_base_sniffer): Replace
4116 "alpha_mdebug_frame_base_p".
4117 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
4118 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
4119 (d10v_gdbarch_init): Set the frame unwind sniffer.
4120 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4121 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4122 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4123 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4124 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
4125 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
4126
48db5a3c
CV
41272003-07-16 Michael Snyder <msnyder@redhat.com>
4128
4129 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
4130 should go thru sh_dsp_register_sim_regno, else the dsp regs
4131 will not get the right values.
4132
41332003-07-16 Corinna Vinschen <vinschen@redhat.com>
4134
4135 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
4136 deprecated_store_floating by call to store_typed_floating.
4137 (sh_sh4_register_convert_to_raw): Substitute call to
4138 deprecated_extract_floating by call to extract_typed_floating.
4139
41402003-07-16 Corinna Vinschen <vinschen@redhat.com>
4141
4142 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
4143
41442003-07-16 Corinna Vinschen <vinschen@redhat.com>
4145
4146 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
4147 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
4148 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
4149 as possible.
4150 (do_pseudo_register): Remove.
4151 (sh_push_dummy_code): New function.
4152 (sh64_store_struct_return): Rename from sh_store_struct_return.
4153 Only called for sh64 now.
4154 (sh_extract_struct_value_address): Regcache'ify.
4155 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
4156 and accomodate new tasks.
4157 (sh64_push_return_address): Rename from sh_push_return_address.
4158 Only called for sh64 now.
4159 (sh_default_extract_return_value): Rename from sh_extract_return_value.
4160 Regcache'ify.
4161 (sh3e_sh4_extract_return_value): Regcache'ify.
4162 (sh_default_store_return_value): Ditto.
4163 (sh3e_sh4_store_return_value): Ditto.
4164 (sh_default_register_byte): Remove.
4165 (sh_sh4_register_byte): Remove.
4166 (sh_default_register_raw_size): Remove.
4167 (sh_sh4_register_raw_size): Remove.
4168 (sh_register_virtual_size): Remove.
4169 (sh_sh3e_register_virtual_type): Remove.
4170 (sh_sh3e_register_type): New function.
4171 (sh_sh4_register_virtual_type): Remove.
4172 (sh_sh4_register_type): New function.
4173 (sh_default_register_virtual_type): Remove.
4174 (sh_default_register_type): New function.
4175 (do_fv_register_info): Add parameters to accomodate call from
4176 sh_print_registers_info.
4177 (do_dr_register_info): Ditto.
4178 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
4179 Add parameters to accomodate call from sh_print_registers_info.
4180 (sh_do_fp_register): Ditto.
4181 (sh64_do_pseudo_register): Call do_dr_register_info,
4182 do_fv_register_info and sh_do_fp_register with default parameters.
4183 (sh_do_register): Add parameters to accomodate call from
4184 sh_print_registers_info.
4185 (sh_print_register): Ditto.
4186 (sh_print_registers_info): Rename from sh_do_registers_info.
4187 Add parameters to be used as gdbarch_print_registers_info
4188 implementation. Accomodate removed do_pseudo_register function
4189 pointer.
4190 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
4191 function pointer. Call sh_print_register with default parameters.
4192 (sh64_do_registers_info): Call sh_print_registers_info instead of
4193 sh_do_registers_info.
4194 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
4195 detection of deprecated vs. non-deprecated functionality.
4196 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
4197 function pointer assignments by direct function calls.
4198
e8a89fe2
AC
41992003-07-15 Andrew Cagney <cagney@redhat.com>
4200
4201 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
4202 (frame_register_unwind, create_new_frame): Ditto.
4203 (legacy_get_prev_frame, get_frame_type): Ditto.
4204 (get_frame_base_address): Use frame_base_find_by_frame.
4205 (get_frame_locals_address): Use frame_base_find_by_frame.
4206 (get_frame_args_address): Use frame_base_find_by_frame.
4207 * frame-base.h (frame_base_sniffer_ftype): Declare.
4208 (frame_base_append_sniffer): Declare.
4209 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
4210 * frame-base.c (append_predicate): Add a "sniffer" parameter.
4211 (frame_base_append_sniffer): New function.
4212 (frame_base_append_predicate): Add a NULL sniffer.
4213 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
4214 (struct frame_base_table): Add "sniffer".
4215 (frame_base_free): Free the "sniffer" table.
4216 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
4217 (frame_unwind_append_sniffer): Declare.
4218 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4219 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
4220 (struct frame_unwind_table): Add "sniffer", delete "middle".
4221 (append_predicate): Add "sniffer" parameter, append the sniffer.
4222 (frame_unwind_init): Update append_predicate call.
4223 (frame_unwind_append_sniffer): New function.
4224 (frame_unwind_append_predicate): Update append_predicate call.
4225 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4226
0714963c
AC
42272003-07-15 Andrew Cagney <cagney@redhat.com>
4228
4229 * frame.c (get_prev_frame): Move disabled inside_entry_func to
4230 before code inhibiting repeated unwind attempts. Add to
4231 commentary on that test's problems.
4232 * blockframe.c (inside_main_func): Look for "main" in the minimal
4233 symbol table.
4234 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
4235 identical.
4236
d9170e22
AC
42372003-07-15 Andrew Cagney <cagney@redhat.com>
4238
4239 * complaints.c (struct explanation): Define.
4240 (struct complaints): Change type of "explanation" to "struct
4241 explanation".
4242 (symfile_explanations): Convert to a "struct explanation" table.
4243 (vcomplaint): Update.
4244
eba29c8c
ML
42452003-07-15 Michal Ludvig <mludvig@suse.cz>
4246
4247 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 4248 (supply_gregset, fill_gregset): Call
eba29c8c
ML
4249 x86_64_linux_(fill,supply)_gregset functions.
4250 * x86-64-linux-tdep.c (USER_*): New defines.
4251 (user_to_gdb_regmap, x86_64_core_fns): New structure.
4252 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
4253 New functions.
4254 (fetch_core_registers): Ditto.
4255 (_initialize_x86_64_linux_tdep): Call add_core_fns().
4256 * x86-64-linux-tdep.h: New file.
4257 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
4258 and core-regset.o.
4259 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
4260
68cc0bfb
MK
42612003-07-13 Mark Kettenis <kettenis@gnu.org>
4262
88a115f7
MK
4263 * x86-64-tdep.c (x86_64_store_return_value): Use
4264 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 4265
68cc0bfb
MK
4266 * configure.host: Add x86_64-*-freebsd*.
4267 * configure.tgt: Add x86_64-*-freebsd*.
4268 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
4269 * amd64fbsd-nat.c: New file.
4270 * amd64fbsd-tdep.c: New file.
4271 * config/i386/nm-fbsd64.h: New file.
4272 * config/i386/fbsd64.mh: New file.
4273 * config/i386/fbsd64.mt: New file.
4274
138e7be5
MK
42752003-07-11 Mark Kettenis <kettenis@gnu.org>
4276
4277 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
4278 `sc_regs_offset' and `sc_fpregs_offset'.
4279 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
4280 SIGFRAME_FPREGSAVE_OFF): Remove defines.
4281 (alpha_sigtramp_register_address): Rewrite to use new members of
4282 `struct gdbarch_tdep'.
4283 (alpha_gdbarch_init): Initialize new members of struct
4284 gdbarch_tdep'.
4285 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
4286 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
4287 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
4288 (alphafbsd_pc_in_sigtramp): Implement.
4289 (alphafbsd_sigtramp_offset): New function.
4290 (alphafbsd_sigcontext_addr): New function.
4291 (alphafbsd_init_abi): Initialize signal trampoline related members
4292 of `struct gdbarch_tdep'.
4293 (_initialize_alphafbsd_tdep): Add prototype.
4294
95303a68
TR
42952003-07-11 Theodore A. Roth <troth@openavr.org>
4296
ba292e4c
TR
4297 * Makefile.in (install-only): Quote sed expression when generating
4298 transformed_name.
95303a68 4299
6896c0c7
RH
43002003-07-11 Richard Henderson <rth@redhat.com>
4301
4302 * Makefile.in (dwarf2-frame.o): Add complaints_h.
4303 * dwarf2-frame.c: Include complaints.h.
4304 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
4305 variable initialization; return NULL on error.
4306 (decode_frame_entry): New.
4307
8edd5d01
AC
43082003-07-11 Andrew Cagney <cagney@redhat.com>
4309
c4a09524
AC
4310 * frame.h (frame_address_in_block): Delete declaration.
4311 * blockframe.c (frame_address_in_block): Delete function.
4312 (get_frame_block): Use get_frame_address_in_block.
4313 (block_innermost_frame): Ditto.
4314 * stack.c (print_frame, backtrace_command_1): Ditto.
4315
8edd5d01
AC
4316 * frame.h (get_frame_address_in_block): Declare.
4317 (frame_unwind_address_in_block): Declare.
4318 * frame.c (frame_unwind_address_in_block): New function.
4319 (get_frame_address_in_block): New function.
4320
f7968451
AC
43212003-07-10 Andrew Cagney <cagney@redhat.com>
4322
4323 * gdbarch.sh: Simplify predicate methods. Remove need to provide
4324 pre-default. Note: re-generate has no effect.
a8f4cde1 4325
ae99b398
AC
43262003-07-10 Andrew Cagney <cagney@redhat.com>
4327
4328 * gdbarch.sh: When a variable, but not a function, compare against
4329 0. Fix problem in previous patch.
4330 * gdbarch.c: Re-generate.
a8f4cde1 4331
956ac328
AC
43322003-07-10 Andrew Cagney <cagney@redhat.com>
4333
4334 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
4335 functions against NULL, not 0.
4336 * gdbarch.c: Re-generate.
a8f4cde1 4337
287c3240
FF
43382003-07-10 Fred Fish <fnf@ninemoons.com>
4339
4340 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
4341 null string instead of a null pointer.
4342 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
4343
32f63c4b
MS
43442003-07-09 Michael Snyder <msnyder@redhat.com>
4345
4346 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
4347
402ecd56
MK
43482003-07-09 Mark Kettenis <kettenis@gnu.org>
4349
4350 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
4351 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
4352 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
4353 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
4354 * x86-64-tdep.c: ... from here.
4355
c481dac7
AS
43562003-07-09 Andreas Schwab <schwab@suse.de>
4357
4358 * m68k-tdep.h (enum struct_return): Define.
4359 (struct gdbarch_tdep): Add struct_return.
4360 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
4361 bytes are padded to the right, not to the left. Pass struct value
4362 address in register %a1, not on stack.
4363 (m68k_use_struct_convention): New function.
4364 (m68k_gdbarch_init): Set use_struct_convention. Initialize
4365 struct_return in tdep to pcc_struct_return.
4366 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
4367 reg_struct_return.
4368
a8f4cde1 43692003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 4370
a8f4cde1 4371 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 4372
96a4ee76
AC
43732003-07-09 Andrew Cagney <cagney@redhat.com>
4374
4375 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
4376 Add comments about the checks.
4377
1517c6d1
AC
43782003-07-08 Andrew Cagney <cagney@redhat.com>
4379
4380 * Makefile.in: Make dependency section headers consistent.
4381 (config_h): Move to $BUILD headers section.
4382 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
4383 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
4384 (ada-exp.tab.c): Move to YACC/LEX section.
4385 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
4386 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
4387
dc5dd1eb
KW
43882003-07-08 Kris Warkentin <kewarken@qnx.com>
4389
4390 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
4391 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
4392 of strerror with safe_strerror, use ISO C function definitions,
4393 and replace instances of sprintf with snprintf.
dc5dd1eb 4394
612dde91
AC
43952003-07-07 Andrew Cagney <cagney@redhat.com>
4396
4397 * frame.c (get_prev_frame): Enable check for identical frames.
4398 Update comments. Update error messages.
4399
492c11d3
JB
44002003-07-07 Joel Brobecker <brobecker@gnat.com>
4401
4402 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
4403
376a5a49
JB
44042003-07-07 Joel Brobecker <brobecker@gnat.com>
4405
4406 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4407 sort_symtab_syms, no longer necessary.
4408
22b4a9ad
JB
44092003-07-07 Joel Brobecker <brobecker@gnat.com>
4410
4411 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
4412
5bbcb741
JB
44132003-07-07 Joel Brobecker <brobecker@gnat.com>
4414
4415 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
4416 (mips_register_byte): Likewise.
4417
c139e7d9
DJ
44182003-07-07 Daniel Jacobowitz <drow@mvista.com>
4419
4420 * Makefile.in (sparc_tdep_h): New.
4421 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
4422 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
4423 * sparc-linux-nat.c: Include "sparc-tdep.h".
4424 * sparc-nat.c: Likewise.
4425 * sparc-tdep.c: Likewise.
4426 * sparc64nbsd-nat.c: Likewise.
4427 * sparcnbsd-nat.c: Likewise.
4428 * sparcnbsd-tdep.c: Likewise.
4429 * sparc-tdep.h: New file.
4430 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
4431 and sparc_npc_regnum.
4432
fd8f87c5
DJ
44332003-07-07 Daniel Jacobowitz <drow@mvista.com>
4434
4435 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
4436 (mips_linux_cannot_store_register): List supported instead of
4437 unsupported registers.
4438
13adf674
DJ
44392003-07-07 Daniel Jacobowitz <drow@mvista.com>
4440
4441 * disasm.c (dump_insns): Separate instructions from addresses.
4442
8de307e0
AS
44432003-07-07 Andreas Schwab <schwab@suse.de>
4444
4445 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4446 dependencies.
4447 * m68k-tdep.c (NUM_FREGS): Delete.
4448 (SIG_PC_FP_OFFSET): Delete.
4449 (TARGET_M68K): Delete.
4450 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
4451 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
4452 P_MOVEL_SP, P_MOVEML_SP): Define.
4453 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
4454 P_TRAP): Delete.
4455 (m68k_register_raw_size): Delete.
4456 (m68k_register_virtual_size): Delete.
4457 (m68k_register_type): Renamed from m68k_register_virtual_type and
4458 add gdbarch argument.
4459 (m68k_store_struct_return): Delete.
4460 (m68k_deprecated_extract_return_value): Delete.
4461 (m68k_deprecated_extract_struct_value_address): Delete.
4462 (m68k_frame_chain): Delete.
4463 (m68k_frame_saved_pc): Delete.
4464 (m68k_fix_call_dummy): Delete.
4465 (m68k_push_dummy_frame): Delete.
4466 (m68k_pop_frame): Delete.
4467 (m68k_extract_return_value): New function.
4468 (m68k_store_return_value): Rewrite using regcache.
4469 (m68k_extract_struct_value_address): Rewrite using regcache.
4470 (m68k_push_dummy_call): New function.
4471 (struct m68k_frame_cache): Define.
4472 (m68k_alloc_frame_cache): New function.
4473 (m68k_analyze_frame_setup): New function.
4474 (m68k_analyze_register_saves): New function.
4475 (m68k_analyze_prologue): New function.
4476 (m68k_skip_prologue): Rewrite using above functions.
4477 (m68k_unwind_pc): New function.
4478 (m68k_frame_cache): New function.
4479 (m68k_frame_this_id): New function.
4480 (m68k_frame_prev_register): New function.
4481 (m68k_frame_unwind): New variable.
4482 (m68k_frame_p): New function.
4483 (m68k_sigtramp_frame_cache): New function.
4484 (m68k_sigtramp_frame_this_id): New function.
4485 (m68k_sigtramp_frame_prev_register): New function.
4486 (m68k_sigtramp_frame_unwind): New variable.
4487 (m68k_sigtramp_frame_p): New function.
4488 (m68k_frame_base_address): New function.
4489 (m68k_frame_base): New function.
4490 (m68k_unwind_dummy_id): New function.
4491 (fill_gregset): Use regcache_collect.
4492 (fill_fpregset): Likewise.
4493 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
4494 defined.
4495 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
4496 deprecated_init_frame_pc, deprecated_store_struct_return,
4497 deprecated_extract_return_value, deprecated_store_return_value,
4498 deprecated_frame_chain, deprecated_frame_saved_pc,
4499 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
4500 deprecated_register_virtual_size,
4501 deprecated_max_register_raw_size,
4502 deprecated_max_register_virtual_size,
4503 deprecated_register_virtual_type, deprecated_register_size,
4504 deprecated_register_byte, deprecated_register_bytes,
4505 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
4506 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
4507 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
4508 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
4509 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
4510 deprecated_push_dummy_frame, deprecated_pop_frame,
4511 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
4512 only if SYSCALL_TRAP is defined. Set extract_return_value,
4513 store_return_value, extract_struct_value_address, register_type,
4514 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
4515 predicates.
4516 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
4517 M68K_MAX_REGISTER_SIZE): Define.
4518 (struct m68k_sigtramp_info): Define.
4519 (struct gdbarch_tdep): Add get_sigtramp_info.
4520 * m68klinux-nat.c (fetch_register): Use register_size instead of
4521 REGISTER_RAW_SIZE. Don't put assignment in if.
4522 (store_register): Likewise.
4523 (fetch_inferior_registers): Likewise.
4524 (store_inferior_registers): Likewise.
4525 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
4526 (m68k_linux_frame_saved_pc): Delete.
4527 (m68k_linux_sigcontext_reg_offset,
4528 m68k_linux_ucontext_reg_offset): Define.
4529 (m68k_linux_get_sigtramp_info): New function.
4530 (m68k_linux_extract_return_value): Rewrite using regcache.
4531 (m68k_linux_store_return_value): Likewise.
4532 (m68k_linux_extract_struct_value_address): Likewise.
4533 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
4534 Don't set deprecated_frame_saved_pc,
4535 deprecated_extract_return_value, deprecated_store_return_value,
4536 deprecated_extract_struct_value_address. Set
4537 extract_return_value, store_return_value,
4538 extract_struct_value_address.
4539
eb8bc282
AC
45402003-07-07 Andrew Cagney <cagney@redhat.com>
4541
4542 * expprint.c: Include "user-regs.h" instead of "frame.h".
4543 (print_subexp): Use user_reg_map_regnum_to_name, instead of
4544 frame_map_regnum_to_name.
4545 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
4546 (frame_map_name_to_regnum): Simplify, call
4547 user_reg_map_name_to_regnum.
4548 (frame_map_regnum_to_name): Simplify, call
4549 user_reg_map_regnum_to_name.
4550 (frame_register_unwind): Update.
4551 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
4552 (_initialize_frame_reg): Call user_reg_add_builtin.
4553 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
4554 (value_of_register): Use value_of_user_reg.
4555 * eval.c (evaluate_subexp_standard): Update.
4556 * parse.c (write_dollar_variable): Update.
4557 * d10v-tdep.c (d10v_print_registers_info): Update.
4558 * infcmd.c (registers_info): Update.
4559 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
4560 (builtin_regs_h): Delete macro.
4561 (user_regs_h): Define.
4562 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
4563 (builtin-regs.o): Delete target.
4564 (user-regs.o): Specify dependencies.
4565 (expprint.o): Update dependencies.
4566 (findvar.o): Update dependencies.
4567 (frame.o): Update dependencies.
4568 (std-regs.o): Update dependencies.
4569
9f476a01
CF
45702003-07-06 Christopher Faylor <cgf@redhat.com>
4571
4572 * win32-nat.c (solib_symbols_add): Use one variable for all section
4573 address stuff. Pass variable rather than address of variable to
4574 safe_symbol_file_add.
4575
a731b831
AS
45762003-07-06 Andreas Schwab <schwab@suse.de>
4577
4578 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
4579
9f83329d
JB
45802003-07-04 Joel Brobecker <brobecker@gnat.com>
4581
4582 * rs6000-nat.c (vmap_symtab): Fix compilation error.
4583
27e28cc5
KW
45842003-07-04 Kris Warkentin <kewarken@qnx.com>
4585
4586 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
4587
45882003-07-04 Kris Warkentin <kewarken@qnx.com>
4589
4590 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
4591 * config/i386/nto.mh: New file.
4592 * config/i386/nm-nto.h: New file.
4593 * configure.host: Add i[3456]86-*-nto*.
4594
100f2e98
JB
45952003-07-03 Joel Brobecker <brobecker@gnat.com>
4596
4597 * remote-vx.c (vx_add_symbols): Fix compilation error.
4598
e23457df
AC
45992003-07-03 Andrew Cagney <cagney@redhat.com>
4600
4601 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
4602 * gdbarch.h, gdbarch.c: Re-generate.
4603 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
4604 (legacy_register_name): Declare.
4605 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
4606 (REGISTER_NAME): Define.
4607 * sparc-tdep.c (legacy_register_name): New function.
4608 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
4609 (REGISTER_NAME): Define.
4610 (hppa64_register_name): Declare.
4611 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
4612 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
4613 (hppa64_register_name): New function.
4614 (hppa_register_name): New function.
4615 * arch-utils.c (legacy_register_name): Delete.
4616 * arch-utils.h (legacy_register_name): Delete.
4617
38caaeec
DJ
46182003-07-03 Daniel Jacobowitz <drow@mvista.com>
4619
4620 * cli/cli-interp.c (cli_interpreter_resume): Update the
4621 cli_uiout's stream to gdb_stdout.
4622
dadd712e
AC
46232003-07-03 Andrew Cagney <cagney@redhat.com>
4624
4625 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
4626 predicate.
4627 * gdbarch.h, gdbarch.c: Re-generate.
4628 * regcache.c (init_regcache_descr): Use legacy code when either
4629 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
4630
c7f1390e
DJ
46312003-07-02 Daniel Jacobowitz <drow@mvista.com>
4632
4633 * NEWS: Move "set logging" entry into GDB 6.0 section.
4634
4bc8c588
JB
46352003-07-02 Jim Blandy <jimb@redhat.com>
4636
a9dd42f1
JB
4637 * s390-tdep.c (struct frame_extra_info): new member:
4638 'stack_bought_valid'.
4639 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
4640 initialize fextra_info->stack_bought.
4641 (s390_frameless_function_invocation): Don't trust the value of
4642 fextra_info_ptr->stack_bought unless
4643 fextra_info->stack_bought_valid is set.
4644
4bc8c588
JB
4645 New S390 prologue analyzer.
4646 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
4647 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
4648 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
4649 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
4650 compute_x_addr, s390_on_stack, s390_store,
4651 s390_get_signal_frame_info): New functions.
4652 (S390_NUM_SPILL_SLOTS): New macro.
4653 (s390_get_frame_info): Rewritten.
4654 (is_arg_reg): Deleted.
4655
4656 Break out the decoding of S/390 instructions into separate
4657 functions, to make it more legible, and easier to check
4658 against the spec.
4659 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
4660 is_rx, is_rxe): New functions.
4661 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
4662 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
4663 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
4664 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
4665 enums for opcode values. (Is this an improvement?)
4666
fd13a04a
AC
46672003-07-02 Andrew Cagney <cagney@redhat.com>
4668
4669 * i386-tdep.c: Revert change committed as part of trad-frame code
4670 below.
4671
3f8091c1
DJ
46722003-07-02 Daniel Jacobowitz <drow@mvista.com>
4673
4674 * breakpoint.c (insert_catchpoint): Make static.
4675
8dd5115e
AS
46762003-07-02 Andreas Schwab <schwab@suse.de>
4677
4678 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
4679 former ia64_push_arguments and ia64_push_return_address, and use
4680 regcache functions instead of read/write_register.
4681 (ia64_gdbarch_init): Set push_dummy_call instead of
4682 deprecated_push_arguments and deprecated_push_return_address.
4683
a2229c23
AJ
46842003-07-01 Andreas Jaeger <aj@suse.de>
4685
4686 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
4687 before the call.
4688 Set %rax only to number of SSE registers used.
4689
3b3850e8
AC
46902003-07-01 Andrew Cagney <cagney@redhat.com>
4691
4692 * trad-frame.h: Update comments, a -1 .addr is reserved.
4693 (trad_frame_value_p, trad_frame_addr_p): Declare.
4694 (trad_frame_reg_p): Declare.
4695 (trad_frame_set_value): Rename trad_frame_register_value.
4696 (trad_frame_set_unknown): Declare.
4697 * trad-frame.c (trad_frame_realreg_p): New function.
4698 (trad_frame_addr_p, trad_frame_value_p): New function.
4699 (trad_frame_set_unknown): New function.
4700 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
4701 (trad_frame_prev_register): Use trad_frame_realreg_p,
4702 trad_frame_addr_p and trad_frame_value_p.
4703 (trad_frame_set_value): Rename trad_frame_register_value.
4704 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
4705 and trad_frame_set_value.
a2229c23 4706
4d819d0e
JB
47072003-06-30 Jim Blandy <jimb@redhat.com>
4708
4709 Patch from IBM (authors unspecified, probably Ulrich Weigand and
4710 Gerhard Tonn) for argument passing on the S/390 and S/390x:
4711 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
4712 for 16 registers, and then 32 more bytes.
4713 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
4714 New macros.
4715 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
4716 Move up in the file, since it's now used by is_simple_arg.
4717 (is_simple_arg): Don't assume registers are four bytes long.
4718 Exclude all double arguments. Extended floats are not simple
4719 args.
4720 (is_power_of_two): New function.
4721 (pass_by_copy_ref): Call is_power_of_two, and check that the
4722 length fits in a register, rather than listing all the acceptable
4723 sizes. Extended floats are not passed by reference.
4724 (s390_push_arguments): Don't assume registers are four bytes long.
4725 Reserve an argument register to point to the buffer for structures
4726 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
4727 S390_STACK_FRAME_OVERHEAD.
4728
1ad828f1
AS
47292003-06-30 Andreas Schwab <schwab@suse.de>
4730
4731 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
4732 format error message.
4733
39b00981
JB
47342003-06-30 Joel Brobecker <brobecker@gnat.com>
4735
4736 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
4737
b2a7f303
DC
47382003-06-30 David Carlton <carlton@kealia.com>
4739
4740 Band-aid for PR c++/1245.
4741 * Makefile.in (cp-support.o): Depend on complaints_h.
4742 * cp-support.c: Include complaints.h. Add declaration for
4743 find_last_component.
4744 (cp_find_first_component): Separate code into
4745 cp_find_first_component_aux.
4746 (cp_find_first_component_aux): Call demangled_name_complaint.
4747 (demangled_name_complaint): New.
4748
a257b5bb
AC
47492003-06-30 Andrew Cagney <cagney@redhat.com>
4750
4751 * remote.c (remote_write_bytes): Explicitly compute and then use
4752 the payload size. Update comments to reflect. Fixes problem of
4753 GDB not sending small packets as found by Fred Fish.
4754
0a2cfde4
AC
47552003-06-30 Andrew Cagney <cagney@redhat.com>
4756
4757 * remote.c (remote_async_wait): Fix -Wformat problem.
4758
3fcb8548
AC
47592003-06-29 Andrew Cagney <cagney@redhat.com>
4760
4761 * remote.c (remote_wait): Call error, and not warning, when the
4762 packet is corrupt.
4763 (remote_async_wait): Ditto.
4764
9f9970a3
DJ
47652003-06-29 Daniel Jacobowitz <drow@mvista.com>
4766
4767 * sparc-tdep.c (sparc_y_regnum): Make external again.
4768
83a8ccca
DJ
47692003-06-29 Daniel Jacobowitz <drow@mvista.com>
4770
4771 * cli/cli-logging.c (pop_output_files): Add void to function
4772 definition.
4773
d2cf594a
AC
47742003-06-29 Andrew Cagney <cagney@redhat.com>
4775
4776 * frame.c (frame_register_unwind): Use unsigned char when dumping
4777 the buffer contents.
4778
0fac0b41
DJ
47792003-06-28 Daniel Jacobowitz <drow@mvista.com>
4780
4781 * cli/cli-logging.c: New file.
4782 * cli-out.c (struct ui_out_data): Add original_stream.
4783 (cli_redirect): New function.
4784 (cli_ui_out_impl): Add cli_redirect.
4785 (cli_out_new): Initialize original_stream.
4786 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
4787 (uo_redirect, ui_out_redirect): New.
4788 * ui-out.h (struct ui_out_impl): Add redirect member.
4789 (redirect_ftype): New.
4790 (ui_out_redirect): Add prototype.
4791 * Makefile.in: Add rules for cli-logging.c.
4792 * NEWS: Mention "set logging".
4793
88a07d7c
EZ
47942003-06-27 Elena Zannoni <ezannoni@redhat.com>
4795
4796 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
4797
4eb58876
AC
47982003-06-27 Andrew Cagney <cagney@redhat.com>
4799
4800 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
4801 (m68hc11_gdbarch_init): Do not set call_dummy_address.
4802 * avr-tdep.c (avr_call_dummy_address): Delete function.
4803 (avr_gdbarch_init): Do not set call_dummy_address.
4804
1549f619
EZ
48052003-06-27 Elena Zannoni <ezannoni@redhat.com>
4806
4807 * symfile.c (syms_from_objfile): Move variables to inner block.
4808 Move the checks for the non-mainline case a bit earlier to avoid
4809 doing some useless computations.
4810
3cb3398d
EZ
48112003-06-27 Elena Zannoni <ezannoni@redhat.com>
4812
4813 * dwarfread.c (decode_modified_type): Gag new compiler warning.
4814
3799ccc6
EZ
48152003-06-26 Elena Zannoni <ezannoni@redhat.com>
4816
4817 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
4818 sections.
4819
ce1f6491
MC
48202003-06-26 Michael Chastain <mec@shout.net>
4821
4822 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4823 gdb/testsuite/gdb.c++/pr-1210.exp.
4824
d958dfd0
AC
48252003-06-26 Andrew Cagney <cagney@redhat.com>
4826
4827 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4828 altivec_expression.h and altivec_registers.h.
4829
d31431ed
AC
48302003-06-26 Andrew Cagney <cagney@redhat.com>
4831
4832 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4833 info->mach when MIPS16. Patch suggested by Fred Fish.
4834
714b1282
AC
48352003-06-26 Andrew Cagney <cagney@redhat.com>
4836
4837 * utils.c (internal_vproblem): Print the problem to a reason
4838 buffer and then pass to query. Make the msg variable more local.
4839
42efa47a
AC
48402003-06-26 Andrew Cagney <cagney@redhat.com>
4841
4842 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
4843 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
4844 * gdbarch.h, gdbarch.c: Re-generate.
4845 * frame-base.c (default_frame_args_address): Update. Use
4846 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4847 not available.
4848 (default_frame_locals_address): Ditto for
4849 DEPRECATED_FRAME_LOCALS_ADDRESS.
4850 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4851 (vax_frame_num_args): Update.
4852 (vax_gdbarch_init): Update.
4853 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4854 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4855 * mcore-tdep.c (mcore_gdbarch_init): Update.
4856 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4857 * ia64-tdep.c (ia64_gdbarch_init): Update.
4858 * symtab.h (address_class): Update comments.
4859 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4860 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4861 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4862 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4863 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4864 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4865 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4866 * alpha-mdebug-tdep.c: Update.
4867 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4868
8ffd9b1b
AJ
48692003-06-26 Andreas Jaeger <aj@suse.de>
4870
4871 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4872 of SSE registers so that varargs functions work. Rework handling
4873 of passing arguments on the stack.
4874 (x86_64_store_return_value): Return double and float values in SSE
4875 register.
4876
e8ac10a6
MC
48772003-06-24 Michael Chastain <mec@shout.net>
4878
4879 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4880 the "constructor breakpoints ignored" bug.
4881
986af8e6
DC
48822003-06-25 David Carlton <carlton@kealia.com>
4883
4884 * MAINTAINERS: Update e-mail address.
4885
d64558a5
JB
48862003-06-24 Jim Blandy <jimb@redhat.com>
4887
e538d2d7
JB
4888 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4889
02631ec0
JB
4890 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4891 function.
4892 (ppc_linux_init_abi): Register it as the
4893 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4894
e716d87a
JB
4895 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4896 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4897 method.
4898
d64558a5
JB
4899 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4900 (ppc64_standard_linkage_target): Use it.
4901
449a5da4
AC
49022003-06-23 Andrew Cagney <cagney@redhat.com>
4903
4904 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4905 for 0 "int0" and 4 "int32" sized registers.
4906 * gdbtypes.c (builtin_type_int0): Define.
4907 (build_gdbtypes): Initialize builtin_type_int0.
4908 * gdbtypes.h (builtin_type_int0): Declare.
4909
b2a02dda
SC
49102003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4911
4912 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4913 as characters are unsigned.
4914
fba3138e
DJ
49152003-06-22 Daniel Jacobowitz <drow@mvista.com>
4916
4917 PR gdb/1179
4918 * dwarfread.c (struct_type): Skip static fields without crashing.
4919
f6c8180b
AC
49202003-06-22 Andrew Cagney <cagney@redhat.com>
4921
4922 GDB 6.0 branch created.
f2c06f52
AC
4923 * README: Update.
4924 * PROBLEMS: Update. Empty.
4925 * NEWS: Update.
f6c8180b 4926
ae822768
DJ
49272003-06-22 Daniel Jacobowitz <drow@mvista.com>
4928
4929 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4930 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4931
261de166
AC
49322003-06-22 Andrew Cagney <cagney@redhat.com>
4933
4934 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4935 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4936 Velikov.
4937
30e94205
DJ
49382003-06-22 Daniel Jacobowitz <drow@mvista.com>
4939
4940 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4941 compilers.
4942
9e14d721
DJ
49432003-06-21 Daniel Jacobowitz <drow@mvista.com>
4944
4945 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4946 argument of val_print.
4947 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4948 to the address argument of baseclass_offset or target_read_memory.
4949 Do add it to the argument of cp_print_value_fields.
4950
a4b8ebc8
AC
49512003-06-21 Andrew Cagney <cagney@redhat.com>
4952
4953 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4954 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4955 instead of 0..NUM_REGS.
4956 (mips_register_reggroup_p): New function.
4957 (mips_pseudo_register_write): New function.
4958 (mips_pseudo_register_read): New function.
4959 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4960 based on the register's type.
4961 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4962 cooked.
4963 (mips_get_saved_register): Simplify. Assert that REGNO is a
4964 pseudo / cooked.
4965 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4966 (mips_register_type): Replace mips_register_virtual_type. Map
4967 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4968 when available.
4969 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4970 that the register is cooked / virtual.
4971 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4972 Only get the extra info when needed.
4973 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4974 (mips32_heuristic_proc_desc): Fetch the cooked register.
4975 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4976 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4977 (mips_print_register): Use gdbarch_register_type, instead of
4978 REGISTER_VIRTUAL_TYPE.
4979 (print_gp_register_row): Use gdbarch_register_type, instead of
4980 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4981 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4982 Print the pseudo / cooked registers.
4983 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4984 Print the pseudo / cooked registers.
4985 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4986 REG_NUM is pseudo / cooked.
4987 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4988 (mips_n32n64_xfer_return_value): Ditto.
4989 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4990 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4991 (mips_register_sim_regno): New function.
4992 (mips_gdbarch_init): Set deprecated_register_byte,
4993 register_group_p, pseudo_register_write, pseudo_register_read,
4994 register_sim_regno, and num_pseudo_regs. Set register_type,
4995 instead of register_virtual_type.
4996 * Makefile.in (mips-tdep.o): Update dependencies.
4997 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4998 REGISTER_VIRTUAL_TYPE.
4999 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5000 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5001 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5002 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5003 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5004
325ed089
DJ
50052003-06-21 Daniel Jacobowitz <drow@mvista.com>
5006
5007 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5008 * cli/cli-cmds.c: Include "gdb_vfork.h".
5009 (shell_escape): Use vfork.
5010
f0e7d0e8
AC
50112003-06-21 Andrew Cagney <cagney@redhat.com>
5012
c57bb9fa
AC
5013 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5014 32 bit floating-point register saves.
5015
6e51443a
AC
5016 * frame.h (deprecated_unwind_get_saved_register): Delete.
5017 * frame.c (deprecated_unwind_get_saved_register): Delete function.
5018 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5019 and deprecated_get_next_frame_hack instead of
5020 deprecated_unwind_get_saved_register.
5021
ed183c7c
AC
5022 * mips-tdep.c (mips_dump_tdep): Do not print
5023 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5024
f0e7d0e8
AC
5025 * frame.c (get_frame_register): New function.
5026 (frame_unwind_register_signed): New function.
5027 (get_frame_register_signed): New function.
5028 (frame_unwind_register_unsigned): New function.
5029 (get_frame_register_unsigned): New function.
5030 * frame.h: Add comments on naming schema.
5031 (get_frame_register, frame_unwind_register_signed): Declare.
5032 (get_frame_register_signed, get_frame_register_signed): Declare.
5033 (frame_unwind_register_unsigned): Declare.
5034 (get_frame_register_unsigned): Declare.
5035
2224d941
TR
50362003-06-20 Theodore A. Roth <troth@openavr.org>
5037
5038 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5039
8619218d
TR
50402003-06-20 Theodore A. Roth <troth@openavr.org>
5041
5042 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5043 (avr_read_sp): Ditto.
5044
0b1b50c0
DJ
50452003-06-20 Daniel Jacobowitz <drow@mvista.com>
5046
5047 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5048 * config/arm/nm-linux.h: Likewise.
5049 * config/arm/tm-linux.h: Likewise.
5050 * config/ia64/nm-linux.h: Likewise.
5051 * config/ia64/tm-ia64.h: Likewise.
5052 * config/s390/tm-linux.h: Likewise.
5053 * config/s390/tm-s390.h: Likewise.
5054 * s390-nat.c: Likewise.
5055 * s390-tdep.c: Likewise.
5056
5057 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
5058 * config/ia64/linux.mt: Likewise.
5059 * config/m68k/linux.mh: Likewise.
5060 * config/mips/linux.mt: Likewise.
5061 * config/powerpc/linux.mh: Likewise.
5062 * config/sh/linux.mt: Likewise.
5063
c8c18e65
KW
50642003-06-19 Kris Warkentin <kewarken@qnx.com>
5065
5066 * solib.c (solib_open): Change tests for whether to search
5067 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
5068 comments.
5069
dcccef2e
TR
50702003-06-19 Theodore A. Roth <troth@openavr.org>
5071
5072 * avr-tdep.c (avr_frame_address): Delete function.
5073 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
5074 set_gdbarch_frame_args_address.
5075
5861a190
AC
50762003-06-19 Andrew Cagney <cagney@redhat.com>
5077
5078 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
5079 (REGISTER_CONVERT_FROM_TYPE): Delete.
5080 (mips_register_convert_to_type): Delete declaration.
5081 (mips_register_convert_from_type): Delete declaration.
5082 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
5083 kernel/.
5084
0274a8ce
MS
50852003-06-19 Michael Snyder <msnyder@redhat.com>
5086
5087 * linux-nat.h: New file.
5088 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 5089 * lin-lwp.c: Include linux-nat.h.
0274a8ce 5090 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 5091 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
5092 (linux_make_note_section): Iterate over lwps instead of threads.
5093 (linux_do_thread_registers): Use lwp instead of merged pid.
5094 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 5095 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
5096 Add dependency on linux_nat_h.
5097
adf5f719
TR
50982003-06-19 Theodore A. Roth <troth@openavr.org>
5099
5100 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
5101
6766a268
DJ
51022003-06-19 Daniel Jacobowitz <drow@mvista.com>
5103
5104 * varobj.c (get_type, get_target_type): Use check_typedef.
5105
1171114a
DJ
51062003-06-19 Daniel Jacobowitz <drow@mvista.com>
5107
5108 * breakpoint.c (insert_catchpoint): Call internal_error.
5109
adcf68a2
TR
51102003-06-19 Theodore A. Roth <troth@openavr.org>
5111
5112 * avr-tdep.c (avr_push_dummy_code): Delete function.
5113 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
5114
ea67f13b
DJ
51152003-06-19 Daniel Jacobowitz <drow@mvista.com>
5116
5117 * arch-utils.c (default_prepare_to_proceed): Remove.
5118 (generic_prepare_to_proceed): Remove.
5119 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
5120 (generic_prepare_to_proceed): Remove prototype.
5121 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
5122 * gdbarch.c: Regenerate.
5123 * gdbarch.h: Regenerate.
5124 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
5125 * hppah-nat.c (hppa_switched_threads): Remove.
5126 * infrun.c (prepare_to_proceed): New static function, copied from
5127 generic_prepare_to_proceed. Remove select_it argument.
5128 (proceed): Call prepare_to_proceed.
5129 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
5130 variables.
5131 (ptrace_wait): Don't set the removed variables.
5132 (hppa_switched_threads): Remove.
5133 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
5134 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
5135 (lin_lwp_prepare_to_proceed): Remove prototype.
5136 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
5137 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
5138
4add8633
TR
51392003-06-18 Theodore A. Roth <troth@openavr.org>
5140
5141 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
5142 trad-frame.h.
5143 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
5144 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
5145 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
5146 (AVR_PROLOGUE_*): Enumerate prologue types.
5147 (struct frame_extra_info): Remove.
5148 (struct avr_unwind_cache): Define.
5149 (avr_write_sp): Delete function.
5150 (avr_read_fp): Ditto.
5151 (avr_init_extra_frame_info): Ditto.
5152 (avr_pop_frame): Ditto.
5153 (avr_frame_saved_pc): Ditto.
5154 (avr_saved_pc_after_call): Ditto.
5155 (avr_push_return_address): Ditto.
5156 (avr_frame_chain): Ditto.
5157 (avr_store_struct_return): Ditto.
5158 (avr_push_arguments): Ditto.
5159 (avr_scan_prologue): Update comments. Changed to set up the info for
5160 cache unwinding. Now returns end of prologue PC.
5161 (avr_skip_prologue): Better handling of functions lacking a prologue
5162 by using avr_scan_prologue.
5163 (avr_scan_arg_moves): New function.
5164 (avr_saved_regs_unwinder): Ditto.
5165 (avr_frame_unwind_cache): Ditto.
5166 (avr_unwind_pc): Ditto.
5167 (avr_frame_this_id): Ditto.
5168 (avr_frame_prev_register): Ditto.
5169 (avr_frame_p): Ditto.
5170 (avr_frame_base_address ): Ditto.
5171 (avr_unwind_dummy_id): Ditto.
5172 (avr_push_dummy_code): Ditto.
5173 (push_stack_item): Ditto.
5174 (pop_stack_item): Ditto.
5175 (avr_push_dummy_call): Ditto.
5176 (struct stack_item): Define.
5177 (avr_frame_unwind): Declare structure.
5178 (avr_frame_base): Ditto.
5179 (avr_gdbarch_init): Remove calls to
5180 set_gdbarch_deprecated_init_frame_pc,
5181 set_gdbarch_deprecated_target_read_fp,
5182 set_gdbarch_deprecated_dummy_write_sp,
5183 set_gdbarch_deprecated_fp_regnum,
5184 set_gdbarch_deprecated_push_arguments,
5185 set_gdbarch_deprecated_push_return_address,
5186 set_gdbarch_deprecated_pop_frame,
5187 set_gdbarch_deprecated_store_struct_return,
5188 set_gdbarch_deprecated_frame_init_saved_regs,
5189 set_gdbarch_deprecated_init_extra_frame_info,
5190 set_gdbarch_deprecated_frame_chain,
5191 set_gdbarch_deprecated_frame_saved_pc,
5192 set_gdbarch_deprecated_saved_pc_after_call.
5193 Add calls to set_gdbarch_push_dummy_call,
5194 set_gdbarch_push_dummy_code,
5195 frame_unwind_append_predicate,
5196 frame_base_set_default,
5197 set_gdbarch_unwind_dummy_id,
5198 set_gdbarch_unwind_pc.
5199 Wrap a long line.
5200
7be04a68
MS
52012003-06-18 Corinna Vinschen <vinschen@redhat.com>
5202
5203 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
5204 registers for H8/300S.
5205 (h8300_print_registers_info): Ditto.
8ffd9b1b 5206 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 5207
ae087d01
DJ
52082003-06-18 Daniel Jacobowitz <drow@mvista.com>
5209
5210 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
5211 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
5212 (lin_lwp_wait): Likewise. Update comments.
5213 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
5214 (pull_pid_from_list, linux_record_stopped_pid): New.
5215
07d8f827
SC
52162003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5217
5218 * ada-lang.c (scan_discrim_bound): Name first argument.
5219 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
5220 declared by ALL_BLOCK_SYMBOLS.
5221
7cb47b14
SC
52222003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5223
5224 * ada-tasks.c (find_function_in_inferior): Don't declare it.
5225 ("regcache.h"): Include it.
5226 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
5227
6ad8ae5c
DJ
52282003-06-17 Daniel Jacobowitz <drow@mvista.com>
5229
5230 * NEWS: Mention gdbserver detach change and "disconnect" command.
5231 * infcmd.c (disconnect_command): New function.
5232 (_initialize_infcmd): Add ``disconnect'' command.
5233 * remote.c (remote_async_detach): Delete.
5234 (remote_detach): Merge remote_async_detach.
5235 (remote_disconnect): New.
5236 (init_remote_ops): Set to_disconnect.
5237 (init_remote_cisco_ops): Likewise.
5238 (init_remote_async_ops): Likewise. Use remote_detach.
5239 * target.c (cleanup_target): Default to_disconnect.
5240 (update_current_target): Inherit to_disconnect.
5241 (target_disconnect, debug_to_disconnect): New functions.
5242 (setup_target_debug): Set to_disconnect.
5243 * target.h (struct target_ops): Add to_disconnect.
5244 (target_disconnect): Add prototype.
5245
687595f9
DJ
52462003-06-17 Daniel Jacobowitz <drow@mvista.com>
5247
5248 * breakpoint.c (insert_catchpoint): New function.
5249 (insert_breakpoints): Use catch_exceptions to call
5250 insert_catchpoint. Disable catchpoints if they fail to insert.
5251
29239a8f
DJ
52522003-06-17 Daniel Jacobowitz <drow@mvista.com>
5253
5254 * symfile.c (reread_symbols): Clear sym_private.
5255
2cdf3c63
AC
52562003-06-17 Andrew Cagney <cagney@redhat.com>
5257
5258 * trad-frame.h (struct frame_info): Add opaque declaration.
5259 * remote-fileio.h (struct cmd_list_element): Add opaque
5260 declaration.
5261 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
5262 comments.
5263
cf0e1e0d
DJ
52642003-06-17 Daniel Jacobowitz <drow@mvista.com>
5265
5266 * remote.c (remote_prepare_to_store): Replace call to
5267 deprecated_read_register_bytes with multiple regcache_raw_read
5268 calls.
5269
192cdb19
KW
52702003-06-17 Kris Warkentin <kewarken@qnx.com>
5271
5272 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
5273 (nto_find_and_open_solib): Likewise.
5274 (nto_init_solib_absolute_prefix): Likewise.
5275 (_initialize_nto_tdep): Fix indentation.
5276
89929b45
KW
52772003-06-17 Kris Warkentin <kewarken@qnx.com>
5278
5279 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
5280
46019f27
KW
52812003-06-17 Kris Warkentin <kewarken@qnx.com>
5282
5283 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
5284
1a38736e
JB
52852003-06-17 Jim Blandy <jimb@redhat.com>
5286
5287 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
5288
3605c34a
TR
52892003-06-16 Theodore A. Roth <troth@openavr.org>
5290
5291 * avr-tdep.c (avr_extract_return_value): New function.
5292 (avr_gdbarch_init): Set extract_return_value method.
5293
870b3035
AC
52942003-06-16 Andrew Cagney <cagney@redhat.com>
5295
5296 * frame.h (deprecated_get_next_frame_hack): Declare.
5297 * frame.c (legacy_saved_regs_prev_register): Only require
5298 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
5299 there are always saved regs.
5300 (deprecated_generic_get_saved_register): Do not require
5301 DEPRECATED_FRAME_INIT_SAVED_REGS.
5302 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
5303 use frame ID unwind instead.
5304 (deprecated_get_next_frame_hack): New function.
5305
63d47a7d
CV
53062003-06-16 Corinna Vinschen <vinschen@redhat.com>
5307
5308 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
5309 (h8300_push_dummy_call): ...this function. Some minor optimization.
5310 (h8300_push_return_address): Remove.
5311 (h8300_gdbarch_init): Remove calls to
5312 set_gdbarch_deprecated_dummy_write_sp,
5313 set_gdbarch_deprecated_push_arguments and
5314 set_gdbarch_deprecated_push_return_address.
5315 Add call to set_gdbarch_push_dummy_call.
5316
4bb1dc5e
CV
53172003-06-16 Corinna Vinschen <vinschen@redhat.com>
5318
5319 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
5320 (E_PSEUDO_EXR_REGNUM): Ditto.
5321 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 5322 registers into safe registers.
4bb1dc5e
CV
5323 (h8300_skip_prologue): Check for stm instruction to push registers
5324 used for register variables onto stack.
5325 (gdb_print_insn_h8300): Remove.
5326 (h8300_examine_prologue): Add a comment.
5327 (h8300_register_name): Take pseudo registers into account.
5328 (h8300s_register_name): Ditto.
5329 (h8300sx_register_name): Ditto.
5330 (h8300_print_register): Ditto.
5331 (h8300_print_registers_info): Define "nice" printing order.
5332 (h8300_saved_pc_after_call): Take pseudo registers into account.
5333 (h8300_register_type): Ditto. Return type used for remote connection
5334 when requesting real CCR or EXR register, return actual type when
5335 requesting pseudo CCR or EXR.
5336 (h8300_pseudo_register_read): New function.
5337 (h8300_pseudo_register_write): Ditto.
5338 (h8300_dbg_reg_to_regnum): Ditto.
5339 (h8300s_dbg_reg_to_regnum): Ditto.
5340 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
5341 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
5342 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
5343 set_gdbarch_print_insn architecture dependent.
5344 Call set_gdbarch_pseudo_register_read and
5345 set_gdbarch_pseudo_register_write.
5346 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
5347
a59fe496
AC
53482003-06-16 Andrew Cagney <cagney@redhat.com>
5349
5350 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
5351 * gdbarch.h, gdbarch.c: Re-generate.
5352 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5353 * s390-tdep.c (s390_gdbarch_init): Update.
5354 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5355 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5356 * mips-tdep.c (mips_gdbarch_init): Update.
5357 * mcore-tdep.c (mcore_gdbarch_init): Update.
5358 * cris-tdep.c (cris_gdbarch_init): Update.
5359 * infcall.c (call_function_by_hand): Update.
5360 * ia64-tdep.c (ia64_push_arguments): Update comment.
5361 * frame.c (legacy_get_prev_frame): Do not assume
5362 SAVE_DUMMY_FRAME_TOS_P.
5363 * dummy-frame.c (find_dummy_frame): Update comment.
5364
6f4e5a41
AC
53652003-06-16 Andrew Cagney <cagney@redhat.com>
5366
5367 * regcache.c (do_cooked_read): Do not use register_valid_p.
5368
72fab697
TR
53692003-06-15 Theodore A. Roth <troth@openavr.org>
5370
5371 * avr-tdep.c (avr_register_type): Remove a blank line.
5372 (avr_scan_prologue): Correct some comments.
5373
e3d8b004
TR
53742003-06-15 Theodore A. Roth <troth@openavr.org>
5375
5376 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
5377 prologue types.
8ffd9b1b 5378 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
5379 option.
5380 Add code to scan -mcall-prologues for mega devices.
5381
866b76ea
TR
53822003-06-15 Theodore A. Roth <troth@openavr.org>
5383
5384 * avr-tdep.c (avr_register_byte): Delete function.
5385 (avr_register_raw_size): Delete function.
5386 (avr_register_virtual_size): Delete function.
5387 (avr_register_virtual_type): Delete function.
5388 (avr_register_type): New function.
5389 (avr_address_to_pointer): Remove unused code.
5390 (avr_read_fp): Need to read FP as two separate bytes due to change to
5391 avr_register_type() usage.
5392 (avr_gdbarch_init): Don't set deprecated_register_size.
5393 Don't set deprecated_register_bytes.
5394 Don't set deprecated_register_byte.
5395 Don't set deprecated_register_raw_size.
5396 Don't set deprecated_max_register_raw_size.
5397 Don't set deprecated_register_virtual_size.
5398 Don't set deprecated_max_register_virtual_size.
5399 Don't set deprecated_register_virtual_type.
5400 Set register_type method.
5401
3993f6b1
DJ
54022003-06-15 Daniel Jacobowitz <drow@mvista.com>
5403
5404 * Makefile.in (linux-nat.o): Add rule.
5405 * linux-nat.c: New file.
5406 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
5407 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
5408 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
5409 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
5410 * config/arm/linux.mh (NATDEPFILES): Likewise.
5411 * config/i386/linux.mh (NATDEPFILES): Likewise.
5412 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5413 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5414 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5415 * config/mips/linux.mh (NATDEPFILES): Likewise.
5416 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5417 * config/s390/s390.mh (NATDEPFILES): Likewise.
5418 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5419
786a90bb
MK
54202003-06-15 Mark Kettenis <kettenis@gnu.org>
5421
5422 * i387-tdep.c: Reorder includes, fix some whitespace issues and
5423 replace out-of-date comment.
5424
3bd3f01e
AC
54252003-06-15 Andrew Cagney <cagney@redhat.com>
5426
5427 * rdi-share/host.h (Fail): Change to a varargs function.
5428 * remote-rdi.c (Fail): Update.
8ffd9b1b 5429
de5b9bb9
MK
54302003-06-15 Mark Kettenis <kettenis@gnu.org>
5431
5432 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
5433 (i386_convert_register_p, i386_register_to_value,
5434 i386_register_from_value): Handle types longer than 8 bytes.
5435
d532c08f
MK
54362003-06-15 Mark Kettenis <kettenis@gnu.org>
5437
5438 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
5439 Move floating-point code to new function in i387-tdep.c.
5440 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
5441 New functions containing code moved here from i386-tdep.c.
5442 * i387-tdep.h: Add opaque declaration for `struct type'.
5443 (i387_register_to_value, i387_value_to_register): New prototypes.
5444 * x86-64-tdep.c (x86_64_convert_register_p): New function.
5445 (x86_64_init_abi): Set convert_register_p, register_to_value and
5446 value_to_register here.
8ffd9b1b 5447
42c466d7
AC
54482003-06-14 Andrew Cagney <cagney@redhat.com>
5449
5450 * mips-tdep.c (mips_register_to_value): Make static.
5451 (mips_value_to_register): Make static.
5452 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
5453 * ia64-tdep.c (ia64_register_raw_size): Make static.
5454 (ia64_register_virtual_size): Make static.
5455 (ia64_register_byte): Make static.
5456 * i387-tdep.c: Include "i387-tdep.h".
5457 (print_387_control_word): Delete function.
5458 (print_387_status_word): Delete function.
5459 (print_387_status_bits): Delete function.
5460 (print_387_control_bits): Delete function.
5461 * Makefile.in (i387-tdep.o): Update dependencies.
5462 * rdi-share/host.h (Fail): Declare.
5463 * remote-rdi.c (Fail): Update to match declaration.
5464
2a9cda49
AC
54652003-06-14 Andrew Cagney <cagney@redhat.com>
5466
5467 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
5468 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
5469 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
5470 * config/djgpp/fnchange.lst: Delete "remote-array.c".
5471 * README: Delete reference to remote-array.
5472 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
5473 (remote-array.o): Delete target.
5474 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
5475 * remote-array.c: Delete file.
5476
ff2e87ac
AC
54772003-06-14 Andrew Cagney <cagney@redhat.com>
5478 Mark Kettenis <kettenis@gnu.org>
5479
5480 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
5481 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
5482 parameter with "frame".
5483 * gdbarch.h, gdbarch.c: Re-generate.
5484 * frame.h (put_frame_register): Declare.
5485 * frame.c (put_frame_register): New function.
5486 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
5487 (legacy_register_to_value): Rewrite, use "frame" to get the
5488 register value.
5489 (legacy_value_to_register): Rewrite, use "frame" to find the
5490 register's location before storing.
5491 * arch-utils.h (legacy_convert_register_p): Update.
5492 (legacy_register_to_value, legacy_value_to_register): Update.
5493 * findvar.c (value_from_register): Rewrite, eliminate use of
5494 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
5495 "frame" to REGISTER_TO_VALUE.
5496 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
5497 lval_reg_frame_relative + lval_register branch of the switch. Do
5498 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
5499 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
5500 I386_EDI_REGNUM): New defines.
5501 (i386_next_regnum, i386_convert_register_p,
5502 i386_register_to_value, i386_value_to_register): New functions.
5503 (i386_register_convertible, i386_register_convert_to_virtual,
5504 i386_convert_to_raw): Remove functions.
5505 (i386_gdbarch_init): Set convert_register_p, register_to_value and
5506 value_to_register instead of register_convertible,
5507 register_convert_to_virtual and register_convert_to_raw.
5508 * mips-tdep.c (mips_convert_register_p): New function.
5509 (mips_value_to_register): Replace mips_register_convert_from_type.
5510 (mips_register_to_value): Replace mips_register_convert_to_type.
5511 (mips_gdbarch_init): Set conver_register_p, value_to_register and
5512 register_to_value.
5513 * alpha-tdep.c (alpha_convert_register_p): Update.
5514 (alpha_value_to_register): Update, store the register.
5515 (alpha_register_to_value): Update, fetch the register.
5516
98be1e77
TR
55172003-06-14 Theodore A. Roth <troth@openavr.org>
5518
5519 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
5520 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
5521 Don't set deprecated_call_dummy_words.
5522 Remove commented out set_gdbarch_believe_pcc_promotion() call.
5523 Don't set remote_translate_xfer_address.
5524 (avr_io_reg_read_command): Remove commented out debug printf.
5525 Wrap a long line.
5526
57bc6122
TR
55272003-06-14 Theodore A. Roth <troth@openavr.org>
5528
5529 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
5530 causes gdb to seg fault.
5531
eb01fc62
DJ
55322003-06-14 Daniel Jacobowitz <drow@mvista.com>
5533
5534 * sparc-nat.c (fetch_inferior_registers): Correct
5535 a reference to "registers".
5536
3b3e6bee
DJ
55372003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
5538
5539 * Makefile.in (exc_request_U_h): Define
5540 (exc_request_S_h): Likewise.
5541 (msg_reply_S_h): Likewise.
5542 (msg_U_h): Likewise.
5543 (notify_S_h): Likewise.
5544 (process_reply_S_h): Likewise.
5545 (gnu-nat.o): Depend on gdb_obstack_h
5546 * gnu-nat.c: Include "gdb_obstack.h".
5547
b8de8283
AC
55482003-06-13 Andrew Cagney <cagney@redhat.com>
5549
5550 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
5551 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 5552
f3be58bc
AC
55532003-06-13 Andrew Cagney <cagney@redhat.com>
5554
5555 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
5556 when deprecated REGISTER macros can be deleted.
5557 * gdbarch.h, gdbarch.c: Re-generate.
5558
4c0122c8
JB
55592003-06-13 Jim Blandy <jimb@redhat.com>
5560
5561 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
5562 Linux entry point symbols for _dl_debug_state, too.
5563
3e210248
AC
55642003-06-13 Andrew Cagney <cagney@redhat.com>
5565
5566 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
5567 available, do not use the FP register, and always save the TOS.
5568 * dummy-frame.c (dummy_frame_this_id): Do not assert
5569 SAVE_DUMMY_FRAME_TOS.
5570 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
5571 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
5572 (i386_push_dummy_call): Add 8 to the returned SP.
5573 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
5574 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
5575 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
5576 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
5577 (x86_64_push_dummy_call): Return "sp + 16".
5578 (x86_64_init_abi): Do not set save_dummy_frame_tos.
5579 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5580 save_dummy_frame_tos.
5581
0b65af49
JB
55822003-06-13 Jim Blandy <jimb@redhat.com>
5583
5584 * frv-tdep.c (frv_use_struct_convention): Delete static
5585 declaration for function deleted in my change of 2003-06-12.
5586
4ea2465e
TR
55872003-06-13 Theodore A. Roth <troth@openavr.org>
5588
5589 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
5590 (avr_pointer_to_address): Shift code addrs left 1 bit.
5591 (avr_convert_from_func_ptr_addr): Delete function since operation is
5592 better handled by avr_address_to_pointer and avr_pointer_to_address.
5593 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
5594
1581182a
MK
55952003-06-13 Mark Kettenis <kettenis@gnu.org>
5596
5597 From Kelley Cook <kelleycook@wideopenwest.com>:
5598 * configure.host: Accept i[34567]86 variants.
5599 * configure.tgt: Likewise.
5600 * nlm/configure.in: Likewise.
5601 * nlm/configure: Regenerated.
5602
7aa1783e
RE
56032003-06-13 Richard Earnshaw <rearnsha@arm.com>
5604
5605 * arm-tdep.c (solib-svr4.h): Dont' include it.
5606 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
5607 * arm-linux-tdep.c: ... here. Make static.
5608 (arm_linux_init_abi): Register it.
5609 (solib-svr4.h): Include it.
5610 * Makefile.in: Update dependencies.
5611 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
5612 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
5613
0261a0d0
CV
56142003-06-13 Corinna Vinschen <vinschen@redhat.com>
5615
5616 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
5617 indicate registers used for return values.
5618 (struct frame_extra_info): Drop args_pointer and locals_pointer.
5619 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
5620 members.
5621 (h8300_init_extra_frame_info): Ditto.
5622 (h8300_frame_locals_address): Removed.
5623 (h8300_frame_args_address): Removed.
5624 (h8300_extract_return_value): Use new regcache structure. Only care
5625 for 16 bit CPUs.
5626 (h8300h_extract_return_value): Same function for 32 bit CPUs.
5627 (h8300_store_return_value): Use new regcache structure. Only care
5628 for 16 bit CPUs.
5629 (h8300h_store_return_value): Same function for 32 bit CPUs.
5630 (h8300_store_struct_return): Removed.
5631 (h8300_extract_struct_value_address): Use new regcache structure.
5632 (h8300h_extract_struct_value_address): Removed.
5633 (h8300_push_dummy_code): New function.
5634 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
5635 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
5636 set_gdbarch_store_return_value architecture dependent.
5637 Call set_gdbarch_push_dummy_code and
5638 set_gdbarch_extract_struct_value_address.
5639 Remove calls to set_gdbarch_frame_args_address,
5640 set_gdbarch_frame_locals_address,
5641 set_gdbarch_deprecated_store_struct_return,
5642 set_gdbarch_deprecated_extract_return_value,
5643 set_gdbarch_deprecated_extract_struct_value_address,
5644 set_gdbarch_deprecated_call_dummy_words and
5645 set_gdbarch_deprecated_sizeof_call_dummy_words.
5646
055c394a
CV
56472003-06-13 Corinna Vinschen <vinschen@redhat.com>
5648
5649 * h8300-tdep.c (h8300_register_byte): Remove.
5650 (h8300h_register_byte): Remove.
5651 (h8300_register_virtual_type): Remove. Substitute by...
5652 (h8300_register_type): New function.
5653 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
5654 (h8300h_extract_struct_value_address): Ditto.
5655 (h8300_gdbarch_init): Drop calls to
5656 set_gdbarch_deprecated_register_byte and
5657 set_gdbarch_deprecated_register_virtual_type.
5658 Add call to set_gdbarch_register_type.
5659
9c04cab7
AC
56602003-06-13 Andrew Cagney <cagney@redhat.com>
5661
5662 * gdbarch.sh: Update comments on registers.
5663 (deprecated_register_byte): Rename register_byte.
5664 (deprecated_register_raw_size): Rename register_raw_size.
5665 (deprecated_register_virtual_size): Rename register_virtual_size.
5666 (deprecated_register_virtual_type): Rename register_virtual_type.
5667 * gdbarch.h, gdbarch.c: Re-generate.
5668 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5669 * vax-tdep.c (vax_gdbarch_init): Update.
5670 * v850-tdep.c (v850_gdbarch_init): Update.
5671 * sparc-tdep.c (sparc_gdbarch_init): Update.
5672 * sh-tdep.c (sh_gdbarch_init): Update.
5673 * s390-tdep.c (s390_gdbarch_init): Update.
5674 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5675 * ns32k-tdep.c: Update.
5676 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5677 * mips-tdep.c (mips_gdbarch_init): Update.
5678 * mcore-tdep.c (mcore_gdbarch_init): Update.
5679 * m68k-tdep.c (m68k_gdbarch_init): Update.
5680 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5681 * ia64-tdep.c (ia64_gdbarch_init): Update.
5682 * hppa-tdep.c (hppa_gdbarch_init): Update.
5683 * h8300-tdep.c (h8300_gdbarch_init): Update.
5684 * frv-tdep.c (frv_gdbarch_init): Update.
5685 * cris-tdep.c (cris_gdbarch_init): Update.
5686 * avr-tdep.c (avr_gdbarch_init): Update.
5687 * alpha-tdep.c (alpha_gdbarch_init): Update.
5688 * arm-tdep.c (arm_gdbarch_init): Update.
5689
b060cbea
AC
56902003-06-13 Andrew Cagney <cagney@redhat.com>
5691
5692 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
5693 mips_o32_use_struct_convention with always_use_struct_convention.
5694
0fc9922a
DC
56952003-06-12 David Carlton <carlton@kealia.com>
5696
5697 * cp-namespace.c (cp_set_block_scope): Comment out
5698 processing_has_namespace_info branch.
5699
1fd35568
JB
57002003-06-12 Jim Blandy <jimb@redhat.com>
5701
f470a70a
JB
5702 Recognize and skip 64-bit PowerPC Linux linkage functions.
5703 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
5704 insn_pattern, insns_match_pattern, d_field, ds_field): New
5705 functions, macros, and types for working with PPC instructions.
5706 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
5707 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
5708 ppc64_skip_trampoline_code): New functions, variables, and macros
5709 for recognizing and skipping linkage functions.
5710 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
5711 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
5712
49ff75ad
JB
5713 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
5714 register offsets for both the 32- and 64-bit interfaces.
5715
bd918c83
JB
5716 Actually finish the job started by my change of 2003-05-29.
5717 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
5718 other #definition of this.
5719 (ppc_linux_skip_trampoline_code): Remove declaration.
5720 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
5721 static.
5722 (ppc_linux_init_abi): Register it as the skip_trampoline_code
5723 method for GDBARCH.
5724
5725 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
5726 'long' on ppc64-*-linux*.
5727
f8c59253
JB
5728 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
5729 isn't #defined, assume the register doesn't exist: act as if
5730 tdep->ppc_mq_regnum were -1.
5731
8fbb30b1
JB
5732 * configure.host, configure.tgt: Add entries for
5733 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
5734 powerpc/linux.mt.
5735 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
5736 New files.
5737
1fd35568
JB
5738 * arch-utils.c (always_use_struct_convention): New function.
5739 * arch-utils.h (always_use_struct_convention): New prototype.
5740 * alpha-tdep.c (alpha_use_struct_convention): Delete.
5741 (alpha_gdbarch_init): Register always_use_struct_convention,
5742 instead of alpha_use_struct_convention.
5743 * cris-tdep.c (cris_use_struct_convention): Delete.
5744 (cris_gdbarch_init): Register always_use_struct_convention,
5745 instead of cris_use_struct_convention.
5746 * frv-tdep.c (frv_use_struct_convention): Delete.
5747 (frv_gdbarch_init): Register always_use_struct_convention,
5748 instead of frv_use_struct_convention.
5749 * h8300-tdep.c (h8300_use_struct_convention): Delete.
5750 (h8300_gdbarch_init): Register always_use_struct_convention,
5751 instead of h8300_use_struct_convention.
e3305dd9 5752 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
5753 (mips_o32_gdbarch_init): Register always_use_struct_convention,
5754 instead of mips_o32_use_struct_convention.
5755
e14e6e9c
AC
57562003-06-12 Andrew Cagney <cagney@redhat.com>
5757
5758 * wince.c: Include "mips-tdep.h".
5759 * mips-tdep.h (mips_next_pc): Declare.
5760 * mcore-tdep.c: Make more local functions static.
5761 * Makefile.in (wince.o): Update dependencies.
5762
2335f48e
DC
57632003-06-12 David Carlton <carlton@kealia.com>
5764
5765 * symtab.c (lookup_symbol_aux_minsyms): Replace
5766 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5767 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
5768 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
5769 SYMBOL_NATURAL_NAME.
5770
f70a7d61
AS
57712003-06-12 Andreas Schwab <schwab@suse.de>
5772
5773 * Makefile.in (tuiDisassem.o): Update dependencies.
5774
b6429628
DC
57752003-06-12 David Carlton <carlton@bactrian.org>
5776
5777 * symtab.h: Delete declaration of make_symbol_overload_list.
5778 Add declaration of lookup_partial_symbol.
5779 * symtab.c (remove_params): Move to cp-support.c.
5780 (overload_list_add_symbol, make_symbol_overload_list)
5781 (sym_return_val_size, sym_return_val_index): Ditto.
5782 (lookup_partial_symbol): Make extern.
5783 * cp-support.h: Add declaration of make_symbol_overload_list.
5784 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
5785 symtab.h, and block.h.
5786 (remove_params): Move here from symtab.c.
5787 (overload_list_add_symbol, make_symbol_overload_list)
5788 (sym_return_val_size, sym_return_val_index): Ditto.
5789 * valops.c: Include cp-support.h.
5790 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
5791 frame_h, and block_h.
5792 (valops.o): Depend on cp_support_h.
5793
084edea5
CV
57942003-06-12 Corinna Vinschen <vinschen@redhat.com>
5795
5796 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
5797 substitute by NUM_REGS throughout.
5798 (h8300_register_name): Only care for H8/300 and H8/300H registers.
5799 (h8300s_register_name): New function for H8S registers.
5800 (h8300sx_register_name): Ditto for H8SX registers.
5801 (h8300_print_register): Revise register printing, avoid depending
5802 on 32 bit long.
0261a0d0 5803 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
5804 (h8300h_register_byte): New function for any other architecture.
5805 (h8300_register_raw_size): Remove.
5806 (h8300_register_virtual_type): Revise to return actually useful
5807 type.
5808 (h8300_extract_struct_value_address): Only care for H8/300 registers.
5809 (h8300h_extract_struct_value_address): New function for any other
5810 architecture.
5811 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
5812 set_gdbarch_register_name, set_gdbarch_register_byte,
5813 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
5814 Remove calls to set_gdbarch_deprecated_register_size,
5815 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
5816 set_gdbarch_deprecated_max_register_raw_size,
5817 set_gdbarch_register_virtual_size and
5818 set_gdbarch_deprecated_max_register_virtual_size entirely.
5819 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5820 set_gdbarch_long_double_bit.
5821
06194148
JJ
58222003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5823
8ffd9b1b
AJ
5824 * doublest.c (convert_doublest_to_floatformat): When dealing
5825 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
5826 processing a full 32 bits of mantissa.
5827
de4f826b
DC
58282003-06-11 David Carlton <carlton@bactrian.org>
5829
5830 * dictionary.h: New.
5831 * dictionary.c: New.
5832 * block.h: Add opaque declaration for struct dictionary.
5833 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5834 'sym' members.
5835 (BLOCK_DICT): New macro.
5836 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5837 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5838 BLOCK_SHOULD_SORT.
5839 (ALL_BLOCK_SYMBOLS): Update definition.
5840 * Makefile.in (SFILES): Add dictionary.c.
5841 (dictionary_h): New.
5842 (COMMON_OBS): Add dictionary.o.
5843 (dictionary.o): New.
5844 (ada-lang.o): Depend on dictionary_h.
5845 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5846 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5847 (mi-cmd-stack.o): Ditto.
5848 (gdbtk-cmds.o): Update dependencies.
5849 (gdbtk-stack.o): Ditto.
5850 * ada-lang.c: Include dictionary.h.
5851 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5852 (fill_in_ada_prototype, debug_print_block): Ditto.
5853 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5854 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
5855 'is_sorted'.
5856 * mdebugread.c: Include dictionary.h.
5857 (struct parse_stack): Delete 'maxsyms' member.
5858 (parse_symbol): Update calls to new_block. Delete calls to
5859 shrink_block. Use dictionary methods.
5860 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5861 Update calls to new_symtab. Don't maintain maxsyms data.
5862 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5863 (add_symbol): Just call dict_add_symbol.
5864 (new_symtab): Delete 'maxsyms' argument.
5865 (new_symtab): Update calls to new_block.
5866 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5867 (shrink_block): Delete function.
5868 (fixup_sigtramp): Update call to new_block. Add symbol via
5869 dict_add_symbol.
5870 * jv-lang.c: Include dictionary.h.
5871 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5872 appropriately. Set class_symtab->free_func. Make sure the
5873 blockvector is big enough to hold two blocks.
5874 (add_class_symtab_symbol): Use dictionary methods.
5875 (free_class_block): New function.
5876 (type_from_class): Replace explicit iteration by
5877 ALL_BLOCK_SYMBOLS.
5878 * symtab.h (struct symtab): Replace 'free_ptr' method by
5879 'free_func'.
5880 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5881 sort_symtab_syms.
5882 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5883 sort_symtab_syms.
5884 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5885 Include dictionary.h.
5886 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5887 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5888 sort_symtab_syms.
5889 * objfiles.c: Include dictionary.h.
5890 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5891 * buildsym.c: Include dictionary.h.
5892 (finish_block): Use dictionary methods.
5893 (end_symtab): Set free_func to NULL, not free_ptr.
5894 * tracepoint.c: Include dictionary.h.
5895 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5896 (scope_info): Ditto.
5897 * stack.c: Include dictionary.h.
5898 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5899 (print_block_frame_labels, print_frame_arg_vars)
5900 (print_frame_args): Ditto.
5901 * symmisc.c (free_symtab_block): Use dictionary methods.
5902 (dump_symtab): Ditto.
5903 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5904 Include dictionary.h.
5905 * symfile.h: Delete declarations of sort_block_syms,
5906 sort_symtab_syms.
5907 * symfile.c (sort_block_syms): Delete.
5908 (sort_symtab_syms): Delete.
5909 * symtab.c: Include dictionary.h.
5910 (lookup_block_symbol): Use dictionary iterators.
5911 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5912 (search_symbols, make_symbol_completion_list): Ditto.
5913 (make_symbol_overload_list): Ditto.
5914 * valops.c (value_of_local): Use dict_empty.
5915 Include dictionary.h.
5916
a31f978c
JB
59172003-06-11 J. Brobecker <brobecker@gnat.com>
5918
5919 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5920
526e70c0
DC
59212003-06-11 David Carlton <carlton@bactrian.org>
5922
5923 * block.h (BLOCK_SHOULD_SORT): Delete.
5924 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5925 blocks.
5926 * ada-lang.c (ada_add_block_symbols): Ditto.
5927 * symfile.c (sort_block_syms): Delete.
5928 (sort_symtab_syms): Ditto.
5929 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5930 declarations.
5931 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5932 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5933 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5934 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5935 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5936 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5937 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5938
33c08150
JJ
59392003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5940
8ffd9b1b 5941 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
5942 bits to 128.
5943
781a750d
AC
59442003-06-11 Andrew Cagney <cagney@redhat.com>
5945
5946 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5947 REGISTER_CONVERTIBLE.
5948 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5949 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5950 * gdbarch.h, gdbarch.c: Re-generate.
5951 * arch-utils.h (deprecated_register_convertible_not): Rename
5952 generic_register_convertible_not.
5953 * arch-utils.c (deprecated_register_convertible_not): Rename
5954 generic_register_convertible.
5955 (legacy_convert_register_p, legacy_register_to_value): Update.
5956 * sh-tdep.c (sh64_push_arguments): Update.
5957 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5958 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5959 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5960 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5961 * arch-utils.c (legacy_value_to_register): Update.
5962 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5963 (rs6000_register_convert_to_raw): Make parameter "from" const.
5964 * mips-tdep.c (mips_gdbarch_init): Update.
5965 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5966 * infcmd.c (default_print_registers_info): Update.
5967 * ia64-tdep.c (ia64_gdbarch_init): Update.
5968 (ia64_register_convert_to_raw): Make parameter "from" const.
5969 * i386-tdep.c (i386_gdbarch_init): Update.
5970 (i386_register_convert_to_raw): Update.
5971
cd90e54f
AC
59722003-06-11 Andrew Cagney <cagney@redhat.com>
5973
5974 * remote-fileio.c: Include "remote-fileio.h".
5975 * Makefile.in (remote-fileio.o): Update dependencies.
5976 (remote_fileio_h): Fix typo.
5977
a78f21af
AC
59782003-06-11 Andrew Cagney <cagney@redhat.com>
5979
5980 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5981 (xstormy16_save_dummy_frame_tos): Make static.
5982 (_initialize_xstormy16_tdep): Add declaration.
5983 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5984 * v850-tdep.c: Make local functions static.
5985 (_initialize_v850_tdep): Add declaration.
5986 * sparc-tdep.c: Make local functions static.
5987 (_initialize_sparc_tdep): Add declaration.
5988 * sh-tdep.c: Make local functions static.
5989 (_initialize_sh_tdep): Add declaration.
5990 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5991 * s390-tdep.c: Make local functions static.
5992 (_initialize_s390_tdep): Add declaration.
5993 * dbxread.c (find_stab_function_addr): Make static.
5994 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5995 * ocd.c (_initialize_remote_ocd): Add declaration.
5996 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5997 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5998 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5999 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6000 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6001 * remote-array.c (_initialize_array): Add declaration.
6002 (_initialize_remote_monitors): Add declaration.
6003 * remote-mips.c: Make local functions static.
6004 (_initialize_remote_mips): Add declaration.
6005 * mcore-tdep.c: Make all local functions static.
6006 (_initialize_mcore_tdep): Add declaration.
6007 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6008 * abug-rom.c (_initialize_abug_rom): Add declaration.
6009 * rom68k-rom.c (_initialize_rom68k): Add declaration.
6010 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6011 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6012 * remote-est.c (_initialize_est): Add declaration.
6013 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6014 (m68hc11_call_dummy_address): Make static.
6015 * ia64-tdep.c: Make local functions static.
6016 (_initialize_ia64_tdep): Add declaration.
6017 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6018 * monitor.c (monitor_wait_filter): Make static.
6019 (_initialize_remote_monitors): Add declaration.
6020 * remote-hms.c (_initialize_remote_hms): Add declaration.
6021 * remote-e7000.c (fetch_regs_from_dump): Make static.
6022 (expect_n): Make static.
6023 (_initialize_remote_e7000): Add declaration.
6024 * ser-e7kpc.c: Always include "defs.h".
6025 (_initialize_ser_e7000pc): Add declaration.
6026 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6027 * cris-tdep.c: Make all but one function static.
6028 (_initialize_cris_tdep): Add declaration.
6029 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6030 * solib.c (update_solib_list): Make static.
6031 (_initialize_solib): Add declaration.
6032 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6033 (_initialize_avr_tdep): Add declaration.
6034 * remote-rdi.c (voiddummy): Make static.
6035 (_initialize_remote_rdi): Add declaration.
6036 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6037 * remote-rdp.c (send_rdp): Make static.
6038 (_initialize_remote_rdp): Add declaration.
6039 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6040
cbcdb1f5
CV
60412003-06-11 Corinna Vinschen <vinschen@redhat.com>
6042
6043 * remote-fileio.c: Make ari happy.
6044
a191ea8d
JB
60452003-06-10 J. Brobecker <brobecker@gnat.com>
6046
6047 * rs6000-nat.c (child_xfer_memory): Compute the right address when
6048 fetching the trailing bytes of the buffer we are about to write.
6049
0ef75e11
AC
60502003-06-10 Andrew Cagney <cagney@redhat.com>
6051
6052 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6053 * Makefile.in (remote-fileio.o): Update dependencies.
6054 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
6055 include <setjmp.h>, or <sys/types.h> conditional on USG.
6056 (remote_fio_jmp_buf): Delete global variable.
6057
449092f6 60582003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 6059 Martin M. Hunt <hunt@redhat.com>
449092f6 6060
559fa028
AC
6061 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
6062 (SFILES): Add remote-fileio.c.
6063 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
6064 dependencies for building remote.o.
449092f6
CV
6065 * remote-fileio.c: New file implementing the remote File-I/O protocol.
6066 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 6067 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
6068 static storage class.
6069 (remote_wait, remote_async_wait): Call remote_fileio_request() on
6070 'F' packet.
6071 (_initialize_remote): Call initialize_remote_fileio().
6072 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
6073 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6074 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6075 (captured_main): Initialize new ui_files.
6076 * ui-file.c: Add read and fgets input functions.
6077 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
6078 (null_file_read): New function.
6079 (ui_file_read): New function.
6080 (set_ui_file_read): New function.
6081 (stdio_file_read): New function.
6082 * ui-file.h: New type ui_file_read_ftype.
6083 (set_ui_file_read): Declare.
6084 (ui_file_read): Declare.
6085
248de703
AC
60862003-06-09 Andrew Cagney <cagney@redhat.com>
6087
6088 * frame.h (deprecated_unwind_get_saved_register): Rename
6089 generic_unwind_get_saved_register, update comments.
6090 * mips-tdep.c (mips_get_saved_register): Update.
6091 * frame.c (deprecated_unwind_get_saved_register): Update.
6092
0ed8aa57
AC
60932003-06-09 Andrew Cagney <cagney@redhat.com>
6094
6095 * vax-tdep.c (vax_frame_locals_address): Delete function.
6096 (vax_gdbarch_init): Do not set frame_locals_address.
6097 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
6098 (m68hc11_gdbarch_init): Do not set frame_locals_address.
6099 * s390-tdep.c (s390_frame_args_address): Delete function.
6100 (s390_gdbarch_init): Do not set frame_args_address or
6101 frame_locals_address.
6102 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
6103 (ns32k_gdbarch_init): Do not set frame_locals_address.
6104 * hppa-tdep.c (hppa_frame_args_address): Delete function.
6105 (hppa_frame_locals_address): Delete function.
6106 (hppa_gdbarch_init): Do not set frame_args_address, or
6107 frame_locals_address.
6108 * arm-tdep.c (arm_frame_args_address): Delete.
6109 (arm_frame_locals_address): Delete.
6110 (arm_gdbarch_init): Do not set frame_args_address, or
6111 frame_locals_address.
6112
983a287a
AC
61132003-06-09 Andrew Cagney <cagney@redhat.com>
6114
6115 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
6116 * gdbarch.h, gdbarch.c: Re-generate.
6117 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
6118 * arch-utils.c (frame_num_args_unknown): Delete function.
6119 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
6120 (frame_info): Use FRAME_NUM_ARGS_P.
6121 * arm-tdep.c (arm_frame_num_args): Delete function.
6122 (arm_gdbarch_init): Do not set frame_num_args.
6123 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
6124 * hppa-tdep.c (hppa_frame_num_args): Delete function.
6125 (hppa_gdbarch_init): Do not set frame_num_args.
6126 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
6127 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6128 frame_num_args to default frame_num_args_unknown.
6129 * v850-tdep.c (v850_gdbarch_init): Ditto.
6130 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6131 * sh-tdep.c (sh_gdbarch_init): Ditto.
6132 * s390-tdep.c (s390_gdbarch_init): Ditto.
6133 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6134 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6135 * mips-tdep.c (mips_gdbarch_init): Ditto.
6136 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6137 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6138 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6139 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6140 * i386-tdep.c (i386_gdbarch_init): Ditto.
6141 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6142 * frv-tdep.c (frv_gdbarch_init): Ditto.
6143 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6144 * cris-tdep.c (cris_gdbarch_init): Ditto.
6145 * avr-tdep.c (avr_gdbarch_init): Ditto.
6146 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6147
8d3b0994
AC
61482003-06-09 Andrew Cagney <cagney@redhat.com>
6149
6150 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
6151 (print_frame_args): Moved to "stack.c".
6152 * stack.c: Include "gdb_assert.h".
6153 (print_frame_nameless_args): Moved from "printcmd.c", made static.
6154 (print_frame_args): Moved from "printcmd.c".
6155 * frame.h (print_frame_args): Delete declaration.
6156 * Makefile.in (stack.o): Update dependencies.
6157
25e3a86b
AC
61582003-06-08 Andrew Cagney <cagney@redhat.com>
6159
6160 * frame.c (get_prev_frame): Remove reference to
6161 frame_args_address_correct in comments.
6162 * frame-base.c (default_frame_args_address): Delete code
6163 conditional on FRAME_ARGS_ADDRESS_CORRECT.
6164 * vax-tdep.c (vax_frame_args_address_correct): Delete.
6165 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
6166 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
6167 (vax_frame_args_address_correct): Delete declaration.
6168
a9e5fdc2
AC
61692003-06-08 Andrew Cagney <cagney@redhat.com>
6170
6171 * gdbarch.sh (UNWIND_SP): Add.
6172 * gdbarch.h, gdbarch.c: Re-generate.
6173 * frame.c (frame_sp_unwind): New function.
6174 (get_frame_sp): New function.
6175 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
6176 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
6177 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
6178 value.
6179 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
6180 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
6181
8983bd83
AC
61822003-06-08 Andrew Cagney <cagney@redhat.com>
6183
7fec2c59
AC
6184 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
6185 REMOTE_BREAKPOINT.
6186 * remote.c: Update.
6187 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
6188 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
6189 * config/m68k/tm-sun3.h: Update.
6190 * config/m68k/tm-m68klynx.h: Update.
6191 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
6192
8983bd83
AC
6193 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
6194 trad_frame". Update comments.
6195 * d10v-tdep.c (struct d10v_unwind_cache): Update.
6196 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
6197 (trad_frame_register_value, trad_frame_prev_register): Update.
6198
b9362cc7
AC
61992003-06-08 Andrew Cagney <cagney@redhat.com>
6200
6201 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
6202 from GCC's acinclude.m4.
6203 * configure.in: Check for getopt's delcaration.
8ffd9b1b 6204 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
6205 * main.c (error_init): Delete declaration.
6206 * defs.h (error_init): Declare.
6207 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
6208 (rs6000_convert_from_func_ptr_addr): Make static.
6209 (_initialize_rs6000_tdep): Add declaration.
6210 * cli/cli-cmds.c (dont_repeat): Delete declaration.
6211 (show_commands, set_verbose, show_history): Delete declaration.
6212 * top.h (set_verbose): Add declaration.
6213 (show_history, set_history, show_commands): Add declaration.
6214 (do_restore_instream_cleanup): Add declaration.
6215 * objc-lang.c (specialcmp): Make static.
6216 (print_object_command): Make static.
6217 (find_objc_msgsend): Make static.
6218 (find_objc_msgcall_submethod_helper): Make static.
6219 (find_objc_msgcall_submethod): Make static.
6220 (_initialize_objc_language): Add declaration.
6221 (find_implementation_from_class): Make static.
6222 (find_implementation): Make static.
6223 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
6224 * objc-lang.h (lookup_struct_typedef): Add declaration.
6225 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
6226 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
6227 (do_restore_user_call_depth): Make static.
6228 (do_restore_instream_cleanup): Delete declaration.
6229 (dont_repeat): Delete declaration.
6230 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
6231 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
6232 * reggroups.c (_initialize_reggroup): Add declaration.
6233 * cp-support.c (_initialize_cp_support): Add declaration.
6234 * cp-abi.c (_initialize_cp_abi): Add declaration.
6235 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
6236 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
6237 (_initialize_gnu_v3_abi): Add declaration.
6238 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
6239 (_initialize_gnu_v2_abi): Add declaration.
6240 * frame-base.c (_initialize_frame_base): Add declaration.
6241 * doublest.c (floatformat_from_length): Make static.
6242 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6243 * frame.c (create_sentinel_frame): Make static.
6244 (_initialize_frame): Add declaration.
6245 * top.c (do_catch_errors): Make static.
6246 (gdb_rl_operate_and_get_next_completion): Make static.
6247 * typeprint.c: Include "typeprint.h".
6248 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
6249 (sentinel_frame_this_id): Make static.
6250 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6251 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
6252 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
6253 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
6254 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
6255 * maint.c (maintenance_print_architecture): Make static.
6256 * signals/signals.c (_initialize_signals): Add declaration.
6257 * std-regs.c (_initialize_frame_reg): Add declaration.
6258 * jv-exp.y (push_variable): ISO C definition.
6259 (push_qualified_expression_name): Ditto.
6260 * memattr.c (_initialize_mem): Add declaration.
6261 * remote.c (remote_check_watch_resources): Make static.
6262 (remote_stopped_by_watchpoint): Make static.
6263 (remote_stopped_data_address): Make static.
6264 * d10v-tdep.c (nr_dmap_regs): Make static.
6265 (a0_regnum): Make static.
6266 (d10v_frame_unwind_cache): Make static.
6267 (d10v_frame_p): Make static.
6268 * osabi.c (show_osabi): Make static.
6269 (_initialize_gdb_osabi): Add extern declaration.
6270 * gdbtypes.c (make_qualified_type): Make static.
6271 (safe_parse_type): Make static.
6272 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
6273 * macrotab.c (macro_bcache_free): Make static.
6274 * interps.c (interp_set_quiet): Make static.
6275 (interpreter_exec_cmd): Make static.
6276 * stack.h (select_frame_command): New file.
6277 * stack.c: Include "stack.h".
6278 (select_frame_command_wrapper): Delete function.
6279 (select_frame_command): Make global.
6280 * infcall.c: Include "infcall.h".
6281 * linespec.c: Include "linespec.h".
6282 * symfile.c (sections_overlap): Make static.
6283 * cp-support.h (cp_initialize_namespace): ISO C declaration.
6284 * charset.c (_initialize_charset): Add missing prototype.
6285 * regcache.c (init_legacy_regcache_descr): Make static.
6286 (do_regcache_xfree): Make static.
6287 (regcache_xfer_part): Make static.
6288 (_initialize_regcache): Add missing prototype.
6289 * breakpoint.c (parse_breakpoint_sals): Make static.
6290 (breakpoint_sals_to_pc): Make static.
6291 * interps.h (clear_interpreter_hooks): ISO C declaration.
6292 * Makefile.in (stack_h): Define.
6293 (stack.o, typeprint.o, mi-main.o): Update dependencies.
6294 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
6295
a0f267c7
AC
62962003-06-08 Andrew Cagney <cagney@redhat.com>
6297
6298 * Makefile.in (d10v-tdep.o): Update dependencies.
6299 (SFILES): Add trad-frame.c.
6300 (trad_frame_h): Define.
6301 (COMMON_OBS): Add trad-frame.o.
6302 (trad-frame.o): Specify dependencies.
6303 * d10v-tdep.c: Include "trad-frame.h".
6304 (saved_regs_unwinder): Delete function.
6305 (d10v_frame_prev_register): Use trad_frame_prev_register.
6306 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
6307 trad_frame", delete "regs" and "prev_sp".
6308 (prologue_find_regs): Use trad-frame.
6309 * trad-frame.h, trad-frame.c: New files.
6310
4538b4f4
MK
63112003-06-08 Mark Kettenis <kettenis@gnu.org>
6312
6313 * dwarf2cfi.c, dwarf2cfi.h: Remove.
6314
a0273b2f
AF
63152003-06-07 Adam Fedor <fedor@gnu.org>
6316
6317 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
6318 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
6319 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
6320 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 6321 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
6322 Use it.
6323
3a6c3343
AC
63242003-06-07 Andrew Cagney <cagney@redhat.com>
6325
6326 * symfile.h: Re-indent, clean up comments.
6327
b46e02f6
AC
63282003-06-07 Andrew Cagney <cagney@redhat.com>
6329
6330 * inferior.h (deprecated_write_sp): Replace
6331 generic_target_write_sp.
6332 * regcache.c (deprecated_write_sp): Replace
6333 generic_target_write_sp.
6334 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6335 * vax-tdep.c (vax_gdbarch_init): Update.
6336 * v850-tdep.c (v850_gdbarch_init): Update.
6337 * sparc-tdep.c (sparc_gdbarch_init): Update.
6338 * sh-tdep.c (sh_gdbarch_init): Update.
6339 * s390-tdep.c (s390_gdbarch_init): Update.
6340 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6341 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6342 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6343 * mcore-tdep.c (mcore_gdbarch_init): Update.
6344 * m68k-tdep.c (m68k_gdbarch_init): Update.
6345 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6346 * ia64-tdep.c (ia64_gdbarch_init): Update.
6347 * h8300-tdep.c (h8300_gdbarch_init): Update.
6348 * frv-tdep.c (frv_gdbarch_init): Update.
6349 * cris-tdep.c (cris_gdbarch_init): Update.
6350 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6351
a42e117c
AC
63522003-06-07 Andrew Cagney <cagney@redhat.com>
6353
6354 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
6355 Assert that PC_REGNUM is valid.
6356 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
6357
bd1ce8ba
AC
63582003-06-07 Andrew Cagney <cagney@redhat.com>
6359
6360 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
6361 * gdbarch.h, gdbarch.c: Regenerate.
6362 * mn10300-tdep.c: Include "gdb_assert.h".
6363 (mn10300_read_fp): New function.
6364 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
6365 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
6366 * ia64-tdep.c: Include "gdb_assert.h".
6367 (ia64_read_fp): New function.
6368 (ia64_gdbarch_init): Set deprecated_target_read_fp to
6369 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
6370 * regcache.c (generic_target_read_sp): Delete function.
6371 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
6372 * inferior.h (generic_target_read_sp): Delete declaration.
6373 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
6374 generic_target_read_sp.
6375 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6376 * sparc-tdep.c (sparc_gdbarch_init): Ditto
6377 * sh-tdep.c (sh_gdbarch_init): Ditto.
6378 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6379 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
6380
ec5cbaec
AC
63812003-06-07 Andrew Cagney <cagney@redhat.com>
6382
6383 * gdbarch.sh: Comment each field of startup_gdbarch.
6384 * gdbarch.h, gdbarch.c: Re-generate.
6385
cde9ea48
AC
63862003-06-07 Andrew Cagney <cagney@redhat.com>
6387
6388 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
6389 * gdbarch.h, gdbarch.c: Re-generate.
6390 * regcache.c: Update comments on read_pc et.al.
6391 (generic_target_read_pc): Delete function.
6392 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
6393 * inferior.h (generic_target_read_pc): Delete declaration.
6394 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
6395 generic_target_read_pc.
6396 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6397 * sh-tdep.c (sh_gdbarch_init): Ditto.
6398 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6399 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 6400
9a90a780
AC
64012003-06-07 Andrew Cagney <cagney@redhat.com>
6402
6403 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
6404 "index" with "special_local_sect". Use strcmp instead of STREQ.
6405 Append period to coments.
6406
a39a16c4
MM
64072003-06-06 Mark Mitchell <mark@codesourcery.com>
6408
6409 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
6410 (elfstab_offset_sections): Likewise.
6411 * gdb-stabs.h (stab_section_info): Likewise.
6412 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
6413 * objfiles.c (objfile_relocate): Likewise.
6414 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
6415 * remote.c (get_offsets): Likewise.
6416 (remote_cisco_objfile_relocate): Likewise.
6417 * somread.c (som_symfile_offsets): Likewise.
6418 * symfile.c (alloc_section_addr_info): New function.
6419 (build_section_addr_info_from_section_tab): Use it.
6420 (free_section_addr_info): Adjust.
6421 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
6422 (syms_from_objfile): Allocate local_addr dynamically.
6423 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
6424 dynamically.
6425 (add_symbol_file_command): Allocate sect_opts dynamically.
6426 (reread_symbols): Avoid use of SECT_OFF_MAX.
6427 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
6428 (alloc_section_addr_info): Declare it.
6429 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
6430 * win32-nat.c (solib_symbols_add): Allocate section_addrs
6431 dynamically.
6432 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 6433
20c6c2f8
AC
64342003-06-06 Andrew Cagney <cagney@redhat.com>
6435
6436 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
6437 (d10v_frame_unwind_cache): Do not set "return_pc".
6438
884a26c8
MS
64392003-06-06 Michael Snyder <msnyder@redhat.com>
6440
6441 * h8300-tdep.c: Make tidy (long lines).
6442
088ce440
ML
64432003-06-06 Michal Ludvig <mludvig@suse.cz>
6444
8ffd9b1b 6445 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
6446 to regcache_collect().
6447
7d773d96
JB
64482003-06-05 J. Brobecker <brobecker@gnat.com>
6449
6450 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
6451 pc_in_sigtramp multiarch method.
6452 (hppa_hpux_som_init_abi): Use it.
6453 (hppa_hpux_elf_init_abi): Likewise.
6454 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
6455 macro has been multiarched.
6456 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
6457 macro here, as hppa64 isn't multiarched yet.
6458
1df6926e
AC
64592003-06-05 Andrew Cagney <cagney@redhat.com>
6460
6461 * Makefile.in (value_h): Add $(frame_h).
6462 * value.h: Include "frame.h".
6463 (struct value): Replace "frame_addr" with "frame_id".
6464 (VALUE_FRAME_ID): Replace VALUE_FRAME.
6465 * values.c (allocate_value): Use VALUE_FRAME_ID.
6466 (value_copy): Use VALUE_FRAME_ID.
6467 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
6468 * valops.c (value_assign): Update. Use frame_find_by_id.
6469
6b53acc6
ML
64702003-06-05 Michal Ludvig <mludvig@suse.cz>
6471
6472 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
6473 in each pass.
6474
4d9850d3
JJ
64752003-06-05 Jeff Johnston <jjohnstn@redhat.com>
6476
6477 * thread-db.c (check_event): For create/death event breakpoints,
6478 loop through all messages to ensure that we read the message
6479 corresponding to the breakpoint we are at.
6480
8efca6ba
MS
64812003-06-04 Michael Snyder <msnyder@redhat.com>
6482
6483 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
6484
0912c7f2
MK
64852003-06-04 Mark Kettenis <kettenis@gnu.org>
6486
6487 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
6488 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
6489 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
6490 when handling .eh_frame sections.
6491
4e370325
JB
64922003-06-04 J. Brobecker <brobecker@gnat.com>
6493
6494 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
6495 prepare_to_proceed procedure instead of the hppa-specific one.
6496 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
6497
b757528f 64982003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6499
b757528f
JJ
6500 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
6501 * config.in: Regenerated.
6502 * configure.in: Add test for syscall function and check for
6503 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
6504 * configure: Regenerated.
6505 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
6506 <sys/syscall.h>.
6507 (kill_lwp): New function that uses tkill syscall or
6508 uses kill, depending on whether threading model is nptl or not.
6509 All callers of kill() changed to use kill_lwp().
6510 (lin_lwp_wait): Make special check when WIFEXITED occurs to
6511 see if all threads have already exited in the nptl model.
6512 (stop_and_resume_callback): New callback function used by the
6513 lin_lwp_wait thread exit handling code.
6514 (stop_wait_callback): Check for threads already having exited and
6515 delete such threads fromt the lwp list when discovered.
6516 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 6517
b757528f
JJ
6518 Roland McGrath <roland@redhat.com>
6519 * i386-linux-nat.c (ps_get_thread_area): New function needed by
6520 nptl libthread_db.
6521
087779b1
RH
65222003-06-03 Richard Henderson <rth@redhat.com>
6523
b21fd293
RH
6524 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
6525 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
6526 (alpha_sigtramp_frame_prev_register): Likewise.
6527 (alpha_heuristic_frame_prev_register): Likewise.
6528 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
6529
8ffd9b1b 6530 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
6531 alpha-specific register id names.
6532 (alpha_mdebug_frame_unwind_cache): Likewise.
6533 (alpha_mdebug_frame_prev_register): Likewise.
6534
baa490c4
RH
65352003-06-03 Richard Henderson <rth@redhat.com>
6536
6537 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
6538 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
6539 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
6540 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
6541 unwind routines.
6542 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6543 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6544 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6545
6546 * alpha-linux-tdep.c: Remove unnecessary includes.
6547 * Makefile.in (alpha-linux-tdep.o): Update.
6548
65492003-06-03 Richard Henderson <rth@redhat.com>
6550
6551 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
6552 (alphabsd_fill_fpreg): Likewise.
6553
f534e522
JB
65542003-06-03 J. Brobecker <brobecker@gnat.com>
6555
6556 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
6557 references to struct frame_info fields by calls to the equivalent
6558 accessors. Necessary now that frame_info is opaque.
6559
4035536b
JB
65602003-06-03 J. Brobecker <brobecker@gnat.com>
6561
6562 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
6563 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
6564 structure, field no longer exists.
6565
0bd79c5c
JB
65662003-06-03 J. Brobecker <brobecker@gnat.com>
6567
6568 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6569 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
6570
37bb6d9f
JB
65712003-06-03 J. Brobecker <brobecker@gnat.com>
6572
6573 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
6574 references to struct frame_info fields by calls to the equivalent
6575 accessors. Necessary now that frame_info is opaque.
6576
852ee05c
JB
65772003-06-03 J. Brobecker <brobecker@gnat.com>
6578
6579 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
6580 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
6581 structure, field no longer exists.
6582
7d58c67d
TR
65832003-06-03 Theodore A. Roth <troth@openavr.org>
6584
8ffd9b1b 6585 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
6586 accumulation of the size of all registers instead of blindly using
6587 DEPRECATED_REGISTER_BYTES.
6588
0a48e7e8
MS
65892003-06-03 Michael Snyder <msnyder@redhat.com>
6590
6591 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
6592 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
6593 for h8300sx.
6594
9798ab0d
JB
65952003-06-03 J. Brobecker <brobecker@gnat.com>
6596
6597 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
6598 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6599
00b037e2
AC
66002003-06-03 Andrew Cagney <cagney@redhat.com>
6601
6602 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
6603 (sparc_convert_to_raw): Delete function.
6604 (sparc_gdbarch_init): Do not set register_convert_to_raw or
6605 register_convert_to_virtual.
6606
043b2f77
JJ
66072003-06-03 Jeff Johnston <jjohnstn@redhat.com>
6608
6609 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
6610 layer if not dealing with a statically-linked threaded program.
6611
f43caff8
KW
66122003-06-03 Kris Warkentin <kewarken@qnx.com>
6613
6614 * solib.c (solib_open): Update comment to reflect actual search order.
6615
ae1e7417
AC
66162003-06-03 Andrew Cagney <cagney@redhat.com>
6617
6618 * frame.c (get_frame_memory_signed): New function.
6619 (get_frame_memory, get_frame_memory_unsigned): New function.
6620 (get_frame_arch): New function.
6621 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
6622 (get_frame_memory, get_frame_unsigned_memory): Declare.
6623 * d10v-tdep.c (d10v_frame_unwind_cache): Use
6624 get_frame_memory_unsigned and get_frame_arch.
6625 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
6626
cb123844
RG
66272003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
6628
6629 * MAINTAINERS (write after approval): Add myself.
6630
1bb792e9
JB
66312003-06-03 Jim Blandy <jimb@redhat.com>
6632
6633 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
6634 elements of gregset_t are 64 bits each, but access registers
6635 are still 32 bits, so they're packed two per gregset_t
6636 element. Unpack/pack them properly.
6637
aee8d8ba
DC
66382003-06-02 David Carlton <carlton@bactrian.org>
6639
6640 * linespec.c (find_methods): Break out code into
6641 add_matching_methods and add_constructors.
6642 (add_matching_methods): New.
6643 (add_constructors): Ditto.
6644
bf7488d2
AC
66452003-06-02 Andrew Cagney <cagney@redhat.com>
6646
bf7488d2
AC
6647 * sparc-tdep.c (sparc_print_registers): Delete call to
6648 REGISTER_CONVERTIBLE.
6649 (sparc_gdbarch_init): Do not set register_convertible.
6650 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6651 * frv-tdep.c (frv_gdbarch_init): Ditto.
6652 * cris-tdep.c (cris_gdbarch_init): Ditto.
6653
adedef68
EZ
66542003-06-02 Elena Zannoni <ezannoni@redhat.com>
6655
8ffd9b1b 6656 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
6657 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
6658 (syms_from_objfile): Ditto.
6659
650fcc91
AS
66602003-06-03 Andreas Schwab <schwab@suse.de>
6661
6662 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
6663 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
6664
df4a182b
RH
66652003-06-02 Richard Henderson <rth@redhat.com>
6666
6667 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
6668 a member of all_reggroup.
6669
c483c494
RH
66702003-06-02 Richard Henderson <rth@redhat.com>
6671
6672 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
6673 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
6674 (alpha_lds, alpha_sts): New.
6675 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 6676 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
6677 restructure and fail for type sizes other than 4 or 8.
6678 (alpha_value_to_register): Similarly.
6679 (alpha_extract_return_value): Use alpha_sts.
6680 (alpha_store_return_value): Use alpha_lds.
6681 (alpha_gdbarch_init): Update hooks.
6682
b38b6be2
RH
66832003-06-02 Richard Henderson <rth@redhat.com>
6684
6685 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
6686 regnum identifiers.
6687 (alpha_sigtramp_register_address): Likewise.
6688
98a8e1e5
RH
66892003-06-02 Richard Henderson <rth@redhat.com>
6690
6691 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
6692 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
6693 * alpha-tdep.h: Declare them.
6694
6695 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
6696 Remove zerobuf. Don't error on UNIQUE.
6697 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
6698 (ALPHA_REGSET_UNIQUE): Provide default.
6699 (supply_gregset): Use alpha_supply_int_regs.
6700 (fill_gregset): Use alpha_fill_int_regs.
6701 (supply_fpregset): Use alpha_supply_fp_regs.
6702 (fill_fpregset): Use alpha_fill_fp_regs.
6703 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
6704 (alphabsd_supply_reg): Use alpha_supply_int_regs.
6705 (alphabsd_fill_reg): Use alpha_fill_int_regs.
6706 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
6707 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
6708 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
6709
67dfac52
RH
67102003-06-02 Richard Henderson <rth@redhat.com>
6711
f75d70cc
RH
6712 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
6713
67dfac52
RH
6714 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
6715 (alpha_store_return_value): Likewise.
6716
0cf566ec
DC
67172003-06-02 David Carlton <carlton@math.stanford.edu>
6718
6719 * block.c (contained_in): Add 'const' to arguments.
6720 (block_function): Ditto.
6721 * block.h: Update declarations for block_function and
6722 contained_in.
6723
cdef89d0
DC
67242003-06-02 David Carlton <carlton@math.stanford.edu>
6725
6726 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
6727 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
6728 * p-valprint.c (pascal_val_print): Ditto.
6729 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
6730
72667056
RH
67312003-06-02 Richard Henderson <rth@redhat.com>
6732
98a8e1e5
RH
6733 * alpha-tdep.c (alpha_push_dummy_call): Use
6734 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 6735
8ffd9b1b 6736 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
6737 sign-extension of 32-bit values.
6738 (alpha_store_return_value): Similarly.
0ede8eca 6739
98a8e1e5
RH
6740 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
6741 (alpha_extract_return_value): Likewise.
6742 (alpha_store_return_value): Likewise.
7b5e1cb3 6743
98a8e1e5
RH
6744 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
6745 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 6746
98a8e1e5
RH
6747 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
6748 (alpha_extract_struct_value_address): Likewise.
6749 (alpha_store_return_value): Likewise.
6750 (alpha_store_struct_return): Remove.
6751 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 6752
98a8e1e5
RH
6753 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
6754 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
6755 macros where appropriate.
6756 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
6757 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 6758
98a8e1e5
RH
6759 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
6760 for SP, GP; void_func_ptr for PC; non-language-specific types
6761 for all others.
6762 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 6763
6dd77b81
RH
67642003-06-02 Richard Henderson <rth@redhat.com>
6765
6766 * top.h (lim_at_start): Declare.
6767 * main.c (captured_main): Set it.
6768 * top.c (lim_at_start): Define.
6769 (command_loop): Use it instead of &environ.
6770 * event-top.c (command_handler): Likewise.
6771
f4dbdb54
JT
67722003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
6773
6774 * mipsnbsd-tdep.c: Update copyright years.
6775 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
6776
8f285956
RH
67772003-06-01 Richard Henderson <rth@redhat.com>
6778
98a8e1e5
RH
6779 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
6780 (alpha-linux-tdep.o): Update dependencies.
6781 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
6782 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 6783
615967cb
RH
67842003-06-01 Richard Henderson <rth@redhat.com>
6785
98a8e1e5
RH
6786 * alpha-tdep.c (alpha_register_reggroup_p): New.
6787 (alpha_gdbarch_init): Register it.
615967cb 6788
b59661bd
AC
67892003-06-02 Andrew Cagney <cagney@redhat.com>
6790
6791 * dwarfread.c: Eliminate "register"
6792 (decode_die_type): Eliminate assignment within "if".
6793 (struct_type, decode_array_element_type): Ditto.
6794 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
6795 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
6796 (decode_modified_type, completedieinfo): Ditto.
6797 * block.c: Eliminate "register".
6798 (blockvector_for_pc_sect): Eliminate assignment within "if".
6799 * cp-support.h (struct symbol): Opaque declaration.
6800 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
6801
5ef165c2
RH
68022003-06-01 Richard Henderson <rth@redhat.com>
6803
98a8e1e5
RH
6804 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
6805 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 6806
143985b7
AF
68072003-06-01 Adam Fedor <fedor@gnu.org>
6808
6809 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
6810 * gdbarch.[ch]: Regenerate.
6811 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
6812 (hppa_gdbarch_init): Set it in the gdbarch vector.
6813 * i386-tdep.c (i386_fetch_pointer_argument): New
6814 (i386_gdbarch_init): Set it into gdbarch.
6815 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
6816 (rs6000_gdbarch_init): Set it in gdbarch.
6817 * sparc-tdep.c (sparc_fetch_pointer_argument): New
6818 (sparc_gdbarch_init): Set it in gdbarch.
6819
ae0167b9
AC
68202003-06-01 Andrew Cagney <cagney@redhat.com>
6821
7c0b4a20
AC
6822 * defs.h (extract_address): Delete declaration.
6823 * findvar.c (extract_address): Delete function.
6824 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6825 extract_address with the inline equivalent,
6826 extract_unsigned_integer.
6827 (xstormy16_extract_struct_value_address): Ditto.
6828 (xstormy16_pointer_to_address): Ditto.
6829 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6830 * v850-tdep.c (v850_push_arguments): Ditto.
6831 (v850_extract_return_value): Ditto.
6832 (v850_extract_struct_value_address): Ditto.
6833 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6834 (sparcnbsd_get_longjmp_target_64): Ditto.
6835 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6836 (get_longjmp_target): Ditto.
6837 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6838 (sh64_extract_struct_value_address): Ditto.
6839 (sh_push_arguments): Ditto.
6840 (sh64_push_arguments): Ditto.
6841 * remote-vxsparc.c (vx_read_register): Ditto.
6842 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6843 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6844 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6845 * mipsv4-nat.c (get_longjmp_target): Ditto.
6846 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6847 * mips-nat.c (get_longjmp_target): Ditto.
6848 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6849 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6850 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6851 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6852 * irix5-nat.c (get_longjmp_target): Ditto.
6853 * irix4-nat.c (get_longjmp_target): Ditto.
6854 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6855 (ia64_push_arguments): Ditto.
6856 * hpux-thread.c (hpux_thread_store_registers): Ditto.
6857 * h8300-tdep.c (h8300_push_arguments): Ditto.
6858 (h8300_store_return_value): Ditto.
6859 (h8300_extract_struct_value_address): Ditto.
6860 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6861 (frv_push_arguments): Ditto.
6862 * avr-tdep.c (avr_pointer_to_address): Ditto.
6863 (avr_push_arguments): Ditto.
6864 * arm-tdep.c (arm_push_dummy_call): Ditto.
6865 (arm_get_longjmp_target): Ditto.
6866 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6867 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6868 (alpha_get_longjmp_target): Ditto.
6869
ae0167b9
AC
6870 * solib-irix.c (extract_mips_address): Inline extract_address,
6871 replacing it with extract_signed_integer.
6872 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6873 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6874 (first_link_map_member, open_symbol_file_object): Ditto.
6875 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6876 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6877 (LM_NEXT, LM_NAME): Ditto.
6878
44d88583
RH
68792003-06-01 Richard Henderson <rth@redhat.com>
6880
98a8e1e5
RH
6881 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6882 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6883 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6884 (alpha_cannot_store_register): Likewise.
6885 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6886 * alpha-nat.c (supply_gregset): Likewise.
6887 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 6888
310e9b6a
AC
68892003-06-01 Andrew Cagney <cagney@redhat.com>
6890
6891 * infcall.c (call_function_by_hand): Update comment on
6892 DEPRECATED_DUMMY_WRITE_SP.
6893
6894 * mips-tdep.c (mips_gdbarch_init): Do not set
6895 deprecated_dummy_write_sp.
6896 (mips_eabi_push_dummy_call): Set the SP register.
6897 (mips_o64_push_dummy_call): Set the SP register.
6898 (mips_o32_push_dummy_call): Set the SP register.
6899 (mips_n32n64_push_dummy_call): Set the SP register.
6900
5ab84872
RH
69012003-06-01 Richard Henderson <rth@redhat.com>
6902
98a8e1e5
RH
6903 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6904 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6905 (supply_gregset): Likewise.
6906 * alpha-tdep.c (alpha_store_return_value): Likewise.
6907 (alpha_get_longjmp_target): Likewise.
6908 (alpha_register_name): Constify array.
6909 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6910 deprecated_register_size, deprecated_register_bytes,
6911 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6912 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6913 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 6914
09cc52fd
RH
69152003-06-01 Richard Henderson <rth@redhat.com>
6916
6917 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6918 from arg_reg_buffer to regcache to avoid double conversion.
6919
c7f16359
MK
69202003-06-01 Mark Kettenis <kettenis@gnu.org>
6921
6922 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6923 SP_REGNUM.
6924 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6925 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6926
7131cb6e
RH
69272003-06-01 Richard Henderson <rth@redhat.com>
6928
98a8e1e5
RH
6929 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6930 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 6931
f3e0f90b
RH
69322003-06-01 Richard Henderson <rth@redhat.com>
6933
98a8e1e5
RH
6934 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6935 not overlapping PC_REGNUM.
f3e0f90b 6936
c88e30c0
RH
69372003-06-01 Richard Henderson <rth@redhat.com>
6938
98a8e1e5
RH
6939 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6940 alpha_push_arguments. Don't dump argument register data to
6941 the target stack. Fix float and 128-bit long double semantics.
6942 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6943 (alpha_fix_call_dummy): Remove.
6944 (alpha_call_dummy_words): Remove.
6945 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 6946
f1a559ae
RH
69472003-06-01 Richard Henderson <rth@redhat.com>
6948
6949 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6950
5e045346
AC
69512003-06-01 Andrew Cagney <cagney@redhat.com>
6952
95404a3e
AC
6953 * mips-tdep.c (is_mips16_addr): New function.
6954 (make_mips16_addr, unmake_mips16_addr): New functions.
6955 (pc_is_mips16, mips_fetch_instruction): Use.
6956 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6957 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6958 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6959 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6960 TARGET_MIPS.
6961 * config/mips/tm-mips.h: Update copyright.
6962 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6963 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6964 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6965 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6966 (TM_PRINT_INSN_MACH): Delete.
6967 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6968
5e045346
AC
6969 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6970 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6971 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6972 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6973 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6974 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6975 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6976 mips*-*-riscos* and mips*-*-sysv* onto mips.
6977 * config/mips/mips64.mt: New file.
6978 * config/mips/mips.mt: New file.
6979 * config/mips/littlemips.mt: Delete file.
6980 * config/mips/decstation.mt: Delete file.
6981 * config/mips/vr4300el.mt: Delete file.
6982 * config/mips/vr5000el.mt: Delete file.
6983 * config/mips/vr5000.mt: Delete file.
6984 * config/mips/vr4100.mt: Delete file.
6985 * config/mips/vr4xxxel.mt: Delete file.
6986 * config/mips/vr4300.mt: Delete file.
6987 * config/mips/vr4xxx.mt: Delete file.
6988 * config/mips/bigmips.mt: Delete file.
6989 * config/mips/bigmips64.mt: Delete file.
6990 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6991 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6992 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6993 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6994 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6995 "tm-bigmips.h".
6996 * config/mips/tm-irix3.h: Ditto.
6997 * config/mips/tm-mipsv4.h: Ditto.
6998 * config/mips/tm-embed.h: Ditto.
6999 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7000 "tm-bigmips64.h".
7001 * config/mips/tm-vr5000el.h: Delete file.
7002 * config/mips/tm-tx39l.h: Delete file.
7003 * config/mips/tm-vr4300el.h: Delete file.
7004 * config/mips/tm-vr4xxxel.h: Delete file.
7005 * config/mips/tm-vr4300.h: Delete file.
7006 * config/mips/tm-vr4100.h: Delete file.
7007 * config/mips/tm-vr4xxx.h: Delete file.
7008 * config/mips/tm-vr5000.h: Delete file.
7009 * config/mips/tm-embedl64.h: Delete file.
7010 * config/mips/tm-embedl.h: Delete file.
7011 * config/mips/tm-embed64.h: Delete file.
7012 * config/mips/tm-bigmips64.h: Delete file.
7013 * config/mips/tm-bigmips.h: Delete file.
7014
2473a4a9
MK
70152003-06-01 Mark Kettenis <kettenis@gnu.org>
7016
97a5b208
MK
7017 Fix gdb/1216.
7018 * shnbsd-nat.c: Include "sh-tdep.h".
7019
2473a4a9
MK
7020 From Richard Henderson <rth@redhat.com>:
7021 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7022
e0f7ec59
AC
70232003-05-31 Andrew Cagney <cagney@redhat.com>
7024
7025 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
7026 forward declaration.
7027 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7028 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7029 (mips_find_saved_regs): Use set_reg_offset.
7030 (mips_frame_init_saved_regs): Delete function.
7031 (mips_pop_frame): Call mips_find_saved_regs instead of
7032 DEPRECATED_FRAME_INIT_SAVED_REGS.
7033
68dcc709
AC
70342003-05-31 Andrew Cagney <cagney@redhat.com>
7035
7036 * mips-tdep.c (mips_gdbarch_init): Do not set
7037 deprecated_max_register_raw_size, register_virtual_size, and
7038 deprecated_max_register_virtual_size.
7039
cfc14b3a
MK
70402003-05-31 Mark Kettenis <kettenis@gnu.org>
7041
6405b0a6
MK
7042 * i386-tdep.c: Include "dwarf2-frame.h".
7043 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7044 * Makefile.in (i386-tdep.o): Update dependencies.
7045
cfc14b3a
MK
7046 * dwarf2-frame.c, dwarf2-frame.h: New files.
7047 * Makefile.in (SFILES): Add dwarf2-frame.c.
7048 (dwarf2_frame_h): Define.
7049 (COMMON_OBS): Add dwarf2-frame.o.
7050 (dwarf2-frame.o): Add dependencies.
7051
6a2751d2
AJ
70522003-05-31 Andreas Jaeger <aj@suse.de>
7053
7054 * x86-64-linux-nat.c: Fix comment.
7055
1c3545ae
MK
70562003-05-31 Mark Kettenis <kettenis@gnu.org>
7057
10f93086
MK
7058 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
7059 function signature.
7060
1c3545ae
MK
7061 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
7062 have a sigcontext_addr handler.
7063 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
7064 sigcontext_addr handler.
7065
e11c53d2
AC
70662003-05-31 Andrew Cagney <cagney@redhat.com>
7067
7068 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
7069 (print_fp_register_row): Replace do_fp_register_row.
7070 (mips_print_fp_register): Add "file" and "frame" parameters.
7071 (mips_print_register): Add "file" and "frame" parameters.
7072 (mips_print_registers_info): Replace mips_do_registers_info.
7073 (mips_gdbarch_init): Set print_registers_info instead of
7074 deprecated_do_registers_info.
7075 (mips_read_fp_register_single): Add "frame" parameter.
7076 (mips_read_fp_register_double): Add "frame" parameter.
7077
a3386186
MK
70782003-05-31 Mark Kettenis <kettenis@gnu.org>
7079
70913449
MK
7080 * i386-tdep.c (i386_register_name): Check for MMX registers first.
7081 Fixes a bug where GDB would print the wrong register names for
7082 targets without SSE.
7083
2b5e0749
MK
7084 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
7085 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7086 registers.
7087
7088 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
7089 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
7090 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7091 TDEP->sc_sp_offset.
7092
a3386186
MK
7093 From Michal Ludvig <mludvig@suse.cz>:
7094 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
7095 and `sc_num_regs'.
7096 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7097 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7098 I386_ST0_REGNUM): Move here from...
7099 * i386-tdep.c: ... here.
7100 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
7101 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7102 registers if possible.
7103 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
7104 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
7105 Remove variables.
7106 (i386bsd_sc_reg_offset): New variable.
7107 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
7108 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7109 TDEP->sc_sp_offset.
7110 (i386fbsd_sc_reg_offset): New variable.
7111 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
7112 TDEP->sc_num_regs.
7113 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
7114 variables.
7115 (i386fbsd4_sc_reg_offset): New variable.
7116 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
7117 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7118 TDEP->sc_sp_offset.
7119 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
7120 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
7121 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
7122 Remove variables.
7123 (i386nbsd_sc_reg_offset): New variable.
7124 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
7125 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7126 TDEP->sc_sp_offset.
7127 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
7128 Remove variables.
7129 (i386obsd_sc_reg_offset): New variable.
7130 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
7131 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7132 TDEP->sc_sp_offset.
7133 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
7134 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
7135 for frame pointer offset in `struct sigcontext'.
7136
25ab4790
AC
71372003-05-31 Andrew Cagney <cagney@redhat.com>
7138
7139 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
7140 architecture methods call_dummy_words, sizeof_call_dummy_words,
7141 push_return_address, store_struct_return, and fix_call_dummy. Set
7142 push_dummy_call instead of deprecated_push_arguments.
7143 (mips_store_struct_return): Delete function.
7144 (mips_fix_call_dummy): Delete function.
7145 (mips_push_return_address): Delete function.
7146 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
7147 RA_REGNUM and T9_REGNUM.
7148 (mips_n32n64_push_dummy_call): Ditto for
7149 mips_n32n64_push_arguments.
7150 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
7151 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
7152
6a65450a
AC
71532003-05-31 Andrew Cagney <cagney@redhat.com>
7154
7155 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
7156 "dummy_addr" to "bp_addr".
7157 * infcall.c (call_function_by_hand): Pass "funaddr" to
7158 gdbarch_push_dummy_call.
7159 * gdbarch.h, gdbarch.c: Re-generate.
7160 * i386-tdep.c (i386_push_dummy_call): Update.
7161 * arm-tdep.c (arm_push_dummy_call): Update.
7162 * d10v-tdep.c (d10v_push_dummy_call): Update.
7163
c4f35dd8
MK
71642003-05-31 Mark Kettenis <kettenis@gnu.org>
7165
7166 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
7167 variable declarations.
7168 (x86_64_register_number, x86_64_register_name): Remove prototypes.
7169 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
7170 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
7171 x86_64_init_frame_pc, x86_64_init_frame_pc,
7172 x86_64_function_has_prologue): Remove prototypes.
7173 (X86_64_NUM_GREGS): New define.
7174 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
7175 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
7176 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
7177 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
7178 XMM1_REGNUM): Remove defines.
7179 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
7180 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
7181 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
7182 X86_64_XMM1_REGNUM): New defines.
7183 (struct x86_64_register_info): Renamed from `struct
7184 register_info'. Remove `size' member.
7185 (x86_64_register_info_table): Remove variable.
7186 (x86_64_register_info): New variable.
7187 (X86_64_NUM_REGS): New define.
7188 (X86_64_NUM_GREGS): Remove define.
7189 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
7190 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
7191 Remove variables.
7192 (x86_54_dwarf2_reg_to_regnum): Remove function.
7193 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
7194 (x86_64_dwarf_reg_to_regnum): New function.
7195 (x86_64_register_name): Rewrite.
7196 (x86_64_register_raw_size): Remove function.
7197 (x86_64_register_byte_table): Remove variable.
7198 (x86_64_register_byte): Remove function.
7199 (x86_64_register_virtual_type): Remove function.
7200 (x86_64_register_type): New function.
7201 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
7202 x86_64_register_convert_to_raw): Remove functions.
7203 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
7204 (x86_64_use_struct_convention): Make static. Adjust for renamed
7205 defines.
7206 (x86_64_frame_init_saved_regs): Remove function.
7207 (x86_64_push_arguments): Make static. Change to accept a regcache
7208 as argument.
7209 (x86_64_store_return_value, x86_64_extract_return_value): Make
7210 static. Rewrite based on i386 counterparts.
7211 (x86_64_push_dummy_call): New function.
7212 (X86_64_NUM_SAVED_REGS): New define.
7213 (x86_64_register_number): Remove function.
7214 (x86_64_store_struct_return): Remove function.
7215 (x86_64_frameless_function_invocation,
7216 x86_64_function_has_prologue): Remove functions.
7217 (PROLOG_BUFSIZE): Remove define.
7218 (struct x86_64_frame_cache): New structure.
7219 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
7220 x86_64_frame_cache, x86_64_frame_this_id,
7221 x86_64_frame_prev_register, x86_64_frame_p,
7222 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
7223 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
7224 functions.
7225 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
7226 variables.
7227 (x86_64_skip_prologue): Rewrite in terms of
7228 x86_64_analyze_prologue.
7229 (x86_64_frame_base_address): New function.
7230 (x86_64_frame_base): New variable.
7231 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
7232 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
7233 set deprecated_fp_regnum, deprecated_register_size,
7234 deprecated_register_bytes, register_raw_size, register_byte,
7235 register_virtual_type, register_convertiable,
7236 register_convert_to_virtual, convert_to_raw,
7237 deprecated_get_saved_register, deprecated_target_read_fp,
7238 deprecated_push_arguments, deprecated_push_return_address,
7239 deprecated_pop_frame, deprecated_store_struct_return,
7240 deprecated_frame_init_saved_regs, deprecated_frame_chain,
7241 frameless_function_invocation, deprecated_frame_saved_pc,
7242 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
7243 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
7244 deprecated_init_frame_pc and virtual_frame_pointer. Call
7245 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
7246 and x86_64_frame_p. Call frame_base_set_default to register
7247 x86_64_frame_base.
7248 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
7249 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
7250 (_initialize_x86_64_tdep): Remove function.
7251 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
7252 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
7253 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
7254 define.
7255 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
7256 (x86_64_linux_sigcontext_addr): Rewrite.
7257 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
7258 x86_64_linux_frame_saved_pc): Remove functions.
7259 (x86_64_linux_pc_in_sigtramp): Renamed from
7260 x86_64_linux_in_sigtramp. Try harder to recognize a signal
7261 trampoline.
7262 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
7263 Remove_functions.
7264 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
7265 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7266 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
7267 (x86_64_regmap): Rename to regmap.
7268 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
7269 x86_64_num_gregs.
7270 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
7271 x86_64_regmap.
7272 (x86_64_fxsave_offset): Remove function.
7273 (supply_fpregset): Simply call x86_64_supply_fxsave.
7274 (fill_fpregset): Simply call x86_64_fill_fxsave.
7275 (fetch_inferior_registers, store_inferior_registers): Avoid
7276 asignment in if-statement.
7277 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
7278 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
7279 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
7280 (fetch_core_registers): Remove function.
7281 (linux_elf_core_fns): Remove.
7282 (offsetoff): Don't define.
7283 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
7284 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
7285 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
7286 add core-regset.o.
7287 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
7288 protection against multiple includes instead of NM_X86_64_h. Add
7289 various comments. Include "config/nm-linux.h". Don't include
7290 <signal.h>.
7291 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
7292 GET_THREAD_SIGNALS): Remove defines.
7293 (x86_64_register_u_addr, kernel_u_size,
7294 lin_thread_get_thread_signals): Remove prototypes.
7295 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
7296 [HAVE_LINK_H]: Don't include "solib.h".
7297 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
7298 * config/i386/tm-x86-64linux.h: Fix comments.
7299 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
7300 x86-64-tdep.o): Update dependencies.
7301
c25083af
AC
73022003-05-30 Andrew Cagney <cagney@redhat.com>
7303
c8f55a7b
AC
7304 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
7305 Change parameter type to a "struct regcache *".
7306
c25083af
AC
7307 * gdbarch.sh: Regardless of the multi-arch level, always define
7308 the macro when not already defined.
7309 * gdbarch.h, gdbarch.c: Re-generate.
7310
fbe586ae
RH
73112003-05-30 Richard Henderson <rth@redhat.com>
7312
7313 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
7314 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
7315 (alpha_mdebug_frame_this_id): Likewise.
7316 (alpha_mdebug_frame_prev_register): Likewise.
7317 (alpha_mdebug_frame_base_address): Likewise.
7318 (alpha_mdebug_frame_locals_address): Likewise.
7319 (alpha_mdebug_frame_args_address): Likewise.
7320 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
7321 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
7322 (alpha_heuristic_frame_unwind_cache): Make static; add missing
7323 loop increment.
7324 (alpha_heuristic_frame_this_id): Make static.
7325 (alpha_heuristic_frame_prev_register): Likewise.
7326 (alpha_heuristic_frame_base_address): Likewise.
7327 * alpha-tdep.h: Update.
7328
acd5c798
MK
73292003-05-30 Mark Kettenis <kettenis@gnu.org>
7330
7331 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
7332 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
7333 defenitions.
7334 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
7335 * i386-tdep.c: Mark functions that are 64-bit safe as such.
7336 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7337 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7338 I386_ST0_REGNUM): New defines.
7339 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
7340 codestream_get): Remove define.
7341 (codestream_next_addr, condestream_addr, condestream_buf,
7342 codestream_off, codestream_cnt): Remove variables.
7343 (codestream_fill, codestream_seek, codestream_read): Remove
7344 functions.
7345 (i386_follow_jump): Rewrite to avoid usage of removed codestream
7346 functionality.
7347 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
7348 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
7349 i386_frame_saved_pc, i386_saved_pc_after_call,
7350 i386_frame_num_args, i386_frame_init_saved_regs,
7351 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
7352 i386_push_arguments): Remove functions.
7353 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
7354 functionality. Use i386_analyze_prologue instead of
7355 i386_get_frame_setup.
7356 (I386_NUM_SAVED_REGS): New define.
7357 (struct i386_frame_cache): New structure.
7358 (i386_alloc_frame_cache, i386_analyze_struct_return,
7359 i386_skip_probe, i386_analyze_frame_setup,
7360 i386_analyze_register_saves, i386_analyze_prologue,
7361 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
7362 i386_frame_prev_register, i386_sigtramp_frame_cache,
7363 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
7364 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
7365 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
7366 New functions.
7367 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
7368 New variables.
7369 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
7370 I386_EAX_REGNUM and I386_EDX_REGNUM.
7371 (i386_extract_return_value, i386_store_return_value): Use
7372 I386_ST0_REGNUM where appropriate.
7373 (i386_extract_struct_value_address): Rewrite to use extract_address.
7374 (i386_svr4_pc_in_sigtramp): Add comment.
7375 (i386_svr4_sigcontext_addr): Rewrite.
7376 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
7377 TDEP->sc_sp_offset.
7378 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
7379 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
7380 of new defines. Set push_dummy_call, don't set
7381 deprecated_push_arguments, deprecated_push_return_address,
7382 deprecated_pop_frame. Don't set parm_boundary. Don't set
7383 deprecated_frame_chain, deprecated_frame_saved_pc,
7384 deprecated_saved_pc_after_call. Set unwind_dummy_id,
7385 save_dummy_frame_tos, unwind_pc. Call
7386 frame_unwind_append_predicate and frame_base_set_default. Don't
7387 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
7388 Don't set frameless_function_invocation. Don't set
7389 deprecated_register_bytes, deprecated_register_size,
7390 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
7391 * i386-linux-tdep.c: Fix formatting in some comments.
7392 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
7393 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
7394 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
7395 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
7396 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
7397 redundant parentheses.
7398 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
7399 (i386_linux_sigcontext_addr): Use it. Rewrite.
7400 (find_minsym_and_objfile): Change name of second argument.
7401 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
7402 changed. Use frame_pc_unwind instead of
7403 DEPRECATED_SAVED_PC_AFTER_CALL.
7404 (i386_linux_init_abi): Don't set deprecated_register_bytes.
7405 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
7406 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
7407 unwinder.
7408 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
7409 "dummy-frame.h".
7410 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
7411 (_initialize_i386_cygwin_tdep): New prototype.
7412 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
7413 deprecated_frame_chain_valid.
7414 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
7415 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7416 Rely on the SVR4 defaults.
7417 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
7418 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
7419
c89b70f1
AC
74202003-05-30 Andrew Cagney <cagney@redhat.com>
7421
7422 * infcall.c (call_function_by_hand): Always call
7423 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
7424
85b32d22
RH
74252003-05-30 Richard Henderson <rth@redhat.com>
7426
c89b70f1
AC
7427 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
7428 increment.
85b32d22 7429
bfe51b1e
JB
74302003-05-29 Jim Blandy <jimb@redhat.com>
7431
7432 Use gdbarch methods for solib stuff on PowerPC Linux.
7433 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
7434 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
7435 show through.
7436 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
7437 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
7438 giving the same effect as the #definitions above.
7439
1abf022c
AF
74402003-05-29 Adam Fedor <fedor@gnu.org>
7441
7442 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
7443 (find_implementation_from_class): Replace it with the standard
7444 case i.e. do nothing.
7445
d2427a71
RH
74462003-05-29 Richard Henderson <rth@redhat.com>
7447
7448 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
7449 (alpha_linux_sigtramp_offset): Use it. Make static.
7450 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
7451 update for new frame model.
7452 * alpha-mdebug-tdep.c: New file.
7453 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
7454 (alpha_osf1_init_abi): Install it.
7455 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
7456 (linked_proc_desc_table): Remove.
7457 (alpha_frame_past_sigtramp_frame): Remove.
7458 (alpha_dynamic_sigtramp_offset): Remove.
7459 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
7460 (alpha_proc_desc_is_dyn_sigtramp): Remove.
7461 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
7462 (push_sigtramp_desc): Remove.
7463 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
7464 (alpha_cannot_store_register): Likewise.
7465 (alpha_sigcontext_addr): Remove.
7466 (alpha_find_saved_regs): Remove.
7467 (alpha_frame_init_saved_regs): Remove.
7468 (alpha_init_frame_pc_first): Remove.
7469 (read_next_frame_reg): Remove.
7470 (alpha_frame_saved_pc): Remove.
7471 (alpha_saved_pc_after_call): Remove.
7472 (temp_proc_desc, temp_saved_regs): Remove.
7473 (alpha_about_to_return): Remove.
7474 (cached_proc_desc): Remove.
7475 (alpha_frame_chain): Remove.
7476 (alpha_print_extra_frame_info): Remove.
7477 (alpha_init_extra_frame_info): Remove.
7478 (alpha_frame_locals_address): Remove.
7479 (alpha_frame_args_address): Remove.
7480 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
7481 (alpha_push_dummy_frame): Remove.
7482 (alpha_pop_frame): Remove.
7483 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
7484 (alpha_read_insn): New.
7485 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
7486 for different insn encodings.
7487 (alpha_in_lenient_prologue): Remove.
7488 (struct alpha_sigtramp_unwind_cache): New.
7489 (alpha_sigtramp_frame_unwind_cache): New.
7490 (alpha_sigtramp_register_address): New.
7491 (alpha_sigtramp_frame_this_id): New.
7492 (alpha_sigtramp_frame_prev_register): New.
7493 (alpha_sigtramp_frame_unwind): New.
7494 (alpha_sigtramp_frame_p): New.
7495 (struct alpha_heuristic_unwind_cache): New.
7496 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
7497 don't count nop insns that occur between functions.
7498 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
7499 heuristic_proc_desc, but without the mdebug wrapping.
7500 (alpha_heuristic_frame_this_id): New.
7501 (alpha_heuristic_frame_prev_register): New.
7502 (alpha_heuristic_frame_unwind): New.
7503 (alpha_heuristic_frame_p): New.
7504 (alpha_heuristic_frame_base_address): New.
7505 (alpha_heuristic_frame_base): New.
7506 (alpha_unwind_dummy_id): New.
7507 (alpha_unwind_pc): New.
7508 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
7509 frame related deprecated initializations; install replacements.
7510 (alpha_dump_tdep): Remove.
7511 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
7512 (alpha_read_insn, alpha_after_prologue,
7513 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
7514 alpha_heuristic_frame_prev_register,
7515 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
7516 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7517 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
7518 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
7519
93ec1121
AC
75202003-05-29 Andrew Cagney <cagney@redhat.com>
7521
7522 * gdb_assert.h (gdb_assert_fail): Provide different definitions
7523 dependant on the availability of ASSERT_FUNCTION.
7524 (ASSERT_FUNCTION): Do not define when there is no function name.
7525
98f08d3d
KB
75262003-05-29 Kevin Buettner <kevinb@redhat.com>
7527
7528 From Jimi X <jimix@watson.ibm.com>:
7529 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
7530
0897f59b
JB
75312003-05-28 Jim Blandy <jimb@redhat.com>
7532
7533 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
7534 argument to ptrace to int; the system headers should give it the
7535 right type, and pointers don't fit in ints on powerpc64-*-*.
7536
14898363
L
75372003-05-28 H.J. Lu <hongjiu.lu@intel.com>
7538
7539 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
7540 DW_TAG_catch_block.
7541
a7a48797
EZ
75422003-05-26 Elena Zannoni <ezannoni@redhat.com>
7543
7544 * stabsread.c (dbx_lookup_type): Make static.
7545 (read_type): Ditto.
7546 (add_undefined_type): Ditto.
7547 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
7548 not export.
7549
f5479e9c
EZ
75502003-05-26 Elena Zannoni <ezannoni@redhat.com>
7551
7552 * hpread.c (hpread_has_name): Make static.
7553 (hpread_psymtab_to_symtab): Ditto.
7554 (file_exists): Ditto.
7555 (hpread_call_pxdb): Ditto.
7556 (hpread_pxdb_needed): Ditto.
7557 (hpread_quick_traverse): Ditto.
7558 (hpread_get_header): Ditto.
7559 (hpread_get_lntt): Ditto.
7560 (hpread_get_slt): Ditto.
7561 (class_of): Ditto.
7562
eb2e12d7
AS
75632003-05-25 Andreas Schwab <schwab@suse.de>
7564
78bf922a
AS
7565 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
7566 stack_align and deprecated_extra_stack_alignment_needed.
7567 (m68k_stack_align): Delete.
7568
eb2e12d7
AS
7569 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
7570 (m68k_register_virtual_size): Likewise.
7571 (altos_skip_prologue): Remove obsolete function.
7572 (isi_frame_num_args): Likewise.
7573 (news_frame_num_args): Likewise.
7574 (m68k_fix_call_dummy): Make static.
7575 (m68k_push_dummy_frame): Likewise.
7576 (m68k_pop_frame): Likewise.
7577 (m68k_skip_prologue): Likewise.
7578 (m68k_frame_init_saved_regs): Likewise.
7579 (m68k_saved_pc_after_call): Likewise.
7580 (m68k_get_longjmp_target): Make multi-arch.
7581 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
7582 structure. Register m68k_get_longjmp_target if enabled.
7583 * m68k-tdep.h (struct gdbarch_tdep): Define.
7584 * config/m68k/tm-m68k.h: Don't include "regcache.h".
7585
7586 * Makefile.in (config.status): Also depend on configure.tgt
7587 and configure.host.
7588 (m68klinux-tdep.o): Update dependencies.
7589 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
7590 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
7591 (M68K_LINUX_JB_PC): Define.
7592 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
7593 and take additional parameter.
7594 (m68k_linux_sigtramp_saved_pc): Update.
7595 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
7596 m68k_linux_pc_in_sigtramp, in_plt_section,
7597 find_solib_trampoline_target.
7598 * config/m68k/tm-linux.h: Don't include any tm headers.
7599 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
7600 (JB_ELEMENT_SIZE): Likewise.
7601 (JB_PC): Likewise.
7602 (GET_LONGJMP_TARGET): Likewise.
7603 (IN_SIGTRAMP): Likewise.
7604 (SVR4_SHARED_LIBS): Define this and include "solib.h".
7605
eb2c22dc
MK
76062003-05-25 Mark Kettenis <kettenis@gnu.org>
7607
7608 * sparc-tdep.c (sparc32_do_push_arguments): New function.
7609 (sparc32_push_arguments): Re-implement by calling
7610 sparc32_do_push_arguments.
7611
44b7b84e
MK
76122003-05-25 Mark Kettenis <kettenis@gnu.org>
7613
7614 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
7615 SPARC_O1_REGNUM): New defines.
7616 (sparc32_extract_return_value): Rewrite to operate on a regcache.
7617 (sparc32_store_return_value): New function.
7618 (sparc_extract_struct_value_address): Rewrite to operate on a
7619 regcache.
7620 (sparc_gdbarch_init): Don't set
7621 deprecated_extract_struct_value_address. Set
7622 extract_struct_value_address instead. Don't set
7623 deprecated_extract_return_value and deprecated_store_return_value
7624 for 32-bit targets. Set extract_return_value and
7625 store_return_value instead.
7626 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7627 DEPRECTAED_EXTRACT_RETURN_VALUE,
7628 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
7629 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
7630 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
7631 (sparc_store_return_value): Remove prototype.
7632 (sparc32_store_return_value): New prototype.
7633 (sparc32_extract_return_value, sparc_extract_struct_value_address):
7634 Adjust prototypes.
7635
f6ad61e3
MK
76362003-05-24 Mark Kettenis <kettenis@gnu.org>
7637
7638 * sparcnbsd-tdep.c: Include "gdb_string.h".
7639
b276f1bb
AC
76402003-05-23 Andrew Cagney <cagney@redhat.com>
7641
7642 * p-valprint.c (pascal_val_print): Replace extract_address with
7643 the inline equivalent extract_unsigned_integer.
7644 * jv-valprint.c (java_value_print): Ditto.
7645 * ada-valprint.c (ada_val_print_1): Ditto.
7646 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
7647
e76c5fcc
TR
76482003-05-23 Theodore A. Roth <troth@openavr.org>
7649
7650 * blockframe.c (frameless_look_for_prologue): Remove unused
7651 after_prologue variable.
7652
2cdd89cb
MK
76532003-05-23 Mark Kettenis <kettenis@gnu.org>
7654
7655 * blockframe.c (get_pc_function_start): Rewrite to avoid
7656 asignments in if-statements.
7657
182d43bc
EZ
76582003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
7659
7660 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 7661 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
7662 files, don't relocate absolute symbols (and do use mst_abs).
7663
e8f3fcdd
AC
76642003-05-23 Andrew Cagney <cagney@redhat.com>
7665
7666 * objc-lang.c: Include "gdb_assert.h".
7667 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
7668 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
7669 (gdb_check, gdb_check_fatal): Delete functions.
7670 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
7671 gdb_assert.
7672 (parse_selector, parse_method, find_methods, find_imps): Ditto.
7673 * Makefile.in (objc-lang.o): Update dependencies.
7674
3c23e6fb
ILT
76752003-05-22 Ian Lance Taylor <ian@airs.com>
7676
7677 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
7678 with fprintf_filtered, not fprintf_unfiltered.
7679
af1342ab
AC
76802003-05-22 Andrew Cagney <cagney@redhat.com>
7681
7682 * stack.c (frame_info): Inline extract_address, replacing it with
7683 extract_unsigned_integer.
7684 * findvar.c (unsigned_pointer_to_address): Ditto.
7685 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
7686 * dwarf2expr.c (dwarf2_read_address): Ditto.
7687 * frame.c (frame_pc_unwind): Update comment.
7688 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
7689
47e242ec
JJ
76902003-05-22 Jeff Johnston <jjohnstn@redhat.com>
7691
7692 * infptrace.c (detach): Call print_sys_errmsg rather than
7693 perror_with_name to issue warning message when errno is non-zero
7694 after calling ptrace detach.
7695
e2ac8128
JB
76962003-05-21 J. Brobecker <brobecker@gnat.com>
7697
7698 * config/pa/tm-hppa.h: Delete some unused macros. Move some
7699 macro definitions from here...
7700 * hppa-tdep.c: ...to there.
7701
92b3541e
KB
77022003-05-20 Kevin Buettner <kevinb@redhat.com>
7703
7704 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
7705 register_ptrace_addr(). Fix all callers.
7706
55809acb
AS
77072003-05-21 Andreas Schwab <schwab@suse.de>
7708
7709 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
7710 dependencies.
7711 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
7712 end.
7713 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
7714 (_initialize_m68k_linux_tdep): New function.
7715 (m68k_linux_frame_saved_pc): Make static.
7716 (m68k_linux_extract_return_value): Likewise.
7717 (m68k_linux_store_return_value): Likewise.
7718 (m68k_linux_extract_struct_value_address): Likewise.
7719 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
7720 Remove.
7721 (DEPRECATED_STORE_RETURN_VALUE): Remove.
7722 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7723 (DEPRECATED_FRAME_SAVED_PC): Remove.
7724
0fbc10f7
KW
77252003-05-20 Kris Warkentin <kewarken@qnx.com>
7726
7727 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
7728 regset numbering rather than our own.
7729
58da2eb2
DC
77302003-05-19 David Carlton <carlton@bactrian.org>
7731
7732 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
7733
1fcb5155
DC
77342003-05-19 David Carlton <carlton@bactrian.org>
7735
7736 Partial fix for PR c++/827.
7737 * cp-support.h: Include symtab.h.
7738 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
7739 * cp-namespace.c: Update contributors.
7740 (cp_lookup_symbol_nonlocal): New.
7741 (lookup_namespace_scope, cp_lookup_symbol_namespace)
7742 (lookup_symbol_file): Ditto.
7743 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
7744 * block.h: Declare block_scope, block_using, block_global_block.
7745 * block.c (block_scope): New.
7746 (block_using, block_global_block): Ditto.
7747 * Makefile.in (cp_support_h): Depend on symtab_h.
7748 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
7749
5f9a71c3
DC
77502003-05-19 David Carlton <carlton@bactrian.org>
7751
7752 * language.h (struct language_defn): Add 'la_value_of_this'
7753 and 'la_lookup_symbol_nonlocal' members.
7754 * symtab.h: Declare basic_lookup_symbol_nonlocal,
7755 lookup_symbol_static, lookup_symbol_global,
7756 lookup_symbol_aux_block.
7757 * symtab.c (lookup_symbol_aux): Call language hooks to determine
7758 if we should search fields of this and how to do static/global
7759 lookup.
7760 (lookup_symbol_aux_block): Make extern.
7761 (basic_lookup_symbol_nonlocal): New.
7762 (lookup_symbol_static, lookup_symbol_global): Ditto.
7763 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
7764 'la_lookup_symbol_nonlocal' members.
7765 * c-lang.c (c_language_defn, cplus_language_defn)
7766 (asm_language_defn, minimal_language_defn): Ditto.
7767 * jv-lang.c (java_language_defn): Ditto.
7768 * language.c (unknown_language_defn, auto_language_defn)
7769 (local_language_defn): Ditto.
7770 * m2-lang.c (m2_language_defn): Ditto.
7771 * objc-lang.c (objc_language_defn): Ditto.
7772 * scm-lang.c (scm_language_defn): Ditto.
7773 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
7774 * p-lang.c (pascal_language_defn): Ditto for both.
7775 * Makefile.in (f-lang.o): Depend on value_h.
7776 (p-lang.o): Ditto.
7777
89a9d1b1
DC
77782003-05-19 David Carlton <carlton@bactrian.org>
7779
7780 * block.h: Declare block_static_block.
7781 * block.c (block_static_block): New.
7782 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
7783 lookup_symbol_aux_local, calling block_static_block instead.
7784 (lookup_symbol_aux_local): Delete 'static_block' argument.
7785
eed3f8ab
DC
77862003-05-19 David Carlton <carlton@bactrian.org>
7787
7788 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
7789
a09d8bda
ML
77902003-05-19 Michal Ludvig <mludvig@suse.cz>
7791
7792 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
7793 register numbers mapping.
7794
69636828
AF
77952003-05-18 Adam Fedor <fedor@gnu.org>
7796
7797 * symtab.c (completion_list_objc_symbol): New function.
7798 (make_symbol_completion_list): Use it to add ObjC symbols
7799 when looking though the list.
7800 (language_search_unquoted_string): New function.
7801 (make_file_symbol_completion_list): Use it.
7802
55baeb84
AS
78032003-05-18 Andreas Schwab <schwab@suse.de>
7804
d0b45d99
AS
7805 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
7806 dependencies.
7807 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
7808 as m68k_linux_extract_return_value.
7809 (DEPRECATED_STORE_RETURN_VALUE): Define as
7810 m68k_linux_store_return_value.
7811 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7812 m68k_linux_extract_struct_value_address.
7813 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
7814 get_next_frame, get_frame_base, get_frame_pc.
7815 (m68k_linux_frame_saved_pc): Use get_frame_base.
7816 (m68k_linux_extract_return_value): New function.
7817 (m68k_linux_store_return_value): New function.
7818 (m68k_linux_extract_struct_value_address): New function.
7819 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7820
55baeb84
AS
7821 * c-exp.y (typebase): Remove duplicate occurence of
7822 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 7823 of lookup_signed_typename.
55baeb84 7824
b6b08ebf
MK
78252003-05-18 Mark Kettenis <kettenis@gnu.org>
7826
7827 * dwarf2loc.c (find_location_expression): Change type of second
7828 argument to `size_t *'.
7829 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7830 for size variable.
7831
5ad1c190
DC
78322003-05-18 David Carlton <carlton@bactrian.org>
7833
7834 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7835 'linkage_name'. Add comment.
7836 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7837 'linkage_name'.
7838 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7839 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7840 (lookup_block_symbol): Ditto.
7841
b8b527c5
AC
78422003-05-16 Andrew Cagney <cagney@redhat.com>
7843
7844 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7845 * gdbarch.h, gdbarch.c: Re-generate.
7846 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7847 * TODO (REGISTER_BYTES): Delete reference.
7848 * alpha-tdep.c (alpha_gdbarch_init): Update.
7849 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7850 * x86-64-tdep.c (x86_64_init_abi): Update.
7851 * vax-tdep.c (vax_gdbarch_init): Update.
7852 * v850-tdep.c (v850_gdbarch_init): Update.
7853 * sparc-tdep.c (sparc_gdbarch_init): Update.
7854 * sh-tdep.c (sh_gdbarch_init): Update.
7855 * s390-tdep.c (s390_gdbarch_init): Update.
7856 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7857 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7858 (ns32k_gdbarch_init_32382): Update.
7859 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7860 * mcore-tdep.c (mcore_gdbarch_init): Update.
7861 * m68k-tdep.c (m68k_gdbarch_init): Update.
7862 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7863 * ia64-tdep.c (ia64_gdbarch_init): Update.
7864 * i386-tdep.c (i386_gdbarch_init): Update.
7865 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7866 * hppa-tdep.c (hppa_gdbarch_init): Update.
7867 * h8300-tdep.c (h8300_gdbarch_init): Update.
7868 * frv-tdep.c (frv_gdbarch_init): Update.
7869 * cris-tdep.c (cris_gdbarch_init): Update.
7870 * avr-tdep.c (avr_gdbarch_init): Update.
7871 * arm-tdep.c (arm_gdbarch_init): Update.
7872 * sparc-tdep.c (sparc_pop_frame): Update.
7873 * rs6000-tdep.c (rs6000_pop_frame): Update.
7874 * remote.c (init_remote_state): Update.
7875 (remote_prepare_to_store): Update.
7876 * remote-vx.c (vx_prepare_to_store): Update.
7877 * remote-sds.c (sds_fetch_registers): Update.
7878 (sds_prepare_to_store): Update.
7879 * remote-array.c: Update.
7880 * regcache.c (init_legacy_regcache_descr): Update.
7881 (init_regcache_descr): Update.
7882 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7883 (mips_o64_extract_return_value): Update.
7884 * irix5-nat.c (fetch_core_registers): Update.
7885 * irix4-nat.c (fetch_core_registers): Update.
7886 * i386-tdep.h: Update.
7887 * hppa-tdep.c (pa_do_registers_info): Update.
7888 (pa_do_strcat_registers_info): Update.
7889 * cris-tdep.c (cris_register_bytes_ok): Update.
7890 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7891 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7892 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7893 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7894 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7895 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7896 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7897 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7898 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7899 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7900 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7901 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7902 (REGISTER_BYTES_OK): Update.
7903 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7904 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7905
ee2842e2
ILT
79062003-05-16 Ian Lance Taylor <ian@airs.com>
7907
7908 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7909 (vax_print_insn, print_insn_arg): Remove static functions.
7910 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7911 print_insn_vax from opcodes library.
7912 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7913
973177d3
AC
79142003-05-15 Andrew Cagney <cagney@redhat.com>
7915
aaab4dba
AC
7916 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7917 * target.h (memory_breakpoint_from_pc): Delete declaration.
7918 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7919 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7920 * monitor.c (monitor_insert_breakpoint): Use
7921 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7922 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7923 * gdbarch.h, gdbarch.c: Re-generate.
7924 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7925 (sparc_gdbarch_init): Set breakpoint_from_pc to
7926 sparc_breakpoint_from_pc.
7927 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7928 (BREAKPOINT_FROM_PC): Define.
7929 (sparc_breakpoint_from_pc): Declare.
7930 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7931 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7932 (BREAKPOINT_FROM_PC): Define.
7933 (BREAKPOINT): Delete macro.
7934 * target.h: Update comment.
7935 * s390-tdep.c (s390_gdbarch_init): Update comments.
7936 * remote.c: Update comments.
7937 * remote-mips.c: Update comments.
7938 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7939 * mem-break.c: Update comment.
7940 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7941 (ia64_memory_insert_breakpoint): Update.
7942 * config/sparc/tm-sparc.h: Update comment.
7943 * config/pa/tm-hppa64.h: Update comment.
7944 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7945 (rs6000_breakpoint_from_pc): Update.
7946 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7947 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7948 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7949 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7950 (mips_breakpoint_from_pc): Update.
7951 (mips_dump_tdep): Update.
7952
e06963ff
AC
7953 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7954 * minsyms.c (lookup_minimal_symbol): Inline
7955 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7956
973177d3
AC
7957 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7958 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7959 * p-lang.c (pascal_printstr): Ditto.
7960 * objc-lang.c (objc_printstr): Ditto.
7961 * m2-lang.c (m2_printstr): Ditto.
7962 * jv-valprint.c (java_print_value_fields): Ditto.
7963 * f-lang.c (f_printstr): Ditto.
7964 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7965 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7966 for repeat_count_threshold.
7967 * Makefile.in (cp-valprint.o): Update dependencies.
7968
5ea2bd7f 79692003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7970
5ea2bd7f
JJ
7971 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7972 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
7973 they start with mov r2,r12. Support skipping over indirect stores
7974 of the input registers. Upon hitting a non-nop branch instruction
7975 or predicated instruction, bail out by setting lim_pc to the current
7976 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
7977 beyond our calculated value and we have trust_limit set,
7978 use the lim_pc value.
7979
cc8c88f3
AC
79802003-05-15 Andrew Cagney <cagney@redhat.com>
7981
7982 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7983 generic_find_dummy_frame.
7984 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7985 (deprecated_generic_find_dummy_frame): Update.
7986 (deprecated_read_register_dummy): Update.
7987 * frame.c (deprecated_generic_get_saved_register): Update.
7988
909cd28e
TR
79892003-05-15 Theodore A. Roth <troth@openavr.org>
7990
7991 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7992 (avr_gdbarch_init): Set breakpoint_from_pc method.
7993
b923b08d
AC
79942003-05-15 Andrew Cagney <cagney@redhat.com>
7995
7996 * regcache.c (build_regcache): Set deprecated_register_valid
7997 directly.
7998 (deprecated_grub_regcache_for_register_valid): Delete function.
7999 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8000 declaration.
8001
ae2f03ac 80022003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
8003
8004 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
8005 * symtab.c (lookup_symbol_aux): Delete calls to
8006 lookup_symbol_aux_minsyms.
8007 (lookup_symbol_aux_minsyms): Comment out function and
8008 prototype. Delete lookup by mangled name.
ae2f03ac 8009
18ec9831
KB
80102003-05-14 Kevin Buettner <kevinb@redhat.com>
8011
8012 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8013 correctly indicate an empty stack and ``stack_allocated'' to the
8014 indicate the number of elements initially allocated.
8015 (dwarf_expr_grow_stack): Simplify method for computing new
8016 stack size. Don't loop infinitely if ``stack_len'' is zero.
8017 (execute_stack_op): Move ``ctx->in_reg'' initialization
8018 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8019 be used in conjuction with DW_OP_piece. Revise error message
8020 accordingly.
8021
de18ac1f
TR
80222003-05-14 Theodore A. Roth <troth@openavr.org>
8023
8024 * MAINTAINERS: Update my email address.
8025 * avr-tdep.c: Ditto.
8026
176620f1
EZ
80272003-05-14 Elena Zannoni <ezannoni@redhat.com>
8028
8029 * symtab.h (enum domain_enum): Rename from namespace_enum.
8030 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8031 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8032 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8033 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8034 TYPES_NAMESPACE, METHODS_NAMESPACE.
8035 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8036 (struct symbol, struct partial_symbol): Rename field
8037 'namespace_enum namespace' to 'domain_enum domain'.
8038 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8039 Delete old define kludge for namespace.
8040
8041 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8042 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8043 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8044 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8045 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8046 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8047 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8048 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8049 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8050 occurrences of the above.
8051
b7f31508
ILT
80522003-05-14 Ian Lance Taylor <ian@airs.com>
8053
8054 * Makefile.in (install-only): Use $(SHELL) when running
8055 mkinstalldirs.
8056
2fdbdd39
ILT
80572003-05-13 Ian Lance Taylor <ian@airs.com>
8058
a208d82c
ILT
8059 * MAINTAINERS (write after approval): Add myself.
8060
2fdbdd39
ILT
8061 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
8062 second and third arguments.
8063 * ser-tcp.c (_initialize_ser_tcp): Likewise.
8064 * ser-unix.c (_initialize_ser_hardwire): Likewise.
8065
fbd9dcd3
AC
80662003-05-13 Andrew Cagney <cagney@redhat.com>
8067
8068 * defs.h (store_address): Delete declaration.
8069 findvar.c (store_address): Delete function.
8070 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
8071 store_unsigned_integer.
8072 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
8073 * v850-tdep.c (v850_push_arguments): Ditto.
8074 * sparc-tdep.c (sparc_get_saved_register): Ditto.
8075 * sh-tdep.c (sh64_get_saved_register): Ditto.
8076 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
8077 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
8078 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
8079 (mips_get_saved_register): Ditto.
8080 * ia64-tdep.c (ia64_get_saved_register): Ditto.
8081 (find_func_descr, ia64_push_arguments): Ditto.
8082 * i386-tdep.c (i386_push_arguments): Ditto.
8083 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8084 * frv-tdep.c (frv_push_arguments): Ditto.
8085 * frame.c (legacy_saved_regs_prev_register): Ditto.
8086 (deprecated_generic_get_saved_register): Ditto.
8087 * findvar.c (unsigned_address_to_pointer): Ditto.
8088 * dwarf2read.c (dwarf2_const_value): Ditto.
8089 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8090 * alpha-tdep.c (alpha_push_arguments): Ditto.
8091
6760f9e6
JB
80922003-05-12 J. Brobecker <brobecker@gnat.com>
8093
8094 * NEWS: Mention that the hppa-hpux port has been partially
8095 multiarched (32bit ABIT only, so far).
8096
30e221b4
AC
80972003-05-11 Andrew Cagney <cagney@redhat.com>
8098
8099 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
8100 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
8101 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
8102 sim/testsuite/sim/arm/misaligned2.ms, and
8103 sim/testsuite/sim/arm/misaligned3.ms.
8104 * disasm.h (struct ui_file): Add opaque struct declaration.
8105 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
8106 * frame.h (struct ui_file): Ditto.
8107
dea7f9ba
MK
81082003-05-11 Mark Kettenis <kettenis@gnu.org>
8109
8110 * value.h: Pretty print.
8111
01986c48
MK
81122003-05-10 Mark Kettenis <kettenis@gnu.org>
8113
8114 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
8115
123a958e
AC
81162003-05-08 Andrew Cagney <cagney@redhat.com>
8117
8118 * regcache.h (max_register_size): Delete declaration.
8119 * regcache.c (max_register_size): Delete function.
8120 (struct regcache_descr): Delete field "max_register_size".
8121 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
8122 registers fit in MAX_REGISTER_SIZE.
8123 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
8124 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
8125 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
8126 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
8127 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
8128 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
8129 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
8130 * dve3900-rom.c, hppa-tdep.c: Ditto.
8131
eb294659
DC
81322003-05-08 David Carlton <carlton@math.stanford.edu>
8133
8134 * valops.c (push_word): Fix typo.
8135
d9d9c31f
AC
81362003-05-08 Andrew Cagney <cagney@redhat.com>
8137
8138 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
8139 * gdbarch.h: Re-generate.
8140 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
8141 (legacy_max_register_raw_size): Delete declaration.
8142 * regcache.c (legacy_max_register_raw_size): Delete function.
8143 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
8144 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
8145 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
8146 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
8147 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
8148 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
8149 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
8150 * findvar.c, dwarf2cfi.c: Ditto.
8151
22540ece
AC
81522003-05-08 Andrew Cagney <cagney@redhat.com>
8153
8154 * mips-tdep.c (read_signed_register): New function, moved to here
8155 from "regcache.c".
8156 (read_signed_register_pid): Ditto.
8157 * regcache.c (read_signed_register_pid): Delete function, moved to
8158 "mips-tdep.c".
8159 (read_signed_register): Ditto.
8160 * regcache.h (read_signed_register): Delete declaration.
8161 (read_signed_register_pid): Delete declaration.
8162
0c92afe8
AC
81632003-05-08 Andrew Cagney <cagney@redhat.com>
8164
8165 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
8166 * gdbarch.h: Re-generate.
8167 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
8168 (legacy_max_register_virtual_size): Delete declaration.
8169 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
8170 * d10v-tdep.c (d10v_print_registers_info): Ditto.
8171 * tracepoint.c (memrange_sortmerge): Ditto.
8172 * sparc-tdep.c (sparc_print_registers): Ditto.
8173 * regcache.c (legacy_max_register_virtual_size): Delete function.
8174
6037b830
JB
81752002-05-08 J. Brobecker <brobecker@gnat.com>
8176
8177 * fork-child.c (escape_bang_in_quoted_argument): New function.
8178 (fork_inferior): Escape '!' characters in quoted arguments
8179 only when needed.
8180
5d62c8b1
JB
81812003-05-08 J. Brobecker <brobecker@gnat.com>
8182
8183 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
8184 the language of the CU is not currently supported by GDB.
8185
20a0e81d
JB
81862003-05-08 J. Brobecker <brobecker@gnat.com>
8187
8188 * defs.h (language): Add language_minimal enum value.
8189 * c-lang.c (minimal_language_defn): New language definition.
8190 (_initialize_c_language): Add the new minimal language to the list
8191 of languages known to GDB.
8192
710ee10a
KB
81932003-05-08 Kevin Buettner <kevinb@redhat.com>
8194
8195 * frame.c (get_frame_type): Don't attempt to lazily initialize
8196 frame's unwinder for legacy frames.
8197
1750fa04
AC
81982003-05-07 Andrew Cagney <cagney@redhat.com>
8199
8200 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
8201 and "regcache" parameters.
8202 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
8203
ddf9f258 82042003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
8205
8206 * dwarf2read.c (dwarf_decode_lines): Only use output of
8207 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
8208 the current address.
8209
87767c29
AC
82102003-05-07 Andrew Cagney <cagney@redhat.com>
8211
8212 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
8213 code.
8214
5e7b2f39
JB
82152003-05-07 Jim Blandy <jimb@redhat.com>
8216
8217 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
8218 'maint info symtabs' and 'maint info psymtabs'.
8219 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
8220 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
8221 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
8222 Declarations updated.
8223 * maint.c (maintenance_list_command): Delete.
8224 (_initialize_maint_cmds): Update calls to add_cmd.
8225 * gdbcmd.h (maintenancelistlist): Delete declaration.
8226 * cli/cli-cmds.c (maintenancelistlist): Delete.
8227 (init_cmd_lists): Don't initialize it.
8228 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
8229
f6684c31
AC
82302003-05-07 Andrew Cagney <cagney@redhat.com>
8231
8232 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
8233 "regcache".
8234 (d10v_print_registers_info): Update.
8235 (d10v_dmap_register, d10v_imap_register): Delete functions.
8236 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
8237 and "imap_register".
8238 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
8239 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
8240 * arch-utils.c (generic_remote_translate_xfer_address): Add
8241 "regcache" and "gdbarch" parameters.
8242 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
8243 parameter. Change class to multi-arch.
8244 * gdbarch.h, gdbarch.c: Re-generate.
8245 * remote.c (remote_xfer_memory): Use
8246 gdbarch_remote_translate_xfer_address.
8ffd9b1b 8247
e4846b08
JJ
82482003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8249
8250 * infrun.c (prev_pc): Move declaration ahead of proceed().
8251 (proceed): Refresh prev_pc value before resuming.
8252 (stop_stepping): Remove code to refresh prev_pc.
8253
6b71b8ac
KW
82542003-05-06 Kris Warkentin <kewarken@qnx.com>
8255
8256 * nto-tdep.c: Removed stray comment.
8257
47979a4b
KW
82582003-05-06 Kris Warkentin <kewarken@qnx.com>
8259
8260 * i386-nto-tdep.c: Fix old K&R function definitions.
8261 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
8262 Also change add_show_from_set() call to add_setshow_cmd().
8263 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
8264
00905d52
AC
82652003-05-05 Andrew Cagney <cagney@redhat.com>
8266
8267 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
8268 (fprint_dummy_frames): New function.
8269 (maintenance_print_dummy_frames): New function.
8270 (_initialize_dummy_frame): Add command "maint print dummy-frames".
8271 * frame.c (fprint_frame_id): Make global.
8272 * frame.h (fprint_frame_id): Declare.
8273 * Makefile.in (dummy-frame.o): Update dependencies.
8274
b1e29e33
AC
82752003-05-05 Andrew Cagney <cagney@redhat.com>
8276
8277 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
8278 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
8279 SIZEOF_CALL_DUMMY_WORDS.
8280 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
8281 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
8282 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
8283 CALL_DUMMY_BREAKPOINT_OFFSET.
8284 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
8285 CALL_DUMMY_START_OFFSET.
8286 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
8287 * gdbarch.h, gdbarch.c: Re-generate.
8288 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
8289 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
8290 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
8291 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
8292 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
8293 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
8294 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
8295 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
8296 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
8297 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
8298 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
8299 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
8300 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
8301 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
8302 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
8303
83042003-05-05 Kris Warkentin <kewarken@qnx.com>
8305
8306 * configure.tgt: Add i[3456]86-*-nto*.
8307 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
8308 * nto-tdep.c: New file. Neutrino target support routines.
8309 * nto-tdep.h: New file. Neutrino target header.
8310 * config/tm-qnxnto.h: New file.
8311 * config/i386/i386nto.mt: New file.
8312 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 8313
0ce3d317
AC
83142003-05-04 Andrew Cagney <cagney@redhat.com>
8315
8316 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
8317 (load_infrun_state): Ditto.
8318 (struct thread_info): Drop "prev_func_name" field.
8319 * thread.c (load_infrun_state): Update.
8320 (save_infrun_state): Update.
8321 * infrun.c (prev_func_name): Delete variable.
8322 (init_wait_for_inferior): Do not clear prev_func_name.
8323 (stop_stepping, keep_going, context_switch): Do not swap
8324 prev_func_name.
8325 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
8326 instead of PC_IN_SIGTRAMP.
8327
46654a5b
AC
83282003-05-04 Andrew Cagney <cagney@redhat.com>
8329
8330 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8331 REGISTER_BYTE with register_offset_hack.
8332 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
8333 that REGISTER_BYTE is consistent with the regcache.
8334 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
8335 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 8336
14b08c1b
MK
83372003-05-04 Mark Kettenis <kettenis@gnu.org>
8338
04c8243f
MK
8339 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
8340 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
8341
14b08c1b
MK
8342 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
8343
c7a11e01
JB
83442003-05-03 J. Brobecker <brobecker@gnat.com>
8345
8346 From Thierry Schneider <tpschneider1@yahoo.com>
8347 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
8348 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
8349 (mi-cmd-symbol.o): Add rule.
8350
7043d8dc
AC
83512003-05-03 Andrew Cagney <cagney@redhat.com>
8352
8353 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
8354 comments noteing that it replaces the old FIX_CALL_DUMMY code.
8355 * gdbarch.h, gdbarch.c: Re-generate.
8356 * d10v-tdep.c (d10v_push_dummy_code): New function.
8357 (d10v_gdbarch_init): Set push_dummy_code.
8358 * infcall.c (legacy_push_dummy_code): New function.
8359 (generic_push_dummy_code): New function.
8360 (push_dummy_code): New function.
8361 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
8362 instead of dummy_addr, to push_dummy_call. Move call to
8363 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
8364 switch.
8365 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
8366
92bf2b80
AC
83672003-05-03 Andrew Cagney <cagney@redhat.com>
8368
8369 * disasm.h (print_insn): Declare.
8370 * disasm.c (init_gdb_disassemble_info): New function.
8371 (gdb_disassembly): Call init_gdb_disassemble_info.
8372 (gdb_print_insn): New function.
8373 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
8374 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
8375 * mcore-tdep.c: Include "disasm.h"
8376 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
8377 * d10v-tdep.c: Include "disasm.h".
8378 (display_trace): Call gdb_print_insn, instead of print_insn.
8379 (print_insn): Delete function.
8380 * printcmd.c: Include "disasm.h".
8381 (print_insn): Delete function.
8382 (print_formatted): Call gdb_print_insn, instead of print_insn.
8383 * Makefile.in (printcmd.o): Update dependencies.
8384 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 8385
27d94c49
AC
83862003-05-02 Andrew Cagney <cagney@redhat.com>
8387
82de1e5b
AC
8388 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
8389 PC_REGNUM, re-indent.
8390 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
8391 PC_REGNUM isn't set.
8392
27d94c49
AC
8393 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
8394 * gdbarch.h, gdbarch.c: Re-generate.
8395 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
8396 register_virtual_size, pc_regnum, or register_bytes.
8397 (D10V_PC_REGNUM): Rename _PC_REGNUM.
8398 (d10v_register_type): Use D10V_PC_REGNUM.
8399 (d10v_print_registers_info, d10v_read_pc): Ditto.
8400 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
8401 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
8402
a9c0dc7f
DC
84032003-05-02 David Carlton <carlton@bactrian.org>
8404
8405 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
8406 the name with mstrsave.
8407
e33d66ec
EZ
84082003-05-02 Elena Zannoni <ezannoni@redhat.com>
8409
8410 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
8411 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
8412 (host_charset_name, target_charset_name): New vars for use by
8413 set/show commands.
8414 (host_charset_enum, target_charset_enum): New enums for set/show
8415 commands.
8416 (set_charset_sfunc, set_host_charset_sfunc,
8417 set_target_charset_sfunc): New functions.
8418 (set_host_charset, set_target_charset): Make static.
8419 (list_charsets, set_host_charset_command,
8420 set_target_charset_command): Delete functions.
8421 (show_charset_command): Rewrite as....
8422 (show_charset): Hook this up with the set/show command mechanism.
8423 (_initialize_charset): Change names of charsets to match the
8424 set/show enums. Use host_charset_name and target_charset_name.
8425 Use set/show mechanism for charset, host-charset, target-charset
8426 commands. Do not make 'show host-charset' and 'show
8427 target-charset' be aliases of 'show charset'.
8428
8429 * charset.h (set_host_charset, set_target_charset): Don't export,
8430 they are not used outside the file.
8431
2b6fd0d8
AC
84322003-05-01 Andrew Cagney <cagney@redhat.com>
8433
8434 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
8435 (gdb_disassembly): Make "di" non static, always initialize and
8436 cleanup. Always use dis_asm_read_memory.
8437 (gdb_dis_asm_read_memory): Delete function.
8438
6ae2f580
AC
84392003-05-01 Andrew Cagney <cagney@redhat.com>
8440
8441 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
8442 (d10v_gdbarch_init): Set frame_align instead of stack_align.
8443
810ecf9f
AC
84442003-04-30 Andrew Cagney <cagney@redhat.com>
8445
8446 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
8447 "tm_print_insn_info".
8448 (TARGET_PRINT_INSN_INFO): Delete macro.
8449 (dis_asm_read_memory): Delete function declaration.
8450 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8451 (tm_print_insn_info): Delete variable definition.
8452 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
8453 * gdbarch.h, gdbarch.c: Re-generate.
8454 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
8455 "deprecated_tm_print_insn_info".
8456 * mcore-tdep.c (mcore_dump_insn): Ditto.
8457 * mips-tdep.c (mips_gdbarch_init): Ditto.
8458 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
8459 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
8460 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
8461 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
8462 instead of TARGET_PRINT_INSN_INFO, add comment.
8463 * s390-tdep.c (s390_get_frame_info): Instead of
8464 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
8465 (s390_check_function_end, s390_is_sigreturn): Ditto.
8466 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
8467 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8468 * disasm.c: Include "gdbcore.h".
8469 (_initialize_disasm): New function, initialize
8470 "deprecated_tm_print_insn_info".
8471 (deprecated_tm_print_insn_info): New variable.
8472 (dis_asm_read_memory): Moved from "corefile.c", made static.
8473 (dis_asm_print_address, dis_asm_memory_error): Ditto.
8474 * Makefile.in (disasm.o): Update dependencies.
8475
07020390
AC
84762003-04-30 Andrew Cagney <cagney@redhat.com>
8477
8478 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
8479
a9fa03de
AF
84802003-04-29 Adam Fedor <fedor@gnu.org>
8481
8482 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
8483 * infcall.c (find_function_addr): Make non-static.
8484 * infcall.h (find_function_addr): Declare.
8485 * Makefile.in (eval.o): Update dependencies.
8486
1bae87b9
AF
84872003-04-28 Adam Fedor <fedor@gnu.org>
8488
8489 * symtab.c (symbol_find_demangled_name): Check for and demangle
8490 ObjC symbols.
8491 (symbol_init_demangled_name): Init for language_objc as well.
8492
0ba6dca9
AC
84932003-04-28 Andrew Cagney <cagney@redhat.com>
8494
8495 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
8496 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
8497 * gdbarch.h, gdbarch.c: Re-generate.
8498 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
8499 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
8500 * inferior.h (deprecated_read_fp): Rename read_fp.
8501 (generic_target_read_fp): Delete declaration.
8502 * regcache.c (generic_target_read_fp): Delete function.
8503 (deprecated_read_fp): Replace read_fp, use
8504 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
8505 * d10v-tdep.c (d10v_read_fp): Delete function.
8506 (d10v_gdbarch_init): Do not set deprecated_read_fp.
8507
8508 * sparc-tdep.c (sparc_gdbarch_init): Do not set
8509 deprecated_target_read_fp to generic_target_read_fp.
8510 * sh-tdep.c (sh_gdbarch_init): Ditto.
8511 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8512 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8513 * frv-tdep.c (frv_gdbarch_init): Ditto.
8514
8515 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
8516 deprecated_fp_regnum.
8517 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8518 * vax-tdep.c (vax_gdbarch_init): Ditto.
8519 * v850-tdep.c (v850_gdbarch_init): Ditto.
8520 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8521 * sh-tdep.c (sh_gdbarch_init): Ditto.
8522 * s390-tdep.c (s390_gdbarch_init): Ditto.
8523 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8524 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8525 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8526 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8527 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8528 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8529 * i386-tdep.c (i386_gdbarch_init): Ditto.
8530 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8531 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8532 * frv-tdep.c (frv_gdbarch_init): Ditto.
8533 * cris-tdep.c (cris_gdbarch_init): Ditto.
8534 * avr-tdep.c (avr_gdbarch_init): Ditto.
8535 * arm-tdep.c (arm_gdbarch_init): Ditto.
8536 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8537
8538 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
8539 * v850-tdep.c (v850_gdbarch_init): Ditto.
8540 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8541 * sh-tdep.c (sh_gdbarch_init): Ditto.
8542 * s390-tdep.c (s390_gdbarch_init): Ditto.
8543 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8544 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8545 * mips-tdep.c (mips_gdbarch_init): Ditto.
8546 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8547 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8548 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8549 * frv-tdep.c (frv_gdbarch_init): Ditto.
8550 * avr-tdep.c (avr_gdbarch_init): Ditto.
8551 * arm-tdep.c (arm_gdbarch_init): Ditto.
8552
8553 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
8554 DEPRECATED_FP_REGNUM.
8555 (vax_push_dummy_frame, vax_pop_frame): Ditto.
8556 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
8557 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8558 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
8559 (sparc32_register_virtual_type): Ditto.
8560 * sh-tdep.c (sh64_frame_chain): Ditto.
8561 (sh64_get_saved_register, sh64_pop_frame): Ditto.
8562 (sh_nofp_frame_init_saved_regs): Ditto.
8563 (sh64_nofp_frame_init_saved_regs): Ditto.
8564 (sh_fp_frame_init_saved_regs): Ditto.
8565 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8566 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8567 * procfs.c (procfs_fetch_registers): Ditto.
8568 (procfs_store_registers): Ditto.
8569 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
8570 (store_inferior_registers, fetch_core_registers): Ditto.
8571 (fetch_kcore_registers, clear_regs): Ditto.
8572 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
8573 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
8574 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
8575 * nlm/i386.c (do_status): Ditto.
8576 * mipsv4-nat.c (supply_gregset): Ditto.
8577 * mips-tdep.c: Ditto for comments.
8578 * mips-nat.c (fetch_inferior_registers): Ditto.
8579 (store_inferior_registers, fetch_core_registers): Ditto.
8580 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
8581 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
8582 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
8583 (i386_do_pop_frame, i386_register_type): Ditto.
8584 * hppa-tdep.c (hppa_frame_chain): Ditto.
8585 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
8586 (hppa_pop_frame, hppa_read_fp): Ditto.
8587 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
8588 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
8589 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
8590 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
8591 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
8592 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
8593 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
8594 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
8595 * blockframe.c: Ditto for comments.
8596 * arch-utils.h: Ditto for comments.
8597 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
8598 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
8599 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
8600 * alpha-tdep.h: Ditto for comments.
8601 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
8602 (alpha_cannot_store_register): Ditto.
8603 (alpha_push_dummy_frame): Ditto.
8604 * alpha-nat.c (supply_gregset): Ditto.
8605
8606 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
8607 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
8608 * config/sparc/tm-sparc.h: Update comment.
8609
8610 * hppa-tdep.c (hppa_init_extra_frame_info): Use
8611 deprecated_read_fp instead of TARGET_READ_FP.
8612 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
8613 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
8614 * sparc-tdep.c (sparc_init_extra_frame_info): Use
8615 deprecated_read_fp instead of read_fp.
8616 * s390-tdep.c (s390_push_arguments): Ditto.
8617 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8618 * frame.h: Ditto in comments.
8619 * frame.c (legacy_get_prev_frame): Ditto.
8620 * dummy-frame.c (dummy_frame_this_id): Ditto.
8621 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8622
d7a27068
AC
86232003-04-28 Andrew Cagney <cagney@redhat.com>
8624
8625 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
8626 * gdbarch.h, gdbarch.c: Re-generate.
8627 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
8628 * vax-tdep.c (_initialize_vax_tdep): Update.
8629 * v850-tdep.c (_initialize_v850_tdep): Update.
8630 * sparc-tdep.c (_initialize_sparc_tdep): Update.
8631 * s390-tdep.c (_initialize_s390_tdep): Update.
8632 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
8633 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
8634 * mips-tdep.c (_initialize_mips_tdep): Update.
8635 * mcore-tdep.c (_initialize_mcore_tdep): Update.
8636 * m68k-tdep.c (_initialize_m68k_tdep): Update.
8637 * ia64-tdep.c (_initialize_ia64_tdep): Update.
8638 * hppa-tdep.c (_initialize_hppa_tdep): Update.
8639 * h8300-tdep.c (_initialize_h8300_tdep): Update.
8640 * frv-tdep.c (_initialize_frv_tdep): Update.
8641 * cris-tdep.c (cris_delayed_get_disassembler): Update.
8642 (_initialize_cris_tdep): Update.
8643 * arch-utils.c (legacy_print_insn): Update.
8644 * alpha-tdep.c (_initialize_alpha_tdep): Update.
8645
d2630e69
AF
86462003-04-26 Adam Fedor <fedor@gnu.org>
8647
8648 * linespec.c (decode_objc): New function to decode ObjC calls
8649 (decode_line_1): Check for ObjC calls (using decode_objc)
8650 * Makefile (linespec.o): Update dependencies.
8651
3086aeae
DJ
86522003-04-26 Daniel Jacobowitz <drow@mvista.com>
8653
8654 * breakpoint.h (struct breakpoint_ops): New.
8655 (struct breakpoint): Add ops member.
8656
8657 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
8658 (mention): Use new breakpoint ops member.
8659 (set_raw_breakpoint): Initialize ops field to NULL.
8660 (print_exception_catchpoint, print_one_exception_catchpoint)
8661 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
8662 (gnu_v3_exception_catchpoint_ops): New.
8663 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
8664
1fbec6c3
AF
86652003-04-25 Adam Fedor <fedor@gnu.org>
8666
8667 * Makefile.in (COMMON_OBS): Add objc-lang.o
8668
0ef21242
AC
86692003-04-25 Andrew Cagney <cagney@redhat.com>
8670
8671 * d10v-tdep.c (print_insn): Delete function.
8672 (display_trace): Use TARGET_PRINT_INSN.
8673 (_initialize_d10v_tdep): Do not set tm_print_insn.
8674 (d10v_gdbarch_init): Set print_insn.
8675
f75493ed
AC
86762003-04-25 Andrew Cagney <cagney@redhat.com>
8677
8678 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
8679 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
8680 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
8681 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
8682 (nr_dmap_regs, a0_regnum): ... new functions.
8683 (d10v_print_registers_info): Use a0_regnum, use register_size.
8684 (d10v_register_byte): Delete function.
8685 (d10v_register_raw_size): Delete function.
8686 (d10v_register_type): Use a0_regnum.
8687 (d10v_print_registers_info): Use a0_regnum.
8688 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
8689 (d10v_gdbarch_init): Do not set register_byte or
8690 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
8691 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
8692 extract_address.
8693 (trace_command): Use XCALLOC.
8694 (print_insn): Delete reference to tm_print_insn.
8695 (saved_regs_unwinder): Use store_unsigned_integer instead of
8696 store_address.
8697 * frame.h (FRAME_OBSTACK_CALLOC): Define
8698
2202b100
DC
86992003-04-25 David Carlton <carlton@bactrian.org>
8700
8701 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
8702
4e45ca2e
AF
87032003-04-24 Adam Fedor <fedor@gnu.org>
8704
8705 * objc-lang.c: Include "valprint.h"
8706 * Makefile.in (objc-lang.o): Update dependencies.
8707
93de3e7f
AF
87082003-04-24 Adam Fedor <fedor@gnu.org>
8709
8ffd9b1b 8710 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
8711 architecture dependant compilation and mark as unimplemented
8712 (until they get put in the gdbarch vector).
8713
0f20eeea
DC
87142003-04-23 David Carlton <carlton@bactrian.org>
8715
8716 * cp-support.c (cp_find_first_component): Accept 'operator' in
8717 more locations.
8718
74cfe982
AC
87192003-04-23 Andrew Cagney <cagney@redhat.com>
8720
8721 * infcall.c (call_function_by_hand): Eliminate redundant
8722 indentation. Move "saved_async" and "old_cleanups" to where they
8723 are needed.
8ffd9b1b 8724
52557533
AC
87252003-04-23 Andrew Cagney <cagney@redhat.com>
8726
8727 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
8728 and "buffer". Move the "name" code to where it is needed.
8729
158775de
AC
87302003-04-23 Andrew Cagney <cagney@redhat.com>
8731
8732 * infcall.c (call_function_by_hand): Move variables "start_sp",
8733 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
8734 code to ON_STACK switch branch.
8ffd9b1b 8735
ebc7896c
AC
87362003-04-23 Andrew Cagney <cagney@redhat.com>
8737
8738 * infcall.c (call_function_by_hand): Make declaration of "i",
8739 "sal", "bpt" and "old_sp" more local to their use. Delete #if
8740 lint.
8741
d727590f
AC
87422003-04-23 Andrew Cagney <cagney@redhat.com>
8743
8744 * infcall.c (call_function_by_hand): Delete variable
8745 "n_method_args". Localize "param_type"'s declaration to the loop
8746 that it is used. Reinstate code assigning to said variable -
8747 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
8748 Rationalize code using "param_type".
8749
d585e13a
AC
87502003-04-22 Andrew Cagney <cagney@redhat.com>
8751
8752 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
8753 compute the breakpoint address. Only call FIX_CALL_DUMMY when
8754 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
8755 to DEPRECATED_PUSH_RETURN_ADDRESS.
8756
051caad9
KB
87572003-04-22 Kevin Buettner <kevinb@redhat.com>
8758
8759 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
8760 on the DWARF2 register number prior to fetching a register.
8761
77296879
JB
87622003-04-22 J. Brobecker <brobecker@gnat.com>
8763
8764 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
8765 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 8766 this macro was always set to 0.
77296879
JB
8767 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
8768 considering the fact that this macro was always set to 0.
8769 * hppa-tdep.h (hppa_store_return_value): Likewise.
8770 (hppa_extract_return_value): Likewise.
8771
4252f1df
JB
87722003-04-22 J. Brobecker <brobecker@gnat.com>
8773
8774 * config/pa/tm-hppa.h: Remove obsolete code, was used by
8775 the hppa-pro target only.
8776
14604c6b
JB
87772003-04-21 J. Brobecker <brobecker@gnat.com>
8778
8779 Ongoing multi-arch conversion effort for HP/UX:
8780 * config/pa/tm-hppa.h: Move all macro that are no longer
8781 defined now that GDB_MULTI_ARCH is now set to 1 from here...
8782 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
8783
77eb01d1
JB
87842003-04-21 J. Brobecker <brobecker@gnat.com>
8785
8786 * config/pa/tm-hppa.h: Obsolete a section that was only used
8787 for hppa-pro.
8788
61995b3b
JB
87892003-04-21 J. Brobecker <brobecker@gnat.com>
8790
8791 Ongoing multi-arch conversion for HP/UX.
8792 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
8793 if already defined (allows hppa64 to stay non-multiarched for now).
8794 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
8795
4aa79dcc
AC
87962003-04-21 Andrew Cagney <cagney@redhat.com>
8797
8798 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
8799
0f751ff2
AC
88002003-04-21 Andrew Cagney <cagney@redhat.com>
8801
8802 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
8803 "i386_num_mmx_regs".
8804
04714b91
AC
88052003-04-21 Andrew Cagney <cagney@redhat.com>
8806
8807 * infcall.c: New file.
8808 * infcall.h: New file.
8809 * valarith.c: Include "infcall.h".
8810 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
8811 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
8812 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
8813 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
8814 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
8815 (SFILES): Add "infcall.c"
8816 (COMMON_OBS): Add "infcall.o".
8817 (infcall.o): Specify dependencies.
8818 * value.h (call_function_by_hand): Delete declaration.
8819 * inferior.h (run_stack_dummy): Delete declaration.
8820 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8821 (run_stack_dummy): Move to "infcall.c", merged into
8822 call_function_by_hand.
8823 * valops.c (call_function_by_hand): Moved to "infcall.c".
8824 (find_function_addr, value_arg_coerce): Ditto.
8825 (unwindonsignal_p, coerce_float_to_double): Ditto.
8826 (_initialize_valops): Move "set/show coerce-float-to-double", and
8827 "set/show unwindonsignal" commands to "infcall.c".
8828 * v850-tdep.c, target.h: Update comments.
8829 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8830 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8831 (sh64_init_extra_frame_info): Update comments.
8832 * mn10300-tdep.c: Update comments.
8833 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8834 * config/sparc/tm-sparc.h: Update comments.
8835 * breakpoint.h: Update comments.
8836 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8837 * arm-tdep.c: Update comment.
8838
f9d3c2a8
MK
88392003-04-19 Mark Kettenis <kettenis@gnu.org>
8840
c40e1eab
MK
8841 * i386-tdep.c (i386_num_register_names): New variable.
8842 (i386_num_mmx_regs): Renamed from mmx_num_regs.
8843 (MM0_REGNUM): Remove redundant parentheses in define.
8844 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8845 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8846 i386_mxcsr_regnum_p): Remove redundant parentheses.
8847 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 8848
94ea66b3
MK
8849 * i386-tdep.c (i386_extract_return_value,
8850 i386_store_return_value): Correct check for availability of
8851 floating-point registers.
8852
54299a1d
MK
8853 * i386-tdep.c (i386_frame_num_args): Remove function.
8854 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8855
c86c27af
MK
8856 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8857 mmx_regnum_to_fp_regnum. Adjust all callers.
8858
f9d3c2a8
MK
8859 * i386-tdep.c (i386_get_longjmp_target): Use
8860 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8861 and TARGET_CHAR_BIT. Use extract_typed_address instead of
8862 extract_address.
8863
94ba74a9
MK
88642003-04-19 Mark Kettenis <kettenis@gnu.org>
8865
8866 * core-regset.c: Update comments to reflect reality. Re-order
8867 includes.
8868 (fetch_core_registers): Use switch instead of if. Remove
8869 redundant prototype.
8870
4074e13c
JB
88712003-04-18 Jim Blandy <jimb@redhat.com>
8872
8873 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 8874 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 8875
e3ab4aba
RH
88762003-04-17 Richard Henderson <rth@redhat.com>
8877
8878 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8879
627bf7c1
EZ
88802003-04-17 Michael Snyder <msnyder@redhat.com>
8881 Karen Bennet <bennet@redhat.com>
8882
8883 Committed by Elena Zannoni <ezannoni@redhat.com>
8884 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 8885
514621a9
EZ
88862003-04-17 Elena Zannoni <ezannoni@redhat.com>
8887
8888 * values.c (value_being_returned): Don't fetch the return
fbe586ae 8889 value if the return type is void.
514621a9 8890
b4acd559
JJ
88912003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8892
8893 * thread-db.c: Reindented.
8ffd9b1b 8894
530b167e 88952003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
8896
8897 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8898 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
8899 as types.
8900
0a48e7e8
MS
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8ffd9b1b 8924
ab9fe00e
KB
89252003-04-16 Kevin Buettner <kevinb@redhat.com>
8926
610a3745 8927 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
8928 the size of ``long double'' to 16, instead of 8.
8929
e64a344c
MK
89302003-04-16 Mark Kettenis <kettenis@gnu.org>
8931
8932 * i386-linux-nat.c: Add some whitespace to make things more
8933 readable.
8934 (fetch_register, store_register, fetch_inferior_registers,
8935 store_inferior_registers): Get rid of assignment in if-statement.
8936 (store_register): Fix typo in error message.
8937
25d41031
AC
89382003-04-16 Andrew Cagney <cagney@redhat.com>
8939
8940 * utils.c (xmmalloc): Always allocate something, matches
8941 libiberty/xmalloc's semantics.
8942 (xmrealloc, xmcalloc): Ditto.
8943
c50901fd
AC
89442003-04-16 Andrew Cagney <cagney@redhat.com>
8945
8946 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8947 update comments.
8948 (get_frame_type): Initialize unwind and type when needed.
8949 (get_frame_id, frame_register_unwind): Ditto.
8950
f81824a9
AC
89512003-04-16 Andrew Cagney <cagney@redhat.com>
8952
8953 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8954 obsolete.
8955 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8956 * sparcl-stub.c: Obsolete file.
8957 * config/sparc/tm-sparclet.h: Obsolete file.
8958 * sparclet-stub.c: Obsolete file.
8959 * sparclet-rom.c: Obsolete file.
8960 * sparcl-tdep.c: Obsolete file.
8961 * config/sparc/tm-sparclite.h: Obsolete file.
8962 * config/sparc/sparclite.mt: Obsolete file.
8963 * config/sparc/sparclet.mt: Obsolete file.
8964 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8965 sparc86x-*-* obsolete.
8966
9219021c
DC
89672003-04-15 David Carlton <carlton@math.stanford.edu>
8968
8969 * Makefile.in (SFILES): Add cp-namespace.c.
8970 (COMMON_OBS): Add cp-namespace.o.
8971 (block.o): Depend on gdb_obstack_h and cp_support_h.
8972 (buildsym.o): Depend on cp_support_h.
8973 (cp-namespace.o): New.
8974 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8975 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8976 (dwarf2read.o): Depend on cp_support_h.
8977 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8978 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8979 processing_current_namespace.
8980 (read_namespace): Update processing_current_namespace; check for
8981 anonymous namespaces.
8982 (dwarf2_name): New function.
8983 (dwarf2_extension): Ditto.
8984 * cp-support.h: Update copyright, contributors.
8985 Add inclusion guards.
8986 Add opaque declaration for structs obstack, block, symbol.
8987 (struct using_direct): New struct.
8988 Add declarations for cp_find_first_component,
8989 cp_entire_prefix_len, processing_has_namespace_info,
8990 processing_current_namespace, cp_is_anonymous,
8991 cp_add_using_directive, cp_initialize_namespace,
8992 cp_finalize_namespace, cp_set_block_scope,
8993 cp_scan_for_anonymous_namespaces.
8994 * cp-namespace.c: New file.
8995 * cp-support.c: Update copyright.
8996 Include ctype.h, gdb_assert.h, gdbcmd.h.
8997 New variable maint_cplus_cmd_list.
8998 (cp_find_first_component): New function.
8999 (cp_entire_prefix_len, maint_cplus_command)
9000 (first_component_command, _initialize_cp_support): Ditto.
9001 * buildsym.c: Include cp-support.h.
9002 New variable using_list.
9003 (add_symbol_to_list): Check for anonymous namespaces.
9004 (finish_block): Set block's scope.
9005 (start_symtab): Initialize C++ namespace support.
9006 (end_symtab): Finalize C++ namespace support.
9007 * block.h: Add opaque declarations for structs
9008 block_namespace_info, using_direct, and obstack.
9009 Add declarations for block_set_scope and block_set_using.
9010 (struct block): Add 'language_specific' member.
9011 (BLOCK_NAMESPACE): New macro.
9012 * block.c: Include gdb_obstack.h and cp-support.h.
9013 (struct block_namespace_info): New struct.
9014 (block_set_scope): New function.
9015 (block_set_using, block_initialize_namespace): Ditto.
9016
d5a921c9
KB
90172003-04-14 Kevin Buettner <kevinb@redhat.com>
9018
9019 * solib-svr4.c (svr4_have_link_map_offsets): New function.
9020 (locate_base): Return early if there aren't any link map offsets.
9021 (svr4_solib_create_inferior_hook): Warn if shared library support
9022 is unavailable.
9023
d2a52b27
DC
90242003-04-14 David Carlton <carlton@math.stanford.edu>
9025
9026 * symtab.c (symbol_set_names): Add prefix when storing Java names
9027 in hash table. Fix for PR java/1039.
9028
980cae7a
DC
90292003-04-14 David Carlton <carlton@math.stanford.edu>
9030
9031 * symtab.c (symbol_set_names): Rename 'name' arg to
9032 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9033 * symtab.h: Change 'name' argument in declaration of
9034 symbol_set_names to 'linkage_name'.
9035 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9036
e227b13c
AC
90372003-04-14 Andrew Cagney <cagney@redhat.com>
9038
9039 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9040 return the fully sign-extended register value.
9041 (get_frame_pointer): Ditto.
9042 (mips_pop_frame): Initialize "proc_desc" after checking for a
9043 dummy frame.
9044
36712a20
AC
90452003-04-14 Andrew Cagney <cagney@redhat.com>
9046
9047 * mips-tdep.c (mips_push_dummy_frame): Delete function.
9048 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9049 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9050 (mips_push_register): Delete function.
9051 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9052 PUSH_FP_REGNUM.
9053
44ea7b70
JB
90542003-04-14 Jim Blandy <jimb@redhat.com>
9055
9056 * symmisc.c: #include "gdb_regex.h".
9057 (maintenance_list_symtabs, maintenance_list_psymtabs): New
9058 functions.
9059 * maint.c (maintenance_list_command): New function.
9060 (_initialize_maint_cmds): Register the above as commands.
9061 * symtab.h (maintenance_list_symtabs,
9062 maintenance_list_psymtabs): New declarations.
9063 * cli/cli-cmds.c (maintenancelistlist): New variable.
9064 (init_cmd_lists): Initialize it.
9065 * cli/cli-cmds.h (maintenancelistlist): New declaration.
9066 * gdbcmd.h (maintenancelistlist): New declaration.
9067 * Makefile.in (symmisc.o): Update dependencies.
9068
2d0c7962
EZ
90692003-04-14 Elena Zannoni <ezannoni@redhat.com>
9070
9071 * s390-nat.c: Include asm/types.h for addr_t.
9072
1947a811
CV
90732003-04-14 Corinna Vinschen <vinschen@redhat.com>
9074
9075 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
9076 actually incoming type.
9077
adb616d7
AC
90782003-04-13 Andrew Cagney <cagney@redhat.com>
9079
9080 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
9081 get_next_frame and get_frame_saved_regs.
9082
9b5e151c
AC
90832003-04-13 Andrew Cagney <cagney@redhat.com>
9084
9085 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
9086 of gdbarch_num_regs.
9087
ef6e7e13
AC
90882003-04-13 Andrew Cagney <cagney@redhat.com>
9089
9090 * frame.h: Mention what replaced what in "struct frame_info".
9091 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
9092 deprecated_update_frame_base_hack and
9093 deprecated_update_frame_pc_hack.
9094 * hppa-tdep.c: Ditto.
9095
61fbb938
DJ
90962003-04-13 Daniel Jacobowitz <drow@mvista.com>
9097
9098 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
9099 to read_reg and update its comment. Remove regnum member.
9100 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
9101 Don't call read_reg when setting in_reg. Call read_reg to get
9102 the frame base if it's in a register. Return the register number
9103 on the stack instead of in the context. Remove extra arguments
9104 to read_reg.
9105 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
9106 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
9107 the register number on the expression stack.
9108 (needs_frame_read_reg): Remove extra arguments.
9109
0d53c4c4
DJ
91102003-04-13 Daniel Jacobowitz <drow@mvista.com>
9111
9112 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
9113 made non-static.
9114 (execute_stack_op): All callers updated.
9115 * dwarf2expr.h: Add prototype for dwarf2_read_address.
9116 * dwarf2loc.c (find_location_expression): New function.
9117 (dwarf_expr_frame_base): Call it.
9118 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
9119 (dwarf2_tracepoint_var_ref): New function, broken out from
9120 locexpr_tracepoint_var_ref.
9121 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
9122 Make static.
9123 (loclist_read_variable, loclist_read_needs_frame): New functions.
9124 (loclist_describe_location, loclist_tracepoint_var_ref): New
9125 functions.
9126 (dwarf2_loclist_funcs): New struct location_funcs.
9127 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
9128 (struct dwarf2_locexpr_baton): Add comments.
9129 (dwarf2_loclist_funcs): New extern.
9130 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
9131 base_address and base_known.
9132 (dwarf_loc_buffer): New variable.
9133 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
9134 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
9135 (dwarf2_has_info): Initialize dwarf_loc_offset.
9136 (dwarf2_build_psymtabs): Read in .debug_loc.
9137 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
9138 DWARF_LOC_SIZE.
9139 (psymtab_to_symtab_1): Likewise. Move base address calculation
9140 here, from...
9141 (dwarf2_get_pc_bounds): ... here. Use the base address from
9142 cu_header.
9143 (dwarf2_symbol_mark_computed): Handle location lists.
9144
6aca59a3
DJ
91452003-04-13 Daniel Jacobowitz <drow@mvista.com>
9146
9147 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
9148 if the linkage name demangled successfully.
9149
aca1fcd0
MK
91502003-04-13 Mark Kettenis <kettenis@gnu.org>
9151
97095916
MK
9152 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
9153 disassmbly_flavour): Removed.
9154
aca1fcd0
MK
9155 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
9156
562a961f
MK
91572003-04-13 Mark Kettenis <kettenis@gnu.org>
9158
9159 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
9160
bd013d54
AC
91612003-04-12 Andrew Cagney <cagney@redhat.com>
9162
9163 * frame.h (struct frame_info): Move definition from here ...
9164 * frame.c (struct frame_info): ... to here.
9165
167ef8b1
AC
91662003-04-12 Andrew Cagney <cagney@redhat.com>
9167
9168 * gdbthread.h (save_infrun_state): Delete parameter
9169 "prev_func_start".
9170 (struct thread_info): Delete field "prev_func_start".
9171 (load_infrun_state): Ditto.
9172 * thread.c (load_infrun_state, save_infrun_state): Update.
9173 * infrun.c (prev_func_start): Delete variable.
9174 (context_switch, init_wait_for_inferior): Update.
9175 (stop_stepping, keep_going): Update.
9176
da3331ec
AC
91772003-04-12 Andrew Cagney <cagney@redhat.com>
9178
9179 * gdbarch.sh: Add missing opaque declarations.
9180 * gdbarch.h: Regnerate.
9181 * symtab.h: Add missing opaque declarations.
9182 * value.h, target.h, symfile.h, stabsread.h: Ditto.
9183 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
9184 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
9185 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
9186 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
9187 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
9188 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
9189 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
9190 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
9191 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
9192 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
9193 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
9194 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
9195
18adea3f
AC
91962003-04-11 Andrew Cagney <cagney@redhat.com>
9197
9198 * frame.c (get_frame_id): Return this frame's "id".
9199 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
9200 function start.
9201 (legacy_saved_regs_this_id): Replace function body with
9202 internal-error.
9203 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
9204 FRAME_OBSTACK_ZALLOC.
9205 (create_new_frame): Mark the frame ID as valid.
9206
2252e863
AO
92072003-04-11 Alexandre Oliva <aoliva@redhat.com>
9208
9209 * Makefile.in (libbfd_h): Added missing setting.
9210 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
9211 according to the selected ABI.
9212
a8245ab8
JJ
92132003-04-11 Jeff Johnston <jjohnstn@redhat.com>
9214
9215 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
9216
6913c89a
AC
92172003-04-11 Andrew Cagney <cagney@redhat.com>
9218
9219 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
9220 SAVED_PC_AFTER_CALL.
9221 * gdbarch.h, gdbarch.c: Regenerate.
9222 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9223 * x86-64-tdep.c (x86_64_init_abi): Update.
9224 * vax-tdep.c (vax_gdbarch_init): Update.
9225 * v850-tdep.c (v850_gdbarch_init): Update.
9226 * sparc-tdep.c (sparc_gdbarch_init): Update.
9227 * sh-tdep.c (sh_gdbarch_init): Update.
9228 * s390-tdep.c (s390_gdbarch_init): Update.
9229 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9230 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9231 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9232 * mips-tdep.c (mips_gdbarch_init): Update.
9233 * mcore-tdep.c (mcore_gdbarch_init): Update.
9234 * m68k-tdep.c (m68k_gdbarch_init): Update.
9235 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9236 * ia64-tdep.c (ia64_gdbarch_init): Update.
9237 (ia64_saved_pc_after_call): Update declaration.
9238 * i386ly-tdep.c (i386lynx_init_abi): Update.
9239 * i386-tdep.c (i386_gdbarch_init): Update.
9240 * hppa-tdep.c (hppa_gdbarch_init): Update.
9241 * h8300-tdep.c (h8300_gdbarch_init): Update.
9242 * frv-tdep.c (frv_gdbarch_init): Update.
9243 * cris-tdep.c (cris_gdbarch_init): Update.
9244 * avr-tdep.c (avr_gdbarch_init): Update.
9245 * arm-tdep.c (arm_gdbarch_init): Update.
9246 * alpha-tdep.c (alpha_gdbarch_init): Update.
9247 * ns32knbsd-nat.c (frame_num_args): Update.
9248 * ns32k-tdep.c (umax_frame_num_args): Update.
9249 * mips-tdep.c (mips_init_frame_pc_first): Update.
9250 * infrun.c (step_over_function): Update.
9251 * i386-linux-tdep.c (skip_hurd_resolver): Update.
9252 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
9253 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9254 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9255 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9256 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9257 * arm-linux-tdep.c (skip_hurd_resolver): Update.
9258 * arch-utils.c (init_frame_pc_default): Update.
9259 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9260 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
9261 declaration.
8ffd9b1b 9262
38edeab8
AC
92632003-04-11 Andrew Cagney <cagney@redhat.com>
9264
9265 * i387-tdep.c: Update copyright.
9266 (i387_to_double): Delete function.
9267 (double_to_i387): Delete function.
9268
81f8a206
AC
92692003-04-10 Andrew Cagney <cagney@redhat.com>
9270
9271 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
9272 frame's function's address. Simplify.
9273 (d10v_frame_unwind_cache): Check that the frame's function is
9274 non-zero.
9275
6e691f7a
JB
92762003-04-10 Jim Blandy <jimb@redhat.com>
9277
9278 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
9279 call to set_gdbarch_deprecated_push_arguments.
9280
7f78e237
AC
92812003-04-10 Andrew Cagney <cagney@redhat.com>
9282
9283 * frame.c (fprint_frame_id): New function.
9284 (fprint_frame_type, fprint_frame): New function.
9285 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
9286 (create_sentinel_frame, get_frame_id): Ditto.
9287 (frame_id_p, frame_id_eq): Ditto.
9288 (frame_id_inner, create_new_frame): Ditto.
9289 (legacy_get_prev_frame, get_prev_frame): Ditto.
9290 (deprecated_update_frame_pc_hack): Ditto.
9291 (frame_register_unwind): Ditto.
9292 (deprecated_update_frame_base_hack): Ditto.
9293
f870b49b
CV
92942003-04-10 Corinna Vinschen <vinschen@redhat.com>
9295
9296 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
9297 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
9298 frame_chain function.
9299 * Makefile.in: Add dependencies due to above change.
9300
7c86889b
CV
93012003-04-10 Corinna Vinschen <vinschen@redhat.com>
9302
9303 * blockframe.c (legacy_frame_chain_valid): Move call to
9304 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
9305 inside_entry_file.
9306
d0a55772
AC
93072003-04-09 Andrew Cagney <cagney@redhat.com>
9308
9309 * frame.h (struct frame_id): Replace "pc" and "base" with
9310 "stack_addr" and "code_addr". Update comments.
9311 (frame_id_build): Update parameter names and comment.
9312 (struct frame_info): Replace "id_p" and "id" with "this_id".
9313 * dummy-frame.c (dummy_frame_this_id): Update.
9314 * breakpoint.c (print_one_breakpoint): Update.
9315 * frame.c (get_frame_id): Update.
9316 (get_frame_base, frame_id_build): Update.
9317 (create_sentinel_frame, legacy_get_prev_frame): Update.
9318 (deprecated_update_frame_base_hack): Update.
9319 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
9320 (frame_id_inner): Ditto.
9321
ac16bf07
AC
93222003-04-09 Andrew Cagney <cagney@redhat.com>
9323
9324 * defs.h (gdb_print_host_address): Make "addr" parameter a
9325 pointer constant.
9326 * utils.c (gdb_print_host_address): Update.
9327
366cfc9e
KB
93282003-04-09 Kevin Buettner <kevinb@redhat.com>
9329
9330 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
9331 register number for R0 is 0.
9332
cd983b5c
JB
93332003-04-09 J. Brobecker <brobecker@gnat.com>
9334
9335 * frame.h (struct gdbarch): Add opaque structure definition
9336 to avoid a compilation warning on LynxOS 4.0.
9337
d1340264
AC
93382003-04-09 Andrew Cagney <cagney@redhat.com>
9339
9340 * frame.h (struct frame_info): Delete field "pc". Replace
9341 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
9342 structure.
9343 * frame.c (frame_pc_unwind): Update.
9344 (create_sentinel_frame): Do not set "pc".
9345 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
9346 (get_frame_pc): Call frame_pc_unwind.
9347 (deprecated_update_frame_pc_hack): Update.
9348 (create_new_frame): Use "pc" not "->pc".
9349
90a6fffb
AC
93502003-04-09 Andrew Cagney <cagney@redhat.com>
9351
9352 * frame.c (get_frame_id): Eliminate code updating "frame".
9353 (legacy_get_prev_frame): Ditto.
9354 (get_frame_base): Return id.base directly.
9355 (deprecated_update_frame_base_hack): Update "id.base".
9356 * frame.h (struct frame_info): Delete field "frame".
9357
2fbce691
AC
93582003-04-09 Andrew Cagney <cagney@redhat.com>
9359
9360 * NEWS: Mention that the "Sequent family" is obsolete.
9361 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
9362 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9363 * configure.host: Obsolete i[3456]86-sequent-bsd*,
9364 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9365 * config/i386/tm-ptx4.h: Obsolete file.
9366 * config/i386/tm-ptx.h: Obsolete file.
9367 * symm-tdep.c: Obsolete file.
9368 * config/i386/symmetry.mt: Obsolete file.
9369 * config/i386/tm-symmetry.h: Obsolete file.
9370 * symm-nat.c: Obsolete file.
9371 * config/i386/nm-symmetry.h: Obsolete file.
9372 * config/i386/xm-symmetry.h: Obsolete file.
9373 * config/i386/symmetry.mh: Obsolete file.
9374 * config/i386/nm-ptx4.h: Obsolete file.
9375 * config/i386/ptx4.mh: Obsolete file.
9376 * config/i386/ptx.mt: Obsolete file.
9377 * config/i386/ptx.mh: Obsolete file.
9378 * config/i386/xm-ptx4.h: Obsolete file.
9379 * config/i386/xm-ptx.h: Obsolete file.
9380
78c43945
AC
93812003-04-09 Andrew Cagney <cagney@redhat.com>
9382
9383 Obsolete mips*-*-mach3*.
9384 * NEWS: Mention that mips*-*-mach3* is obsolete.
9385 * m3-nat.c: Obsolete file.
9386 * config/nm-m3.h: Obsolete file.
9387 * config/mips/tm-mipsm3.h: Obsolete file.
9388 * config/mips/mipsm3.mt: Obsolete file.
9389 * config/mips/mipsm3.mh: Obsolete file.
9390 * config/mips/xm-mipsm3.h: Obsolete file.
9391 * mipsm3-nat.c: Obsolete file.
9392 * configure.host: Obsolete mips-dec-mach3*.
9393 * configure.tgt: Obsolete mips*-*-mach3*.
9394
f1908289
AC
93952003-04-09 Andrew Cagney <cagney@redhat.com>
9396
9397 * doublest.h: Update copyright.
9398 (deprecated_store_floating, deprecated_extract_floating): Rename
9399 store_floating and extract_floating. Update comments.
9400 * doublest.c: Update copyright.
9401 (extract_floating_by_length): Replace extract_floating.
9402 (store_floating_by_length): Replace store_floating.
9403 (deprecated_extract_floating): New function.
9404 (deprecated_store_floating): New function.
9405 (extract_typed_floating): Call extract_floating_by_length.
9406 (store_typed_floating): Call store_floating_by_length.
9407 * x86-64-tdep.c (x86_64_store_return_value): Update.
9408 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
9409 (sh64_extract_return_value): Update.
9410 (sh_sh4_register_convert_to_virtual): Update.
9411 (sh_sh64_register_convert_to_virtual): Update.
9412 (sh_sh4_register_convert_to_raw): Update.
9413 (sh_sh64_register_convert_to_raw): Update.
9414 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
9415 (rs6000_register_convert_to_raw): Update.
9416 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
9417 (ia64_register_convert_to_raw): Update.
9418 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
9419 (REGISTER_CONVERT_TO_VIRTUAL): Update.
9420 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
9421 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
9422 (alpha_register_convert_to_raw): Update.
9423
4443bd83
AC
94242003-04-08 Andrew Cagney <cagney@redhat.com>
9425
9426 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
9427 * gdbarch.h, gdbarch.c: Re-generate.
9428 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
9429 (d10v_gdbarch_init): Do not set saved_pc_after_call.
9430 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
9431 conditionally, use frame_pc_unwind as an alternative. Add
9432 comments.
9433 * arch-utils.c (init_frame_pc_default): Only call
9434 SAVED_PC_AFTER_CALL when available.
9435
c0236d92
EZ
94362003-04-08 Elena Zannoni <ezannoni@redhat.com>
9437
fbe586ae 9438 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
9439 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
9440 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
9441 (start_remote): Ditto.
9442 (handle_inferior_event): Ditto.
9443 (save_inferior_status): Ditto.
9444 (restore_inferior_status): Ditto.
9445 * infcmd.c (attach_command): Ditto.
9446 * fork-child.c (startup_inferior): Ditto.
fbe586ae 9447 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
9448 * alpha-tdep.c (heuristic_proc_start): Ditto.
9449 * mips-tdep.c (heuristic_proc_start): Ditto.
9450 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
9451 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
9452 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
9453 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
9454 * remote-vx.c (vx_create_inferior): Ditto.
9455
94562003-04-08 Elena Zannoni <ezannoni@redhat.com>
9457
9458 * infrun.c (stop_soon_quietly): Make it an enum, to better
9459 override the default behavior of handle_inferior_event.
9460 (clear_proceed_status): Update uses of stop_soon_quietly to
9461 reflect that it is now an enum.
9462 (start_remote): Ditto.
9463 (handle_inferior_event): Change logic a bit if stop_soon_quietly
9464 is set to handle the new GNU/Linux kernel behavior for
9465 attach/sigstop. Update uses of stop_soon_quietly.
9466 * inferior.h (enum stop_kind): New enum.
9467 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
9468 Reset normal handle_inferior_event behavior, afterwards.
9469 * fork-child.c (startup_inferior): Update.
9470 * alpha-tdep.c (heuristic_proc_start): Update.
9471 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
9472 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
9473 * solib-osf.c (osf_solib_create_inferior_hook): Update.
9474 * solib-irix.c (irix_solib_create_inferior_hook): Update.
9475 * remote-vx.c (vx_create_inferior): Update.
9476 * mips-tdep.c (heuristic_proc_start): Update.
9477
1211bce3
EZ
94782003-04-07 Elena Zannoni <ezannoni@redhat.com>
9479
9480 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 9481 be freed more than once, causing wild memory corruptions.
1211bce3 9482 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 9483 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 9484 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 9485 with the "core" target.
1211bce3 9486
f0ef6b29
KB
94872003-04-07 Kevin Buettner <kevinb@redhat.com>
9488
9489 * mips-tdep.c (mips_print_fp_register): New function, created from
9490 do_fp_register_row(). Registers are now (also) printed as hex.
9491 Only one register is printed per row.
9492 (mips_print_register, do_fp_register_row): Print floating point
9493 registers with mips_print_fp_register().
9494
8cf71652
AC
94952003-04-06 Andrew Cagney <cagney@redhat.com>
9496
5e488a7b
AC
9497 * valprint.h (inspect_it): Add extern declaration.
9498 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
9499 (selectors_info, classes_info): Ditto.
9500 (find_objc_msgcall): Fix indentation.
9501 (objc_printstr): Delete extern declarations.
9502
8cf71652
AC
9503 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
9504
e6ba3bc9
AC
95052003-04-06 Andrew Cagney <cagney@redhat.com>
9506
9507 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
9508 Update comment.
9509 * frame.c (legacy_saved_regs_this_id): Update.
9510 (legacy_get_prev_frame): Update.
9511 * xstormy16-tdep.c: Update comment.
9512 * sparc-tdep.c (sparc_frame_chain): Update comment.
9513 * blockframe.c (legacy_frame_chain_valid): Update.
9514
55e1d7e7
AC
95152003-04-06 Andrew Cagney <cagney@redhat.com>
9516
996179ee
AC
9517 * valprint.c (val_print_type_code_int): Delete #ifdef
9518 PRINT_TYPELESS_INTEGER code.
9519
55e1d7e7
AC
9520 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
9521 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
9522 multi-arch definition.
9523 * gdbarch.h: Re-generate.
9524
43bd9a9e
AC
95252003-04-05 Andrew Cagney <cagney@redhat.com>
9526
9527 Eliminate FRAME_FIND_SAVED_REGS.
9528 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9529 Change FSR parameter to a pointer.
9530 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
9531 Assume FSR parameter is a pointer.
9532 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9533 Make fsr a pointer.
9534 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
9535 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
9536 saved_regs a pointer.
9537 (hppa_frame_saved_pc): Ditto.
9538 (find_dummy_frame_regs): Make frame_saved_regs a pointer
9539 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
9540 pointer.
9541 (restore_pc_queue): Make fsr a pointer.
9542 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
9543 (hppa_frame_chain): Make saved_regs a pointer, call
9544 hppa_frame_init_saved_regs.
9545 * sparc-tdep.c: Include "gdb_assert.h".
9546 (sparc_frame_find_saved_regs): Replace internal_error with
9547 gdb_assert.
9548 * remote-vxsparc.c (vx_read_register): Delete reference to
9549 FRAME_FIND_SAVED_REGS.
9550 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
9551 * gdbarch.h: Regenerate.
9552 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9553 (deprecated_get_frame_saved_regs): Delete declaration.
9554 (struct frame_saved_regs): Delete definition.
9555 * frame.c (deprecated_get_frame_saved_regs): Delete function.
9556 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
9557 (hppa_frame_find_saved_regs): Delete declaration.
9558 (FRAME_FIND_SAVED_REGS): Delete macro.
9559 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
9560 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
9561 FRAME_FIND_SAVED_REGS in comment.
9562
be41e9f4
AC
95632003-04-05 Andrew Cagney <cagney@redhat.com>
9564
9565 * frame.c (frame_func_unwind, get_frame_func): New functions.
9566 * frame.h (get_frame_func, frame_func_unwind): Declare.
9567 (struct frame_info): Add field "prev_func" for caching the
9568 previous frame's function address.
9569 * arm-tdep.c (arm_frameless_function_invocation): Combine
9570 get_pc_function_start and get_frame_pc into get_frame_func.
9571 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9572 (sh64_nofp_frame_init_saved_regs): Ditto.
9573 * s390-tdep.c (s390_function_start): Ditto.
9574 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
9575 (rs6000_frameless_function_invocation): Ditto.
9576 (rs6000_frame_saved_pc): Ditto.
9577 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
9578 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
9579 * i386-tdep.c (i386_frameless_signal_p): Ditto.
9580 (i386_frame_init_saved_regs): Ditto.
9581 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
9582 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
9583 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
9584 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
9585 * blockframe.c (frameless_look_for_prologue): Ditto.
9586
a01dd7cc
AC
95872003-04-05 Andrew Cagney <cagney@redhat.com>
9588
9589 * frame.c (legacy_get_prev_frame): Link prev to next at the
9590 function start. Update comments.
9591
5e5592e6
AC
95922003-04-05 Andrew Cagney <cagney@redhat.com>
9593
9594 * frame.c (get_frame_id): Update comment.
9595 (legacy_get_prev_frame): Update comment.
9596 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
9597 * gdbarch.h: Regenerate.
9598 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
9599 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
9600
6fba5002
AC
96012003-04-05 Andrew Cagney <cagney@redhat.com>
9602
9603 * stack.c (print_frame_info): Use get_frame_pc.
9604
7df05f2b
AC
96052003-04-04 Andrew Cagney <cagney@redhat.com>
9606
9607 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
9608 the frame's type from the unwinder.
9609 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
9610 (create_new_frame, legacy_get_prev_frame): When the unwinder's
9611 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
9612 (get_frame_base_address): Use get_frame_type.
9613 (get_frame_locals_address, get_frame_args_address): Ditto.
9614 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
9615 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
9616 (struct frame_info): Add comment explaining why the frame contains
9617 a "type" field.
9618 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
9619 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
9620 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
9621 NORMAL_FRAME.
9622 * frame-unwind.h: Include "frame.h".
9623 (struct frame_unwind): Add "type" field.
9624 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 9625
11889732
AC
96262003-04-04 Andrew Cagney <cagney@redhat.com>
9627
9628 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
9629 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
9630 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
9631 get_frame_base.
9632 (d10v_unwind_dummy_id): Use frame_id_build.
9633 * frame.c (find_frame_sal): Use get_frame_pc.
9634 (create_new_frame): Use deprecated_update_frame_pc_hack and
9635 deprecated_update_frame_base_hack.
9636 (create_sentinel_frame): Add comment about ->pc going away.
9637 (get_prev_frame): Add comment about ->pc going away.
9638 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
9639 frame_id_build, deprecated_update_frame_pc_hack and
9640 deprecated_update_frame_base_hack.
9641 (select_frame): Use get_frame_pc.
9642 (legacy_saved_regs_this_id): Use frame_id_build.
9643
50c46a0d
EZ
96442003-04-04 Elena Zannoni <ezannoni@redhat.com>
9645
fbe586ae
RH
9646 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
9647 signed integer case.
9648 (classify_argument): Handle enumerations and references.
50c46a0d 9649
50bbdbd9
AC
96502003-04-04 Andrew Cagney <cagney@redhat.com>
9651
9652 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
9653 ID to NULL.
9654
36018d2e
AF
96552003-04-01 Adam Fedor <fedor@gnu.org>
9656
9657 * gdb/objc-lang.c (selectors_info): Replace calls to
9658 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
9659 SYMBOL_NATURAL_NAME.
9660 (classes_info, find_methods): Likewise.
9661
35cec841
KB
96622003-04-03 Kevin Buettner <kevinb@redhat.com>
9663
9664 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
9665 ``mach'' to the value determined by bfd_default_set_arch_mach().
9666
43136899
BR
96672003-04-02 Bob Rossi <bob_rossi@cox.net>
9668
9669 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
9670 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
9671 (mi-cmd-file.o): Update dependencies.
9672
040b99fd
KB
96732003-04-01 Kevin Buettner <kevinb@redhat.com>
9674
9675 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
9676 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
9677
9a3d7dfd
AF
96782003-04-01 Adam Fedor <fedor@gnu.org>
9679
9680 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
9681 * language.h (struct language_defn): Add la_demangle.
9682 (language_demangle): Declare.
9683 * language.c (language_demangle): New function.
9684 (unk_lang_demangle): Likewise.
9685 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 9686 Add ukn_lang_demangle.
9a3d7dfd 9687 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 9688 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
9689 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
9690 (cplus_language_defn): Add cplus_demangle for la_demangle element.
9691 * jv-lang.c (java_demangle): New function
9692 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
9693 * objc-lang.c (objc_demangle): Add options argument
9694 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
9695 * maint.c (maintenance_demangle): Replace switch with
9696 call to language_demangle.
9697 * utils.c (fprintf_symbol_filtered): Likewise.
9698
5e074003
AC
96992003-04-01 Andrew Cagney <cagney@redhat.com>
9700
9701 * printcmd.c (print_frame_nameless_args): Delete #ifdef
9702 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
9703 PRINT_TYPELESS_INTEGER.
9704 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
9705 PUSH_RETURN_ADDRESS.
9706
270cb5d6
AC
97072003-04-01 Andrew Cagney <cagney@redhat.com>
9708
9709 * Makefile.in (d10v-tdep.o): Update dependencies.
9710 * d10v-tdep.c: Include "frame-base.h".
9711 (d10v_frame_unwind): Make constant.
9712 (d10v_frame_base_address): New function.
9713 (d10v_frame_base): New variable.
9714 (d10v_gdbarch_init): Set frame_base default.
9715 (struct d10v_unwind_cache): Add the field "prev_sp". Update
9716 comment for base.
9717 (d10v_frame_unwind_cache): Set and use "prev_sp".
9718 (d10v_frame_this_id): Use the previous frame's inner most stack
9719 address and this frame's func address for the frame ID. Use
9720 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 9721
6bfb3e36
AC
97222003-04-01 Andrew Cagney <cagney@redhat.com>
9723
9724 * frame.h (get_frame_locals_address, get_frame_args_address):
9725 Refer to the base address, instead of the address of the first
9726 local or parameter.
8ffd9b1b 9727
da62e633
AC
97282003-04-01 Andrew Cagney <cagney@redhat.com>
9729
9730 Add frame debug info addresses:
9731 * frame-base.c: New file.
9732 * frame-base.h: New file.
9733 * frame.h (struct frame_base): Add opaque declaration.
9734 (get_frame_base): Update comment.
9735 (get_frame_base_address): Declare.
9736 (get_frame_locals_address): Declare.
9737 (get_frame_args_address): Declare.
9738 (struct frame_info): Add "base" and "base_cache". Update
9739 comments on the unwinder.
9740 * frame.c: Include "frame-base.h".
9741 (get_frame_locals_address): New function.
9742 (get_frame_base_address): New function.
9743 (get_frame_args_address): New function.
9744 * findvar.c (read_var_value): Use get_frame_locals_address and
9745 get_frame_args_address.
9746 * stack.c (frame_info): Use get_frame_locals_address and
9747 get_frame_args_address.
9748 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
9749 moved to "frame-base.c".
9750 * printcmd.c (print_frame_nameless_args): Ditto.
9751 * symtab.h (address_class): Update comments.
9752 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
9753 get_frame_base_address.
9754 * dwarf2expr.c (execute_stack_op): Ditto.
9755 * Makefile.in (frame_base_h): Define.
9756 (frame.o): Update dependencies.
9757 (frame-base.o): Add dependencies.
9758 (SFILES): Add frame-base.c.
9759 (COMMON_OBS): Add frame-base.o.
9760
3d30e9c2
AC
97612003-04-01 Andrew Cagney <cagney@redhat.com>
9762
9763 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
9764 CALL_DUMMY_LENGTH): Ditto.
9765 * gdbarch.c: Re-generate.
9766 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
9767 (CALL_DUMMY_LENGTH): Delete macro.
9768 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
9769 * arm-tdep.c (arm_gdbarch_init): Ditto.
9770 * avr-tdep.c (avr_gdbarch_init): Ditto.
9771 * cris-tdep.c (cris_gdbarch_init): Ditto.
9772 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9773 * frv-tdep.c (frv_gdbarch_init): Ditto.
9774 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9775 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9776 * i386-tdep.c (i386_gdbarch_init): Ditto.
9777 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9778 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9779 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9780 * mips-tdep.c (mips_gdbarch_init): Ditto.
9781 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9782 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9783 * s390-tdep.c (s390_gdbarch_init): Ditto.
9784 * sh-tdep.c (sh_gdbarch_init): Ditto.
9785 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9786 * v850-tdep.c (v850_gdbarch_init): Ditto.
9787 * vax-tdep.c (vax_gdbarch_init): Ditto.
9788 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9789
ce0c7262
CV
97902003-04-01 Corinna Vinschen <vinschen@redhat.com>
9791
9792 * frame.c (get_prev_frame): Disable call to inside_entry_file().
9793
73dd234f
AC
97942003-04-01 Andrew Cagney <cagney@redhat.com>
9795
9796 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
9797 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9798 * gdbarch.h, gdbarch.c: Re-generate.
9799 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9800 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9801 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9802 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9803 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9804 * infcmd.c (run_stack_dummy): Simplify assuming
9805 CALL_DUMMY_BREAKPOINT_OFFSET_P.
9806 * infrun.c (handle_inferior_event): Ditto.
9807 * alpha-tdep.c (alpha_gdbarch_init): Do not set
9808 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
9809 * arm-tdep.c (arm_gdbarch_init): Ditto.
9810 * avr-tdep.c (avr_gdbarch_init): Ditto.
9811 * cris-tdep.c (cris_gdbarch_init): Ditto.
9812 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9813 * frv-tdep.c (frv_gdbarch_init): Ditto.
9814 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9815 * i386-tdep.c (i386_gdbarch_init): Ditto.
9816 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9817 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9818 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9819 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9820 * mips-tdep.c (mips_gdbarch_init): Ditto.
9821 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9822 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9823 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9824 * s390-tdep.c (s390_gdbarch_init): Ditto.
9825 * sh-tdep.c (sh_gdbarch_init): Ditto.
9826 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9827 * v850-tdep.c (v850_gdbarch_init): Ditto.
9828 * vax-tdep.c (vax_gdbarch_init): Ditto.
9829 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9830
97606a13
DJ
98312003-04-01 Daniel Jacobowitz <drow@mvista.com>
9832
9833 * symfile.c (symfile_relocate_debug_section): Update call to
9834 bfd_simple_get_relocated_section_contents.
9835
e8ab51f7
AC
98362003-03-31 Andrew Cagney <cagney@redhat.com>
9837
9838 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9839 * gdbarch.h, gdbarch.c: Regenerate.
9840 * inferior.h (FIX_CALL_DUMMY): Delete macro.
9841 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9842 available.
9843 * frame.h (generic_fix_call_dummy): Delete declaration.
9844 * dummy-frame.h: Update comment.
9845 * dummy-frame.c (generic_fix_call_dummy): Delete function.
9846 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9847 fix_call_dummy.
9848 * sh-tdep.c (sh_gdbarch_init): Ditto.
9849 * s390-tdep.c (s390_gdbarch_init): Ditto.
9850 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9851 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9852 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9853 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9854 * i386-tdep.c (i386_gdbarch_init): Ditto.
9855 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9856 * frv-tdep.c (frv_gdbarch_init): Ditto.
9857 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9858 * cris-tdep.c (cris_gdbarch_init): Ditto.
9859 * avr-tdep.c (avr_gdbarch_init): Ditto.
9860 * arm-tdep.c (arm_gdbarch_init): Ditto.
9861
018d1b48
JB
98622003-03-31 J. Brobecker <brobecker@gnat.com>
9863
9864 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9865 (INIT_FRAME_AP): Likewise.
9866 (EXTRA_FRAME_INFO): Likewise.
9867
e9a2674e
AC
98682003-03-31 Andrew Cagney <cagney@redhat.com>
9869
9870 * gdbarch.sh: Include "symfile.h".
9871 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9872 * gdbarch.h, gdbarch.c: Re-generate.
9873 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9874 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9875 call_dummy_address, the default is at entry_point_address.
9876 * v850-tdep.c (v850_gdbarch_init): Ditto.
9877 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9878 * sh-tdep.c (sh_gdbarch_init): Ditto.
9879 * s390-tdep.c (s390_gdbarch_init): Ditto.
9880 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9881 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9882 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9883 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9884 * i386-tdep.c (i386_gdbarch_init): Ditto.
9885 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9886 * frv-tdep.c (frv_gdbarch_init): Ditto.
9887 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9888 * cris-tdep.c (cris_gdbarch_init): Ditto.
9889 * arm-tdep.c (arm_gdbarch_init): Ditto.
9890
e8a8712a
AC
98912003-03-31 Andrew Cagney <cagney@redhat.com>
9892
9893 * gdbarch.sh (CALL_DUMMY_P): Delete.
9894 * gdbarch.h, gdbarch.c: Re-generate.
9895 * inferior.h (CALL_DUMMY_P): Delete macro.
9896 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9897 * vax-tdep.c (vax_gdbarch_init): Update.
9898 * v850-tdep.c (v850_gdbarch_init): Update.
9899 * sparc-tdep.c (sparc_gdbarch_init): Update.
9900 * sh-tdep.c (sh_gdbarch_init): Update.
9901 * s390-tdep.c (s390_gdbarch_init): Update.
9902 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9903 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9904 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9905 * mips-tdep.c (mips_gdbarch_init): Update.
9906 * mcore-tdep.c (mcore_gdbarch_init): Update.
9907 * m68k-tdep.c (m68k_gdbarch_init): Update.
9908 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9909 * ia64-tdep.c (ia64_gdbarch_init): Update.
9910 * i386-tdep.c (i386_gdbarch_init): Update.
9911 * h8300-tdep.c (h8300_gdbarch_init): Update.
9912 * frv-tdep.c (frv_gdbarch_init): Update.
9913 * d10v-tdep.c (d10v_gdbarch_init): Update.
9914 * cris-tdep.c (cris_gdbarch_init): Update.
9915 * breakpoint.c (deprecated_frame_in_dummy): Update.
9916 * avr-tdep.c (avr_gdbarch_init): Update.
9917 * alpha-tdep.c (alpha_gdbarch_init): Update.
9918 * arm-tdep.c (arm_gdbarch_init): Update.
9919 * dummy-frame.c (dummy_frame_this_id): Update comments.
9920 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9921 * frame.c (legacy_get_prev_frame): Ditto.
9922 * valops.c (call_function_by_hand): Delete function.
9923 (hand_function_call): Rename to call_function_by_hand
9924
ed234cf8
AC
99252003-03-30 Andrew Cagney <cagney@redhat.com>
9926
9927 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 9928 * value.h (struct value): Update comment.
ed234cf8 9929
06c77151
AC
99302003-03-30 Andrew Cagney <cagney@redhat.com>
9931
6c2b5168
AC
9932 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9933 D10V_FP_REGNUM.
9934 (d10v_gdbarch_init): Do not set fp_regnum.
9935
06c77151
AC
9936 * frame.c (get_frame_base): Force ID initialization.
9937 (get_prev_frame): Move computation of the frame ID from here ...
9938 (get_frame_id): ... to here.
9939 (legacy_get_prev_frame): Mark the frame ID as valid.
9940 * frame.h (struct frame_info): Add field "id_p".
9941
97a1a11c
MK
99422003-03-30 Mark Kettenis <kettenis@gnu.org>
9943
9944 * i386-tdep.c (i386_store_struct_return): Removed.
9945 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9946
6c0e89ed
AC
99472003-03-30 Andrew Cagney <cagney@redhat.com>
9948
9949 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9950 * gdbarch.h, gdbarch.c: Regenerate.
9951 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9952 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9953 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9954 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9955 * i386-tdep.c (i386_gdbarch_init): Ditto.
9956 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9957 * cris-tdep.c (cris_gdbarch_init): Ditto.
9958 * vax-tdep.c (vax_gdbarch_init): Ditto.
9959 * s390-tdep.c (s390_gdbarch_init): Ditto.
9960 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9961 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9962 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9963 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9964 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9965 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9966 * sparc-tdep.c (sparc_gdbarch_init): Update.
9967 * sh-tdep.c (sh_gdbarch_init): Update.
9968 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9969 * mips-tdep.c (mips_gdbarch_init): Update.
9970 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9971 * ia64-tdep.c (ia64_gdbarch_init): Update.
9972 * frv-tdep.c (frv_gdbarch_init): Update.
9973 * avr-tdep.c (avr_gdbarch_init): Update.
9974 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9975 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9976 instead of when push_dummy_call is not available.
8ffd9b1b 9977
f7dd6af2
AC
99782003-03-30 Andrew Cagney <cagney@redhat.com>
9979
9980 * infttrace.c: Include "gdbthread.h".
9981 (parent_attach_all): Fix function signature.
9982 (call_ptrace): Update call.
9983 * Makefile.in (infttrace.o): Update dependencies.
9984
28f617b3
AC
99852003-03-30 Andrew Cagney <cagney@redhat.com>
9986
9987 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9988 PUSH_RETURN_ADDRESS.
9989 * gdbarch.h, gdbarch.c: Regenerate.
9990 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9991 * x86-64-tdep.c (x86_64_init_abi): Update.
9992 * v850-tdep.c (v850_gdbarch_init): Update.
9993 * sparc-tdep.c (sparc_gdbarch_init): Update.
9994 * sh-tdep.c (sh_gdbarch_init): Update.
9995 * s390-tdep.c (s390_gdbarch_init): Update.
9996 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9997 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9998 * mips-tdep.c (mips_gdbarch_init): Update.
9999 * mcore-tdep.c (mcore_gdbarch_init): Update.
10000 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10001 * ia64-tdep.c (ia64_gdbarch_init): Update.
10002 * i386-tdep.c (i386_gdbarch_init): Update.
10003 * h8300-tdep.c (h8300_gdbarch_init): Update.
10004 * frv-tdep.c (frv_gdbarch_init): Update.
10005 * cris-tdep.c (cris_gdbarch_init): Update.
10006 * avr-tdep.c (avr_gdbarch_init): Update.
10007 * arm-tdep.c (arm_gdbarch_init): Update.
10008 * valops.c (hand_function_call): Update.
10009
4d628cd7
AC
100102003-03-29 Andrew Cagney <cagney@redhat.com>
10011
10012 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10013 sizeof_call_dummy_words.
10014 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10015 define.
10016 * gdbarch.h: Regenerate.
8ffd9b1b 10017
65e82032
AC
100182003-03-29 Andrew Cagney <cagney@redhat.com>
10019
10020 * infttrace.h: New file.
10021 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10022 (hpread_get_textlow): Detect an uninitialized dn_bufp.
10023 (hpread_read_doc_function_type): Detect an initialized type1.
10024 (hpread_quick_traverse): Initialize mod_name_string.
10025 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10026 (som_solib_get_solib_by_pc): Declare.
10027 (so_lib_thread_start_addr): Declare.
10028 (no_shared_libraries): Declare.
10029 * somread.c (init_import_symbols): Make static. Add forward
10030 declaration.
10031 * config/pa/nm-hppah.h: Include "infttrace.h" for
10032 parent_attach_all.
10033 (hppa_insert_hw_watchpoint): Declare.
10034 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10035 * hppah-nat.c: Include "gdb_string.h".
10036 (parent_attach_all): Delete extern declaration, moved to
10037 "infttrace.h".
10038 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10039 int.
10040 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10041 * Makefile.in (infttrace_h): Define.
10042 (hpread.o): Update dependencies.
10043 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10044 * hppa-hpux-tdep.c: Include "gdb_string.h".
10045 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10046 * infrun.c (handle_inferior_event): Always initialize
10047 stepped_after_stopped_by_watchpoint. Add default and remove
10048 fallthrough in switch statement.
10049 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10050 parameter to int.
10051 (hppa_remove_hw_watchpoint): Ditto.
10052
2c3bbe77
AC
100532003-03-29 Andrew Cagney <cagney@redhat.com>
10054
10055 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
10056 offset.
10057
2dd604e7
RE
100582003-03-29 Richard Earnshaw <rearnsha@arm.com>
10059
10060 * arm-tdep.c (arm_push_arguments): Delete.
10061 (struct stack_item): New type.
10062 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
10063 (arm_store_struct_return): Delte.
10064 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
10065 arm_push_arguments or arm_store_struct_return.
10066
e8933a55
AC
100672003-03-28 Andrew Cagney <cagney@redhat.com>
10068
10069 * Makefile.in (d10v-tdep.o): Update dependencies.
10070 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
10071 * d10v-tdep.c: Include "remote.h".
10072 (target_resume_hook): Delete extern declaration.
10073 (target_wait_loop_hook): Ditto.
10074 (tdisassemble_command): Eliminate assignment in "if" conditional.
10075 (d10v_ts2_register_sim_regno): Eliminate call to
10076 legacy_register_sim_regno.
10077 (d10v_ts3_register_sim_regno): Ditto.
10078
6949171e
JJ
100792003-03-28 Jeff Johnston <jjohnstn@redhat.com>
10080
10081 * thread.c: Reindented.
10082 * lin-lwp.c: Ditto.
10083 * linux-proc.c: Ditto.
10084
98c7071f
BR
100852003-03-28 Bob Rossi <bob_rossi@cox.net>
10086
fbe586ae 10087 * MAINTAINERS (write after approval): Add myself.
98c7071f 10088
5edc9ca6
TR
100892003-03-27 Theodore A. Roth <troth@openavr.org>
10090
10091 * objc-exp.y: Add missing semi-colons.
10092
378bfd1b
AC
100932003-03-27 Andrew Cagney <cagney@redhat.com>
10094
10095 * regcache.c (write_sp): Delete function and references.
10096 * inferior.h (write_sp): Delete declaration.
10097 * valops.c (hand_function_call): Replace write_sp with
10098 TARGET_WRITE_SP.
10099 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
10100 (sparc_pop_frame): Ditto.
8ffd9b1b 10101
56056df7
AC
101022003-03-27 Andrew Cagney <cagney@redhat.com>
10103
10104 * NEWS: Mention removal of support for hppa*-*-bsd* and
10105 hppa*-*-osf* natives, and hppa*-*-pro* target.
10106 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
10107 * config/pa/xm-pa.h: Obsolete file.
10108 * config/pa/xm-hppab.h: Obsolete file.
10109 * config/pa/nm-hppab.h: Obsolete file.
10110 * config/pa/tm-hppab.h: Obsolete file.
10111 * config/pa/tm-hppao.h: Obsolete file.
10112 * config/pa/nm-hppao.h: Obsolete file.
10113 * config/pa/tm-pro.h: Obsolete file.
10114 * config/pa/hppaosf.mt: Obsolete file.
10115 * config/pa/hppaosf.mh: Obsolete file.
10116 * config/pa/hppapro.mt: Obsolete file.
10117 * config/pa/hppabsd.mt: Obsolete file.
10118 * config/pa/hppabsd.mh: Obsolete file.
10119 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
10120 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
10121 hppa*-*-osf*.
10122
5873a88d
AC
101232003-03-27 Andrew Cagney <cagney@redhat.com>
10124
10125 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
10126 push_arguments. Don't set push_return_address or write_sp.
10127 (d10v_push_dummy_call): Replace d10v_push_arguments.
10128 (d10v_push_return_address, d10v_write_sp): Delete function,
10129 handled by push_dummy_call.
10130
b81774d8
AC
101312003-03-26 Andrew Cagney <cagney@redhat.com>
10132
10133 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
10134 (push_dummy_call): New pure multi-arch replacement with gdbarch,
10135 regcache and dummy_addr parameters.
10136 * gdbarch.h, gdbarch.c: Re-generate.
10137 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
10138 available; assume it will handle stack alignment and return
10139 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
10140 legacy_push_arguments.
10141 (legacy_push_arguments): Rename default_push_arguments.
10142 * value.h (legacy_push_arguments): Rename default_push_arguments.
10143 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
10144 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10145 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10146 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10147 * config/i386/tm-symmetry.h: Update.
10148 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10149 * x86-64-tdep.c (x86_64_init_abi): Update.
10150 * v850-tdep.c (v850_gdbarch_init): Update.
10151 * sparc-tdep.c (sparc_gdbarch_init): Update.
10152 * sh-tdep.c (sh_gdbarch_init): Update.
10153 * s390-tdep.c (s390_gdbarch_init): Update.
10154 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10155 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10156 * mips-tdep.c (mips_gdbarch_init): Update.
10157 * mcore-tdep.c (mcore_gdbarch_init): Update.
10158 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10159 * ia64-tdep.c (ia64_gdbarch_init): Update.
10160 * i386-tdep.c (i386_gdbarch_init): Update.
10161 * hppa-tdep.c (hppa_gdbarch_init): Update.
10162 * h8300-tdep.c (h8300_gdbarch_init): Update.
10163 * frv-tdep.c (frv_gdbarch_init): Update.
10164 * d10v-tdep.c (d10v_gdbarch_init): Update.
10165 * cris-tdep.c (cris_gdbarch_init): Update.
10166 * avr-tdep.c (avr_gdbarch_init): Update.
10167 * arm-tdep.c (arm_gdbarch_init): Update.
10168 * arm-linux-tdep.c (arm_linux_init_abi): Update.
10169 * alpha-tdep.c (alpha_gdbarch_init): Update.
10170
f541410f
DJ
101712003-03-26 Daniel Jacobowitz <drow@mvista.com>
10172
10173 * signals/signals.c (do_target_signal_to_host): Correct realtime
10174 signal range test.
10175
69f567ae
DJ
101762003-03-26 Daniel Jacobowitz <drow@mvista.com>
10177
10178 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
10179 (struct sal_chain, map_catch_names): Remove.
10180 (catch_exception_command_1): Don't call
10181 handle_gnu_4_16_catch_command.
10182
d5d14a5a
DJ
101832003-03-26 Daniel Jacobowitz <drow@mvista.com>
10184
10185 From Mark Dettinger <dettinge@de.ibm.com>:
10186 * dwarf2cfi.c (read_2u): Increment pointer by two.
10187
bdd73e22
DJ
101882003-03-26 Daniel Jacobowitz <drow@mvista.com>
10189
10190 * signals/signals.c: Fix typos in last change.
10191
960cb555
DJ
101922003-03-26 Daniel Jacobowitz <drow@mvista.com>
10193
10194 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
10195 not already defined. Use __SIGRTMIN if available.
10196 (target_signal_from_host): Remove SIGRTMIN block.
10197 (do_target_signal_to_host): Remove SIGRTMIN block; check that
10198 the signal is within the realtime range.
10199
f636b87d
AF
102002003-03-25 Adam Fedor <fedor@gnu.org>
10201
10202 * Makefile.in (infrun.o): Add $(language_h)
10203 * infrun.c (handle_inferior_event): Use skip_language_trampoline
10204 for language specific trampolines.
10205 * language.h (struct language_defn): Add skip_trampoline.
10206 (skip_language_trampoline): Declare.
10207 * language.c (unk_lang_trampoline, skip_language_trampoline):
10208 New functions.
10209 (unknown_language_defn, auto_language_defn, local_language_defn):
10210 Add ukn_lang_trampoline.
10211 * ada-lang.c (ada_language_defn): Add NULL for language
10212 specific skip_trampoline.
10213 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
10214 scm-lang.c: Likewise.
10215 * objc-lang.c (objc_skip_trampoline): New function.
10216 (objc_language_defn): Add objc_skip_trampoline.
10217
28f617b3 102182003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
10219
10220 * frame.c (get_prev_frame): Delay validating a frame's ID -
10221 non-NULL, didn't go backwards - until an attempt to unwind it to
10222 the previous frame.
10223
f933a9c5
AC
102242003-03-25 Andrew Cagney <cagney@redhat.com>
10225
10226 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
10227 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
10228 * gdbarch.h, gdbarch.c: Re-generate.
10229 * config/sparc/tm-sparc.h
10230 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
10231 * sparc-tdep.c (sparc_gdbarch_init): Set
10232 deprecated_extra_stack_alignment_needed.
10233 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10234 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
10235 extra_stack_alignment_needed.
10236 * v850-tdep.c (v850_gdbarch_init): Ditto.
10237 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10238 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10239 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10240 * cris-tdep.c (cris_gdbarch_init): Ditto.
10241 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10242 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 10243
4183d812
AC
102442003-03-25 Andrew Cagney <cagney@redhat.com>
10245
10246 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
10247 STORE_STRUCT_RETURN.
10248 * gdbarch.h, gdbarch.c: Regenerate.
10249 * d10v-tdep.c (d10v_store_struct_return): Delete function.
10250 (d10v_push_arguments): Set the struct return register.
10251 (d10v_gdbarch_init): Update.
10252 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10253 * x86-64-tdep.c (x86_64_init_abi): Update.
10254 * vax-tdep.c (vax_gdbarch_init): Update.
10255 * v850-tdep.c (v850_gdbarch_init): Update.
10256 * sparc-tdep.c (sparc_gdbarch_init): Update.
10257 * sh-tdep.c (sh_gdbarch_init): Update.
10258 * s390-tdep.c (s390_gdbarch_init): Update.
10259 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10260 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10261 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10262 * mips-tdep.c (mips_gdbarch_init): Update.
10263 * mcore-tdep.c (mcore_gdbarch_init): Update.
10264 * m68k-tdep.c (m68k_gdbarch_init): Update.
10265 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10266 * ia64-tdep.c (ia64_gdbarch_init): Update.
10267 * i386-tdep.c (i386_gdbarch_init): Update.
10268 * hppa-tdep.c (hppa_gdbarch_init): Update.
10269 * h8300-tdep.c (h8300_gdbarch_init): Update.
10270 * frv-tdep.c (frv_gdbarch_init): Update.
10271 * cris-tdep.c (cris_gdbarch_init): Update.
10272 * avr-tdep.c (avr_gdbarch_init): Update.
10273 * arm-tdep.c (arm_gdbarch_init): Update.
10274 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10275
1bf6d5cc
AC
102762003-03-25 Andrew Cagney <cagney@redhat.com>
10277
10278 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
10279 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
10280 CALL_DUMMY_STACK_ADJUST with a predicate variable.
10281 * gdbarch.h, gdbarch.c: Regenerate.
10282 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10283 call_dummy_stack_adjust_p.
10284 * vax-tdep.c (vax_gdbarch_init): Ditto.
10285 * v850-tdep.c (v850_gdbarch_init): Ditto.
10286 * sh-tdep.c (sh_gdbarch_init): Ditto.
10287 * s390-tdep.c (s390_gdbarch_init): Ditto.
10288 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10289 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10290 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10291 * mips-tdep.c (mips_gdbarch_init): Ditto.
10292 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10293 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10294 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10295 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10296 * i386-tdep.c (i386_gdbarch_init): Ditto.
10297 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10298 * frv-tdep.c (frv_gdbarch_init): Ditto.
10299 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10300 * cris-tdep.c (cris_gdbarch_init): Ditto.
10301 * avr-tdep.c (avr_gdbarch_init): Ditto.
10302 * arm-tdep.c (arm_gdbarch_init): Ditto.
10303 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10304 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10305 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
10306 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10307 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
10308 call_dummy_stack_adjust_p.
10309 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
10310 (CALL_DUMMY_STACK_ADJUST): Delete macro.
10311 * sparc-tdep.c (sparc32_push_arguments): Update.
10312 * valops.c (hand_function_call): Update.
10313
71c08af0
CV
103142003-03-25 Corinna Vinschen <vinschen@redhat.com>
10315
10316 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
10317 set_gdbarch_char_signed.
10318
30757f90
RE
103192003-03-25 Richard Earnshaw <rearnsha@arm.com>
10320
10321 PR cli/548
10322 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
10323
03d48a7d
RE
103242003-03-25 Richard Earnshaw <rearnsha@arm.com>
10325
10326 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
10327 (_initialize_arm_tdep): Don't set tm_print_insn.
10328
2cf6873c
AF
103292003-03-24 Adam Fedor <fedor@gnu.org>
10330
10331 * Makefile.in (YYOBJ): Add objc-exp.tab.o
10332 * objc-lang.h: Add multiple inclusion protection.
10333 (start_msglist, add_msglist, end_msglist): Additional declarations.
10334
17c0759e
RE
103352003-03-24 Richard Earnshaw <rearnsha@arm.com>
10336
10337 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
10338 value was renamed to ARM_FLOAT_SOFT_FPA.
10339
618ce49f
AC
103402003-03-23 Andrew Cagney <cagney@redhat.com>
10341
10342 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
10343 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
10344 * gdbarch.h, gdbarch.c: Regenerate.
10345 * valops.c (hand_function_call): Update.
10346 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10347 * frame.c (legacy_saved_regs_this_id): Update.
10348 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
10349 * dummy-frame.h: Update.
10350 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
10351 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10352 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
10353 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
10354 * config/m68k/tm-sun3.h: Update.
10355 * blockframe.c (inside_main_func, frame_chain_valid): Update.
10356 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10357 * x86-64-tdep.c (x86_64_init_abi): Update.
10358 * vax-tdep.c (vax_gdbarch_init): Update.
10359 * v850-tdep.c (v850_gdbarch_init): Update.
10360 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
10361 * sh-tdep.c (sh_gdbarch_init): Update.
10362 * s390-tdep.c (s390_gdbarch_init): Update.
10363 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
10364 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
10365 (frame_get_saved_regs): Update.
10366 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10367 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10368 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10369 * mips-tdep.c (mips_gdbarch_init): Update.
10370 * mcore-tdep.c (mcore_gdbarch_init): Update.
10371 * m68k-tdep.c (m68k_gdbarch_init): Update.
10372 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10373 * ia64-tdep.c (ia64_gdbarch_init): Update.
10374 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
10375 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10376 (i386_interix_back_one_frame): Update.
10377 * hppa-tdep.c (hppa_gdbarch_init): Update.
10378 (hppa_init_extra_frame_info): Update.
10379 * h8300-tdep.c (h8300_gdbarch_init): Update.
10380 * frv-tdep.c (frv_gdbarch_init): Update.
10381 * cris-tdep.c (cris_gdbarch_init): Update.
10382 * avr-tdep.c (avr_gdbarch_init): Update.
10383 * arm-tdep.c (arm_gdbarch_init): Update.
10384 * alpha-tdep.c (alpha_gdbarch_init): Update.
10385
fd50bc42
RE
103862003-03-22 Richard Earnshaw <rearnsha@arm.com>
10387
10388 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
10389 (arm_get_fp_model): Declare.
10390 * arm-tdep.c (fp_model_strings): New string array.
10391 (arm_fp_model, current_fp_model): New variables.
10392 (arm_get_fp_model): New function.
10393 (arm_set_fp): New function.
10394 (set_fp_model_sfunc): New function.
10395 (show_fp_model): New function.
10396 (_initialize_arm_tdep): Add new command to set/show the FPU.
10397 (arm_extract_return_value): Use arm_get_fp_model.
10398 (arm_store_return_value): Likewise.
10399 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
10400 to initialize the floating-point data types.
10401 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
10402 model is FPA.
10403
26304000
RE
104042003-03-22 Richard Earnshaw <rearnsha@arm.com>
10405
10406 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
10407 the current setting of each value.
10408 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 10409 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
10410 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
10411 commands and add new version as subcommands of "set/show arm".
10412
afd7eef0
RE
104132003-03-22 Richard Earnshaw <rearnsha@arm.com>
10414
10415 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
10416 (set_arm_command, show_arm_command): New functions.
10417 (_initialize_arm_tdep): Add them.
10418 (num_disassembly_options): Renamed from num_flavor_options.
10419 (valid_disassembly_styles): Renamed from valid_flavors.
10420 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 10421 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
10422 set_disassembly_flavor_sfunc.
10423 (set_disassembly_style): Renamed from set_disassembly_flavor.
10424 (arm_othernames): Updated.
10425 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
10426 command. Add "set/show arm disassembly" commands. Deprecate
10427 "othernames" command.
10428
299a7944
RE
104292003-03-22 Richard Earnshaw <rearnsha@arm.com>
10430
10431 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
10432 (arm-tdep.o): Depend on elf_arm_h.
10433
c1dac9e6
RE
104342003-03-22 Richard Earnshaw <rearnsha@arm.com>
10435
10436 * Makefile.in (coff_internal_h): Define.
10437 (arm-tdep.o): Update dependencies.
10438
2702d96c
RE
104392003-03-22 Richard Earnshaw <rearnsha@arm.com>
10440
10441 * arm-tdep.c (prologue_cache): Delete.
10442 (check_prologue_cache, save_prologue_cache): Delete.
10443 (arm_scan_prologue): Don't check or update the prologue_cache.
10444 (arm_gdb_arch_init): Don't initialize it.
10445 (_initialize_arm_tdep): Likewise.
10446
27d5d74b
SC
104472003-03-21 Stephane Carrez <stcarrez@nerim.fr>
10448
10449 * MAINTAINERS (tui): Maintainer of tui code.
10450
1762d96d
CV
104512003-03-21 Corinna Vinschen <vinschen@redhat.com>
10452
10453 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
10454 (i386-cygwin-tdep.o): Add dependencies.
10455 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
10456 * i386-cygwin-tdep.c: New file.
10457 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
10458 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
10459
4c2e2391
AC
104602003-03-20 Andrew Cagney <cagney@redhat.com>
10461
f20d38b7
AC
10462 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
10463 (handle_inferior_event): Remove code calling
10464 DYNAMIC_TRAMPOLINE_NEXTPC.
10465
0022b738
AC
10466 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
10467 already has a full path.
10468
864dbc90
AC
10469 * main.c (gdb_main): Return 1.
10470 (captured_main): Call error to report an invalid interpreter.
10471
4c2e2391
AC
10472 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
10473 * alpha-osf1-tdep.c: Include "gdb_string.h".
10474
5ef7553b
JB
104752003-03-19 J. Brobecker <brobecker@gnat.com>
10476
10477 Continuing work to convert the hppa targets to multiarch partial.
10478
10479 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
10480 method, now that hppa_push_dummy_frame has a conformant prototype.
10481 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
10482 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
10483 for the switch to multiarch partial.
10484
7bde8967
KB
104852003-03-19 Kevin Buettner <kevinb@redhat.com>
10486
10487 * mdebugread.c (parse_symbol): For stEnd, we're done counting
10488 when iss is issNull.
10489
b006a9e9
KB
104902003-03-18 Kevin Buettner <kevinb@redhat.com>
10491
10492 * mips-tdep.c (mips_register_name): Fix fencepost error involving
10493 NUM_REGS bounds check.
10494
5e2e9765
KB
104952003-03-18 Kevin Buettner <kevinb@redhat.com>
10496
10497 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
10498 * mips-tdep.c (gdb_assert.h): Include.
10499 (mips_generic_reg_names, mips_processor_reg_names): Make static.
10500 (mips_register_name): Handle integer registers explicitly. Add
10501 bounds checking.
10502 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
10503 (mips_lsi33k_reg_names): Don't list integer registers; they're
10504 handled by mips_register_name() now.
10505 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
10506 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
10507 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
10508 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
10509 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
10510
a2867626
AC
105112003-03-18 Andrew Cagney <cagney@redhat.com>
10512
10513 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
10514 a void pointer.
10515 * gdbtypes.h (print_scalar_formatted): Update declaration.
10516 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
10517
06600e06
JB
105182003-03-18 J. Brobecker <brobecker@gnat.com>
10519
10520 * infrun.c (observer.h): Add #include.
10521 (normal_stop): Add call to observer_notify_normal_stop.
10522 * Makefile.in (infrun.o): Add dependency on observer.h.
10523
7daf4f5b
JB
105242003-03-18 J. Brobecker <brobecker@gnat.com>
10525
10526 Continuing work to convert the hppa targets to multiarch partial.
10527 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
10528 parameter. Reformat comment.
10529 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
10530 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
10531 to match new profile.
10532
3371ccc0
JB
105332003-03-18 J. Brobecker <brobecker@gnat.com>
10534
10535 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
10536 appear to be working in any case.
10537
4fbe891e
JB
105382003-03-18 J. Brobecker <brobecker@gnat.com>
10539
10540 * observer.c (observer_test_first_observer): New static variable.
10541 (observer_test_second_observer): Likewise.
10542 (observer_test_third_observer): Likewise.
10543 (observer_test_first_notification_function): New static function.
10544 (observer_test_second_notification_function): Likewise.
10545 (observer_test_third_notification_function): Likewise.
10546
a7ff40e7
JB
105472003-03-17 J. Brobecker <brobecker@gnat.com>
10548
10549 * hppa-tdep.c (gdb_assert.h): Add missing #include.
10550 * somsolib.c (gdb_assert.h): Likewise.
10551 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
10552 (somsolib.o): Likewise.
10553
26ca4152
AC
105542003-03-17 Andrew Cagney <cagney@redhat.com>
10555
10556 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
10557 BFD. Simplify setting of di.endian.
10558
0a613259
AC
105592003-03-17 Andrew Cagney <cagney@redhat.com>
10560
10561 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
10562 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
10563
10564 From Elena Zannoni <ezannoni@redhat.com>
10565 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
10566 vector and floating-point parameters.
10567 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
10568 convention.
10569 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
10570
1132738f
FN
105712003-03-17 Fernando Nasser <fnasser@redhat.com>
10572
10573 * MAINTAINERS: Remove my name from several maintainership roles.
10574
6dc42492
AC
105752003-03-17 Andrew Cagney <cagney@redhat.com>
10576
10577 Fix frame off-by-one bug.
10578 * frame-unwind.h (frame_this_id_ftype): Replace
10579 frame_unwind_id_ftype.
10580 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
10581 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
10582 with "prev_register".
10583 * frame-unwind.c (frame_unwind_find_by_pc): Return
10584 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
10585 comment.
10586 * dummy-frame.c (cached_find_dummy_frame): Delete function.
10587 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
10588 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
10589 (dummy_frame_unwind): Update.
10590 * sentinel-frame.c (sentinel_frame_prev_register): Replace
10591 sentinel_frame_register_unwind.
10592 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
10593 (sentinel_frame_unwinder): Update.
10594 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10595 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
10596 * frame.c (create_sentinel_frame): Update. Initialize
10597 "prologue_cache" instead of "unwind_cache".
10598 (frame_register_unwind): Call this frame's prev_register with the
10599 next frame and this frame's prologue cache.
10600 (get_prev_frame): Simplify. Always call prev frame's this_id with
10601 this frame and prev frame's prologue cache. Document that this
10602 call is shifted one to the left when compared to the
10603 frame_register_unwind call.
10604 (legacy_saved_regs_prev_register): Replace
10605 frame_saved_regs_register_unwind.
10606 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
10607 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
10608 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10609 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
10610 (d10v_frame_unwind): Update.
10611 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
10612 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
10613 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
10614 "saved_regs" with "this_saved_regs".
10615
efd710d6
AC
106162003-03-16 Andrew Cagney <cagney@redhat.com>
10617
10618 * frame.c (frame_pop): Don't call target_store_registers. Fix
10619 problem reported by Mark Kettenis.
10620
4e259f09
MK
106212003-03-16 Mark Kettenis <kettenis@gnu.org>
10622
10623 * i386-tdep.c (i386_register_type): Renamed from
10624 i386_register_virtual_type. Adjust function signature.
10625 (i386_gdbarch_init): Set register_type instead of
10626 deprecated_max_register_raw_size,
10627 deprecated_max_register_virtual_size and register_virtual_type.
10628
055bb976
AC
106292003-03-14 Andrew Cagney <cagney@redhat.com>
10630
10631 * frame.c (get_prev_frame): When a legacy frame, always call
10632 legacy_get_prev_frame. Simplify unwind code using assumption that
10633 the unwinder is new.
10634 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
10635 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
10636 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
10637
ac2adee5
AC
106382003-03-14 Andrew Cagney <cagney@redhat.com>
10639
10640 * frame.c (get_saved_register): Delete function.
10641 * frame.h (get_saved_register): Delete declaration.
10642 * xstormy16-tdep.c: Update comment.
10643 * regcache.h: Update comments.
10644 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
10645 get_saved_register and extract_address, use
10646 frame_read_unsigned_register.
10647 (sparc_frame_saved_pc): Ditto.
10648 (sparc_get_saved_register): Instead of get_saved_register, use
10649 frame_register.
10650 (sparc_pop_frame): Ditto.
10651 * findvar.c: Update comments.
10652 (value_of_register): Call frame_register instead of
10653 get_saved_register.
10654 (value_from_register): Ditto.
10655 * config/sparc/tm-sparc.h: Update comment.
10656 * breakpoint.c: Update comment.
10657
129c1cd6
AC
106582003-03-14 Andrew Cagney <cagney@redhat.com>
10659
10660 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
10661 GET_SAVED_REGISTER.
10662 * gdbarch.h, gdbarch.c: Re-generate.
10663 * frame.h: Update comments.
10664 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10665 * x86-64-tdep.c (x86_64_init_abi): Update.
10666 * sparc-tdep.c (sparc_gdbarch_init): Update.
10667 * sh-tdep.c (sh_gdbarch_init): Update.
10668 * mips-tdep.c (mips_gdbarch_init): Update.
10669 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10670 * cris-tdep.c (cris_gdbarch_init): Update.
10671 * ia64-tdep.c (ia64_gdbarch_init): Update.
10672 * frame.c (frame_register): Update.
10673 (get_saved_register): Update.
10674 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 10675
749b82f6
AC
106762003-03-13 Andrew Cagney <cagney@redhat.com>
10677
10678 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
10679 * gdbarch.h, gdbarch.c: Regenerate.
10680 * valops.c (hand_function_call): Update comment.
10681 * stack.c (return_command): Update comment.
10682 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
10683 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
10684 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10685 * x86-64-tdep.c (x86_64_init_abi): Update.
10686 * vax-tdep.c (vax_gdbarch_init): Update.
10687 * v850-tdep.c (v850_gdbarch_init): Update.
10688 * sparc-tdep.c (sparc_gdbarch_init): Update.
10689 * sh-tdep.c (sh_gdbarch_init): Update.
10690 * s390-tdep.c (s390_gdbarch_init): Update.
10691 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10692 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10693 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10694 * mips-tdep.c (mips_gdbarch_init): Update.
10695 * mcore-tdep.c (mcore_gdbarch_init): Update.
10696 * m68k-tdep.c (m68k_gdbarch_init): Update.
10697 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10698 * ia64-tdep.c (ia64_gdbarch_init): Update.
10699 * i386-tdep.c (i386_gdbarch_init): Update.
10700 * hppa-tdep.c (hppa_gdbarch_init): Update.
10701 * h8300-tdep.c (h8300_gdbarch_init): Update.
10702 * frv-tdep.c (frv_gdbarch_init): Update.
10703 * cris-tdep.c (cris_gdbarch_init): Update.
10704 * avr-tdep.c (avr_gdbarch_init): Update.
10705 * arm-tdep.c (arm_gdbarch_init): Update.
10706 * alpha-tdep.c (alpha_gdbarch_init): Update.
10707
1594fa56
AC
107082003-03-13 Andrew Cagney <cagney@redhat.com>
10709
10710 * frame.c (legacy_frame_p): New function.
10711 (get_prev_frame): Use legacy_frame_p.
10712 * frame.h (legacy_frame_p): Declare.
10713
7717fda3
V
107142003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10715
fbe586ae 10716 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
10717 listing corrected.
10718
0c67cbe9
V
107192003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10720
fbe586ae 10721 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 10722
03febf99
AC
107232003-03-12 Andrew Cagney <cagney@redhat.com>
10724
10725 * frame.c (get_prev_frame): Rename the frame parameter to
10726 "this_frame".
10727 (get_next_frame, legacy_get_prev_frame): Ditto.
10728
0a1e1ca1
AC
107292003-03-12 Andrew Cagney <cagney@redhat.com>
10730
10731 * frame.c (get_current_frame): Check target_has_registers before
10732 checking target_has_stack.
10733 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
10734 instead of deprecated_selected_frame.
10735 * findvar.c (value_of_register): Pass "frame", not
10736 deprecated_selected_frame, to value_of_builtin_reg.
10737
a66a9c23
AC
107382003-03-12 Andrew Cagney <cagney@redhat.com>
10739
10740 * regcache.c (regcache_cooked_write_signed): New function.
10741 (regcache_cooked_write_unsigned): New function.
10742 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
10743 (regcache_cooked_read_signed): Fix regnum in range assertion.
10744 * regcache.h (regcache_cooked_write_signed): Declare.
10745 (regcache_cooked_write_unsigned): Declare.
10746
8bedc050
AC
107472003-03-12 Andrew Cagney <cagney@redhat.com>
10748
10749 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10750 * gdbarch.h, gdbarch.c: Re-generate.
10751 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10752 * x86-64-tdep.h: Update.
10753 * x86-64-tdep.c (x86_64_init_abi): Update.
10754 * v850-tdep.c (v850_gdbarch_init): Update.
10755 * sparc-tdep.c (sparc_gdbarch_init): Update.
10756 * sh-tdep.c (sh_gdbarch_init): Update.
10757 * s390-tdep.c (s390_gdbarch_init): Update.
10758 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10759 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10760 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10761 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10762 * mips-tdep.c (mips_gdbarch_init): Update.
10763 * mcore-tdep.c (mcore_gdbarch_init): Update.
10764 * m68k-tdep.c (m68k_gdbarch_init): Update.
10765 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10766 * ia64-tdep.c (ia64_gdbarch_init): Update.
10767 * i386-tdep.c (i386_gdbarch_init): Update.
10768 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10769 * hppa-tdep.c (hppa_gdbarch_init): Update.
10770 * h8300-tdep.c (h8300_gdbarch_init): Update.
10771 * frv-tdep.c (frv_gdbarch_init): Update.
10772 * cris-tdep.c (cris_gdbarch_init): Update.
10773 * avr-tdep.c (avr_gdbarch_init): Update.
10774 * arm-tdep.c (arm_gdbarch_init): Update.
10775 * alpha-tdep.c (alpha_gdbarch_init): Update.
10776 * sh-tdep.c (sh_init_extra_frame_info): Update.
10777 (sh64_init_extra_frame_info): Update.
10778 * ns32knbsd-nat.c (frame_num_args): Update.
10779 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10780 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10781 (xstormy16_frame_chain_valid): Update.
10782 * vax-tdep.c (vax_saved_pc_after_call): Update.
10783 * v850-tdep.c (v850_frame_chain): Update.
10784 (v850_pop_frame): Update.
10785 (v850_init_extra_frame_info): Update.
10786 * sparc-tdep.c (setup_arbitrary_frame): Update.
10787 * ns32k-tdep.c (umax_frame_num_args): Update.
10788 * s390-tdep.c (s390_pop_frame_regular): Update.
10789 * mn10300-tdep.c (mn10300_frame_chain): Update.
10790 (mn10300_pop_frame_regular): Update.
10791 (mn10300_init_extra_frame_info): Update.
10792 * mips-tdep.c (mips_init_frame_pc_first): Update.
10793 (mips_frame_chain): Update.
10794 (mips_pop_frame): Update.
10795 * mcore-tdep.c (mcore_frame_chain): Update.
10796 (mcore_pop_frame): Update.
10797 (mcore_init_extra_frame_info): Update.
10798 * arch-utils.c (init_frame_pc_default): Update.
10799 * m68k-tdep.c (isi_frame_num_args): Update.
10800 (delta68_frame_num_args): Update.
10801 (news_frame_num_args): Update.
10802 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10803 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10804 (alpha_frame_chain): Update.
10805 (alpha_pop_frame): Update.
10806 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10807 (hppa_init_extra_frame_info): Update.
10808 (hppa_frame_chain): Update.
10809 (hppa_frame_chain_valid): Update.
10810 * cris-tdep.c (cris_init_extra_frame_info): Update.
10811 * avr-tdep.c (avr_init_extra_frame_info): Update.
10812 * arm-tdep.c (arm_frame_chain_valid): Update.
10813 (arm_init_extra_frame_info): Update.
10814 (arm_pop_frame): Update.
10815 * frame.c (frame_pc_unwind): Update.
10816 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10817 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10818 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10819 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10820 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10821 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10822
7a25a7c1
AC
108232003-03-12 Andrew Cagney <cagney@redhat.com>
10824
10825 Eliminate the need for POP_FRAME.
10826 * frame.c (do_frame_unwind_register): New function.
10827 (frame_pop): When no POP_FRAME, pop the frame using register
10828 unwind and a scratch regcache.
10829 (frame_saved_regs_pop): Delete function.
10830 (trad_frame_unwinder): Update.
10831 * d10v-tdep.c (d10v_frame_pop): Delete function.
10832 (d10v_frame_unwind): Update.
10833 * sentinel-frame.c (sentinel_frame_pop): Delete function.
10834 (sentinel_frame_unwinder): Update.
10835 * dummy-frame.c (dummy_frame_pop): Delete function.
10836 (dummy_frame_unwind): Update.
10837 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10838 (struct frame_unwind): Update.
10839
2f38ef89
KB
108402003-03-11 Kevin Buettner <kevinb@redhat.com>
10841
10842 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10843 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10844 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10845 Do range checks on register number obtained from debugging info.
10846 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10847 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
10848 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10849 mapping function.
10850 (do_fp_register_row): Fix typo which caused double type to be
10851 used when attempting to unpack a float.
10852
552f4abf
JB
108532003-03-11 J. Brobecker <brobecker@gnat.com>
10854
10855 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10856
e0d2ae16
AC
108572003-03-11 Andrew Cagney <cagney@redhat.com>
10858
10859 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10860 frame. Problem found by Corinna Vinschen.
10861
ddbfdd06
PM
108622003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
10863
10864 * doublest.c (floatformat_from_length): Accept also
10865 the real size of 'long double' type.
10866
088b2ddc 108672003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 10868
088b2ddc 10869 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
10870 * breakpoint.c (bpstat_copy): Copy the command lines as well
10871 as the old value, to match what is freed in bpstat_clear.
10872
f56f77c1
DC
108732003-03-10 David Carlton <carlton@math.stanford.edu>
10874
10875 * minsyms.c (add_minsym_to_hash_table): Replace
10876 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10877 (compare_minimal_symbols, compact_minimal_symbols)
10878 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10879 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10880 of DEPRECATED_SYMBOL_MATCHES_NAME.
10881 (lookup_minimal_symbol_solib_trampoline): Ditto.
10882
5602984a
AC
108832003-03-10 Andrew Cagney <cagney@redhat.com>
10884
10885 * regcache.h (regcache_cooked_read_ftype): Define.
10886 (regcache_save, regcache_restore): Add a cooked_read parameter.
10887 * regcache.c (regcache_save, regcache_restore): Update.
10888 (do_cooked_read): New function.
10889 (regcache_cpy): Pass do_cooked_read to regcache_save and
10890 regcache_restore.
10891
8bedc050
AC
108922003-03-10 Andrew Cagney <cagney@redhat.com>
10893
10894 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10895 * gdbarch.h, gdbarch.c: Re-generate.
10896 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10897 * x86-64-tdep.h: Update.
10898 * x86-64-tdep.c (x86_64_init_abi): Update.
10899 * v850-tdep.c (v850_gdbarch_init): Update.
10900 * sparc-tdep.c (sparc_gdbarch_init): Update.
10901 * sh-tdep.c (sh_gdbarch_init): Update.
10902 * s390-tdep.c (s390_gdbarch_init): Update.
10903 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10904 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10905 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10906 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10907 * mips-tdep.c (mips_gdbarch_init): Update.
10908 * mcore-tdep.c (mcore_gdbarch_init): Update.
10909 * m68k-tdep.c (m68k_gdbarch_init): Update.
10910 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10911 * ia64-tdep.c (ia64_gdbarch_init): Update.
10912 * i386-tdep.c (i386_gdbarch_init): Update.
10913 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10914 * hppa-tdep.c (hppa_gdbarch_init): Update.
10915 * h8300-tdep.c (h8300_gdbarch_init): Update.
10916 * frv-tdep.c (frv_gdbarch_init): Update.
10917 * cris-tdep.c (cris_gdbarch_init): Update.
10918 * avr-tdep.c (avr_gdbarch_init): Update.
10919 * arm-tdep.c (arm_gdbarch_init): Update.
10920 * alpha-tdep.c (alpha_gdbarch_init): Update.
10921 * sh-tdep.c (sh_init_extra_frame_info): Update.
10922 (sh64_init_extra_frame_info): Update.
10923 * ns32knbsd-nat.c (frame_num_args): Update.
10924 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10925 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10926 (xstormy16_frame_chain_valid): Update.
10927 * vax-tdep.c (vax_saved_pc_after_call): Update.
10928 * v850-tdep.c (v850_frame_chain): Update.
10929 (v850_pop_frame): Update.
10930 (v850_init_extra_frame_info): Update.
10931 * sparc-tdep.c (setup_arbitrary_frame): Update.
10932 * ns32k-tdep.c (umax_frame_num_args): Update.
10933 * s390-tdep.c (s390_pop_frame_regular): Update.
10934 * mn10300-tdep.c (mn10300_frame_chain): Update.
10935 (mn10300_pop_frame_regular): Update.
10936 (mn10300_init_extra_frame_info): Update.
10937 * mips-tdep.c (mips_init_frame_pc_first): Update.
10938 (mips_frame_chain): Update.
10939 (mips_pop_frame): Update.
10940 * mcore-tdep.c (mcore_frame_chain): Update.
10941 (mcore_pop_frame): Update.
10942 (mcore_init_extra_frame_info): Update.
10943 * arch-utils.c (init_frame_pc_default): Update.
10944 * m68k-tdep.c (isi_frame_num_args): Update.
10945 (delta68_frame_num_args): Update.
10946 (news_frame_num_args): Update.
10947 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10948 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10949 (alpha_frame_chain): Update.
10950 (alpha_pop_frame): Update.
10951 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10952 (hppa_init_extra_frame_info): Update.
10953 (hppa_frame_chain): Update.
10954 (hppa_frame_chain_valid): Update.
10955 * cris-tdep.c (cris_init_extra_frame_info): Update.
10956 * avr-tdep.c (avr_init_extra_frame_info): Update.
10957 * arm-tdep.c (arm_frame_chain_valid): Update.
10958 (arm_init_extra_frame_info): Update.
10959 (arm_pop_frame): Update.
10960 * frame.c (frame_pc_unwind): Update.
10961 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10962 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10963 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10964 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10965 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10966 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10967
12cc2063
AC
109682003-03-10 Andrew Cagney <cagney@redhat.com>
10969
10970 * gdbarch.sh (gdbarch_unwind_pc): New method.
10971 * gdbarch.h, gdbarch.c: Regenerate.
10972 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10973 but use read_pc and FRAME_SAVED_PC as fall backs.
10974 (frame_saved_regs_pc_unwind): Delete function.
10975 (trad_frame_unwinder): Update.
10976 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10977 (struct frame_unwind): Update.
10978 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10979 (dummy_frame_unwind): Update.
10980 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10981 (sentinel_frame_unwinder): Update.
10982 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10983 (d10v_frame_unwind): Update.
10984 (d10v_unwind_pc): New function.
10985 (d10v_gdbarch_init): Set unwind_pc.
10986
ef840a37
AC
109872003-03-10 Andrew Cagney <cagney@redhat.com>
10988
a2ce2e56
AC
10989 * gdbarch.h: Re-generate.
10990
ef840a37
AC
10991 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10992 PC.
10993 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10994 the PC register.
10995
08f3424b
MK
109962003-03-08 Mark Kettenis <kettenis@gnu.org>
10997
10998 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10999
1248ede2
AC
110002003-03-08 Andrew Cagney <cagney@redhat.com>
11001
11002 * cli-out.c: Update copyright.
11003 (cli_out_data): Define typedef. Use instead of ui_out_data.
11004
f49bacc8
AC
110052003-03-08 Andrew Cagney <cagney@redhat.com>
11006
11007 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11008 the result.
11009
9b05f993
AC
110102003-03-07 Andrew Cagney <cagney@redhat.com>
11011
11012 * gdbarch.sh: Don't generate two macro definitions when an
11013 undefined macro taking no arguments.
11014 * gdbarch.h: Regenerate.
8ffd9b1b 11015
166f4c7b
ML
110162002-03-07 Michal Ludvig <mludvig@suse.cz>
11017
11018 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11019 (x86_64_unwind_dummy_id): New functions.
11020 (x86_64_init_abi): Register these two new functions.
11021
6d686a84
ML
110222003-03-07 Michal Ludvig <mludvig@suse.cz>
11023
11024 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 11025 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
11026 separate function.
11027 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11028
6314f104
AC
110292003-03-05 Andrew Cagney <cagney@redhat.com>
11030
11031 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11032 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11033 * frame.c (get_prev_frame): Restructure the frame ID unwind code
11034 to use unwind_dummy_id when a dummy frame.
11035 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11036 predicate.
11037 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 11038
ceea5145
AC
110392003-03-05 Andrew Cagney <cagney@redhat.com>
11040
11041 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11042 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11043 Do not use d10v_read_sp or d10v_read_fp when obtaining register
11044 values.
11045
0d843116
AC
110462003-03-05 Andrew Cagney <cagney@redhat.com>
11047
11048 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11049 (struct d10v_unwind_cache): Delete field "frameless". Replace
11050 "next_addr" with "sp_offset". Add "r11_offset".
11051 (d10v_frame_unwind_cache): Update.
11052 (prologue_find_regs): Update. When "mv r11, sp", save the
11053 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
11054 RN was saved in r11_offset.
11055
b2579786
AC
110562003-03-05 Andrew Cagney <cagney@redhat.com>
11057
11058 * frame.c (deprecated_update_frame_pc_hack): Also update the the
11059 cached PC value in the next frame.
11060
218e5956
AC
110612003-03-05 Andrew Cagney <cagney@redhat.com>
11062
11063 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
11064 "id_unwind_cache" with "id".
11065 (frame_id_unwind): Delete declaration.
11066 * frame.c (frame_id_unwind): Delete function.
11067 (get_prev_frame): Call the frame id unwind method directly. Store
11068 the returned next frame's ID value in NEXT_FRAME. Note that there
11069 is a problem with the wrong unwind ID being called with the wrong
11070 unwind cache.
11071
ed363b1b
DJ
110722003-03-05 Daniel Jacobowitz <drow@mvista.com>
11073
11074 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
11075
fe1f4a5e
DJ
110762003-03-05 James Ingham <jingham@apple.com>
11077 Daniel Jacobowitz <drow@mvista.com>
11078
11079 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
11080 (auto_cp_abi): New variable.
11081 (current_cp_abi, num_cp_abis): Make static.
11082 (CP_ABI_MAX): Define.
11083 (cp_abis): Turn into an array.
11084 (value_virtual_fn_field): Fix formatting.
11085 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
11086 takes a pointer.
11087 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
11088 (list_cp_abis, _initialize_cp_abi): New functions.
11089 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
11090 declarations for cp_abis, num_cp_abis, current_cp_abi, and
11091 switch_to_cp_abi. Update prototype for register_cp_abi.
11092 * Makefile.in (cp-abi.o): Update dependencies.
11093 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
11094 instead of switch_to_cp_abi.
11095 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
11096 register_cp_abi.
11097 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
11098 register_cp_abi.
11099 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
11100
e4adbba9
DJ
111012003-03-05 Daniel Jacobowitz <drow@mvista.com>
11102
11103 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
11104 * dwarf2loc.c: Include "regcache.h".
11105 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
11106 register_size.
11107 * Makefile.in (dwarf2loc.o): Update dependencies.
11108
91ccbfc1
TR
111092003-03-04 Theodore A. Roth <troth@openavr.org>
11110
11111 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
11112 number of io registers reported by remote target is not a multiple of
11113 step.
11114
3d4e8fd2
DC
111152003-03-04 David Carlton <carlton@math.stanford.edu>
11116
11117 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
11118 (lookup_symbol_aux_psymtabs): Update call to
11119 lookup_partial_symbol.
11120 (lookup_transparent_type, find_main_psymtab)
11121 (make_symbol_overload_list): Ditto.
11122
ed42d87b
KH
111232003-03-04 Kazu Hirata <kazu@cs.umass.edu>
11124
11125 * MAINTAINERS (Write after approval): Update my email address.
11126
a0ed5532
AC
111272003-03-03 Andrew Cagney <cagney@redhat.com>
11128
11129 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
11130 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
11131 predicate. Replace MAX_REGISTER_RAW_SIZE.
11132 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
11133 MAX_REGISTER_VIRTUAL_SIZE.
11134 * regcache.c (legacy_max_register_raw_size): New function.
11135 (legacy_max_register_virtual_size): New function.
11136 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
11137 (MAX_REGISTER_RAW_SIZE): Define.
11138 (legacy_max_register_raw_size): Declare.
11139 (legacy_max_register_virtual_size): Declare.
11140 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11141 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
11142 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11143 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11144 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11145 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11146 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11147 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11148 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11149 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11150 * vax-tdep.c (vax_gdbarch_init): Update.
11151 * v850-tdep.c (v850_gdbarch_init): Update.
11152 * sparc-tdep.c (sparc_gdbarch_init): Update.
11153 * sh-tdep.c (sh_gdbarch_init): Update.
11154 * s390-tdep.c (s390_gdbarch_init): Update.
11155 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11156 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11157 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11158 * mips-tdep.c (mips_gdbarch_init): Update.
11159 * mcore-tdep.c (mcore_gdbarch_init): Update.
11160 * m68k-tdep.c (m68k_gdbarch_init): Update.
11161 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11162 * ia64-tdep.c (ia64_gdbarch_init): Update.
11163 * i386-tdep.c (i386_gdbarch_init): Update.
11164 * hppa-tdep.c (hppa_gdbarch_init): Update.
11165 * h8300-tdep.c (h8300_gdbarch_init): Update.
11166 * frv-tdep.c (frv_gdbarch_init): Update.
11167 * cris-tdep.c (cris_gdbarch_init): Update.
11168 * avr-tdep.c (avr_gdbarch_init): Update.
11169 * arm-tdep.c (arm_gdbarch_init): Update.
11170 * alpha-tdep.c (alpha_gdbarch_init): Update.
11171 * d10v-tdep.c (d10v_gdbarch_init): Do not set
11172 max_register_raw_size or max_register_virtual_size.
11173
8e437497
DC
111742003-03-03 David Carlton <carlton@math.stanford.edu>
11175
11176 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
11177 SYMBOL_MATCHES_NAME, add comment.
11178 (SYMBOL_MATCHES_NATURAL_NAME): New.
11179 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
11180 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
11181 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
11182 * symtab.c (lookup_partial_symbol): Use
11183 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
11184 unhelpful comment.
11185 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
11186 SYMBOL_MATCHES_NAME.
11187 Fix for PR c++/33.
11188
25120b0d
DC
111892003-03-03 David Carlton <carlton@math.stanford.edu>
11190
11191 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
11192 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
11193 by regexp matching against SYMBOL_NATURAL_NAME.
11194
78a11fb4
DC
111952003-03-03 David Carlton <carlton@math.stanford.edu>
11196
11197 * linespec.c (find_method): Extract code into collect_methods.
11198 (collect_methods): New.
11199
645dd519
MK
112002003-03-02 Mark Kettenis <kettenis@gnu.org>
11201
b4700d91
MK
11202 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
11203 get_frame_base.
11204
645dd519
MK
11205 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
11206 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11207
0aa7e1aa
SC
112082003-03-02 Stephane Carrez <stcarrez@nerim.fr>
11209
8ffd9b1b 11210 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
11211 and not regnum when summing the size of all registers up to regnum.
11212
f30ee0bc
AC
112132003-03-01 Andrew Cagney <cagney@redhat.com>
11214
11215 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
11216 FRAME_INIT_SAVED_REGS.
11217 * gdbarch.h, gdbarch.c: Regenerate.
11218 * stack.c (frame_info): Update.
11219 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
11220 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
11221 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
11222 * ns32k-tdep.c (ns32k_pop_frame): Update.
11223 * mips-tdep.c (mips_pop_frame): Update.
11224 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
11225 * ia64-tdep.c (ia64_frame_chain): Update.
11226 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
11227 (ia64_frameless_function_invocation): Update.
11228 (ia64_init_extra_frame_info): Update.
11229 (ia64_pop_frame_regular): Update.
11230 * frame.h (struct frame_info): Update comment.
11231 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
11232 * frame.c (frame_saved_regs_register_unwind): Update.
11233 (frame_saved_regs_register_unwind): Update.
11234 (deprecated_generic_get_saved_register): Update.
11235 * cris-tdep.c: Update comment.
11236 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
11237 Rename macro.
11238 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11239 * x86-64-tdep.c (x86_64_init_abi): Update.
11240 * vax-tdep.c (vax_gdbarch_init): Update.
11241 * v850-tdep.c (v850_gdbarch_init): Update.
11242 * sparc-tdep.c (sparc_gdbarch_init): Update.
11243 * sh-tdep.c (sh_gdbarch_init): Update.
11244 * s390-tdep.c (s390_gdbarch_init): Update.
11245 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11246 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11247 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11248 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11249 * mips-tdep.c (mips_gdbarch_init): Update.
11250 * mcore-tdep.c (mcore_gdbarch_init): Update.
11251 * m68k-tdep.c (m68k_gdbarch_init): Update.
11252 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11253 * ia64-tdep.c (ia64_gdbarch_init): Update.
11254 * i386-tdep.c (i386_gdbarch_init): Update.
11255 * frv-tdep.c (frv_gdbarch_init): Update.
11256 * avr-tdep.c (avr_gdbarch_init): Update.
11257 * arm-tdep.c (arm_gdbarch_init): Update.
11258 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11259
42fa7c0f
AC
112602003-03-01 Andrew Cagney <cagney@redhat.com>
11261
11262 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
11263 option enum and switch. When no windows, set the interpreter to
11264 INTERP_CONSOLE.
8ffd9b1b 11265
49c7e338
AC
112662003-03-01 Andrew Cagney <cagney@redhat.com>
11267
11268 * main.c (captured_main): Replace magic option characters with an
11269 enum.
11270
e9582e71
AC
112712003-03-01 Andrew Cagney <cagney@redhat.com>
11272
11273 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
11274 INIT_EXTRA_FRAME_INFO.
11275 * gdbarch.h, gdbarch.c: Regenerate.
11276 * arm-tdep.c: Update comments.
11277 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
11278 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
11279 * frame.h, avr-tdep.c: Ditto.
11280 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
11281 (create_new_frame, legacy_get_prev_frame): Ditto.
11282 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11283 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11284 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
11285 deprecated_init_extra_frame_info instead of init_extra_frame_info.
11286 * x86-64-tdep.c (x86_64_init_abi): Ditto.
11287 * v850-tdep.c (v850_gdbarch_init): Ditto.
11288 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11289 * sh-tdep.c (sh_gdbarch_init): Ditto.
11290 * s390-tdep.c (s390_gdbarch_init): Ditto.
11291 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
11292 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11293 * mips-tdep.c (mips_gdbarch_init): Ditto.
11294 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11295 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11296 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11297 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11298 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11299 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11300 * frv-tdep.c (frv_gdbarch_init): Ditto.
11301 * cris-tdep.c (cris_gdbarch_init): Ditto.
11302 * avr-tdep.c (avr_gdbarch_init): Ditto.
11303 * arm-tdep.c (arm_gdbarch_init): Ditto.
11304 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11305 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11306
35cac7cf
AC
113072003-03-01 Andrew Cagney <cagney@redhat.com>
11308
11309 * gdbarch.sh (register_type): New function with predicate.
11310 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
11311 * gdbarch.h, gdbarch.c: Re-generate.
11312 * arch-utils.c (generic_register_byte): Use generic_register_size.
11313 (generic_register_size): When available, use
11314 gdbarch_register_type.
11315 * regcache.c (init_regcache_descr): When available, initialize the
11316 register type array using gdbarch_register_type. If the
11317 architecture supplies gdbarch_register_type, do not use the legacy
11318 regcache layout.
11319 * d10v-tdep.c (d10v_register_type): Replace
11320 d10v_register_virtual_type.
11321 (d10v_gdbarch_init): Set register_type instead of
11322 register_virtual_type.
11323
7b83296f
AC
113242003-03-01 Andrew Cagney <cagney@redhat.com>
11325
11326 * Makefile.in (ax-gdb.o): Update dependencies.
11327 * ax-gdb.c: Include "regcache.h".
11328 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
11329 * findvar.c (value_of_register): Ditto.
11330 * infcmd.c (default_print_registers_info): Ditto.
11331
eadc1c87
MK
113322003-03-01 Mark Kettenis <kettenis@gnu.org>
11333
11334 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
11335 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11336
14143612
MK
113372003-03-01 Mark Kettenis <kettenis@gnu.org>
11338
11339 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
11340 of STREQ.
11341
a55cc764
DJ
113422003-02-28 Daniel Jacobowitz <drow@mvista.com>
11343
11344 * Makefile.in (dwarf2loc.o): Update dependencies.
11345 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
11346 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
11347 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
11348 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
11349 (locexpr_tracepoint_var_ref): New function.
11350 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
11351
08a617da
AC
113522003-02-28 Andrew Cagney <cagney@redhat.com>
11353
11354 * regcache.c (register_size): New function.
11355 * regcache.h (register_size): Declare
11356 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
11357 max_register_size instead of MAX_REGISTER_RAW_SIZE.
11358
4224873a
DC
113592003-02-28 David Carlton <carlton@math.stanford.edu>
11360
11361 * linespec.c (decode_compound): Extract code into find_method.
11362 (find_method): New.
11363
ccdc5d7f
JB
113642003-02-28 J. Brobecker <brobecker@gnat.com>
11365
11366 * Makefile.in: Add rules to build and link in observer.o.
11367
974e8ced
JB
113682003-02-27 J. Brobecker <brobecker@gnat.com>
11369
11370 * observer.c: Minor comments edits.
11371
7a28f973
JB
113722003-02-27 J. Brobecker <brobecker@gnat.com>
11373
11374 * observer.h, observer.c: New file.
11375
27cddce2
AC
113762003-02-27 Andrew Cagney <cagney@redhat.com>
11377
11378 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
11379
b94a41a1
SC
113802003-02-27 Stephane Carrez <stcarrez@nerim.fr>
11381
11382 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
11383 (M6812_OP_STS_EXT): Likewise.
11384 (m6811_prologue): Use the above to recognize prologue.
11385 (m6812_prologue): Likewise.
11386
c8be8951
DC
113872003-02-27 David Carlton <carlton@math.stanford.edu>
11388
11389 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
11390 SYMBOL_PRINT_NAME.
11391 (compare_psymbols): Ditto.
11392 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
11393
d05bb1fc
MS
113942003-02-27 Michael Snyder <msnyder@redhat.com>
11395
4e845cd3
MS
11396 * f-lang.c (build_fortran_types): New function.
11397 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
11398 * doublest.c (extract_floating): Fix warning text.
11399
f3824013
AC
114002003-02-27 Andrew Cagney <cagney@redhat.com>
11401
11402 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
11403 predicate. Replaces PUSH_DUMMY_FRAME.
11404 * gdbarch.h, gdbarch.c: Regnerate.
11405 * valops.c (hand_function_call): Update. Call
11406 generic_push_dummy_frame directly.
11407 * vax-tdep.c (vax_gdbarch_init): Update.
11408 * sparc-tdep.c (sparc_gdbarch_init): Update.
11409 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11410 * m68k-tdep.c (m68k_gdbarch_init): Update.
11411 * hppa-tdep.c (hppa_gdbarch_init): Update.
11412 * alpha-tdep.c (alpha_gdbarch_init): Update.
11413 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11414 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11415 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
11416 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
11417 push_dummy_frame to generic_push_dummy_frame.
11418 * v850-tdep.c (v850_gdbarch_init): Ditto.
11419 * sh-tdep.c (sh_gdbarch_init): Ditto.
11420 * s390-tdep.c (s390_gdbarch_init): Ditto.
11421 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11422 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11423 * mips-tdep.c (mips_gdbarch_init): Ditto.
11424 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11425 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11426 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11427 * i386-tdep.c (i386_gdbarch_init): Ditto.
11428 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11429 * frv-tdep.c (frv_gdbarch_init): Ditto.
11430 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11431 * cris-tdep.c (cris_gdbarch_init): Ditto.
11432 * avr-tdep.c (avr_gdbarch_init): Ditto.
11433 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 11434
ad188201
KB
114352003-02-26 Kevin Buettner <kevinb@redhat.com>
11436
11437 * mips-tdep.c (show_mips_abi): New function.
11438 (_initialize_mips_tdep): Use show_mips_abi() to implement the
11439 command ``show mips abi''.
11440
6b37567a 114412003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 11442
6b37567a 11443 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 11444 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
11445 more sline entries have been seen for the function.
11446
d3e0a5bf
MC
114472003-02-26 Michael Chastain <mec@shout.net>
11448
11449 * configure: Regenerate with autoconf 000227.
11450
18972eea
MC
114512003-02-26 Michael Chastain <mec@shout.net>
11452
11453 Close PR build/660.
11454 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
11455 for old libc5/glibc.
11456 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
11457
0bbde931
KW
114582003-02-26 Kris Warkentin <kewarken@qnx.com>
11459
11460 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
11461 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
11462
27ca5dad
MC
114632003-02-26 Michael Chastain <mec@shout.net>
11464
11465 * configure.in: New variable HAVE_UINTPTR_T.
11466 * configure, config.in: Regenerated.
11467
6f88d630
DJ
114682003-02-26 Daniel Jacobowitz <drow@mvista.com>
11469
11470 Fix PR build/1097.
11471 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
11472
b14185ce
AC
114732003-02-25 Andrew Cagney <cagney@redhat.com>
11474
11475 * frame.c (get_prev_frame): Add comment on check for
11476 inside_entry_func. Only check for inside_entry_file when not a
11477 dummy and not a sentinel. Check that the new frame is not inner
11478 to the old frame.
11479
ac2bd0a9
AC
114802003-02-25 Andrew Cagney <cagney@redhat.com>
11481
11482 * frame.c (frame_debug): New variable.
11483 (_initialize_frame): Add "set/show debug frame" command.
11484 (get_prev_frame): When frame_debug, print reason why unwind
11485 failed.
11486
b18a0fd2
MC
114872003-02-25 Michael Chastain <mec@shout.net>
11488
11489 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
11490 to avoid uintptr_t definition problems.
11491
22abf04a
DC
114922003-02-25 David Carlton <carlton@math.stanford.edu>
11493
11494 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
11495 (SYMBOL_LINKAGE_NAME): Ditto.
11496 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
11497 SYMBOL_LINKAGE_NAME.
11498 (struct general_symbol_info): Expand comment.
11499 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
11500 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
11501 (SYMBOL_MATCHES_REGEXP): Ditto.
11502 * symtab.c (symbol_natural_name): New function.
11503 * objfiles.h: Replace all uses of SYMBOL_NAME by
11504 DEPRECATED_SYMBOL_NAME.
11505 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
11506 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
11507 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
11508 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
11509 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
11510 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
11511 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
11512 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
11513 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
11514 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
11515 * ada-exp.y: Ditto.
11516 * ada-exp.y: Update copyright.
11517 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
11518 * cp-valprint.c: Ditto.
11519
1a5848f6
JJ
115202003-02-25 Jeff Johnston <jjohnstn@redhat.com>
11521
11522 * infptrace.c (detach): Do not flag error if ptrace detach fails
11523 and errno is set to ESRCH.
11524
7343d46a
AC
115252003-02-24 Andrew Cagney <cagney@redhat.com>
11526
11527 * infptrace.c (udot_info): Change type of udot_off to long. Use
11528 paddr when printing udot_off's value.
11529
49fa1dc2
DC
115302003-02-24 David Carlton <carlton@math.stanford.edu>
11531
11532 * symtab.c (make_symbol_overload_list): Only read in partial
11533 symtabs containing a matching partial symbol.
11534
0fe19209
DC
115352003-02-24 David Carlton <carlton@math.stanford.edu>
11536
11537 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
11538 do the comparison, not strcmp.
11539 * symfile.c (compare_psymbols): Ditto.
11540 * defs.h: Declare strcmp_iw_ordered.
11541 * utils.c (strcmp_iw_ordered): New function.
11542
8e3ee7b5
JB
115432003-02-24 Jim Blandy <jimb@redhat.com>
11544
11545 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
11546 support, shared libs): Remove my name from here, to better reflect
11547 reality.
11548
7df1a324
KW
115492003-02-24 Kris Warkentin <kewarken@qnx.com>
11550
11551 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
11552 (target_ops): Add to_have_continuable_watchpoint.
11553 * target.c (update_current_target): Add INHERIT line for
11554 to_have_continuable_watchpoint.
11555 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
11556 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
11557 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
11558 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
11559
d1c76907
EZ
115602003-02-24 Elena Zannoni <ezannoni@redhat.com>
11561
11562 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
11563 maintainership.
11564
2610b0bf
KW
115652003-02-24 Kris Warkentin <kewarken@qnx.com>
11566
f46169db
KW
11567 * solib.c (solib_open): Call target defined search function after
11568 failing with solib-search-path.
11569 * solist.h (target_so_ops): Add find_and_open_solib function hook and
11570 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 11571
9a3c34fe
KW
115722003-02-24 Kris Warkentin <kewarken@qnx.com>
11573
f46169db 11574 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 11575
2417dd25
SC
115762003-02-23 Stephane Carrez <stcarrez@nerim.fr>
11577
11578 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
11579
b631436b
SC
115802003-02-22 Stephane Carrez <stcarrez@nerim.fr>
11581
11582 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
11583 (m68hc11_add_reggroups): New function.
11584 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
11585 (m68hc11_gdbarch_init): Install the reggroups.
11586 (_initialize_m68hc11_tdep): Initialize them.
11587
0aa8c1e4
JW
115882003-02-21 James E Wilson <wilson@tuliptree.org>
11589
11590 * MAINTAINERS: Update my email address.
11591
50ceaba5
DC
115922003-02-21 David Carlton <carlton@math.stanford.edu>
11593
11594 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
11595
4c2df51b
DJ
115962003-02-21 Daniel Jacobowitz <drow@mvista.com>
11597
11598 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
11599 * symtab.h: Add opaque declarations of struct axs_value and
11600 struct agent_expr.
11601 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
11602 (struct location_funcs): New type.
11603 (struct symbol): Add "loc" to aux_value.
11604 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
11605 * dwarf2read.c: Include "dwarf2expr.h".
11606 (dwarf2_symbol_mark_computed): New function.
11607 (read_func_scope): Use it.
11608 (var_decode_location): New function.
11609 (new_symbol): Use it.
11610 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
11611
11612 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
11613 (dwarf2expr_h, dwarf2loc_h): New variables.
11614 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
11615 (dwarf2expr.o, dwarf2loc.o): New rules.
11616 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
11617 * buildsym.c (finish_block): Handle LOC_COMPUTED and
11618 LOC_COMPUTED_ARG.
11619 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
11620 * m2-exp.y (yylex): Likewise.
11621 * printcmd.c (address_info, print_frame_args): Likewise.
11622 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
11623 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
11624 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
11625 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
11626 * symtab.c (lookup_block_symbol): Likewise.
11627
5784d15e
AF
116282003-02-20 Adam Fedor <fedor@gnu.org>
11629
11630 * symtab.h: Remove objc_specific struct
11631 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
11632 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
11633 Have language_objc use cplus_specific struct.
11634
d4cad8db
TT
116352003-02-20 Tom Tromey <tromey@redhat.com>
11636
11637 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
11638 TYPE_NAME, when printing a String value. PR java/1075.
11639
2f9a90b4
AF
116402003-02-20 Adam Fedor <fedor@gnu.org>
11641
d38074a8 11642 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 11643 * objc-lang.c (find_methods): Make static.
2f9a90b4 11644
6f17862b
CF
116452003-02-20 Christopher Faylor <cgf@redhat.com>
11646
11647 * win32-nat.c (get_image_name): Check return value from
11648 ReadProcessMemory.
11649 (child_xfer_memory): Ditto.
11650
715d1656
AO
116512003-02-20 Alexandre Oliva <aoliva@redhat.com>
11652
11653 * configure.in (TARGET_SYSTEM_ROOT): Set default to
11654 ${exec_prefix}/${target_alias}/sys-root. Match explicit
11655 '${exec_prefix}' (in addition to the expansion thereof) as
11656 relocatable.
11657 * configure: Rebuilt.
11658
b1262a02
DC
116592003-02-20 David Carlton <carlton@math.stanford.edu>
11660
11661 * symtab.c (search_symbols): Revert the search_symbols part of my
11662 2002-12-23 patch. Add comment.
11663
7134143f
DJ
116642002-02-20 Daniel Jacobowitz <drow@mvista.com>
11665
11666 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
11667 * dbxread.c (elfstab_build_psymtabs): Don't call
11668 install_minimal_symbols.
11669 (stabsect_build_psymtabs): Likewise.
11670 * elfread.c (elf_symfile_read): Call install_minimal_symbols
11671 earlier.
11672 * somread.c (som_symfile_read): Call install_minimal_symbols
11673 and do_cleanups earlier.
11674 * nlmread.c (nlm_symfile_read): Likewise.
11675 * mdebugread.c (elfmdebug_build_psymtabs): Call
11676 install_minimal_symbols and make appropriate cleanups.
11677
cf466558
KB
116782003-02-20 Kevin Buettner <kevinb@redhat.com>
11679
11680 * solib.c (reload_shared_libraries): New function.
11681 (_initialize_solib): Add callbacks for ``set solib-search-path''
11682 and ``set solib-absolute-prefix''.
11683
de5ad195
DC
116842003-02-20 David Carlton <carlton@math.stanford.edu>
11685
11686 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
11687 expand comment.
11688 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
11689 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
11690 * ada-typeprint.c (ada_typedef_print): Ditto.
11691 * ax-gdb.c (gen_var_ref): Ditto.
11692 * breakpoint.c (print_one_breakpoint): Ditto.
11693 * buildsym.c (finish_block): Ditto.
11694 * c-valprint.c (c_val_print): Ditto.
11695 * expprint.c (print_subexp): Ditto.
11696 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
11697 * infcmd.c (jump_command): Ditto.
11698 * linespec.c (decode_line_2, decode_compound): Ditto.
11699 * maint.c (maintenance_translate_address): Ditto.
11700 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
11701 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
11702 Ditto.
8ffd9b1b
AJ
11703 * p-valprint.c (pascal_val_print): Ditto.
11704 * stabsread.c (define_symbol): Ditto.
de5ad195 11705 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
11706 (print_frame_arg_vars, return_command): Ditto.
11707 * symfile.c (compare_symbols, compare_psymbols): Ditto.
11708 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
11709 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
11710 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
11711 (rbreak_command): Ditto.
11712 * tracepoint.c (tracepoints_info): Ditto.
11713 * typeprint.c (typedef_print): Ditto.
11714 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
11715 * cli/cli-cmds.c (edit_command, list_command): Ditto.
11716 * ada-typeprint.c: Update Copyright.
11717 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
11718 * tracepoint.c, cli/cli-cmds.c: Ditto.
11719
f796e4be
KB
117202003-02-20 Kevin Buettner <kevinb@redhat.com>
11721
11722 * frame.c (generic_unwind_get_saved_register): Make non-static.
11723 * frame.h (generic_unwind_get_saved_register): Declare.
11724 * mips-tdep.c (read_next_frame_reg): Fetch register from
11725 current regcache when frame is NULL.
11726 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
11727 that must be NULL.
11728 (mips_get_saved_register): Call generic_unwind_get_saved_register()
11729 instead of frame_register_unwind().
11730
836cc9f4
AC
117312003-02-20 Andrew Cagney <ac131313@redhat.com>
11732
11733 * remote-sim.c (gdbsim_insert_breakpoint)
11734 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
11735 code.
11736
501eef12
AC
117372003-02-20 Andrew Cagney <ac131313@redhat.com>
11738
11739 * remote.c (_initialize_remote): Add commands "set/show remote
11740 hardware-watchpoint-limit" and "set/show remote
11741 hardware-breakpoint-limit".
11742 (remote_hw_watchpoint_limit): Initialize to -1.
11743 (remote_hw_breakpoint_limit): Ditto.
11744 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
11745
1b6bc7e0
CF
117462003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
11747
11748 * coff-pe-read.c: New file - support reading of minimal symbols from a
11749 portable executable using the export table.
11750 * coff-pe-read.h: New file.
11751 * coffread.c: Include coff-pe-read.h.
11752 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
11753 debugging symbols found.
11754 * Makefile.in (SFILES): Add coff-pe-read.o.
11755 (coff_pe_read_h): Define.
11756 (COMMON_OBS): Add coff-pe-read.o.
11757 (coffread.o): Add coff_pe_read_h dependency.
11758 (coff-pe-read.o): New target.
11759
fe898f56
DC
117602003-02-19 David Carlton <carlton@math.stanford.edu>
11761
11762 * Makefile.in (SFILES): Add block.c.
11763 (block_h): New.
11764 (COMMON_OBS): Add block.o.
11765 (block.o): New.
11766 (x86-64-tdep.o): Add $(block_h).
11767 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
11768 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
11769 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
11770 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
11771 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
11772 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
11773 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
11774 * value.h: Add opaque declaration for struct block.
11775 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
11776 * ada-lang.h: Ditto.
11777 * x86-64-tdep.c: #include "block.h"
11778 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
11779 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
11780 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
11781 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
11782 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
11783 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
11784 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
11785 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
11786 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
11787 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
11788 * symtab.c (block_function): Ditto.
11789 (contained_in): Ditto.
11790 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
11791 block.h. Add opaque declaration for struct block.
11792 * symtab.h: Move block_function and contained_in declarations to
11793 block.h. Add opaque declarations for struct block, struct
11794 blockvector.
11795 (struct block): Move to block.h.
11796 (struct blockvector): Ditto.
11797 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
11798 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
11799 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
11800 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
11801 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
11802 Ditto.
11803 * block.c: New file.
11804 * block.h: New file.
11805
173345b5
TR
118062003-02-19 Theodore A. Roth <troth@openavr.org>
11807
11808 * avr-tdep.c (avr_extract_return_value): Remove function.
11809 (avr_store_return_value): Remove function.
11810 (avr_extract_struct_value_address): Remove function.
11811 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
11812
338ef23d
AC
118132003-02-19 Andrew Cagney <ac131313@redhat.com>
11814
11815 * rs6000-tdep.c: Include "gdb_assert.h".
11816 (registers_e500): Add "acc" and "spefscr".
11817 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
11818 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11819 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
11820 really is "r0".
11821 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11822
5412f5f3
KS
118232003-02-18 Keith Seitz <keiths@redhat.com>
11824
11825 * Makefile.in: Add gdbtk-interps.c.
11826
881324eb
KB
118272003-02-18 Kevin Buettner <kevinb@redhat.com>
11828
11829 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11830 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11831
6a2f5abf
AC
118322003-02-18 Andrew Cagney <cagney@redhat.com>
11833
11834 * symtab.h (struct objfile): Add opaque declaration.
11835
54c7009d
EZ
118362003-02-18 Elena Zannoni <ezannoni@redhat.com>
11837
11838 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
11839 * dbxread.c (process_one_symbol): Use last_function_start rather
11840 than function_start_offset to find the real beginning of the
11841 current function. The latter is just the text section offset on
11842 some systems, the former is always the real function start.
54c7009d 11843
7ee6d7eb
AC
118442003-02-17 Andrew Cagney <cagney@redhat.com>
11845
11846 * configure.in: Revert ${target} != ${host}.
11847
2846da9b
AC
118482003-02-17 Andrew Cagney <ac131313@redhat.com>
11849
11850 * configure.in (Makefile): Use the test ${target} != ${host},
11851 instead of the absence of the "nm.h" file, to determine of the
11852 configuration non-native.
11853 * configure: Regenerate.
8ffd9b1b 11854
3b27aeea
EZ
118552003-02-14 Elena Zannoni <ezannoni@redhat.com>
11856
fbe586ae 11857 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
11858
11859 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11860 conditionalize tui_active test.
11861 (lookup_cmd_1): Ditto.
11862
b0b1c2c0
MK
118632003-02-14 Mark Kettenis <kettenis@gnu.org>
11864
11865 * configure.in: Add check for _etext.
11866 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11867 available.
11868 * config.in, configure: regenerated.
11869
8f05cde5
DJ
118702003-02-14 Daniel Jacobowitz <drow@mvista.com>
11871
11872 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11873
021e7609
AC
118742003-02-14 Andrew Cagney <ac131313@redhat.com>
11875
11876 * main.c (tui_version): Delete variable.
11877 (captured_main): When --tui, set interpreter_p to "tui" instead of
11878 enabling tui_version.
11879 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11880 tui_version.
11881 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11882 * cli/cli-cmds.c (disassemble_command): Ditto.
11883 * defs.h (tui_version): Delete declaration.
11884 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11885 (tui-interp.o): Add rules.
11886 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11887
e325dcec
CF
118882003-02-14 Christopher Faylor <cgf@redhat.com>
11889
36ffb041 11890 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
11891 just-loaded dll.
11892
c4f90d87
JM
118932003-02-12 Jason Molenda (jmolenda@apple.com)
11894
fbe586ae
RH
11895 * symmisc.c (print_objfile_statistics): Include information about
11896 the number of psymtabs and symtabs in each object file.
c4f90d87 11897
e46e5ccd
KS
118982003-02-13 Keith R Seitz <keiths@redhat.com>
11899
11900 * main.h (struct captured_main_args): Add interpreter_p.
11901 * main.c (captured_main): Initialize interpreter_p from context.
11902 * gdb.c (main): Set interpreter_p argument.
11903 * Makefile.in (gdb.o): Add dependency for interps.h.
11904
fe97fe9c
AC
119052003-02-12 Andrew Cagney <ac131313@redhat.com>
11906
11907 * event-top.c (cli_command_loop): Delete declaration.
11908 (_initialize_event_loop): Delete function setting event_loop_hook.
11909 * event-top.h (cli_command_loop): Declare. Update copyright.
11910 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11911 * interps.c (current_interp_command_loop): When event_loop_p, call
11912 cli_command_loop.
11913
1cdac4ef
AC
119142003-02-12 Andrew Cagney <ac131313@redhat.com>
11915
11916 * interps.h (interp_command_loop_ftype): Change return type to
11917 void.
11918
48037ead
ML
119192003-02-12 Michal Ludvig <mludvig@suse.cz>
11920
11921 * x86-64-tdep.c (x86_64_extract_return_value)
11922 (x86_64_store_return_value): Use regcache instead of regbuf.
11923 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11924 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11925
033afc63
AC
119262003-02-11 Andrew Cagney <ac131313@redhat.com>
11927
11928 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11929 * aclocal.m4: Regenerate.
11930 * configure: Regenerate.
11931
11932 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11933 TCL_LD_SEARCH_FLAGS.
11934
40d02bca
ML
119352003-02-10 Michal Ludvig <mludvig@suse.cz>
11936
11937 * dwarf2cfi.c: Reindented.
11938
11308a41
AC
119392003-02-09 Andrew Cagney <ac131313@redhat.com>
11940
11941 * interps.c (clear_interpreter_hooks): Convert function definition
11942 to ISO C.
11943
e1c1c0f6
DC
119442003-02-07 David Carlton <carlton@math.stanford.edu>
11945
11946 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11947
ab5d3da6
KB
119482003-02-07 Kevin Buettner <kevinb@redhat.com>
11949
11950 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11951 (struct type): ...to here.
11952 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11953 field.
11954 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11955 (replace_type): Set length on all type variants for a given type.
11956
b8a92b82
AC
119572003-02-07 Andrew Cagney <ac131313@redhat.com>
11958
11959 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11960 <sys/stat.h>.
11961 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 11962
5cb316ef
AC
119632003-02-06 Andrew Cagney <ac131313@redhat.com>
11964
2555fe1a
AC
11965 * Makefile.in (symm-nat.o): Update dependencies.
11966 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11967 (lynx-nat.o, ia64-linux-nat.): Ditto.
11968 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11969 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11970 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11971
44270758
AC
11972 * Makefile.in (inflow_h): Define.
11973 (procfs.o, inflow.o, procfs.o): Update dependencies.
11974 * inftarg.c (child_stop): Delete extern declaration of
11975 inferior_process_group. Include "inflow.h".
11976 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11977 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11978 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11979 (our_process_group, inferior_process_group): Extern declarations.
11980
df8f7274
AC
11981 * procfs.c: Include "gdb_assert.h".
11982
5cb316ef
AC
11983 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11984 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11985 * jv-typeprint.c (java_type_print_base): Ditto.
11986 * typeprint.c (typedef_print): Eliminate STREQ.
11987 * cli/cli-script.c (define_command, define_command): Ditto.
11988 * main.c (captured_main): Ditto.
11989 * values.c (lookup_internalvar): Ditto.
11990 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11991 within `if' conditional.
11992 * linespec.c (decode_line_2): Ditto.
11993 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11994 (bfd_openw_with_cleanup): Ditto.
11995
2a28ccea
MK
119962003-02-07 Mark Kettenis <kettenis@gnu.org>
11997
11998 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11999 legacy_extract_return_value and store_return_value to
12000 legacy_return_value.
12001
786b8124
CF
120022003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
12003
12004 * win32-nat.c (get_relocated_section_addrs): New function. Find
12005 section load addresses for symbol handling in relocated DLLs.
12006 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12007
b871e4ec
FF
120082003-02-05 Fred Fish <fnf@intrinsity.com>
12009
12010 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12011 '=' and '!='.
12012 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12013 with '&' and '=='.
12014 (angel_RDI_info): Ditto.
12015 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12016 with '&' and '!='.
12017 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 12018
4389a95a 120192003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
12020 Keith Seitz <keiths@redhat.com>
12021 Elena Zannoni <ezannoni@redhat.com>
12022 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
12023
12024 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12025 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12026 (SUBDIR_MI_OBS): Add "mi-interp.o".
12027 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12028 (SFILES): Add "interps.c".
12029 (COMMON_OBS): Add "interps.o".
12030 (interps_h, mi_main_h): Define.
12031 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12032 (mi-main.o, main.o, event-top.o): Update dependencies.
12033 * cli/cli-interp.c: New file.
12034 * interps.h, interps.c: New files.
12035 * top.c: (gdb_init): Don't install the default interpreter, handed
12036 by captured_main.
12037 * main.c: Include "interps.h".
12038 (interpreter_p): Note that it should malloc'ed.
12039 (captured_command_loop): Call current_interp_command_loop.
12040 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
12041 xfree and xstrdup when updating interpreter_p. Install the
12042 default interpreter. Add hack to stop mi1's copyright notice
12043 being encoded.
12044 * event-top.h (gdb_setup_readline): Declare.
12045 (gdb_disable_readline): Declare.
12046 * event-top.c: Include "interps.h".
12047 (display_gdb_prompt): Call current_interp_display_prompt_p.
12048 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12049 gdb_stdlog, and gdb_stdtarg.
12050 (_initialize_event_loop): Don't call gdb_setup_readline.
12051 * cli-out.c (cli_out_set_stream): New function.
12052 * cli-out.h (cli_out_set_stream): Declare.
12053
ff3b5810
MK
120542003-02-06 Mark Kettenis <kettenis@gnu.org>
12055
12056 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
12057 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
12058 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
12059 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
12060 config/i386/i386v42mp.mt: Removed.
12061
5b729aa5
MK
120622003-02-05 Mark Kettenis <kettenis@gnu.org>
12063
12064 * configure.tgt (*-*-solaris*): Set gdb_osabi to
12065 GDB_OSABI_SOLARIS.
12066
8cc15142
MC
120672003-02-05 Michael Chastain <mec@shout.net>
12068
12069 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
12070 2.12.1 and earlier versions.
12071
5aa5d4b9
AC
120722003-02-05 Andrew Cagney <ac131313@redhat.com>
12073
12074 Remove orphaned hosts, targets and files.
12075 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
12076 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
12077 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
12078 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
12079 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
12080 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
12081 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
12082 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
12083 * config/sparc/tm-sp64sim.h: Delete.
12084 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
12085 hosts.
12086 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
12087 mips*-dec-mach3* targets.
12088
b68767c1
MC
120892003-02-04 Michael Chastain <mec@shout.net>
12090
12091 * NEWS: Fix typo: sepcifying -> specifying.
12092
5ae7ca1d
MC
120932003-02-04 Michael Chastain <mec@shout.net>
12094
12095 * dwarfread.c: Add documentation on the state of dwarf-1,
12096 looking towards obsoletion.
12097
d08a4280
MC
120982003-02-03 Michael Chastain <mec@shout.net>
12099
12100 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
12101 gdb/testsuite/gdb.c++/pr-1023.exp.
12102
e9be73e4
AC
121032003-02-04 Andrew Cagney <ac131313@redhat.com>
12104
12105 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
12106 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
12107
12108 * utils.c (init_page_info): Delete reference to MPW in comments.
12109 * main.c (captured_main): Delete #ifdef MPW.
12110
05d57f6f
AC
121112003-02-04 Andrew Cagney <ac131313@redhat.com>
12112
8ffd9b1b 12113 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
12114 * monitor.c (monitor_expect): Obsolete reference to m32r.
12115 * configure.tgt: Mark m32r-*-elf* as obsolete.
12116 * MAINTAINERS: Mark m32k as obsolete.
12117 * m32r-rom.c: Obsolete file.
12118 * config/m32r/m32r.mt: Obsolete file.
12119 * config/m32r/tm-m32r.h: Obsolete file.
12120 * m32r-stub.c: Obsolete file.
12121 * m32r-tdep.c: Obsolete file.
12122
8b0e5691
AC
121232003-02-04 Andrew Cagney <ac131313@redhat.com>
12124
12125 * NEWS: Mention that the z8k-zilog-none is obsolete.
12126 * MAINTAINERS: Mark z8k as obsolete.
12127 * configure.tgt: Obsolete the z8k-*-coff* target.
12128 * config/z8k/z8k.mt: Obsolete file.
12129 * config/z8k/tm-z8k.h: Obsolete file.
12130 * z8k-tdep.c: Obsolete file.
12131
67f16606
AC
121322003-02-04 Andrew Cagney <ac131313@redhat.com>
12133
12134 * NEWS: Mention that the mn10200-elf is obsolete.
12135 * configure.tgt: Obsolete mn10200-*-* target.
12136 * breakpoint.c (update_breakpoints_after_exec): Update comment to
12137 mention that the mn10200 is obsolete.
12138 * breakpoint.h: Ditto.
12139 * MAINTAINERS: Mark the mn10200-elf as obsolete.
12140 * config/mn10200/mn10200.mt: Obsolete file.
12141 * config/mn10200/tm-mn10200.h: Obsolete file.
12142 * mn10200-tdep.c: Obsolete file.
12143
fd2299bd
AC
121442003-02-04 Andrew Cagney <ac131313@redhat.com>
12145
12146 * MAINTAINERS: Mark h8500 as obsolete.
12147 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
12148 * findvar.c (value_from_register): Ditto.
12149 * h8500-tdep.c: Mark file as obsolete.
12150 * config/h8500/h8500.mt: Ditto.
12151 * config/h8500/tm-h8500.h: Ditto.
12152 * NEWS: Mention that h8500 is obsolete.
12153
eb9a305d
DC
121542003-02-04 David Carlton <carlton@math.stanford.edu>
12155
12156 * objfiles.c (allocate_objfile): Always set name. Add comment at
12157 start of function.
12158 * jv-lang.c (get_dynamics_objfile): Add comment.
12159
406fc7fb
DC
121602003-02-04 David Carlton <carlton@math.stanford.edu>
12161
12162 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
12163 * printcmd.c (build_address_symbolic): Replace uses of
12164 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
12165 SYMBOL_NAME, and asm_demangle.
12166 Update copyright.
12167
93d91629
DC
121682003-02-04 David Carlton <carlton@math.stanford.edu>
12169
12170 * linespec.c (decode_compound): Extract code into
12171 lookup_prefix_sym.
12172 (lookup_prefix_sym): New function.
12173
1c5cb38e
DC
121742003-02-04 David Carlton <carlton@math.stanford.edu>
12175
12176 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
12177 FLOAT_COERCION_BADNESS.
12178 * gdbtypes.c (rank_one_type): Replace all uses of
12179 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
12180
0cf824c9
JB
121812003-02-04 Jim Blandy <jimb@redhat.com>
12182
12183 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
12184 section, let dwarf_macinfo_section point to it, not
12185 dwarf_loc_section.
12186
a2d356b0
DJ
121872003-02-04 Daniel Jacobowitz <drow@mvista.com>
12188
12189 Pointed out by Anton Blanchard <anton@samba.org>.
12190 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
12191 (ppc_linux_at_sigtramp_return_path): Use it.
12192
2de7ced7
DJ
121932003-02-04 Daniel Jacobowitz <drow@mvista.com>
12194
12195 * defs.h (streq): Add prototype.
12196 * utils.c (streq): New function.
12197
12198 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
12199 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
12200 * mdebugread.c (new_symbol): Likewise.
12201 * stabsread.c (define_symbol): Likewise.
12202 * coffread.c (process_coff_symbol): Likewise.
12203 * dwarfread.c (new_symbol): Likewise.
12204
12205 * minsyms.c (prim_record_minimal_symbol_and_info): Use
12206 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
12207 here.
12208 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
12209 SYMBOL_INIT_DEMANGLED_NAME.
12210 * objfiles.c: Include "hashtab.h".
12211 (allocate_objfile): Call htab_set_functions_ex for the
12212 demangled_names_hash.
12213 (free_objfile): Call htab_delete for the demangled_names_hash.
12214 * objfiles.h (struct htab): Add declaration.
12215 (struct objfile): Add demangled_names_hash.
12216 * symfile.c: Include "hashtab.h".
12217 (reread_symbols): Call htab_delete for the demangled_names_hash.
12218 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
12219 SYMBOL_NAME in the bcache.
12220 * symtab.c: Include "hashtab.h". Update comments.
12221 (create_demangled_names_hash, symbol_set_names): New functions.
12222 (symbol_find_demangled_name): New function, broken out from
12223 symbol_init_demangled_names.
12224 (symbol_init_demangled_names): Use it.
12225 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
12226 (SYMBOL_SET_NAMES): New macro.
12227 (symbol_set_names): Add prototype.
12228
15831452
JB
122292003-02-03 Jim Blandy <jimb@redhat.com>
12230
12231 Use a single, consistent representation for an empty minimal
12232 symbol table in an objfile.
12233 * objfiles.c (terminate_minimal_symbol_table): New function.
12234 (allocate_objfile): Call it.
12235 * objfiles.h (terminate_minimal_symbol_table): New declaration.
12236 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 12237 non-NULL.
15831452
JB
12238 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
12239 objfile has minimal symbols, compare minimal_symbol_count to zero,
12240 instead of comparing msymbols with NULL.
12241 * objfiles.c (have_minimal_symbols): Same.
12242 * solib-sunos.c (solib_add_common_symbols): Call
12243 terminate_minimal_symbol_table.
12244 * symfile.c (reread_symbols): Same.
8ffd9b1b 12245
ffc65945
KB
122462003-02-03 Kevin Buettner <kevinb@redhat.com>
12247
12248 * s390-tdep.c (s390_address_class_type_flags)
12249 (s390_address_class_type_flags_to_name)
12250 (s390_address_class_name_to_type_flags): New functions.
12251 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
12252 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
12253
f211c6d4
MS
122542003-02-03 Michael Snyder <msnyder@redhat.com>
12255
12256 * arm-tdep.c: Fix spell-o in comment.
12257
659b0389
ML
122582003-02-03 Michal Ludvig <mludvig@suse.cz>
12259
12260 * dwarf2cfi.c (pointer_encoding): Added new parameter.
12261 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 12262 error messages to contain BFD filename.
659b0389 12263
3b31d625
EZ
122642003-02-02 Elena Zannoni <ezannoni@redhat.com>
12265
997b089a 12266 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
12267 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
12268 (do_mixed_source_and_assembly): Use
12269 make_cleanup_ui_out_tuple_begin_end and
12270 make_cleanup_ui_out_tuple_begin_end.
12271 (do_mixed_source_and_assembly): Ditto.
12272 * thread.c (do_captured_list_thread_ids): Ditto.
12273 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
12274 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
12275 ui_out_tuple_end): Delete prototypes.
12276 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
12277 ui_out_list_end, ui_out_tuple_end): Delete.
12278
12279 From Kevin Buettner <kevinb@redhat.com>:
12280 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
12281 * ui-out.c (make_cleanup_ui_out_table_begin_end)
12282 (do_cleanup_table_end): New functions.
12283 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
12284 Use cleanups to invoke_ui_out_tuple_end().
12285 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
12286 * cli/cli-setshow.c (cmd_show_list): Use
12287 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 12288
5b181d62
AC
122892003-02-02 Andrew Cagney <ac131313@redhat.com>
12290
12291 * frame.c (frame_unwind_register): New function.
12292 (frame_unwind_unsigned_register): Use.
12293 (frame_unwind_signed_register): Use.
12294 (frame_read_register): New function.
12295 * frame.h (frame_unwind_register): Declare.
12296 (frame_read_register): Declare.
12297
12298 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
12299 and frame_unwind_register instead of read_memory, write_register
12300 and deprecated_write_register_bytes.
12301
5f601589
AC
123022003-02-02 Andrew Cagney <ac131313@redhat.com>
12303
12304 * frame.h: Note that namelen can be negative.
12305 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
12306 NAME's length.
12307
12308 * NEWS: Mention that the d10v's `regs' command is deprecated.
12309 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
12310 (d10v_print_registers_info): New function.
12311 (show_regs): Call d10v_print_registers_info.
12312 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
12313
6a3fe0a4
MK
123142003-02-02 Mark Kettenis <kettenis@gnu.org>
12315
12316 * stack.c (print_frame_info): Restore call to annotate_frame_begin
12317 lost in the previous patch.
12318
075559bc
AC
123192003-02-01 Andrew Cagney <ac131313@redhat.com>
12320
12321 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
12322 * stack.c (print_frame_info_base): Output complete FRAME tuple
12323 for synthesized frames.
075559bc 12324
6789195b
AC
123252003-02-02 Andrew Cagney <ac131313@redhat.com>
12326
12327 * mips-nat.c (zerobuf): Delete.
12328 (fetch_inferior_registers): Alloc local zerobuf.
12329 (fetch_core_registers): Alloc local zerobuf.
12330 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
12331 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
12332 * thread-db.c (thread_db_store_registers): Ditto.
12333 * sh-tdep.c (sh_do_register): Ditto.
12334 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
12335 * remote-sim.c (gdbsim_store_register): Ditto.
12336 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
12337 * remote-e7000.c (fetch_regs_from_dump): Ditto.
12338 * monitor.c (monitor_supply_register): Ditto.
12339 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
12340 * mips-nat.c (fetch_inferior_registers): Ditto.
12341 * m68klinux-nat.c (fetch_register): Ditto.
12342 * lynx-nat.c (fetch_inferior_registers): Ditto.
12343 (fetch_inferior_registers): Ditto.
12344 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
12345 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
12346 (hpux_thread_store_registers): Ditto.
12347 * hppah-nat.c (fetch_register): Ditto.
12348 * hppab-nat.c (fetch_register): Ditto.
12349 * hppa-tdep.c (pa_register_look_aside): Ditto.
12350 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
12351 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
12352
e669114a
AC
123532003-02-01 Andrew Cagney <ac131313@redhat.com>
12354
12355 * gdbarch.sh: Explictly specify all method levels. When a
12356 variable with an empty level, provide a non-multi-arch default.
12357 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
12358 * gdbarch.h: Re-generate.
12359 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
12360 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
12361
9a043c1d
AC
123622003-02-01 Andrew Cagney <ac131313@redhat.com>
12363
12364 * defs.h (host_pointer_to_address): Delete declaration.
12365 (address_to_host_pointer): Delete declaration.
12366 * utils.c (host_pointer_to_address): Delete function.
12367 (address_to_host_pointer): Delete function.
12368 * procfs.c (procfs_address_to_host_pointer): New function.
12369 * procfs.c (proc_set_watchpoint): Use.
12370 (procfs_can_use_hw_breakpoint): Update comments.
12371 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
12372 (som_solib_add): Use.
12373 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
12374 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 12375
7ca9f392
AC
123762003-02-01 Andrew Cagney <ac131313@redhat.com>
12377
94bbfd30
AC
12378 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
12379 strlen d_name.
12380
7ca9f392
AC
12381 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
12382 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
12383 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
12384 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
12385 (define_symbol): Update.
12386 * symfile.c (generic_load): Remove references to nindy.
12387 * symtab.c: Remove references to nindy.
12388
31a85ea2
AC
123892003-02-01 Andrew Cagney <ac131313@redhat.com>
12390
12391 * infcmd.c (print_float_info): Delete code conditional on
12392 FLOAT_INFO.
12393 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
12394 * config/m68k/nm-apollo68b.h: Ditto.
12395 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
12396 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
12397 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
12398
f6e85fc8
MK
123992003-02-01 Mark Kettenis <kettenis@gnu.org>
12400
6015b6a0
MK
12401 * config/i386/tm-i386os9k.h: Removed.
12402
f7a30bdf
MK
12403 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
12404 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
12405 they're identical to i[3456]86-*-sysv* now.
12406 * config/i386/i386v32.mh: Removed.
12407 * config/i386/xm-i386v32.h: Removed.
12408 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
12409
28d52111
MK
12410 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
12411
4d3f6bce
MK
12412 * config/i386/i386dgux.mh: Removed.
12413 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
12414
f6e85fc8
MK
12415 * configure.in: Fix typo.
12416 * configure: Regenerated.
12417
53955967
DC
124182003-01-31 David Carlton <carlton@math.stanford.edu>
12419
12420 * dwarf2read.c (dwarf2_locate_sections): Set
12421 dwarf_ranges_section.
12422
b1364885
AC
124232003-01-31 Andrew Cagney <ac131313@redhat.com>
12424
8dbb1c65
AC
12425 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
12426 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 12427
8731e58e
AC
12428 * utils.c: Re-indent.
12429
b1364885
AC
12430 * config/djgpp/fnchange.lst: Delete nindy files.
12431 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
12432 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
12433 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
12434 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
12435 * nindy-share/README, nindy-share/Onindy.c: Delete files.
12436 * nindy-tdep.c, nindy-share/Makefile: Delete files.
12437 * Makefile.in (init.c): Remove nindy references.
12438 (saber_gdb): Delete rule.
12439 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
12440 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
12441 and a68v-nat.c.
12442 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
12443 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
12444 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
12445 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
12446 nindy-share/stop.h.
12447 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
12448 * saber.suppress: Delete file.
12449
086df311
DJ
124502003-01-31 Daniel Jacobowitz <drow@mvista.com>
12451
12452 * dbxread.c (stabs_data): New static variable.
12453 (fill_symbuf): Support an in-memory buffer for stabs data.
12454 (stabs_seek): New function.
12455 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
12456 (read_ofile_symtab): Use stabs_seek.
12457 (elfstab_build_psymtabs): Take an asection* instead of
12458 an offset and size. Relocate the stabs data if necessary.
12459 Save the section* for dbx_psymtab_to_symtab.
12460 * dwarf2read.c: Add section variables for each debug section.
12461 (dwarf2_locate_sections): Fill them in.
12462 (dwarf2_read_section): Take an asection* argument.
12463 Relocate the section contents if necessary.
12464 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
12465 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
12466 it to dwarf2_read_section.
12467 (dwarf2_build_frame_info): Update callers.
12468 * elfread.c (elf_symfile_read): Update call to
12469 elfstab_build_psymtabs.
12470 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
12471 (DBX_STAB_SECTION): New macro.
8ffd9b1b 12472 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
12473 * symfile.c (symfile_dummy_outputs): New function.
12474 (symfile_relocate_debug_section): New function.
12475 * symfile.h (symfile_relocate_debug_section): Add prototype.
12476
87d1b352
RH
124772003-01-31 Richard Henderson <rth@redhat.com>
12478
12479 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
12480 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
12481 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
12482 * alpha-tdep.c (alpha_register_name): Add "unique".
12483 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
12484 (ALPHA_UNIQUE_REGNUM): New.
12485 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
12486
c48861fb
AC
124872003-01-31 Andrew Cagney <ac131313@redhat.com>
12488
12489 * README: Remove reference to Ericsson 1800 monitor.
12490 * Makefile.in (remote-es.o): Delete rule.
12491 (ALLDEPFILES): Delete remote-es.c.
12492 * remote-es.c: Delete file.
12493 * config/m68k/es1800.mt: Delete file.
12494 * config/djgpp/fnchange.lst: Update.
12495 * configure.tgt: Delete m68*-ericsson-* target.
12496
d764a824
AF
124972003-01-31 Adam Fedor <fedor@gnu.org>
12498
12499 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
12500 Remove duplicate/shadowing variable of same name.
12501
fe36c4f4
JB
125022003-01-30 Jim Blandy <jimb@redhat.com>
12503
12504 * symfile.c (find_separate_debug_file): Assert that the objfile's
12505 directory name we compute ends with a slash, and then assume that
12506 that's so everywhere we use it.
12507
cb741690
DJ
125082003-01-30 Daniel Jacobowitz <drow@mvista.com>
12509
12510 * valops.c (value_assign): Flush frame cache after stores to memory
12511 also.
12512
96ee5227
AC
125132003-01-30 Andrew Cagney <ac131313@redhat.com>
12514
12515 * Makefile.in (mon960-rom.o): Delete rule.
12516 * mon960-rom.c: Delete file.
12517
7f6104a9
AC
125182003-01-30 Andrew Cagney <ac131313@redhat.com>
12519
12520 * d10v-tdep.c: Include "frame-unwind.h".
12521 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
12522 list.
12523 (next_addr, uses_frame): Delete.
12524 (struct d10v_unwind_cache): Define.
12525 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
12526 Use info instead of next_addr and uses_frame globals.
12527 (d10v_frame_init_saved_regs): Delete function.
12528 (d10v_init_extra_frame_info): Delete function.
12529 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
12530 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
12531 init_frame_pc or frame_saved_pc.
12532 (d10v_pop_frame): Delete function.
12533 (do_d10v_pop_frame): Delete function.
12534 (d10v_frame_chain): Delete function.
12535 (d10v_frame_chain_valid): Delete function.
12536 (d10v_frame_pc_unwind): New function.
12537 (d10v_frame_id_unwind): New function.
12538 (saved_regs_unwinder): New function.
12539 (d10v_frame_register_unwind): New function.
12540 (d10v_frame_pop): New function.
12541 (d10v_frame_unwind): New variable.
12542 (d10v_frame_p): New function.
12543 (d10v_frame_saved_pc): Delete function.
12544 * Makefile.in (d10v-tdep.o): Update dependencies.
12545
cad2e848
JB
125462003-01-30 J. Brobecker <brobecker@gnat.com>
12547
12548 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
12549 causing some regressions due to a change in the default value
12550 for this macro.
12551
af34e669
DJ
125522003-01-29 Richard Henderson <rth@redhat.com>
12553 Elena Zannoni <ezannoni@redhat.com>
12554 Daniel Jacobowitz <drow@mvista.com>
12555
12556 Fix PR gdb/961.
8ffd9b1b 12557 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
12558 variables.
12559 (RANGES_SECTION): New.
12560 (dwarf_ranges_buffer): New variable.
12561 (struct comp_unit_head): Add member "die".
12562 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
12563 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
12564 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
12565 (dwarf2_locate_sections): Likewise.
12566 (dwarf2_build_psymtabs): Read .debug_ranges.
12567 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
12568 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
12569 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
12570 Look for DW_AT_ranges and return the bounding box.
12571
baa93fa6
CF
125722003-01-29 Brian Ford <ford@vss.fsi.com>
12573
12574 * win32-nat.c (cygwin_pid): Removed as unused.
12575 (child_attach): Try fall back to Cygwin pid.
12576
c63f977f
JB
125772003-01-29 Jim Blandy <jimb@redhat.com>
12578
12579 * objfiles.h (struct objfile): Doc fix.
12580
d62d1979
AC
125812003-01-29 Andrew Cagney <ac131313@redhat.com>
12582
12583 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
12584 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
12585 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
12586 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
12587 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
12588 (FRAME_SAVED_PC): Change to a function with predicate.
12589 * gdbarch.h, gdbarch.c: Re-generate.
12590
1ae18a04
AC
125912003-01-28 Andrew Cagney <ac131313@redhat.com>
12592
52287340
AC
12593 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
12594
1ae18a04
AC
12595 * complaints.c (complain): Delete function.
12596 * complaints.h (struct deprecated_complaint): Delete definition.
12597 (complain): Delete declaration.
12598
f2c16bd6
KB
125992003-01-28 Kevin Buettner <kevinb@redhat.com>
12600
12601 * mips-tdep.c (mips_init_extra_frame_info): Return early for
12602 dummy frames.
12603
a94dd1fd
AC
126042003-01-27 Andrew Cagney <ac131313@redhat.com>
12605
12606 * sentinel-frame.h, sentinel-frame.c: New files.
12607 * Makefile.in (frame.o): Update dependencies.
12608 (SFILES): Add sentinel-frame.c.
12609 (sentinel_frame_h): Define.
12610 (COMMON_OBS): Add sentinel-frame.o.
12611 (sentinel-frame.o): Specify dependencies.
12612 * frame.c: Include "sentinel-frame.h".
12613 (frame_register_unwind): Rewrite assuming that there is always a a
12614 ->next frame.
12615 (frame_register, generic_unwind_get_saved_register): Ditto.
12616 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
12617 (create_sentinel_frame, unwind_to_current_frame): New functions.
12618 (get_current_frame): Rewrite using create_sentinel_frame and
12619 unwind_to_current_frame. When possible, always create a frame.
12620 (create_new_frame): Set next to the sentinel frame.
12621 (get_next_frame): Rewrite. Don't go below the level 0 frame.
12622 (deprecated_update_frame_pc_hack): Update the next frame's PC and
12623 ID cache when necessary.
12624 (frame_saved_regs_id_unwind): Use frame_relative_level.
12625 (deprecated_generic_get_saved_register): Use frame_relative_level,
12626 get_frame_saved_regs, get_frame_pc, get_frame_base and
12627 get_next_frame.
12628 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
12629 frame_register.
12630
5378adc4
DJ
126312003-01-27 Daniel Jacobowitz <drow@mvista.com>
12632
12633 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
12634
51ee2ddc
DJ
126352003-01-27 Daniel Jacobowitz <drow@mvista.com>
12636
12637 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
12638 (maintenance_set_profile_cmd): Use error () instead of warning ().
12639
d9feb4e7
DJ
126402003-01-27 Daniel Jacobowitz <drow@mvista.com>
12641
12642 * configure.in: Check that -pg works if using --enable-profiling.
12643 Check for monstartup and _mcleanup regardless of --enable-profiling.
12644 * maint.c: Check for monstartup and _mcleanup before using them.
12645 * config.in: Regenerated.
12646 * configure: Regenerated.
12647
2d188dd3
NC
126482003-01-24 Nick Clifton <nickc@redhat.com>
12649
12650 * Add sh2e support:
12651
12652 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
12653
12654 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
12655 (sh2e_show_regs): New.
12656 (sh_gdbarch_init): Handle bfd_mach_sh2e.
12657 * config/sh/tm-sh.h: Added sh2e to comments.
12658
cb3c37b2
JB
126592003-01-23 Jim Blandy <jimb@redhat.com>
12660
12661 * symfile.c (syms_from_objfile): Don't print the "(no debugging
12662 symbols found)" message here; we haven't checked for a separate
12663 debug info file yet, so we don't know yet.
12664 (symbol_file_add_with_addrs_or_offsets): Print it here, after
12665 we've looked everywhere. Also, there's no need to print a special
12666 message when we're loading the separate debug info file: the one
12667 symbol_file_add prints is fine.
12668
5b5d99cf
JB
126692003-01-23 Alexander Larsson <alexl@redhat.com>
12670 Jim Blandy <jimb@redhat.com>
12671
12672 Add support for executables whose debug info has been separated
12673 out into a separate file, leaving only a link behind.
12674 * objfiles.h (struct objfile): New fields: separate_debug_objfile
12675 and separate_debug_objfile_backlink.
12676 (put_objfile_before): New declaration.
12677 * symfile.c: #include "filenames.h".
12678 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
12679 debug info in a separate file, read that, too. Save the addrs
12680 argument, so we can use it again to read the separated debug info;
12681 syms_from_objfile modifies the table we pass it.
12682 (reread_symbols): After re-reading an objfile, call
12683 reread_separate_symbols to refresh its separate debug info
12684 objfile, if it has one.
12685 (reread_separate_symbols, find_separate_debug_file,
12686 get_debug_link_info, separate_debug_file_exists): New functions.
12687 (debug_file_directory): New global var.
12688 (_initialize_symfile): Initialize debug_file_directory, and
12689 provide the new `set debug-file-directory' command to let the user
12690 change it.
12691 * objfiles.c (free_objfile): If this objfile has its debug info in
12692 a separate objfile, free that one too. If this is itself a
12693 separate debug info objfile, clear our parent's backlink.
12694 (put_objfile_before): New function.
12695 * utils.c (gnu_debuglink_crc32): New function.
12696 * defs.h (gnu_debuglink_crc32): New declaration.
12697 * Makefile.in (symfile.o): Note dependency on "filenames.h".
12698 * configure.in: Handle --with-separate-debug-dir config option.
12699 * acinclude.m4 (AC_DEFINE_DIR): New macro.
12700 * acconfig.h (DEBUGDIR): New macro.
12701 * configure, aclocal.m4, config.in: Regenerated.
12702
7e8580c1
JB
127032003-01-22 Jim Blandy <jimb@redhat.com>
12704
7904e09f
JB
12705 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
12706 like the old symbol_file_add, but taking new arguments: you can
12707 now pass in either a `struct section_addr_info' list to say where
12708 each section is loaded, or a `struct section_offsets' table. Pass
12709 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 12710 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
12711 with the appropriate quiescent values for the new arguments.
12712
7e8580c1
JB
12713 * symfile.c: #include "gdb_assert.h".
12714 (syms_from_objfile): Add the ability to pass in a section offset
12715 table directly, as an alternative to the section_addr_info table.
12716 Document arguments better.
12717 (symbol_file_add): Pass extra arguments to syms_from_objfile.
12718 * symfile.h (syms_from_objfile): Update declaration.
12719 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
12720 syms_from_objfile.
12721 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
12722
d28f9cdf
DJ
127232003-01-22 Daniel Jacobowitz <drow@mvista.com>
12724
12725 Original patch by Tom Tromey <tromey@cygnus.com> and
12726 Jason Molenda <jmolenda@apple.com>.
12727 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
12728 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
12729 * NEWS: Mention profiling.
12730 * configure.in (--enable-gdbtk): Fix typo.
12731 (--enable-profiling): New. Set PROFILE_CFLAGS.
12732 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
12733 Fill in function.
12734 (profiling_state): New variable.
12735 (mcleanup_wrapper): New function.
12736 (_initialize_maint): Remove NOTYET, fix call to
12737 add_setshow_boolean_cmd for "maint set profile".
12738 * configure: Regenerated.
12739
df21e465
MH
127402003-01-21 Martin M. Hunt <hunt@redhat.com>
12741
12742 * Makefile.in (install-gdbtk): Install PNG images too.
12743
73c1f219
AC
127442003-01-21 Andrew Cagney <ac131313@redhat.com>
12745
12746 * exec.c (text_start): Delete global variable.
12747 (exec_file_attach): Make text_start local to the function.
12748 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
12749 * valops.c (hand_function_call): Delete code that handles
12750 BEFORE_TEXT_END and AFTER_TEXT_END.
12751 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
12752 of CALL_DUMMY_LOCATION.
12753 * gdbarch.c: Regenerate.
12754 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
12755 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
12756 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
12757 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
12758 (text_end): Delete extern declaration.
12759
eb4f72c5
AC
127602003-01-21 Andrew Cagney <ac131313@redhat.com>
12761
12762 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
12763 * blockframe.c (backtrace_below_main): Move to "frame.c".
12764 (frame_chain_valid): Delete check for backtrace_below_main.
12765 (_initialize_blockframe): Delete initialization, move ``set
12766 backtrace-below-main'' command to "frame.c".
12767 (do_flush_frames_sfunc): Delete function.
12768 * frame.c: Include "command.h" and "gdbcmd.h".
12769 (frame_type_from_pc): New function.
12770 (create_new_frame): Use frame_type_from_pc.
12771 (legacy_get_prev_frame): New function.
12772 (get_prev_frame): Rewrite. When an old style frame, call
12773 legacy_get_prev_frame. Otherwize, unwind the PC first.
12774 (_initialize_frame): Add ``set backtrace-below-main'' command.
12775 * Makefile.in (frame.o): Update dependencies.
12776
778ce8cc
AC
127772003-01-19 Andrew Cagney <ac131313@redhat.com>
12778
12779 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
12780 DEPRECATED_REGISTERS_INFO.
12781
01c193c8
AC
127822003-01-19 Andrew Cagney <ac131313@redhat.com>
12783
12784 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
12785 Maintainers'. Update `Various Maintainers'.
12786
dedc2a2b
AC
127872003-01-19 Andrew Cagney <ac131313@redhat.com>
12788
12789 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
12790 * gdbarch.sh (POP_FRAME): Change to function with predicate.
12791 Suppress actual parameters when `-'.
12792 * gdbarch.h, gdbarch.c: Regenerate.
12793
b7261c70
AC
127942003-01-19 Andrew Cagney <ac131313@redhat.com>
12795
12796 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
12797 code handling dummy frames.
12798
dbe9fe58
AC
127992003-01-19 Andrew Cagney <ac131313@redhat.com>
12800
12801 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
12802 (struct frame_unwind): Add field pop.
12803 * frame.h (frame_pop): Declare.
12804 * frame.c (frame_saved_regs_pop): New function.
12805 (trad_frame_unwinder): Add frame_saved_regs_pop.
12806 (frame_pop): New function.
12807 * dummy-frame.c (dummy_frame_pop): New function.
12808 (discard_innermost_dummy): New function.
12809 (generic_pop_dummy_frame): Use discard_innermost_dummy.
12810 (dummy_frame_unwind): Add dummy_frame_pop.
12811 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
12812 * valops.c (hand_function_call): Ditto.
12813 * stack.c (return_command): Ditto.
12814
570b8f7c
AC
128152003-01-18 Andrew Cagney <ac131313@redhat.com>
12816
12817 * cris-tdep.c: Fix function declaration indentation.
12818 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12819 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12820 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12821 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12822 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12823 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12824
128252003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
12826
12827 * README (Unpacking and Installation -- quick overview):
12828 Warn against ".../gdb-5.3/gdb/configure".
12829
494cca16
AC
128302003-01-18 Andrew Cagney <ac131313@redhat.com>
12831
12832 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12833 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12834 (struct frame_unwind): Declare opaque.
12835 (dummy_frame_p): Declare function.
12836 * dummy-frame.c (dummy_frame_id_unwind): Make static.
12837 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12838 * dummy-frame.c: Include "frame-unwind.h".
12839 (dummy_frame_p): New function.
12840 (dummy_frame_unwind): New variable.
12841 * frame.c: Include "frame-unwind.h".
12842 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12843 to use the new unwind field.
12844 (set_unwind_by_pc): Delete function.
12845 (create_new_frame, get_prev_frame): Set unwind field using
12846 frame_unwind_find_by_pc.
12847 (trad_frame_unwind, trad_frame_unwinder): New variables.
12848 * frame.h (trad_frame_unwind): Declare variable.
12849 (frame_id_unwind_ftype): Delete declaration.
12850 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12851 (struct frame_unwind): Declare opaque.
12852 (struct frame_info): Replace the fields id_unwind, pc_unwind and
12853 register_unwind with a single unwind pointer.
12854 * frame-unwind.h, frame-unwind.c: New files.
12855 * Makefile.in (SFILES): Add frame-unwind.c.
12856 (frame_unwind_h): Define.
12857 (COMMON_OBS): Add frame-unwind.o.
12858 (frame-unwind.o): Specify dependencies.
12859 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 12860
4efb68b1
AC
128612003-01-18 Andrew Cagney <ac131313@redhat.com>
12862
12863 * ada-valprint.c: Eliminate PTR.
12864 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12865 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12866 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12867 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12868 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12869 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12870 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 12871
a84d24ee
AC
128722003-01-17 Andrew Cagney <ac131313@redhat.com>
12873
762f08a3
AC
12874 * main.c (captured_main): Don't use PTR.
12875 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12876 * gdbtypes.c (lookup_primitive_typename): Ditto.
12877 (lookup_struct_elt_type): Ditto.
12878 * f-valprint.c (info_common_command): Ditto.
12879 (list_all_visible_commons): Ditto.
12880 * jv-typeprint.c (java_type_print_base): Ditto.
12881
a84d24ee
AC
12882 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12883 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12884 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12885 i386-interix-nat.c and i386-interix-tdep.c. Rename
12886 m68klinux-nat.c and m68klinux-tdep.c. Rename
12887 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12888 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12889 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12890 * main.c (captured_main): Use xfree, not free.
12891
c170fb60
AC
128922003-01-16 Andrew Cagney <ac131313@redhat.com>
12893
12894 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12895 ID back using a parameter.
12896 * frame.c (frame_id_unwind): Update call.
12897 (frame_saved_regs_id_unwind): Update.
12898 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12899 * dummy-frame.h (struct frame_id): Add opaque declaration.
12900 (dummy_frame_id_unwind): Update declaration.
12901
867f3898
AC
129022003-01-15 Andrew Cagney <ac131313@redhat.com>
12903
12904 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12905
40622be8 129062003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 12907
40622be8 12908 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 12909
ae66c1fc
EZ
129102003-01-14 Elena Zannoni <ezannoni@redhat.com>
12911
997b089a 12912 Fix PR gdb/898
ae66c1fc
EZ
12913 * breakpoint.c (until_break_command): Add new argument. Use it to
12914 decide whether to stop only at the current frame or not.
12915 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 12916 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
12917 call.
12918 (advance_command): New function.
12919 (_initialize_infcmd): Update help string for 'until' command.
12920 Add new 'advance' command.
12921
a04257e6
DC
129222003-01-14 David Carlton <carlton@math.stanford.edu>
12923
12924 * linespec.c (decode_line_1): Normalize comments.
12925 (set_flags): Ditto.
12926 (locate_first_half): Ditto.
12927 (decode_compound): Ditto.
12928 (symtab_from_filename): Ditto.
12929 (decode_all_digits): Ditto.
12930 (decode_dollar): Ditto.
12931 (find_methods): Ditto.
12932 (find_toplevel_char): Ditto.
12933
1bac305b
AC
129342003-01-13 Andrew Cagney <ac131313@redhat.com>
12935
12936 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12937 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12938 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12939 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12940 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12941 * language.c, language.h, m32r-tdep.c: Update copyright.
12942 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12943 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12944 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12945 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12946 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12947 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12948
25caa7a8
EZ
129492003-01-13 Elena Zannoni <ezannoni@redhat.com>
12950
12951 * stabsread.h (process_later, resolve_cfront_continuation):
12952 Obsolete.
12953 Update copyright years.
12954 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12955 Update copyright year.
12956 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 12957 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
12958 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12959 Update copyright year.
12960 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12961 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12962 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12963 (parse_partial_symbols): Obsolete cfront support.
12964 * stabsread.c
12965 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12966 macros.
12967 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12968 read_cfront_baseclasses, read_cfront_member_functions,
12969 resolve_cfront_continuation,read_cfront_static_fields,
12970 copy_cfront_struct_fields): Obsolete functions.
12971 (define_symbol, read_one_struct_field): Obsolete cfront support.
12972 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12973 Update Copyright year.
12974
7789c6f5
EZ
129752003-01-13 Elena Zannoni <ezannoni@redhat.com>
12976
12977 * stack.c (print_frame_info, print_stack_frame_base_stub,
12978 print_stack_frame_base, show_and_print_stack_frame_stub,
12979 show_and_print_stack_frame, print_only_stack_frame_stub,
12980 print_only_stack_frame): Delete functions.
12981 (print_stack_frame_stub): Call print_frame_info instead of
12982 print_frame_info_base.
12983 (print_frame_info_base): Rename to print_frame_info.
12984 (backtrace_command_1): Call print_frame_info, instead of
12985 print_frame_info_base.
12986 (current_frame_command): Call print_stack_frame, instead of
12987 print_only_stack_frame.
12988 (frame_command): Call print_stack_frame, instead of
12989 show_and_print_stack_frame.
12990 (up_command): Ditto.
12991 (down_command): Ditto.
12992 * frame.h (print_only_stack_frame): Delete prototype.
12993 * infrun.c (normal_stop): Call print_stack_frame, instead of
12994 show_and_print_stack_frame.
12995 * thread.c (info_threads_command): Call print_stack_frame, instead
12996 of print_only_stack_frame.
12997
3f5a3016
AC
129982003-01-13 Andrew Cagney <ac131313@redhat.com>
12999
d99ba314
AC
13000 * README (Graphical interface to GDB): Update URL. Point at
13001 gdb/links/.
13002
3f5a3016
AC
13003 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
13004 version match.
13005
083ae935
DJ
130062003-01-13 Daniel Jacobowitz <drow@mvista.com>
13007
13008 * symtab.c (find_pc_sect_line): Don't consider end-of-function
13009 lines.
13010
5365276c
DJ
130112003-01-13 Daniel Jacobowitz <drow@mvista.com>
13012
13013 * thread-db.c (attach_thread): Prototype.
13014 (struct private_thread_info): Remove lwpid. Add thread handle (th),
13015 thread information (ti), and valid flags (th_valid, ti_valid).
13016 (attach_thread): Move target_pid_to_str call to after the thread
13017 is added to GDB's list. Initialize the cache.
13018 (thread_get_info_callback, thread_db_map_id2thr)
13019 (thread_db_get_info): New functions.
13020 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13021 (thread_db_store_registers, thread_db_thread_alive)
13022 (thread_db_get_thread_local_address): Use them.
13023 (thread_db_pid_to_str): Likewise. Return "Missing" instead
13024 of calling error() for threads in unknown state.
13025
13026 (clear_lwpid_callback): New function.
13027 (thread_db_resume): Use it to clear the cache.
13028
9fc30b6b
DJ
130292003-01-13 Daniel Jacobowitz <drow@mvista.com>
13030
13031 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13032 (resume_callback): Remove dead code.
13033
8f871025
AC
130342003-01-13 Andrew Cagney <ac131313@redhat.com>
13035
13036 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13037 predicate.
13038 * gdbarch.h, gdbarch.c: Regenerate.
13039 * stack.c (frame_info): Only initialize the saved registers when
13040 FRAME_INIT_SAVED_REGS_P.
13041 * frame.c (frame_saved_regs_register_unwind): Assert
13042 FRAME_INIT_SAVED_REGS_P.
13043 (deprecated_generic_get_saved_register): Ditto.
13044
3f565f1e
DJ
130452003-01-13 Daniel Jacobowitz <drow@mvista.com>
13046
13047 * source.c (openp): Squelch warning about "filename".
13048
072b1022
DJ
130492003-01-13 Daniel Jacobowitz <drow@mvista.com>
13050
13051 * source.c (openp): If the file does not exist don't necessarily
13052 search the path.
13053
973ccf8b
DJ
130542003-01-13 Daniel Jacobowitz <drow@mvista.com>
13055
13056 Fix PR gdb/872.
13057 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
13058 (integer_types_same_name_p): New function.
13059 (rank_one_type): Use it.
13060 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
13061
030292b7
DJ
130622003-01-13 Daniel Jacobowitz <drow@mvista.com>
13063
13064 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
13065 variables.
13066 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
13067 * configure.in: Add --with-sysroot.
13068 * configure: Regenerated.
13069 * main.c (gdb_sysroot): New variable.
13070 (captured_main): Initialize gdb_sysroot.
13071 * defs.h (gdb_sysroot): New extern declaration.
13072 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
13073
afb5d334
MC
130742003-01-12 Michael Chastain <mec@shout.net>
13075
13076 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
13077
751ceeb4
MC
130782003-01-12 Michael Chastain <mec@shout.net>
13079
13080 * top.c (print_gdb_version): Bump copyright year to 2003.
13081
94cd26f8
DC
130822003-01-12 David Carlton <carlton@bactrian.org>
13083
13084 * linespec.c (symtab_from_filename): Rename variable 's' to
13085 'file_symtab'.
13086
1ce79225
AC
130872003-01-12 Andrew Cagney <ac131313@redhat.com>
13088
13089 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
13090 dummy frame.
13091 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
13092
fa1fd571
AC
130932003-01-12 Andrew Cagney <ac131313@redhat.com>
13094
13095 * d10v-tdep.c: Include "gdb_assert.h".
13096 (d10v_store_return_value): Rewrite to match current interface.
13097 (d10v_extract_struct_value_address): Ditto.
13098 (d10v_extract_return_value): Ditto.
13099 (d10v_gdbarch_init): Set store_restore_value,
13100 extract_struct_value_address and extract_return_value.
13101
68b8d23e
JB
131022003-01-12 J. Brobecker <brobecker@gnat.com>
13103
13104 * hpread.c (set_namestring): New procedure replacing the
13105 SET_NAMESTRING macro.
13106 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
13107 by calls to set_namestring.
13108
131092003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
13110
13111 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
13112 a compilation warning.
13113 (hpread_process_one_debug_symbol): Likewise.
13114
88d262ca
DC
131152003-01-10 David Carlton <carlton@math.stanford.edu>
13116
13117 * linespec.c (decode_line_1): Rename variable 's' to
13118 'file_symtab'.
13119 (decode_all_digits): Rename argument 's' to 'file_symtab'.
13120 (decode_dollar): Ditto.
13121 (decode_variable): Ditto.
13122 (symbol_found): Ditto.
13123
86669319
MC
131242003-01-09 Michael Chastain <mec@shout.net>
13125
13126 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
13127
616a9dc4
CV
131282003-01-07 Corinna Vinschen <vinschen@redhat.com>
13129
13130 * win32-nat.c (set_process_privilege): New function.
13131 (child_attach): Call set_process_privilege() to enable the
13132 SE_DEBUG_NAME user privilege if available in process token.
13133
3269bcfa
JB
131342003-01-10 J. Brobecker <brobecker@gnat.com>
13135
13136 * hpread.c (hpread_process_one_debug_symbol): Fix a small
13137 compilation error in the previous revision.
13138
2b0ee454
DC
131392003-01-09 David Carlton <carlton@math.stanford.edu>
13140
13141 * linespec.c: Update copyright.
13142
b3ba1b44
DJ
131432003-01-09 Daniel Jacobowitz <drow@mvista.com>
13144
13145 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
13146 than inferior_ptid.
13147 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
13148
4ef3f3be
AC
131492003-01-09 Andrew Cagney <ac131313@redhat.com>
13150
479ab5a0
AC
13151 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
13152 Update comments.
13153 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
13154 (frame_saved_regs_zalloc): Update.
13155 (frame_saved_regs_register_unwind): Update.
13156 (create_new_frame): Update.
13157 (get_prev_frame): Update.
13158 (frame_extra_info_zalloc): Update.
13159 (deprecated_get_frame_saved_regs): Update.
13160 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
13161 * cris-tdep.c: Update comment.
13162
bde58177
AC
13163 * somsolib.h: Fix function indentation.
13164 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
13165 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
13166 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
13167 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
13168 * somsolib.c, inftarg.c: Remove assignment in if conditional.
13169
4ef3f3be
AC
13170 * infrun.c (follow_fork): Use ISO C definition.
13171 * expprint.c (print_subexp): Use xfree instead of free.
13172 * charset.c: Include "gdb_string.h" instead of <string.h>.
13173 (register_iconv_charsets): Use ISO C definition.
13174 (host_charset, target_charset): Ditto.
13175 * Makefile.in (charset.o): Update dependencies.
13176 (mi-cmd-env.o): Update dependencies.
13177
1c615f7a
AC
131782003-01-08 Andrew Cagney <cagney@redhat.com>
13179
13180 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
13181 get_frame_base.
13182
c9a1dc08
AC
131832003-01-08 Andrew Cagney <ac131313@redhat.com>
13184
13185 * gdb_mbuild.sh: Add --keep option. When specified, keep the
13186 build directories. Save edited gdb output in Mbuild.log. If a
13187 build fails, remove any final GDB executable.
13188
dbad9d94
AC
131892003-01-08 Andrew Cagney <ac131313@redhat.com>
13190
13191 * gdb_mbuild.sh: Edit the output of `maint print architecture'
13192 replacing hex constants with function names and stripping leading
13193 file name directory prefixes.
13194
8d357cca
AC
131952003-01-08 Andrew Cagney <cagney@redhat.com>
13196
13197 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
13198 get_frame_base.
13199
bca02a8a
DC
132002003-01-08 David Carlton <carlton@math.stanford.edu>
13201
13202 * linespec.c (decode_line_1): Move code into decode_variable.
13203 (decode_variable): New function.
13204
7f8ab3a0
AC
132052003-01-08 Andrew Cagney <ac131313@redhat.com>
13206
13207 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
13208
7b5849cc
AC
132092003-01-08 Andrew Cagney <cagney@redhat.com>
13210
13211 * cris-tdep.c (cris_frame_init_saved_regs): Use
13212 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
13213 saved_regs buffer.
13214 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
13215 (sh64_nofp_frame_init_saved_regs): Ditto.
13216 (sh_fp_frame_init_saved_regs): Ditto.
13217 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
13218 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13219 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13220 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13221
72a5efb3
DJ
132222003-01-08 Daniel Jacobowitz <drow@mvista.com>
13223
13224 * minsyms.c (lookup_minimal_symbol): Update comment.
13225 (lookup_minimal_symbol_text): Update comment. Use the hash table.
13226 (lookup_minimal_symbol_solib_trampoline): Likewise.
13227
11c02a10
AC
132282003-01-08 Andrew Cagney <cagney@redhat.com>
13229
aab3ea25
AC
13230 * d10v-tdep.c (d10v_init_extra_frame_info): Use
13231 frame_relative_level.
13232
da50a4b7
AC
13233 * alpha-tdep.c: Use get_frame_extra_info.
13234 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13235 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
13236 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13237 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
13238
11c02a10
AC
13239 * alpha-tdep.c: Use get_next_frame.
13240 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13241 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13242 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
13243 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
13244 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
13245 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
13246 * xstormy16-tdep.c: Ditto.
8ffd9b1b 13247
1e2330ba
AC
132482003-01-07 Andrew Cagney <cagney@redhat.com>
13249
13250 * alpha-tdep.c: Use get_frame_base.
13251 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13252 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13253 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13254 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13255 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
13256 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13257 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
13258 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 13259
2d75187b
AC
132602003-01-07 Andrew Cagney <cagney@redhat.com>
13261
13262 * frame.c (deprecated_get_frame_context): New function.
13263 (deprecated_set_frame_context): New function.
13264 * frame.h (deprecated_get_frame_context): Declare.
13265 (deprecated_set_frame_context): Declare.
13266 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
13267 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 13268
483d36b2
AC
132692003-01-07 Andrew Cagney <cagney@redhat.com>
13270
13271 * frame.c (deprecated_set_frame_next_hack): New function.
13272 (deprecated_set_frame_prev_hack): New function.
13273 * frame.h (deprecated_set_frame_next_hack): Declare.
13274 (deprecated_set_frame_prev_hack): Declare.
13275 * mcore-tdep.c (analyze_dummy_frame): Use
13276 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
13277 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13278
14e91ac5
DC
132792003-01-07 David Carlton <carlton@math.stanford.edu>
13280
13281 * linespec.c (decode_line_1): Move code into decode_dollar.
13282 (decode_dollar): New function.
13283
b0c6b05c
AC
132842003-01-07 Andrew Cagney <cagney@redhat.com>
13285
13286 * arm-tdep.c (arm_init_extra_frame_info): Use
13287 deprecated_update_frame_base_hack.
13288 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
13289 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13290 (fix_frame_pointer): Ditto.
13291 (mn10300_analyze_prologue): Ditto.
13292
a00a19e9
AC
132932003-01-07 Andrew Cagney <cagney@redhat.com>
13294
13295 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
13296 extra_info using frame_extra_info_zalloc.
13297 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
13298 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
13299 (sh64_init_extra_frame_info): Ditto.
13300 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
13301 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
13302 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13303 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
13304 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
13305 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
13306 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
13307 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
13308 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
13309 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
13310 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
13311 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
13312
13313 * mn10300-tdep.c (analyze_dummy_frame): Use
13314 deprecated_set_frame_extra_info_hack.
13315 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13316
1fb4c65b
JB
133172003-01-07 J. Brobecker <brobecker@gnat.com>
13318
13319 * mdebugread.c (parse_symbol): Skip stProc entries which storage
13320 class is not scText. These do not define "real" procedures.
13321 (parse_partial_symbols): Likewise.
13322
9fe7d6bf
MS
133232003-01-06 Michael Snyder <msnyder@redhat.com>
13324
13325 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
13326
f6c609c4
AC
133272003-01-06 Andrew Cagney <ac131313@redhat.com>
13328
13329 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
13330 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
13331 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
13332 deprecated_frame_xmalloc_with_cleanup.
13333 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
13334 deprecated_frame_xmalloc.
13335 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
13336 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
13337
d995ff4b
AC
133382003-01-06 Andrew Cagney <cagney@redhat.com>
13339
84dc46cb
AC
13340 * x86-64-linux-tdep.c: Include "osabi.h".
13341 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
13342
d995ff4b
AC
13343 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
13344
66140c26
AC
133452003-01-06 Andrew Cagney <cagney@redhat.com>
13346
13347 * MAINTAINERS (Target Instruction Set Architectures): Update
13348 arm-elf. Can be built with -Werror, has been multiarched.
13349
13350 * value.h (unpack_long): Make buffer parameter constant.
13351 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
13352 * scm-lang.h (scm_parse): Ditto.
13353 * defs.h (extract_typed_address, extract_address): Ditto.
13354 (extract_long_unsigned_integer): Ditto.
13355 * inferior.h (unsigned_pointer_to_address): Ditto.
13356 (signed_pointer_to_address): Ditto.
13357 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
13358 * gdbarch.h, gdbarch.c: Regenerate.
13359 * findvar.c (extract_long_unsigned_integer): Update.
13360 (extract_address): Update.
13361 (extract_typed_address): Update.
13362 (unsigned_pointer_to_address): Update.
13363 * values.c (unpack_long): Update.
13364 (unpack_double): Update.
13365 (unpack_pointer): Update.
13366 (unpack_field_as_long): Update.
13367 * d10v-tdep.c (d10v_pointer_to_address): Update.
13368 * avr-tdep.c (avr_pointer_to_address): Update.
13369 * scm-lang.c (scm_unpack): Update.
13370 * findvar.c (signed_pointer_to_address): Update.
13371
b089b3da
ML
133722003-01-06 Michal Ludvig <mludvig@suse.cz>
13373
8ffd9b1b 13374 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
13375 since it is in i386-tdep.c.
13376
aff87235
JB
133772003-01-06 J. Brobecker <brobecker@gnat.com>
13378
13379 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
13380 failure introduced in the previous change.
13381
34f5e845
MC
133822003-01-05 Michael Chastain <mec@shout.net>
13383
13384 * README: Remove references to deleted remote-*.c files:
13385 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
13386 remote-nrom.c, remote-os9k.c, remote-udi.c.
13387
28bcfd30
MK
133882003-01-05 Mark Kettenis <kettenis@gnu.org>
13389
13390 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
13391 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
13392 i386_get_longjmp_target.
13393
15a5b3ee
AC
133942003-01-05 Andrew Cagney <ac131313@redhat.com>
13395
13396 * arm-tdep.c (prologue_cache): Change to a pointer.
13397 (_initialize_arm_tdep): Allocate prologue_cache.
13398 (check_prologue_cache): Update.
13399 (save_prologue_cache): Update.
13400 (arm_gdbarch_init): Update.
13401
c263362b
DJ
134022003-01-04 Daniel Jacobowitz <drow@mvista.com>
13403
13404 * stabsread.c (update_method_name_from_physname): Call complaint()
13405 instead of error.
13406
51603483
DJ
134072003-01-04 Daniel Jacobowitz <drow@mvista.com>
13408
13409 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
13410 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
13411 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
13412
13413 * blockframe.c: Include "gdbcmd.h" and "command.h".
13414 (backtrace_below_main): New variable.
13415 (file_frame_chain_valid, func_frame_chain_valid)
13416 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
13417 (generic_func_frame_chain_valid): Remove functions.
13418 (frame_chain_valid, do_flush_frames_sfunc): New functions.
13419 (_initialize_blockframe): New function.
13420 * Makefile.in (blockframe.o): Update dependencies.
13421 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
13422 comment. Call frame_chain_valid ().
13423 * frame.h: Remove old prototypes. Add prototype for
13424 frame_chain_valid and update comments to match.
13425 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
13426 Remove old comment.
13427 * gdbarch.h: Regenerated.
13428 * gdbarch.c: Regenerated.
13429
13430 * alpha-tdep.c (alpha_gdbarch_init): Don't call
13431 set_gdbarch_frame_chain_valid.
13432 * avr-tdep.c (avr_gdbarch_init): Likewise.
13433 * cris-tdep.c (cris_gdbarch_init): Likewise.
13434 * frv-tdep.c (frv_gdbarch_init): Likewise.
13435 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13436 * i386-tdep.c (i386_svr4_init_abi): Likewise.
13437 (i386_nw_init_abi): Likewise.
13438 (i386_gdbarch_init): Likewise.
13439 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
13440 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
13441 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
13442 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
13443 * mips-tdep.c (mips_gdbarch_init): Likewise.
13444 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
13445 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
13446 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13447 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13448 * s390-tdep.c (s390_gdbarch_init): Likewise.
13449 * sh-tdep.c (sh_gdbarch_init): Likewise.
13450 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13451 * v850-tdep.c (v850_gdbarch_init): Likewise.
13452 * vax-tdep.c (vax_gdbarch_init): Likewise.
13453 * x86-64-tdep.c (x86_64_init_abi): Likewise.
13454
13455 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
13456 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
13457 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
13458 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
13459 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
13460 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
13461 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
13462 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
13463
b00a8037
DJ
134642002-01-04 Daniel Jacobowitz <drow@mvista.com>
13465
13466 * Makefile.in (acconfig_h): Remove incorrect macro.
13467 (config_h): Define.
13468 (osabi.o): Update dependencies.
13469 * configure.tgt: Set gdb_osabi based on target triplet.
13470 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
13471 * configure: Regenerated.
13472 * config.in: Regenerated.
13473 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
13474 (GDB_OSABI_DEFAULT): Define if not already defined.
13475 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
13476 (set_osabi_string): New variables.
13477 (gdbarch_register_osabi): Add new OS ABI to
13478 gdb_osabi_available_names.
13479 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
13480 (set_osabi, show_osabi): New functions.
13481 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
13482
4be87837
DJ
134832003-01-04 Daniel Jacobowitz <drow@mvista.com>
13484
13485 * arch-utils.c (gdbarch_info_init): Set osabi to
13486 GDB_OSABI_UNINITIALIZED.
13487 * gdbarch.sh: Add osabi to struct gdbarch and to struct
13488 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
13489 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
13490 * gdbarch.c: Regenerated.
13491 * gdbarch.h: Regenerated.
13492 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
13493 there's no BFD.
13494 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
13495 * osabi.h (enum gdb_osabi): Move to defs.h.
13496 (gdbarch_init_osabi): Update prototype.
13497 * defs.h (enum gdb_osabi): Moved here.
13498 * Makefile.in: Update dependencies.
13499
13500 * alpha-tdep.h: Don't include "osabi.h".
13501 (struct gdbarch_tdep): Remove osabi member.
13502 * alpha-tdep.c: Include "osabi.h".
13503 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13504 iterate over arches. Update call to gdbarch_init_osabi.
13505 (alpha_dump_tdep): Don't dump osabi.
13506 * alpha-linux-tdep.c: Include "osabi.h".
13507 * alpha-osf1-tdep.c: Include "osabi.h".
13508 * alphafbsd-tdep.c: Include "osabi.h".
13509 * alphanbsd-tdep.c: Include "osabi.h".
13510
13511 * arm-tdep.h: Don't include "osabi.h".
13512 (struct gdbarch_tdep): Remove osabi member.
13513 * arm-tdep.c: Include "osabi.h".
13514 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13515 iterate over arches. Update call to gdbarch_init_osabi.
13516 (arm_dump_tdep): Don't dump osabi.
13517 * arm-linux-tdep.c: Include "osabi.h".
13518 * armnbsd-tdep.c: Include "osabi.h".
13519
13520 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
13521 Update call to gdbarch_init_osabi.
13522
13523 * i386-tdep.h: Don't include "osabi.h".
13524 (struct gdbarch_tdep): Remove osabi member.
13525 * i386-tdep.c: Include "osabi.h".
13526 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13527 iterate over arches. Update call to gdbarch_init_osabi.
13528 (i386_dump_tdep): Don't dump osabi.
13529 * i386-linux-tdep.c: Include "osabi.h".
13530 * i386-sol2-tdep.c: Include "osabi.h".
13531 * i386bsd-tdep.c: Include "osabi.h".
13532 * i386gnu-tdep.c: Include "osabi.h".
13533 * i386ly-tdep.c: Include "osabi.h".
13534 * i386nbsd-tdep.c: Include "osabi.h".
13535 * i386obsd-tdep.c: Include "osabi.h".
13536
13537 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
13538 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13539 check osabi when iterating over arches. Update call to
13540 gdbarch_init_osabi.
13541 (mips_dump_tdep): Don't dump osabi.
13542
13543 * ns32k-tdep.h: Don't include "osabi.h".
13544 (struct gdbarch_tdep): Remove.
13545 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
13546 gdbarch_lookup_osabi. Don't iterate over arches. Don't
13547 allocate tdep. Update call to gdbarch_init_osabi.
13548 (ns32k_dump_tdep): Remove.
13549 (_initialize_ns32k_tdep): Update call to gdbarch_register.
13550 * ns32knbsd-tdep.c: Include "osabi.h".
13551
13552 * ppc-tdep.h: Don't include "osabi.h".
13553 (struct gdbarch_tdep): Remove osabi member.
13554 * rs6000-tdep.c: Include "osabi.h".
13555 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
13556 osabi when iterating over arches. Update call to
13557 gdbarch_init_osabi.
13558 (rs6000_dump_tdep): Don't dump osabi.
13559 * ppc-linux-tdep.c: Include "osabi.h".
13560 * ppcnbsd-tdep.c: Include "osabi.h".
13561
13562 * sh-tdep.h: Don't include "osabi.h".
13563 (struct gdbarch_tdep): Remove osabi member.
13564 * sh-tdep.c: Include "osabi.h".
13565 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13566 iterate over arches. Update call to gdbarch_init_osabi.
13567 (sh_dump_tdep): Don't dump osabi.
13568 * shnbsd-tdep.c: Include "osabi.h".
13569
13570 * sparc-tdep.c: Include "osabi.h".
13571 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13572 iterate over arches. Update call to gdbarch_init_osabi.
13573 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
13574 tdep structure.
13575
13576 * vax-tdep.h: Don't include "osabi.h".
13577 (struct gdbarch_tdep): Remove.
13578 * vax-tdep.c: Include "osabi.h".
13579 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13580 iterate over arches. Don't allocate tdep. Update call
13581 to gdbarch_init_osabi.
13582 (vax_dump_tdep): Remove.
13583 (_initialize_vax_tdep): Update call to gdbarch_register.
13584
a881cf8e
DJ
135852003-01-04 Daniel Jacobowitz <drow@mvista.com>
13586
13587 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
13588 entirely.
13589 (breakpoint_re_set_one): Don't fetch the value for a disabled
13590 watchpoint.
13591
1e698235
DJ
135922003-01-04 Daniel Jacobowitz <drow@mvista.com>
13593
13594 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
13595 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
13596 (COERCE_FLOAT_TO_DOUBLE): Remove.
13597 * gdbarch.c: Regenerate.
13598 * gdbarch.h: Regenerate.
13599 * Makefile.in: Remove value_h from gdbarch_h.
13600 * valops.c (coerce_float_to_double): New variable.
13601 (default_coerce_float_to_double): Remove.
13602 (standard_coerce_float_to_double): Remove.
13603 (value_arg_coerce): Use coerce_float_to_double.
13604 (_initialize_valops): Add "set coerce-float-to-double".
13605 * value.h (default_coerce_float_to_double): Remove prototype.
13606 (standard_coerce_float_to_double): Remove prototype.
13607
13608 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
13609 prototyped.
13610 * mdebugread.c (parse_symbol): Likewise.
13611 * stabsread.c (define_symbol): Mark all functions as prototyped.
13612
13613 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
13614 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
13615 set_gdbarch_coerce_float_to_double.
13616 * arm-tdep.c (arm_gdbarch_init): Likewise.
13617 * frv-tdep.c (frv_gdbarch_init): Likewise.
13618 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
13619 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
13620 * mips-tdep.c (mips_gdbarch_init): Likewise.
13621 (mips_coerce_float_to_double): Remove.
13622 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13623 (rs6000_coerce_float_to_double): Remove.
13624 * s390-tdep.c (s390_gdbarch_init): Likewise.
13625 * sh-tdep.c (sh_gdbarch_init): Likewise.
13626 (sh_coerce_float_to_double): Remove.
13627 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13628 (sparc_coerce_float_to_double): Remove.
13629 * v850-tdep.c (v850_gdbarch_init): Likewise.
13630 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13631 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13632 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
13633 (hppa_coerce_float_to_double): Remove prototype.
13634 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13635
f436a26a
DJ
136362003-01-04 Daniel Jacobowitz <drow@mvista.com>
13637
13638 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
13639
248f8055
DJ
136402003-01-04 Daniel Jacobowitz <drow@mvista.com>
13641
13642 Suggested by Stewart Brown <sb24@avaya.com>:
13643 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
13644 in recursive calls. Handle TYPE_CODE_TYPEDEF.
13645 (c_type_print_varspec_suffix): Likewise.
13646
72cfdc76
MK
136472003-01-04 Mark Kettenis <kettenis@gnu.org>
13648
bfd260bb
MK
13649 * configure.in: Don't set and AC_SUBST SUBDIRS.
13650 * configure: Regenerated.
13651
72cfdc76
MK
13652 * configure.in: Remove code dealing with shared libraries.
13653 * Makefile.in: Remove HLDFLAGS and HLDENV.
13654 * configure: Regenerated.
13655
c8b8a898
AC
136562003-01-04 Andrew Cagney <ac131313@redhat.com>
13657
13658 * frame.c (deprecated_frame_xmalloc): New function.
13659 (deprecated_set_frame_saved_regs_hack): New function.
13660 (deprecated_set_frame_extra_info_hack): New function.
13661 * frame.h (deprecated_frame_xmalloc): Declare.
13662 (deprecated_set_frame_saved_regs_hack): Declare.
13663 (deprecated_set_frame_extra_info_hack): Declare.
13664
14abd0fb
MK
136652003-01-04 Mark Kettenis <kettenis@gnu.org>
13666
8ee53726
MK
13667 * configure.in: Move code that provides the --enable-gdbtk option
13668 right after the code that handles the --enable-tui option, and
13669 polish it somewhat.
13670 * configure: Regenerated.
13671
14abd0fb
MK
13672 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
13673 AC_CHECK_FUNCS and remove the old check for pread64.
13674 * acinclude.m4 (AC_GNU_SOURCE): New macro.
13675 * acconfig.h (_GNU_SOURCE): Add.
13676 (HAVE_PREAD64): Remove.
13677 * configure, aclocal.m4, config.in: Regenerated.
13678
b2fb4676
AC
136792003-01-03 Andrew Cagney <ac131313@redhat.com>
13680
13681 * alpha-tdep.c: Use get_frame_saved_regs.
13682 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13683 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13684 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
13685 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
13686 * vax-tdep.c, xstormy16-tdep.c: Ditto.
13687
8dcde887
MK
136882003-01-03 Mark Kettenis <kettenis@gnu.org>
13689
13690 * configure.in: Remove all use of the SUBDIRS variable; add
13691 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
13692 code providing the --enable-multi-ice option, and move it right in
13693 front of the code that checks whether gdbserver is supported.
13694 Polish that too.
13695 * configure: Regenerated.
13696 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
13697 @SUBDIRS@.
13698
8ccd593b
AC
136992003-01-03 Andrew Cagney <cagney@redhat.com>
13700
13701 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
13702 * avr-tdep.c, cris-tdep.c: Ditto.
13703 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13704 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 13705
91151a06
MK
137062003-01-03 Mark Kettenis <kettenis@gnu.org>
13707
13708 * configure.in: Remove --enable-netrom option.
13709 * configure: Regenerated.
13710
8fe84d01
MK
137112003-01-03 Mark Kettenis <kettenis@gnu.org>
13712
13713 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
13714 declaration for `struct re_pattern_buffer' instead.
13715 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
13716
f0394be6
JB
137172003-01-03 J. Brobecker <brobecker@gnat.com>
13718
13719 * mdebugread.c (parse_symbol): Count until the stEnd matching
13720 the structure name.
13721
27e9bf90
MK
137222003-01-02 Mark Kettenis <kettenis@gnu.org>
13723
93d331ba
MK
13724 * configure.in: Remove --with-cpu option.
13725 subscripts. Remove evil changequotes here.
13726 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
13727 * config.in, configure: Regenerated.
8ffd9b1b 13728
27e9bf90
MK
13729 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
13730 * configure.in: Cleanup section that sources GDB and BFD configure
13731 subscripts. Remove evil changequotes here.
13732 * config.in, configure: Regenerated.
13733
50abf9e5
AC
137342003-01-02 Andrew Cagney <ac131313@redhat.com>
13735
13736 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
13737 frame accessor methods.
13738 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13739 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13740 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
13741 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
13742 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13743 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13744 * z8k-tdep.c: Ditto.
8ffd9b1b 13745
287c1a40
MK
137462003-01-02 Mark Kettenis <kettenis@gnu.org>
13747
f5dbc56d
MK
13748 * configure.in: Remove UI_OUT configuration code.
13749 * ada-lang.c: Update assuming UI_OUT is always true.
13750 * Makefile.in (UIOUT_CFLAGS): Remove.
13751 * configure: Regenerated.
13752 * TODO: Remove blurb about elimination of -DUI_OUT.
13753
627af7ea
MK
13754 * configure.in: Move code that provides the --enable-gdbcli,
13755 --enable-gdbmi options right before the code that handles the
13756 --enable-tui option. Polish a bit.
13757 * configure: Regenerated.
13758
06825bd1
MK
13759 * configure.in: Rewrite check for GNU regex and the
13760 --without-included regex option, and move it into the "Checks for
13761 library functions" section. This makes us use the system regex
13762 again by default on systems with version 2 of the GNU C library.
13763 This was apparently broken.
13764 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
13765 * acconfig.h (USE_INCLUDED_REGEX): Remove.
13766 * config.in, configure: Regenerated.
13767
287c1a40
MK
13768 * configure.in: Move code that provides the --enable-tui option
13769 before the "Checks for libraries" section. Polish the code
13770 somewhat and set need_curses to yes if we build the TUI. Rewrite
13771 code that looks for a library providing termcap functionality to
13772 match more closely what's done in the Readline library, and move
13773 it into to the "Checks for libraries" section.
13774 * configure: Regenerated.
13775 * Makefile.in (TERMCAP): Remove variable.
13776 * config/i386/go32.mh (TERMCAP): Remove variable.
13777
684e56bf
AC
137782003-01-02 Andrew Cagney <ac131313@redhat.com>
13779
13780 * MAINTAINERS: Mention gdb_mbuild.sh.
13781 * gdb_mbuild.sh: Rewrite.
13782
e1ea1d75
MK
137832003-01-02 Mark Kettenis <kettenis@gnu.org>
13784
13785 * configure.in: Fix typo in last change.
13786 * config.in, configure: Regenerated.
13787
1b831c93
AC
137882003-01-02 Andrew Cagney <ac131313@redhat.com>
13789
13790 * valarith.c (value_binop): Delete obsolete code and comments.
13791 * configure.host: Ditto.
13792 * buildsym.h (make_blockvector): Ditto.
13793 * buildsym.c (make_blockvector): Ditto.
13794 * defs.h (enum language): Ditto.
13795 (chill_demangle): Ditto.
13796 * elfread.c (elf_symtab_read): Ditto.
13797 * dwarfread.c (CHILL_PRODUCER): Ditto.
13798 (set_cu_language): Ditto.
13799 (handle_producer): Ditto.
13800 * expprint.c (print_subexp): Ditto.
13801 * gdbtypes.c (chill_varying_type): Ditto.
13802 * gdbtypes.h (builtin_type_chill_bool): Ditto.
13803 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
13804 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
13805 (chill_varying_type): Ditto.
13806 * language.h (_LANG_chill): Ditto.
13807 * language.c (binop_result_type, integral_type): Ditto.
13808 (character_type, string_type, structured_type): Ditto.
13809 (lang_bool_type, binop_type_check): Ditto.
13810 * stabsread.h (os9k_stabs): Ditto.
13811 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
13812 (define_symbol, read_type, read_struct_fields): Ditto.
13813 (read_array_type, read_enum_type, read_huge_number): Ditto.
13814 (read_range_type, start_stabs): Ditto.
13815 * symfile.c (init_filename_language_table): Ditto.
13816 (add_psymbol_with_dem_name_to_list): Ditto.
13817 * symtab.c (symbol_init_language_specific): Ditto.
13818 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13819 * symtab.h (struct general_symbol_info): Ditto.
13820 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13821 * typeprint.c (typedef_print): Ditto.
13822 * utils.c (fprintf_symbol_filtered): Ditto.
13823 * valops.c (value_cast, search_struct_field, value_slice): Delete
13824 obsolete code.
13825 (varying_to_slice): Delete function.
13826 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13827 (varying_to_slice): Delete declaration.
13828 * MAINTAINERS: Update.
13829
8bb2c122
MK
138302003-01-02 Mark Kettenis <kettenis@gnu.org>
13831
97bf5e38
MK
13832 * configure.in: Reorganize "Checks for library functions section"
13833 a bit. Remove check for `btowc' and `isascii' functions.
13834 * configure: Regenerated.
13835
5ee754fc
MK
13836 * acconfig.h (_MSE_INT_H): Remove.
13837 * configure.in: Create "Checks for header files" section, and move
13838 appropriate tests there. Don't check for objlist.h, wchar.h,
13839 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
13840 misdetection fix. Also add "Checks for types", "Checks for
13841 compiler characteristics" and "Checks for library functions"
13842 sections.
13843 * config.in, configure: Regenerated.
13844
8bb2c122
MK
13845 * configure.in: Create "Checks for programs" section, and move
13846 appropriate tests there.
13847
9a156167
MK
138482003-01-01 Mark Kettenis <kettenis@gnu.org>
13849
13850 * configure.in: Create "Checks for libraries" section, and move
13851 appropriate tests there. Cleanup check for wctype in libw. Use
13852 AC_SEARCH_LIBS to see whether we need libsocket.
13853 * configure: Regenerated.
13854
a80e2bcb 13855For older changes see ChangeLog-2002
c906108c
SS
13856\f
13857Local Variables:
13858mode: change-log
13859left-margin: 8
13860fill-column: 74
13861version-control: never
13862End:
This page took 1.129191 seconds and 4 git commands to generate.