* Makefile.in: Quote sed expression when generating transformed_name.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
95303a68
TR
12003-07-11 Theodore A. Roth <troth@openavr.org>
2
3 * Makefile.in: Quote sed expression when generating transformed_name.
4
6896c0c7
RH
52003-07-11 Richard Henderson <rth@redhat.com>
6
7 * Makefile.in (dwarf2-frame.o): Add complaints_h.
8 * dwarf2-frame.c: Include complaints.h.
9 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
10 variable initialization; return NULL on error.
11 (decode_frame_entry): New.
12
8edd5d01
AC
132003-07-11 Andrew Cagney <cagney@redhat.com>
14
c4a09524
AC
15 * frame.h (frame_address_in_block): Delete declaration.
16 * blockframe.c (frame_address_in_block): Delete function.
17 (get_frame_block): Use get_frame_address_in_block.
18 (block_innermost_frame): Ditto.
19 * stack.c (print_frame, backtrace_command_1): Ditto.
20
8edd5d01
AC
21 * frame.h (get_frame_address_in_block): Declare.
22 (frame_unwind_address_in_block): Declare.
23 * frame.c (frame_unwind_address_in_block): New function.
24 (get_frame_address_in_block): New function.
25
f7968451
AC
262003-07-10 Andrew Cagney <cagney@redhat.com>
27
28 * gdbarch.sh: Simplify predicate methods. Remove need to provide
29 pre-default. Note: re-generate has no effect.
30
ae99b398
AC
312003-07-10 Andrew Cagney <cagney@redhat.com>
32
33 * gdbarch.sh: When a variable, but not a function, compare against
34 0. Fix problem in previous patch.
35 * gdbarch.c: Re-generate.
36
956ac328
AC
372003-07-10 Andrew Cagney <cagney@redhat.com>
38
39 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
40 functions against NULL, not 0.
41 * gdbarch.c: Re-generate.
42
287c3240
FF
432003-07-10 Fred Fish <fnf@ninemoons.com>
44
45 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
46 null string instead of a null pointer.
47 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
48
32f63c4b
MS
492003-07-09 Michael Snyder <msnyder@redhat.com>
50
51 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
52
402ecd56
MK
532003-07-09 Mark Kettenis <kettenis@gnu.org>
54
55 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
56 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
57 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
58 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
59 * x86-64-tdep.c: ... from here.
60
c481dac7
AS
612003-07-09 Andreas Schwab <schwab@suse.de>
62
63 * m68k-tdep.h (enum struct_return): Define.
64 (struct gdbarch_tdep): Add struct_return.
65 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
66 bytes are padded to the right, not to the left. Pass struct value
67 address in register %a1, not on stack.
68 (m68k_use_struct_convention): New function.
69 (m68k_gdbarch_init): Set use_struct_convention. Initialize
70 struct_return in tdep to pcc_struct_return.
71 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
72 reg_struct_return.
73
64176fa3
JB
742003-07-09 Joel Brobecker <brobecker@gnat.com>
75
76 * somread.c (som_symfile_offsets): Fix compilation error.
77
96a4ee76
AC
782003-07-09 Andrew Cagney <cagney@redhat.com>
79
80 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
81 Add comments about the checks.
82
1517c6d1
AC
832003-07-08 Andrew Cagney <cagney@redhat.com>
84
85 * Makefile.in: Make dependency section headers consistent.
86 (config_h): Move to $BUILD headers section.
87 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
88 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
89 (ada-exp.tab.c): Move to YACC/LEX section.
90 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
91 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
92
dc5dd1eb
KW
932003-07-08 Kris Warkentin <kewarken@qnx.com>
94
95 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
96 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
97 of strerror with safe_strerror, use ISO C function definitions,
98 and replace instances of sprintf with snprintf.
dc5dd1eb 99
612dde91
AC
1002003-07-07 Andrew Cagney <cagney@redhat.com>
101
102 * frame.c (get_prev_frame): Enable check for identical frames.
103 Update comments. Update error messages.
104
492c11d3
JB
1052003-07-07 Joel Brobecker <brobecker@gnat.com>
106
107 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
108
376a5a49
JB
1092003-07-07 Joel Brobecker <brobecker@gnat.com>
110
111 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
112 sort_symtab_syms, no longer necessary.
113
22b4a9ad
JB
1142003-07-07 Joel Brobecker <brobecker@gnat.com>
115
116 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
117
5bbcb741
JB
1182003-07-07 Joel Brobecker <brobecker@gnat.com>
119
120 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
121 (mips_register_byte): Likewise.
122
c139e7d9
DJ
1232003-07-07 Daniel Jacobowitz <drow@mvista.com>
124
125 * Makefile.in (sparc_tdep_h): New.
126 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
127 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
128 * sparc-linux-nat.c: Include "sparc-tdep.h".
129 * sparc-nat.c: Likewise.
130 * sparc-tdep.c: Likewise.
131 * sparc64nbsd-nat.c: Likewise.
132 * sparcnbsd-nat.c: Likewise.
133 * sparcnbsd-tdep.c: Likewise.
134 * sparc-tdep.h: New file.
135 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
136 and sparc_npc_regnum.
137
fd8f87c5
DJ
1382003-07-07 Daniel Jacobowitz <drow@mvista.com>
139
140 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
141 (mips_linux_cannot_store_register): List supported instead of
142 unsupported registers.
143
13adf674
DJ
1442003-07-07 Daniel Jacobowitz <drow@mvista.com>
145
146 * disasm.c (dump_insns): Separate instructions from addresses.
147
8de307e0
AS
1482003-07-07 Andreas Schwab <schwab@suse.de>
149
150 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
151 dependencies.
152 * m68k-tdep.c (NUM_FREGS): Delete.
153 (SIG_PC_FP_OFFSET): Delete.
154 (TARGET_M68K): Delete.
155 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
156 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
157 P_MOVEL_SP, P_MOVEML_SP): Define.
158 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
159 P_TRAP): Delete.
160 (m68k_register_raw_size): Delete.
161 (m68k_register_virtual_size): Delete.
162 (m68k_register_type): Renamed from m68k_register_virtual_type and
163 add gdbarch argument.
164 (m68k_store_struct_return): Delete.
165 (m68k_deprecated_extract_return_value): Delete.
166 (m68k_deprecated_extract_struct_value_address): Delete.
167 (m68k_frame_chain): Delete.
168 (m68k_frame_saved_pc): Delete.
169 (m68k_fix_call_dummy): Delete.
170 (m68k_push_dummy_frame): Delete.
171 (m68k_pop_frame): Delete.
172 (m68k_extract_return_value): New function.
173 (m68k_store_return_value): Rewrite using regcache.
174 (m68k_extract_struct_value_address): Rewrite using regcache.
175 (m68k_push_dummy_call): New function.
176 (struct m68k_frame_cache): Define.
177 (m68k_alloc_frame_cache): New function.
178 (m68k_analyze_frame_setup): New function.
179 (m68k_analyze_register_saves): New function.
180 (m68k_analyze_prologue): New function.
181 (m68k_skip_prologue): Rewrite using above functions.
182 (m68k_unwind_pc): New function.
183 (m68k_frame_cache): New function.
184 (m68k_frame_this_id): New function.
185 (m68k_frame_prev_register): New function.
186 (m68k_frame_unwind): New variable.
187 (m68k_frame_p): New function.
188 (m68k_sigtramp_frame_cache): New function.
189 (m68k_sigtramp_frame_this_id): New function.
190 (m68k_sigtramp_frame_prev_register): New function.
191 (m68k_sigtramp_frame_unwind): New variable.
192 (m68k_sigtramp_frame_p): New function.
193 (m68k_frame_base_address): New function.
194 (m68k_frame_base): New function.
195 (m68k_unwind_dummy_id): New function.
196 (fill_gregset): Use regcache_collect.
197 (fill_fpregset): Likewise.
198 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
199 defined.
200 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
201 deprecated_init_frame_pc, deprecated_store_struct_return,
202 deprecated_extract_return_value, deprecated_store_return_value,
203 deprecated_frame_chain, deprecated_frame_saved_pc,
204 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
205 deprecated_register_virtual_size,
206 deprecated_max_register_raw_size,
207 deprecated_max_register_virtual_size,
208 deprecated_register_virtual_type, deprecated_register_size,
209 deprecated_register_byte, deprecated_register_bytes,
210 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
211 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
212 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
213 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
214 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
215 deprecated_push_dummy_frame, deprecated_pop_frame,
216 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
217 only if SYSCALL_TRAP is defined. Set extract_return_value,
218 store_return_value, extract_struct_value_address, register_type,
219 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
220 predicates.
221 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
222 M68K_MAX_REGISTER_SIZE): Define.
223 (struct m68k_sigtramp_info): Define.
224 (struct gdbarch_tdep): Add get_sigtramp_info.
225 * m68klinux-nat.c (fetch_register): Use register_size instead of
226 REGISTER_RAW_SIZE. Don't put assignment in if.
227 (store_register): Likewise.
228 (fetch_inferior_registers): Likewise.
229 (store_inferior_registers): Likewise.
230 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
231 (m68k_linux_frame_saved_pc): Delete.
232 (m68k_linux_sigcontext_reg_offset,
233 m68k_linux_ucontext_reg_offset): Define.
234 (m68k_linux_get_sigtramp_info): New function.
235 (m68k_linux_extract_return_value): Rewrite using regcache.
236 (m68k_linux_store_return_value): Likewise.
237 (m68k_linux_extract_struct_value_address): Likewise.
238 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
239 Don't set deprecated_frame_saved_pc,
240 deprecated_extract_return_value, deprecated_store_return_value,
241 deprecated_extract_struct_value_address. Set
242 extract_return_value, store_return_value,
243 extract_struct_value_address.
244
eb8bc282
AC
2452003-07-07 Andrew Cagney <cagney@redhat.com>
246
247 * expprint.c: Include "user-regs.h" instead of "frame.h".
248 (print_subexp): Use user_reg_map_regnum_to_name, instead of
249 frame_map_regnum_to_name.
250 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
251 (frame_map_name_to_regnum): Simplify, call
252 user_reg_map_name_to_regnum.
253 (frame_map_regnum_to_name): Simplify, call
254 user_reg_map_regnum_to_name.
255 (frame_register_unwind): Update.
256 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
257 (_initialize_frame_reg): Call user_reg_add_builtin.
258 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
259 (value_of_register): Use value_of_user_reg.
260 * eval.c (evaluate_subexp_standard): Update.
261 * parse.c (write_dollar_variable): Update.
262 * d10v-tdep.c (d10v_print_registers_info): Update.
263 * infcmd.c (registers_info): Update.
264 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
265 (builtin_regs_h): Delete macro.
266 (user_regs_h): Define.
267 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
268 (builtin-regs.o): Delete target.
269 (user-regs.o): Specify dependencies.
270 (expprint.o): Update dependencies.
271 (findvar.o): Update dependencies.
272 (frame.o): Update dependencies.
273 (std-regs.o): Update dependencies.
274
9f476a01
CF
2752003-07-06 Christopher Faylor <cgf@redhat.com>
276
277 * win32-nat.c (solib_symbols_add): Use one variable for all section
278 address stuff. Pass variable rather than address of variable to
279 safe_symbol_file_add.
280
a731b831
AS
2812003-07-06 Andreas Schwab <schwab@suse.de>
282
283 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
284
9f83329d
JB
2852003-07-04 Joel Brobecker <brobecker@gnat.com>
286
287 * rs6000-nat.c (vmap_symtab): Fix compilation error.
288
27e28cc5
KW
2892003-07-04 Kris Warkentin <kewarken@qnx.com>
290
291 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
292
2932003-07-04 Kris Warkentin <kewarken@qnx.com>
294
295 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
296 * config/i386/nto.mh: New file.
297 * config/i386/nm-nto.h: New file.
298 * configure.host: Add i[3456]86-*-nto*.
299
100f2e98
JB
3002003-07-03 Joel Brobecker <brobecker@gnat.com>
301
302 * remote-vx.c (vx_add_symbols): Fix compilation error.
303
e23457df
AC
3042003-07-03 Andrew Cagney <cagney@redhat.com>
305
306 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
307 * gdbarch.h, gdbarch.c: Re-generate.
308 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
309 (legacy_register_name): Declare.
310 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
311 (REGISTER_NAME): Define.
312 * sparc-tdep.c (legacy_register_name): New function.
313 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
314 (REGISTER_NAME): Define.
315 (hppa64_register_name): Declare.
316 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
317 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
318 (hppa64_register_name): New function.
319 (hppa_register_name): New function.
320 * arch-utils.c (legacy_register_name): Delete.
321 * arch-utils.h (legacy_register_name): Delete.
322
38caaeec
DJ
3232003-07-03 Daniel Jacobowitz <drow@mvista.com>
324
325 * cli/cli-interp.c (cli_interpreter_resume): Update the
326 cli_uiout's stream to gdb_stdout.
327
dadd712e
AC
3282003-07-03 Andrew Cagney <cagney@redhat.com>
329
330 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
331 predicate.
332 * gdbarch.h, gdbarch.c: Re-generate.
333 * regcache.c (init_regcache_descr): Use legacy code when either
334 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
335
c7f1390e
DJ
3362003-07-02 Daniel Jacobowitz <drow@mvista.com>
337
338 * NEWS: Move "set logging" entry into GDB 6.0 section.
339
4bc8c588
JB
3402003-07-02 Jim Blandy <jimb@redhat.com>
341
a9dd42f1
JB
342 * s390-tdep.c (struct frame_extra_info): new member:
343 'stack_bought_valid'.
344 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
345 initialize fextra_info->stack_bought.
346 (s390_frameless_function_invocation): Don't trust the value of
347 fextra_info_ptr->stack_bought unless
348 fextra_info->stack_bought_valid is set.
349
4bc8c588
JB
350 New S390 prologue analyzer.
351 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
352 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
353 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
354 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
355 compute_x_addr, s390_on_stack, s390_store,
356 s390_get_signal_frame_info): New functions.
357 (S390_NUM_SPILL_SLOTS): New macro.
358 (s390_get_frame_info): Rewritten.
359 (is_arg_reg): Deleted.
360
361 Break out the decoding of S/390 instructions into separate
362 functions, to make it more legible, and easier to check
363 against the spec.
364 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
365 is_rx, is_rxe): New functions.
366 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
367 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
368 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
369 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
370 enums for opcode values. (Is this an improvement?)
371
fd13a04a
AC
3722003-07-02 Andrew Cagney <cagney@redhat.com>
373
374 * i386-tdep.c: Revert change committed as part of trad-frame code
375 below.
376
3f8091c1
DJ
3772003-07-02 Daniel Jacobowitz <drow@mvista.com>
378
379 * breakpoint.c (insert_catchpoint): Make static.
380
8dd5115e
AS
3812003-07-02 Andreas Schwab <schwab@suse.de>
382
383 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
384 former ia64_push_arguments and ia64_push_return_address, and use
385 regcache functions instead of read/write_register.
386 (ia64_gdbarch_init): Set push_dummy_call instead of
387 deprecated_push_arguments and deprecated_push_return_address.
388
a2229c23
AJ
3892003-07-01 Andreas Jaeger <aj@suse.de>
390
391 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
392 before the call.
393 Set %rax only to number of SSE registers used.
394
3b3850e8
AC
3952003-07-01 Andrew Cagney <cagney@redhat.com>
396
397 * trad-frame.h: Update comments, a -1 .addr is reserved.
398 (trad_frame_value_p, trad_frame_addr_p): Declare.
399 (trad_frame_reg_p): Declare.
400 (trad_frame_set_value): Rename trad_frame_register_value.
401 (trad_frame_set_unknown): Declare.
402 * trad-frame.c (trad_frame_realreg_p): New function.
403 (trad_frame_addr_p, trad_frame_value_p): New function.
404 (trad_frame_set_unknown): New function.
405 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
406 (trad_frame_prev_register): Use trad_frame_realreg_p,
407 trad_frame_addr_p and trad_frame_value_p.
408 (trad_frame_set_value): Rename trad_frame_register_value.
409 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
410 and trad_frame_set_value.
a2229c23 411
4d819d0e
JB
4122003-06-30 Jim Blandy <jimb@redhat.com>
413
414 Patch from IBM (authors unspecified, probably Ulrich Weigand and
415 Gerhard Tonn) for argument passing on the S/390 and S/390x:
416 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
417 for 16 registers, and then 32 more bytes.
418 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
419 New macros.
420 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
421 Move up in the file, since it's now used by is_simple_arg.
422 (is_simple_arg): Don't assume registers are four bytes long.
423 Exclude all double arguments. Extended floats are not simple
424 args.
425 (is_power_of_two): New function.
426 (pass_by_copy_ref): Call is_power_of_two, and check that the
427 length fits in a register, rather than listing all the acceptable
428 sizes. Extended floats are not passed by reference.
429 (s390_push_arguments): Don't assume registers are four bytes long.
430 Reserve an argument register to point to the buffer for structures
431 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
432 S390_STACK_FRAME_OVERHEAD.
433
1ad828f1
AS
4342003-06-30 Andreas Schwab <schwab@suse.de>
435
436 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
437 format error message.
438
39b00981
JB
4392003-06-30 Joel Brobecker <brobecker@gnat.com>
440
441 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
442
b2a7f303
DC
4432003-06-30 David Carlton <carlton@kealia.com>
444
445 Band-aid for PR c++/1245.
446 * Makefile.in (cp-support.o): Depend on complaints_h.
447 * cp-support.c: Include complaints.h. Add declaration for
448 find_last_component.
449 (cp_find_first_component): Separate code into
450 cp_find_first_component_aux.
451 (cp_find_first_component_aux): Call demangled_name_complaint.
452 (demangled_name_complaint): New.
453
a257b5bb
AC
4542003-06-30 Andrew Cagney <cagney@redhat.com>
455
456 * remote.c (remote_write_bytes): Explicitly compute and then use
457 the payload size. Update comments to reflect. Fixes problem of
458 GDB not sending small packets as found by Fred Fish.
459
0a2cfde4
AC
4602003-06-30 Andrew Cagney <cagney@redhat.com>
461
462 * remote.c (remote_async_wait): Fix -Wformat problem.
463
3fcb8548
AC
4642003-06-29 Andrew Cagney <cagney@redhat.com>
465
466 * remote.c (remote_wait): Call error, and not warning, when the
467 packet is corrupt.
468 (remote_async_wait): Ditto.
469
9f9970a3
DJ
4702003-06-29 Daniel Jacobowitz <drow@mvista.com>
471
472 * sparc-tdep.c (sparc_y_regnum): Make external again.
473
83a8ccca
DJ
4742003-06-29 Daniel Jacobowitz <drow@mvista.com>
475
476 * cli/cli-logging.c (pop_output_files): Add void to function
477 definition.
478
d2cf594a
AC
4792003-06-29 Andrew Cagney <cagney@redhat.com>
480
481 * frame.c (frame_register_unwind): Use unsigned char when dumping
482 the buffer contents.
483
0fac0b41
DJ
4842003-06-28 Daniel Jacobowitz <drow@mvista.com>
485
486 * cli/cli-logging.c: New file.
487 * cli-out.c (struct ui_out_data): Add original_stream.
488 (cli_redirect): New function.
489 (cli_ui_out_impl): Add cli_redirect.
490 (cli_out_new): Initialize original_stream.
491 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
492 (uo_redirect, ui_out_redirect): New.
493 * ui-out.h (struct ui_out_impl): Add redirect member.
494 (redirect_ftype): New.
495 (ui_out_redirect): Add prototype.
496 * Makefile.in: Add rules for cli-logging.c.
497 * NEWS: Mention "set logging".
498
88a07d7c
EZ
4992003-06-27 Elena Zannoni <ezannoni@redhat.com>
500
501 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
502
4eb58876
AC
5032003-06-27 Andrew Cagney <cagney@redhat.com>
504
505 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
506 (m68hc11_gdbarch_init): Do not set call_dummy_address.
507 * avr-tdep.c (avr_call_dummy_address): Delete function.
508 (avr_gdbarch_init): Do not set call_dummy_address.
509
1549f619
EZ
5102003-06-27 Elena Zannoni <ezannoni@redhat.com>
511
512 * symfile.c (syms_from_objfile): Move variables to inner block.
513 Move the checks for the non-mainline case a bit earlier to avoid
514 doing some useless computations.
515
3cb3398d
EZ
5162003-06-27 Elena Zannoni <ezannoni@redhat.com>
517
518 * dwarfread.c (decode_modified_type): Gag new compiler warning.
519
3799ccc6
EZ
5202003-06-26 Elena Zannoni <ezannoni@redhat.com>
521
522 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
523 sections.
524
ce1f6491
MC
5252003-06-26 Michael Chastain <mec@shout.net>
526
527 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
528 gdb/testsuite/gdb.c++/pr-1210.exp.
529
d958dfd0
AC
5302003-06-26 Andrew Cagney <cagney@redhat.com>
531
532 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
533 altivec_expression.h and altivec_registers.h.
534
d31431ed
AC
5352003-06-26 Andrew Cagney <cagney@redhat.com>
536
537 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
538 info->mach when MIPS16. Patch suggested by Fred Fish.
539
714b1282
AC
5402003-06-26 Andrew Cagney <cagney@redhat.com>
541
542 * utils.c (internal_vproblem): Print the problem to a reason
543 buffer and then pass to query. Make the msg variable more local.
544
42efa47a
AC
5452003-06-26 Andrew Cagney <cagney@redhat.com>
546
547 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
548 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
549 * gdbarch.h, gdbarch.c: Re-generate.
550 * frame-base.c (default_frame_args_address): Update. Use
551 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
552 not available.
553 (default_frame_locals_address): Ditto for
554 DEPRECATED_FRAME_LOCALS_ADDRESS.
555 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
556 (vax_frame_num_args): Update.
557 (vax_gdbarch_init): Update.
558 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
559 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
560 * mcore-tdep.c (mcore_gdbarch_init): Update.
561 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
562 * ia64-tdep.c (ia64_gdbarch_init): Update.
563 * symtab.h (address_class): Update comments.
564 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
565 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
566 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
567 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
568 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
569 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
570 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
571 * alpha-mdebug-tdep.c: Update.
572 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
573
8ffd9b1b
AJ
5742003-06-26 Andreas Jaeger <aj@suse.de>
575
576 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
577 of SSE registers so that varargs functions work. Rework handling
578 of passing arguments on the stack.
579 (x86_64_store_return_value): Return double and float values in SSE
580 register.
581
e8ac10a6
MC
5822003-06-24 Michael Chastain <mec@shout.net>
583
584 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
585 the "constructor breakpoints ignored" bug.
586
986af8e6
DC
5872003-06-25 David Carlton <carlton@kealia.com>
588
589 * MAINTAINERS: Update e-mail address.
590
d64558a5
JB
5912003-06-24 Jim Blandy <jimb@redhat.com>
592
e538d2d7
JB
593 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
594
02631ec0
JB
595 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
596 function.
597 (ppc_linux_init_abi): Register it as the
598 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
599
e716d87a
JB
600 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
601 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
602 method.
603
d64558a5
JB
604 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
605 (ppc64_standard_linkage_target): Use it.
606
449a5da4
AC
6072003-06-23 Andrew Cagney <cagney@redhat.com>
608
609 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
610 for 0 "int0" and 4 "int32" sized registers.
611 * gdbtypes.c (builtin_type_int0): Define.
612 (build_gdbtypes): Initialize builtin_type_int0.
613 * gdbtypes.h (builtin_type_int0): Declare.
614
b2a02dda
SC
6152003-06-23 Stephane Carrez <stcarrez@nerim.fr>
616
617 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
618 as characters are unsigned.
619
fba3138e
DJ
6202003-06-22 Daniel Jacobowitz <drow@mvista.com>
621
622 PR gdb/1179
623 * dwarfread.c (struct_type): Skip static fields without crashing.
624
f6c8180b
AC
6252003-06-22 Andrew Cagney <cagney@redhat.com>
626
627 GDB 6.0 branch created.
f2c06f52
AC
628 * README: Update.
629 * PROBLEMS: Update. Empty.
630 * NEWS: Update.
f6c8180b 631
ae822768
DJ
6322003-06-22 Daniel Jacobowitz <drow@mvista.com>
633
634 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
635 Suggested by Nick Hibma <n_hibma@webweaving.org>.
636
261de166
AC
6372003-06-22 Andrew Cagney <cagney@redhat.com>
638
639 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
640 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
641 Velikov.
642
30e94205
DJ
6432003-06-22 Daniel Jacobowitz <drow@mvista.com>
644
645 * cli/cli-cmds.c (shell_escape): Silence warnings from old
646 compilers.
647
9e14d721
DJ
6482003-06-21 Daniel Jacobowitz <drow@mvista.com>
649
650 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
651 argument of val_print.
652 * cp-valprint.c (cp_print_value): Don't add the offset parameter
653 to the address argument of baseclass_offset or target_read_memory.
654 Do add it to the argument of cp_print_value_fields.
655
a4b8ebc8
AC
6562003-06-21 Andrew Cagney <cagney@redhat.com>
657
658 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
659 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
660 instead of 0..NUM_REGS.
661 (mips_register_reggroup_p): New function.
662 (mips_pseudo_register_write): New function.
663 (mips_pseudo_register_read): New function.
664 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
665 based on the register's type.
666 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
667 cooked.
668 (mips_get_saved_register): Simplify. Assert that REGNO is a
669 pseudo / cooked.
670 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
671 (mips_register_type): Replace mips_register_virtual_type. Map
672 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
673 when available.
674 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
675 that the register is cooked / virtual.
676 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
677 Only get the extra info when needed.
678 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
679 (mips32_heuristic_proc_desc): Fetch the cooked register.
680 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
681 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
682 (mips_print_register): Use gdbarch_register_type, instead of
683 REGISTER_VIRTUAL_TYPE.
684 (print_gp_register_row): Use gdbarch_register_type, instead of
685 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
686 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
687 Print the pseudo / cooked registers.
688 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
689 Print the pseudo / cooked registers.
690 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
691 REG_NUM is pseudo / cooked.
692 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
693 (mips_n32n64_xfer_return_value): Ditto.
694 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
695 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
696 (mips_register_sim_regno): New function.
697 (mips_gdbarch_init): Set deprecated_register_byte,
698 register_group_p, pseudo_register_write, pseudo_register_read,
699 register_sim_regno, and num_pseudo_regs. Set register_type,
700 instead of register_virtual_type.
701 * Makefile.in (mips-tdep.o): Update dependencies.
702 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
703 REGISTER_VIRTUAL_TYPE.
704 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
705 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
706 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
707 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
708 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
709
325ed089
DJ
7102003-06-21 Daniel Jacobowitz <drow@mvista.com>
711
712 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
713 * cli/cli-cmds.c: Include "gdb_vfork.h".
714 (shell_escape): Use vfork.
715
f0e7d0e8
AC
7162003-06-21 Andrew Cagney <cagney@redhat.com>
717
c57bb9fa
AC
718 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
719 32 bit floating-point register saves.
720
6e51443a
AC
721 * frame.h (deprecated_unwind_get_saved_register): Delete.
722 * frame.c (deprecated_unwind_get_saved_register): Delete function.
723 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
724 and deprecated_get_next_frame_hack instead of
725 deprecated_unwind_get_saved_register.
726
ed183c7c
AC
727 * mips-tdep.c (mips_dump_tdep): Do not print
728 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
729
f0e7d0e8
AC
730 * frame.c (get_frame_register): New function.
731 (frame_unwind_register_signed): New function.
732 (get_frame_register_signed): New function.
733 (frame_unwind_register_unsigned): New function.
734 (get_frame_register_unsigned): New function.
735 * frame.h: Add comments on naming schema.
736 (get_frame_register, frame_unwind_register_signed): Declare.
737 (get_frame_register_signed, get_frame_register_signed): Declare.
738 (frame_unwind_register_unsigned): Declare.
739 (get_frame_register_unsigned): Declare.
740
2224d941
TR
7412003-06-20 Theodore A. Roth <troth@openavr.org>
742
743 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
744
8619218d
TR
7452003-06-20 Theodore A. Roth <troth@openavr.org>
746
747 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
748 (avr_read_sp): Ditto.
749
0b1b50c0
DJ
7502003-06-20 Daniel Jacobowitz <drow@mvista.com>
751
752 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
753 * config/arm/nm-linux.h: Likewise.
754 * config/arm/tm-linux.h: Likewise.
755 * config/ia64/nm-linux.h: Likewise.
756 * config/ia64/tm-ia64.h: Likewise.
757 * config/s390/tm-linux.h: Likewise.
758 * config/s390/tm-s390.h: Likewise.
759 * s390-nat.c: Likewise.
760 * s390-tdep.c: Likewise.
761
762 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
763 * config/ia64/linux.mt: Likewise.
764 * config/m68k/linux.mh: Likewise.
765 * config/mips/linux.mt: Likewise.
766 * config/powerpc/linux.mh: Likewise.
767 * config/sh/linux.mt: Likewise.
768
c8c18e65
KW
7692003-06-19 Kris Warkentin <kewarken@qnx.com>
770
771 * solib.c (solib_open): Change tests for whether to search
772 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
773 comments.
774
dcccef2e
TR
7752003-06-19 Theodore A. Roth <troth@openavr.org>
776
777 * avr-tdep.c (avr_frame_address): Delete function.
778 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
779 set_gdbarch_frame_args_address.
780
5861a190
AC
7812003-06-19 Andrew Cagney <cagney@redhat.com>
782
783 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
784 (REGISTER_CONVERT_FROM_TYPE): Delete.
785 (mips_register_convert_to_type): Delete declaration.
786 (mips_register_convert_from_type): Delete declaration.
787 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
788 kernel/.
789
0274a8ce
MS
7902003-06-19 Michael Snyder <msnyder@redhat.com>
791
792 * linux-nat.h: New file.
793 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 794 * lin-lwp.c: Include linux-nat.h.
0274a8ce 795 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 796 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
797 (linux_make_note_section): Iterate over lwps instead of threads.
798 (linux_do_thread_registers): Use lwp instead of merged pid.
799 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 800 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
801 Add dependency on linux_nat_h.
802
adf5f719
TR
8032003-06-19 Theodore A. Roth <troth@openavr.org>
804
805 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
806
6766a268
DJ
8072003-06-19 Daniel Jacobowitz <drow@mvista.com>
808
809 * varobj.c (get_type, get_target_type): Use check_typedef.
810
1171114a
DJ
8112003-06-19 Daniel Jacobowitz <drow@mvista.com>
812
813 * breakpoint.c (insert_catchpoint): Call internal_error.
814
adcf68a2
TR
8152003-06-19 Theodore A. Roth <troth@openavr.org>
816
817 * avr-tdep.c (avr_push_dummy_code): Delete function.
818 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
819
ea67f13b
DJ
8202003-06-19 Daniel Jacobowitz <drow@mvista.com>
821
822 * arch-utils.c (default_prepare_to_proceed): Remove.
823 (generic_prepare_to_proceed): Remove.
824 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
825 (generic_prepare_to_proceed): Remove prototype.
826 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
827 * gdbarch.c: Regenerate.
828 * gdbarch.h: Regenerate.
829 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
830 * hppah-nat.c (hppa_switched_threads): Remove.
831 * infrun.c (prepare_to_proceed): New static function, copied from
832 generic_prepare_to_proceed. Remove select_it argument.
833 (proceed): Call prepare_to_proceed.
834 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
835 variables.
836 (ptrace_wait): Don't set the removed variables.
837 (hppa_switched_threads): Remove.
838 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
839 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
840 (lin_lwp_prepare_to_proceed): Remove prototype.
841 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
842 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
843
4add8633
TR
8442003-06-18 Theodore A. Roth <troth@openavr.org>
845
846 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
847 trad-frame.h.
848 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
849 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
850 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
851 (AVR_PROLOGUE_*): Enumerate prologue types.
852 (struct frame_extra_info): Remove.
853 (struct avr_unwind_cache): Define.
854 (avr_write_sp): Delete function.
855 (avr_read_fp): Ditto.
856 (avr_init_extra_frame_info): Ditto.
857 (avr_pop_frame): Ditto.
858 (avr_frame_saved_pc): Ditto.
859 (avr_saved_pc_after_call): Ditto.
860 (avr_push_return_address): Ditto.
861 (avr_frame_chain): Ditto.
862 (avr_store_struct_return): Ditto.
863 (avr_push_arguments): Ditto.
864 (avr_scan_prologue): Update comments. Changed to set up the info for
865 cache unwinding. Now returns end of prologue PC.
866 (avr_skip_prologue): Better handling of functions lacking a prologue
867 by using avr_scan_prologue.
868 (avr_scan_arg_moves): New function.
869 (avr_saved_regs_unwinder): Ditto.
870 (avr_frame_unwind_cache): Ditto.
871 (avr_unwind_pc): Ditto.
872 (avr_frame_this_id): Ditto.
873 (avr_frame_prev_register): Ditto.
874 (avr_frame_p): Ditto.
875 (avr_frame_base_address ): Ditto.
876 (avr_unwind_dummy_id): Ditto.
877 (avr_push_dummy_code): Ditto.
878 (push_stack_item): Ditto.
879 (pop_stack_item): Ditto.
880 (avr_push_dummy_call): Ditto.
881 (struct stack_item): Define.
882 (avr_frame_unwind): Declare structure.
883 (avr_frame_base): Ditto.
884 (avr_gdbarch_init): Remove calls to
885 set_gdbarch_deprecated_init_frame_pc,
886 set_gdbarch_deprecated_target_read_fp,
887 set_gdbarch_deprecated_dummy_write_sp,
888 set_gdbarch_deprecated_fp_regnum,
889 set_gdbarch_deprecated_push_arguments,
890 set_gdbarch_deprecated_push_return_address,
891 set_gdbarch_deprecated_pop_frame,
892 set_gdbarch_deprecated_store_struct_return,
893 set_gdbarch_deprecated_frame_init_saved_regs,
894 set_gdbarch_deprecated_init_extra_frame_info,
895 set_gdbarch_deprecated_frame_chain,
896 set_gdbarch_deprecated_frame_saved_pc,
897 set_gdbarch_deprecated_saved_pc_after_call.
898 Add calls to set_gdbarch_push_dummy_call,
899 set_gdbarch_push_dummy_code,
900 frame_unwind_append_predicate,
901 frame_base_set_default,
902 set_gdbarch_unwind_dummy_id,
903 set_gdbarch_unwind_pc.
904 Wrap a long line.
905
7be04a68
MS
9062003-06-18 Corinna Vinschen <vinschen@redhat.com>
907
908 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
909 registers for H8/300S.
910 (h8300_print_registers_info): Ditto.
8ffd9b1b 911 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 912
ae087d01
DJ
9132003-06-18 Daniel Jacobowitz <drow@mvista.com>
914
915 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
916 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
917 (lin_lwp_wait): Likewise. Update comments.
918 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
919 (pull_pid_from_list, linux_record_stopped_pid): New.
920
07d8f827
SC
9212003-06-17 Stephane Carrez <stcarrez@nerim.fr>
922
923 * ada-lang.c (scan_discrim_bound): Name first argument.
924 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
925 declared by ALL_BLOCK_SYMBOLS.
926
7cb47b14
SC
9272003-06-17 Stephane Carrez <stcarrez@nerim.fr>
928
929 * ada-tasks.c (find_function_in_inferior): Don't declare it.
930 ("regcache.h"): Include it.
931 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
932
6ad8ae5c
DJ
9332003-06-17 Daniel Jacobowitz <drow@mvista.com>
934
935 * NEWS: Mention gdbserver detach change and "disconnect" command.
936 * infcmd.c (disconnect_command): New function.
937 (_initialize_infcmd): Add ``disconnect'' command.
938 * remote.c (remote_async_detach): Delete.
939 (remote_detach): Merge remote_async_detach.
940 (remote_disconnect): New.
941 (init_remote_ops): Set to_disconnect.
942 (init_remote_cisco_ops): Likewise.
943 (init_remote_async_ops): Likewise. Use remote_detach.
944 * target.c (cleanup_target): Default to_disconnect.
945 (update_current_target): Inherit to_disconnect.
946 (target_disconnect, debug_to_disconnect): New functions.
947 (setup_target_debug): Set to_disconnect.
948 * target.h (struct target_ops): Add to_disconnect.
949 (target_disconnect): Add prototype.
950
687595f9
DJ
9512003-06-17 Daniel Jacobowitz <drow@mvista.com>
952
953 * breakpoint.c (insert_catchpoint): New function.
954 (insert_breakpoints): Use catch_exceptions to call
955 insert_catchpoint. Disable catchpoints if they fail to insert.
956
29239a8f
DJ
9572003-06-17 Daniel Jacobowitz <drow@mvista.com>
958
959 * symfile.c (reread_symbols): Clear sym_private.
960
2cdf3c63
AC
9612003-06-17 Andrew Cagney <cagney@redhat.com>
962
963 * trad-frame.h (struct frame_info): Add opaque declaration.
964 * remote-fileio.h (struct cmd_list_element): Add opaque
965 declaration.
966 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
967 comments.
968
cf0e1e0d
DJ
9692003-06-17 Daniel Jacobowitz <drow@mvista.com>
970
971 * remote.c (remote_prepare_to_store): Replace call to
972 deprecated_read_register_bytes with multiple regcache_raw_read
973 calls.
974
192cdb19
KW
9752003-06-17 Kris Warkentin <kewarken@qnx.com>
976
977 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
978 (nto_find_and_open_solib): Likewise.
979 (nto_init_solib_absolute_prefix): Likewise.
980 (_initialize_nto_tdep): Fix indentation.
981
89929b45
KW
9822003-06-17 Kris Warkentin <kewarken@qnx.com>
983
984 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
985
46019f27
KW
9862003-06-17 Kris Warkentin <kewarken@qnx.com>
987
988 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
989
1a38736e
JB
9902003-06-17 Jim Blandy <jimb@redhat.com>
991
992 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
993
3605c34a
TR
9942003-06-16 Theodore A. Roth <troth@openavr.org>
995
996 * avr-tdep.c (avr_extract_return_value): New function.
997 (avr_gdbarch_init): Set extract_return_value method.
998
870b3035
AC
9992003-06-16 Andrew Cagney <cagney@redhat.com>
1000
1001 * frame.h (deprecated_get_next_frame_hack): Declare.
1002 * frame.c (legacy_saved_regs_prev_register): Only require
1003 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
1004 there are always saved regs.
1005 (deprecated_generic_get_saved_register): Do not require
1006 DEPRECATED_FRAME_INIT_SAVED_REGS.
1007 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
1008 use frame ID unwind instead.
1009 (deprecated_get_next_frame_hack): New function.
1010
63d47a7d
CV
10112003-06-16 Corinna Vinschen <vinschen@redhat.com>
1012
1013 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
1014 (h8300_push_dummy_call): ...this function. Some minor optimization.
1015 (h8300_push_return_address): Remove.
1016 (h8300_gdbarch_init): Remove calls to
1017 set_gdbarch_deprecated_dummy_write_sp,
1018 set_gdbarch_deprecated_push_arguments and
1019 set_gdbarch_deprecated_push_return_address.
1020 Add call to set_gdbarch_push_dummy_call.
1021
4bb1dc5e
CV
10222003-06-16 Corinna Vinschen <vinschen@redhat.com>
1023
1024 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
1025 (E_PSEUDO_EXR_REGNUM): Ditto.
1026 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 1027 registers into safe registers.
4bb1dc5e
CV
1028 (h8300_skip_prologue): Check for stm instruction to push registers
1029 used for register variables onto stack.
1030 (gdb_print_insn_h8300): Remove.
1031 (h8300_examine_prologue): Add a comment.
1032 (h8300_register_name): Take pseudo registers into account.
1033 (h8300s_register_name): Ditto.
1034 (h8300sx_register_name): Ditto.
1035 (h8300_print_register): Ditto.
1036 (h8300_print_registers_info): Define "nice" printing order.
1037 (h8300_saved_pc_after_call): Take pseudo registers into account.
1038 (h8300_register_type): Ditto. Return type used for remote connection
1039 when requesting real CCR or EXR register, return actual type when
1040 requesting pseudo CCR or EXR.
1041 (h8300_pseudo_register_read): New function.
1042 (h8300_pseudo_register_write): Ditto.
1043 (h8300_dbg_reg_to_regnum): Ditto.
1044 (h8300s_dbg_reg_to_regnum): Ditto.
1045 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
1046 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
1047 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
1048 set_gdbarch_print_insn architecture dependent.
1049 Call set_gdbarch_pseudo_register_read and
1050 set_gdbarch_pseudo_register_write.
1051 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
1052
a59fe496
AC
10532003-06-16 Andrew Cagney <cagney@redhat.com>
1054
1055 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
1056 * gdbarch.h, gdbarch.c: Re-generate.
1057 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1058 * s390-tdep.c (s390_gdbarch_init): Update.
1059 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1060 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1061 * mips-tdep.c (mips_gdbarch_init): Update.
1062 * mcore-tdep.c (mcore_gdbarch_init): Update.
1063 * cris-tdep.c (cris_gdbarch_init): Update.
1064 * infcall.c (call_function_by_hand): Update.
1065 * ia64-tdep.c (ia64_push_arguments): Update comment.
1066 * frame.c (legacy_get_prev_frame): Do not assume
1067 SAVE_DUMMY_FRAME_TOS_P.
1068 * dummy-frame.c (find_dummy_frame): Update comment.
1069
6f4e5a41
AC
10702003-06-16 Andrew Cagney <cagney@redhat.com>
1071
1072 * regcache.c (do_cooked_read): Do not use register_valid_p.
1073
72fab697
TR
10742003-06-15 Theodore A. Roth <troth@openavr.org>
1075
1076 * avr-tdep.c (avr_register_type): Remove a blank line.
1077 (avr_scan_prologue): Correct some comments.
1078
e3d8b004
TR
10792003-06-15 Theodore A. Roth <troth@openavr.org>
1080
1081 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
1082 prologue types.
8ffd9b1b 1083 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
1084 option.
1085 Add code to scan -mcall-prologues for mega devices.
1086
866b76ea
TR
10872003-06-15 Theodore A. Roth <troth@openavr.org>
1088
1089 * avr-tdep.c (avr_register_byte): Delete function.
1090 (avr_register_raw_size): Delete function.
1091 (avr_register_virtual_size): Delete function.
1092 (avr_register_virtual_type): Delete function.
1093 (avr_register_type): New function.
1094 (avr_address_to_pointer): Remove unused code.
1095 (avr_read_fp): Need to read FP as two separate bytes due to change to
1096 avr_register_type() usage.
1097 (avr_gdbarch_init): Don't set deprecated_register_size.
1098 Don't set deprecated_register_bytes.
1099 Don't set deprecated_register_byte.
1100 Don't set deprecated_register_raw_size.
1101 Don't set deprecated_max_register_raw_size.
1102 Don't set deprecated_register_virtual_size.
1103 Don't set deprecated_max_register_virtual_size.
1104 Don't set deprecated_register_virtual_type.
1105 Set register_type method.
1106
3993f6b1
DJ
11072003-06-15 Daniel Jacobowitz <drow@mvista.com>
1108
1109 * Makefile.in (linux-nat.o): Add rule.
1110 * linux-nat.c: New file.
1111 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
1112 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
1113 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
1114 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
1115 * config/arm/linux.mh (NATDEPFILES): Likewise.
1116 * config/i386/linux.mh (NATDEPFILES): Likewise.
1117 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
1118 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1119 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1120 * config/mips/linux.mh (NATDEPFILES): Likewise.
1121 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
1122 * config/s390/s390.mh (NATDEPFILES): Likewise.
1123 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1124
786a90bb
MK
11252003-06-15 Mark Kettenis <kettenis@gnu.org>
1126
1127 * i387-tdep.c: Reorder includes, fix some whitespace issues and
1128 replace out-of-date comment.
1129
3bd3f01e
AC
11302003-06-15 Andrew Cagney <cagney@redhat.com>
1131
1132 * rdi-share/host.h (Fail): Change to a varargs function.
1133 * remote-rdi.c (Fail): Update.
8ffd9b1b 1134
de5b9bb9
MK
11352003-06-15 Mark Kettenis <kettenis@gnu.org>
1136
1137 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
1138 (i386_convert_register_p, i386_register_to_value,
1139 i386_register_from_value): Handle types longer than 8 bytes.
1140
d532c08f
MK
11412003-06-15 Mark Kettenis <kettenis@gnu.org>
1142
1143 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
1144 Move floating-point code to new function in i387-tdep.c.
1145 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
1146 New functions containing code moved here from i386-tdep.c.
1147 * i387-tdep.h: Add opaque declaration for `struct type'.
1148 (i387_register_to_value, i387_value_to_register): New prototypes.
1149 * x86-64-tdep.c (x86_64_convert_register_p): New function.
1150 (x86_64_init_abi): Set convert_register_p, register_to_value and
1151 value_to_register here.
8ffd9b1b 1152
42c466d7
AC
11532003-06-14 Andrew Cagney <cagney@redhat.com>
1154
1155 * mips-tdep.c (mips_register_to_value): Make static.
1156 (mips_value_to_register): Make static.
1157 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
1158 * ia64-tdep.c (ia64_register_raw_size): Make static.
1159 (ia64_register_virtual_size): Make static.
1160 (ia64_register_byte): Make static.
1161 * i387-tdep.c: Include "i387-tdep.h".
1162 (print_387_control_word): Delete function.
1163 (print_387_status_word): Delete function.
1164 (print_387_status_bits): Delete function.
1165 (print_387_control_bits): Delete function.
1166 * Makefile.in (i387-tdep.o): Update dependencies.
1167 * rdi-share/host.h (Fail): Declare.
1168 * remote-rdi.c (Fail): Update to match declaration.
1169
2a9cda49
AC
11702003-06-14 Andrew Cagney <cagney@redhat.com>
1171
1172 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
1173 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
1174 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
1175 * config/djgpp/fnchange.lst: Delete "remote-array.c".
1176 * README: Delete reference to remote-array.
1177 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
1178 (remote-array.o): Delete target.
1179 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
1180 * remote-array.c: Delete file.
1181
ff2e87ac
AC
11822003-06-14 Andrew Cagney <cagney@redhat.com>
1183 Mark Kettenis <kettenis@gnu.org>
1184
1185 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
1186 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
1187 parameter with "frame".
1188 * gdbarch.h, gdbarch.c: Re-generate.
1189 * frame.h (put_frame_register): Declare.
1190 * frame.c (put_frame_register): New function.
1191 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
1192 (legacy_register_to_value): Rewrite, use "frame" to get the
1193 register value.
1194 (legacy_value_to_register): Rewrite, use "frame" to find the
1195 register's location before storing.
1196 * arch-utils.h (legacy_convert_register_p): Update.
1197 (legacy_register_to_value, legacy_value_to_register): Update.
1198 * findvar.c (value_from_register): Rewrite, eliminate use of
1199 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
1200 "frame" to REGISTER_TO_VALUE.
1201 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
1202 lval_reg_frame_relative + lval_register branch of the switch. Do
1203 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
1204 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1205 I386_EDI_REGNUM): New defines.
1206 (i386_next_regnum, i386_convert_register_p,
1207 i386_register_to_value, i386_value_to_register): New functions.
1208 (i386_register_convertible, i386_register_convert_to_virtual,
1209 i386_convert_to_raw): Remove functions.
1210 (i386_gdbarch_init): Set convert_register_p, register_to_value and
1211 value_to_register instead of register_convertible,
1212 register_convert_to_virtual and register_convert_to_raw.
1213 * mips-tdep.c (mips_convert_register_p): New function.
1214 (mips_value_to_register): Replace mips_register_convert_from_type.
1215 (mips_register_to_value): Replace mips_register_convert_to_type.
1216 (mips_gdbarch_init): Set conver_register_p, value_to_register and
1217 register_to_value.
1218 * alpha-tdep.c (alpha_convert_register_p): Update.
1219 (alpha_value_to_register): Update, store the register.
1220 (alpha_register_to_value): Update, fetch the register.
1221
98be1e77
TR
12222003-06-14 Theodore A. Roth <troth@openavr.org>
1223
1224 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
1225 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
1226 Don't set deprecated_call_dummy_words.
1227 Remove commented out set_gdbarch_believe_pcc_promotion() call.
1228 Don't set remote_translate_xfer_address.
1229 (avr_io_reg_read_command): Remove commented out debug printf.
1230 Wrap a long line.
1231
57bc6122
TR
12322003-06-14 Theodore A. Roth <troth@openavr.org>
1233
1234 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
1235 causes gdb to seg fault.
1236
eb01fc62
DJ
12372003-06-14 Daniel Jacobowitz <drow@mvista.com>
1238
1239 * sparc-nat.c (fetch_inferior_registers): Correct
1240 a reference to "registers".
1241
3b3e6bee
DJ
12422003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
1243
1244 * Makefile.in (exc_request_U_h): Define
1245 (exc_request_S_h): Likewise.
1246 (msg_reply_S_h): Likewise.
1247 (msg_U_h): Likewise.
1248 (notify_S_h): Likewise.
1249 (process_reply_S_h): Likewise.
1250 (gnu-nat.o): Depend on gdb_obstack_h
1251 * gnu-nat.c: Include "gdb_obstack.h".
1252
b8de8283
AC
12532003-06-13 Andrew Cagney <cagney@redhat.com>
1254
1255 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
1256 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 1257
f3be58bc
AC
12582003-06-13 Andrew Cagney <cagney@redhat.com>
1259
1260 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
1261 when deprecated REGISTER macros can be deleted.
1262 * gdbarch.h, gdbarch.c: Re-generate.
1263
4c0122c8
JB
12642003-06-13 Jim Blandy <jimb@redhat.com>
1265
1266 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
1267 Linux entry point symbols for _dl_debug_state, too.
1268
3e210248
AC
12692003-06-13 Andrew Cagney <cagney@redhat.com>
1270
1271 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
1272 available, do not use the FP register, and always save the TOS.
1273 * dummy-frame.c (dummy_frame_this_id): Do not assert
1274 SAVE_DUMMY_FRAME_TOS.
1275 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
1276 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
1277 (i386_push_dummy_call): Add 8 to the returned SP.
1278 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
1279 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
1280 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
1281 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
1282 (x86_64_push_dummy_call): Return "sp + 16".
1283 (x86_64_init_abi): Do not set save_dummy_frame_tos.
1284 * alpha-tdep.c (alpha_gdbarch_init): Do not set
1285 save_dummy_frame_tos.
1286
0b65af49
JB
12872003-06-13 Jim Blandy <jimb@redhat.com>
1288
1289 * frv-tdep.c (frv_use_struct_convention): Delete static
1290 declaration for function deleted in my change of 2003-06-12.
1291
4ea2465e
TR
12922003-06-13 Theodore A. Roth <troth@openavr.org>
1293
1294 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
1295 (avr_pointer_to_address): Shift code addrs left 1 bit.
1296 (avr_convert_from_func_ptr_addr): Delete function since operation is
1297 better handled by avr_address_to_pointer and avr_pointer_to_address.
1298 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
1299
1581182a
MK
13002003-06-13 Mark Kettenis <kettenis@gnu.org>
1301
1302 From Kelley Cook <kelleycook@wideopenwest.com>:
1303 * configure.host: Accept i[34567]86 variants.
1304 * configure.tgt: Likewise.
1305 * nlm/configure.in: Likewise.
1306 * nlm/configure: Regenerated.
1307
7aa1783e
RE
13082003-06-13 Richard Earnshaw <rearnsha@arm.com>
1309
1310 * arm-tdep.c (solib-svr4.h): Dont' include it.
1311 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
1312 * arm-linux-tdep.c: ... here. Make static.
1313 (arm_linux_init_abi): Register it.
1314 (solib-svr4.h): Include it.
1315 * Makefile.in: Update dependencies.
1316 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
1317 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
1318
0261a0d0
CV
13192003-06-13 Corinna Vinschen <vinschen@redhat.com>
1320
1321 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
1322 indicate registers used for return values.
1323 (struct frame_extra_info): Drop args_pointer and locals_pointer.
1324 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
1325 members.
1326 (h8300_init_extra_frame_info): Ditto.
1327 (h8300_frame_locals_address): Removed.
1328 (h8300_frame_args_address): Removed.
1329 (h8300_extract_return_value): Use new regcache structure. Only care
1330 for 16 bit CPUs.
1331 (h8300h_extract_return_value): Same function for 32 bit CPUs.
1332 (h8300_store_return_value): Use new regcache structure. Only care
1333 for 16 bit CPUs.
1334 (h8300h_store_return_value): Same function for 32 bit CPUs.
1335 (h8300_store_struct_return): Removed.
1336 (h8300_extract_struct_value_address): Use new regcache structure.
1337 (h8300h_extract_struct_value_address): Removed.
1338 (h8300_push_dummy_code): New function.
1339 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
1340 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
1341 set_gdbarch_store_return_value architecture dependent.
1342 Call set_gdbarch_push_dummy_code and
1343 set_gdbarch_extract_struct_value_address.
1344 Remove calls to set_gdbarch_frame_args_address,
1345 set_gdbarch_frame_locals_address,
1346 set_gdbarch_deprecated_store_struct_return,
1347 set_gdbarch_deprecated_extract_return_value,
1348 set_gdbarch_deprecated_extract_struct_value_address,
1349 set_gdbarch_deprecated_call_dummy_words and
1350 set_gdbarch_deprecated_sizeof_call_dummy_words.
1351
055c394a
CV
13522003-06-13 Corinna Vinschen <vinschen@redhat.com>
1353
1354 * h8300-tdep.c (h8300_register_byte): Remove.
1355 (h8300h_register_byte): Remove.
1356 (h8300_register_virtual_type): Remove. Substitute by...
1357 (h8300_register_type): New function.
1358 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
1359 (h8300h_extract_struct_value_address): Ditto.
1360 (h8300_gdbarch_init): Drop calls to
1361 set_gdbarch_deprecated_register_byte and
1362 set_gdbarch_deprecated_register_virtual_type.
1363 Add call to set_gdbarch_register_type.
1364
9c04cab7
AC
13652003-06-13 Andrew Cagney <cagney@redhat.com>
1366
1367 * gdbarch.sh: Update comments on registers.
1368 (deprecated_register_byte): Rename register_byte.
1369 (deprecated_register_raw_size): Rename register_raw_size.
1370 (deprecated_register_virtual_size): Rename register_virtual_size.
1371 (deprecated_register_virtual_type): Rename register_virtual_type.
1372 * gdbarch.h, gdbarch.c: Re-generate.
1373 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1374 * vax-tdep.c (vax_gdbarch_init): Update.
1375 * v850-tdep.c (v850_gdbarch_init): Update.
1376 * sparc-tdep.c (sparc_gdbarch_init): Update.
1377 * sh-tdep.c (sh_gdbarch_init): Update.
1378 * s390-tdep.c (s390_gdbarch_init): Update.
1379 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1380 * ns32k-tdep.c: Update.
1381 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1382 * mips-tdep.c (mips_gdbarch_init): Update.
1383 * mcore-tdep.c (mcore_gdbarch_init): Update.
1384 * m68k-tdep.c (m68k_gdbarch_init): Update.
1385 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1386 * ia64-tdep.c (ia64_gdbarch_init): Update.
1387 * hppa-tdep.c (hppa_gdbarch_init): Update.
1388 * h8300-tdep.c (h8300_gdbarch_init): Update.
1389 * frv-tdep.c (frv_gdbarch_init): Update.
1390 * cris-tdep.c (cris_gdbarch_init): Update.
1391 * avr-tdep.c (avr_gdbarch_init): Update.
1392 * alpha-tdep.c (alpha_gdbarch_init): Update.
1393 * arm-tdep.c (arm_gdbarch_init): Update.
1394
b060cbea
AC
13952003-06-13 Andrew Cagney <cagney@redhat.com>
1396
1397 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
1398 mips_o32_use_struct_convention with always_use_struct_convention.
1399
0fc9922a
DC
14002003-06-12 David Carlton <carlton@kealia.com>
1401
1402 * cp-namespace.c (cp_set_block_scope): Comment out
1403 processing_has_namespace_info branch.
1404
1fd35568
JB
14052003-06-12 Jim Blandy <jimb@redhat.com>
1406
f470a70a
JB
1407 Recognize and skip 64-bit PowerPC Linux linkage functions.
1408 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
1409 insn_pattern, insns_match_pattern, d_field, ds_field): New
1410 functions, macros, and types for working with PPC instructions.
1411 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
1412 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
1413 ppc64_skip_trampoline_code): New functions, variables, and macros
1414 for recognizing and skipping linkage functions.
1415 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
1416 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
1417
49ff75ad
JB
1418 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
1419 register offsets for both the 32- and 64-bit interfaces.
1420
bd918c83
JB
1421 Actually finish the job started by my change of 2003-05-29.
1422 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
1423 other #definition of this.
1424 (ppc_linux_skip_trampoline_code): Remove declaration.
1425 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
1426 static.
1427 (ppc_linux_init_abi): Register it as the skip_trampoline_code
1428 method for GDBARCH.
1429
1430 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
1431 'long' on ppc64-*-linux*.
1432
f8c59253
JB
1433 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
1434 isn't #defined, assume the register doesn't exist: act as if
1435 tdep->ppc_mq_regnum were -1.
1436
8fbb30b1
JB
1437 * configure.host, configure.tgt: Add entries for
1438 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
1439 powerpc/linux.mt.
1440 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
1441 New files.
1442
1fd35568
JB
1443 * arch-utils.c (always_use_struct_convention): New function.
1444 * arch-utils.h (always_use_struct_convention): New prototype.
1445 * alpha-tdep.c (alpha_use_struct_convention): Delete.
1446 (alpha_gdbarch_init): Register always_use_struct_convention,
1447 instead of alpha_use_struct_convention.
1448 * cris-tdep.c (cris_use_struct_convention): Delete.
1449 (cris_gdbarch_init): Register always_use_struct_convention,
1450 instead of cris_use_struct_convention.
1451 * frv-tdep.c (frv_use_struct_convention): Delete.
1452 (frv_gdbarch_init): Register always_use_struct_convention,
1453 instead of frv_use_struct_convention.
1454 * h8300-tdep.c (h8300_use_struct_convention): Delete.
1455 (h8300_gdbarch_init): Register always_use_struct_convention,
1456 instead of h8300_use_struct_convention.
e3305dd9 1457 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
1458 (mips_o32_gdbarch_init): Register always_use_struct_convention,
1459 instead of mips_o32_use_struct_convention.
1460
e14e6e9c
AC
14612003-06-12 Andrew Cagney <cagney@redhat.com>
1462
1463 * wince.c: Include "mips-tdep.h".
1464 * mips-tdep.h (mips_next_pc): Declare.
1465 * mcore-tdep.c: Make more local functions static.
1466 * Makefile.in (wince.o): Update dependencies.
1467
2335f48e
DC
14682003-06-12 David Carlton <carlton@kealia.com>
1469
1470 * symtab.c (lookup_symbol_aux_minsyms): Replace
1471 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
1472 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
1473 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
1474 SYMBOL_NATURAL_NAME.
1475
f70a7d61
AS
14762003-06-12 Andreas Schwab <schwab@suse.de>
1477
1478 * Makefile.in (tuiDisassem.o): Update dependencies.
1479
b6429628
DC
14802003-06-12 David Carlton <carlton@bactrian.org>
1481
1482 * symtab.h: Delete declaration of make_symbol_overload_list.
1483 Add declaration of lookup_partial_symbol.
1484 * symtab.c (remove_params): Move to cp-support.c.
1485 (overload_list_add_symbol, make_symbol_overload_list)
1486 (sym_return_val_size, sym_return_val_index): Ditto.
1487 (lookup_partial_symbol): Make extern.
1488 * cp-support.h: Add declaration of make_symbol_overload_list.
1489 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
1490 symtab.h, and block.h.
1491 (remove_params): Move here from symtab.c.
1492 (overload_list_add_symbol, make_symbol_overload_list)
1493 (sym_return_val_size, sym_return_val_index): Ditto.
1494 * valops.c: Include cp-support.h.
1495 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
1496 frame_h, and block_h.
1497 (valops.o): Depend on cp_support_h.
1498
084edea5
CV
14992003-06-12 Corinna Vinschen <vinschen@redhat.com>
1500
1501 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
1502 substitute by NUM_REGS throughout.
1503 (h8300_register_name): Only care for H8/300 and H8/300H registers.
1504 (h8300s_register_name): New function for H8S registers.
1505 (h8300sx_register_name): Ditto for H8SX registers.
1506 (h8300_print_register): Revise register printing, avoid depending
1507 on 32 bit long.
0261a0d0 1508 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
1509 (h8300h_register_byte): New function for any other architecture.
1510 (h8300_register_raw_size): Remove.
1511 (h8300_register_virtual_type): Revise to return actually useful
1512 type.
1513 (h8300_extract_struct_value_address): Only care for H8/300 registers.
1514 (h8300h_extract_struct_value_address): New function for any other
1515 architecture.
1516 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
1517 set_gdbarch_register_name, set_gdbarch_register_byte,
1518 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
1519 Remove calls to set_gdbarch_deprecated_register_size,
1520 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
1521 set_gdbarch_deprecated_max_register_raw_size,
1522 set_gdbarch_register_virtual_size and
1523 set_gdbarch_deprecated_max_register_virtual_size entirely.
1524 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
1525 set_gdbarch_long_double_bit.
1526
06194148
JJ
15272003-06-11 Jeff Johnston <jjohnstn@redhat.com>
1528
8ffd9b1b
AJ
1529 * doublest.c (convert_doublest_to_floatformat): When dealing
1530 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
1531 processing a full 32 bits of mantissa.
1532
de4f826b
DC
15332003-06-11 David Carlton <carlton@bactrian.org>
1534
1535 * dictionary.h: New.
1536 * dictionary.c: New.
1537 * block.h: Add opaque declaration for struct dictionary.
1538 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
1539 'sym' members.
1540 (BLOCK_DICT): New macro.
1541 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
1542 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
1543 BLOCK_SHOULD_SORT.
1544 (ALL_BLOCK_SYMBOLS): Update definition.
1545 * Makefile.in (SFILES): Add dictionary.c.
1546 (dictionary_h): New.
1547 (COMMON_OBS): Add dictionary.o.
1548 (dictionary.o): New.
1549 (ada-lang.o): Depend on dictionary_h.
1550 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
1551 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
1552 (mi-cmd-stack.o): Ditto.
1553 (gdbtk-cmds.o): Update dependencies.
1554 (gdbtk-stack.o): Ditto.
1555 * ada-lang.c: Include dictionary.h.
1556 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
1557 (fill_in_ada_prototype, debug_print_block): Ditto.
1558 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
1559 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
1560 'is_sorted'.
1561 * mdebugread.c: Include dictionary.h.
1562 (struct parse_stack): Delete 'maxsyms' member.
1563 (parse_symbol): Update calls to new_block. Delete calls to
1564 shrink_block. Use dictionary methods.
1565 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
1566 Update calls to new_symtab. Don't maintain maxsyms data.
1567 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
1568 (add_symbol): Just call dict_add_symbol.
1569 (new_symtab): Delete 'maxsyms' argument.
1570 (new_symtab): Update calls to new_block.
1571 (new_block): Delete 'maxsyms' argument; add 'function' argument.
1572 (shrink_block): Delete function.
1573 (fixup_sigtramp): Update call to new_block. Add symbol via
1574 dict_add_symbol.
1575 * jv-lang.c: Include dictionary.h.
1576 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
1577 appropriately. Set class_symtab->free_func. Make sure the
1578 blockvector is big enough to hold two blocks.
1579 (add_class_symtab_symbol): Use dictionary methods.
1580 (free_class_block): New function.
1581 (type_from_class): Replace explicit iteration by
1582 ALL_BLOCK_SYMBOLS.
1583 * symtab.h (struct symtab): Replace 'free_ptr' method by
1584 'free_func'.
1585 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
1586 sort_symtab_syms.
1587 * dwarfread.c (psymtab_to_symtab_1): Delete call to
1588 sort_symtab_syms.
1589 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
1590 Include dictionary.h.
1591 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
1592 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
1593 sort_symtab_syms.
1594 * objfiles.c: Include dictionary.h.
1595 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
1596 * buildsym.c: Include dictionary.h.
1597 (finish_block): Use dictionary methods.
1598 (end_symtab): Set free_func to NULL, not free_ptr.
1599 * tracepoint.c: Include dictionary.h.
1600 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
1601 (scope_info): Ditto.
1602 * stack.c: Include dictionary.h.
1603 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
1604 (print_block_frame_labels, print_frame_arg_vars)
1605 (print_frame_args): Ditto.
1606 * symmisc.c (free_symtab_block): Use dictionary methods.
1607 (dump_symtab): Ditto.
1608 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
1609 Include dictionary.h.
1610 * symfile.h: Delete declarations of sort_block_syms,
1611 sort_symtab_syms.
1612 * symfile.c (sort_block_syms): Delete.
1613 (sort_symtab_syms): Delete.
1614 * symtab.c: Include dictionary.h.
1615 (lookup_block_symbol): Use dictionary iterators.
1616 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
1617 (search_symbols, make_symbol_completion_list): Ditto.
1618 (make_symbol_overload_list): Ditto.
1619 * valops.c (value_of_local): Use dict_empty.
1620 Include dictionary.h.
1621
a31f978c
JB
16222003-06-11 J. Brobecker <brobecker@gnat.com>
1623
1624 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
1625
526e70c0
DC
16262003-06-11 David Carlton <carlton@bactrian.org>
1627
1628 * block.h (BLOCK_SHOULD_SORT): Delete.
1629 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
1630 blocks.
1631 * ada-lang.c (ada_add_block_symbols): Ditto.
1632 * symfile.c (sort_block_syms): Delete.
1633 (sort_symtab_syms): Ditto.
1634 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
1635 declarations.
1636 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
1637 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
1638 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
1639 * dwarfread.c (psymtab_to_symtab_1): Ditto.
1640 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
1641 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1642 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
1643
33c08150
JJ
16442003-06-11 Jeff Johnston <jjohnstn@redhat.com>
1645
8ffd9b1b 1646 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
1647 bits to 128.
1648
781a750d
AC
16492003-06-11 Andrew Cagney <cagney@redhat.com>
1650
1651 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
1652 REGISTER_CONVERTIBLE.
1653 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
1654 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
1655 * gdbarch.h, gdbarch.c: Re-generate.
1656 * arch-utils.h (deprecated_register_convertible_not): Rename
1657 generic_register_convertible_not.
1658 * arch-utils.c (deprecated_register_convertible_not): Rename
1659 generic_register_convertible.
1660 (legacy_convert_register_p, legacy_register_to_value): Update.
1661 * sh-tdep.c (sh64_push_arguments): Update.
1662 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
1663 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
1664 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
1665 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
1666 * arch-utils.c (legacy_value_to_register): Update.
1667 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1668 (rs6000_register_convert_to_raw): Make parameter "from" const.
1669 * mips-tdep.c (mips_gdbarch_init): Update.
1670 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
1671 * infcmd.c (default_print_registers_info): Update.
1672 * ia64-tdep.c (ia64_gdbarch_init): Update.
1673 (ia64_register_convert_to_raw): Make parameter "from" const.
1674 * i386-tdep.c (i386_gdbarch_init): Update.
1675 (i386_register_convert_to_raw): Update.
1676
cd90e54f
AC
16772003-06-11 Andrew Cagney <cagney@redhat.com>
1678
1679 * remote-fileio.c: Include "remote-fileio.h".
1680 * Makefile.in (remote-fileio.o): Update dependencies.
1681 (remote_fileio_h): Fix typo.
1682
a78f21af
AC
16832003-06-11 Andrew Cagney <cagney@redhat.com>
1684
1685 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
1686 (xstormy16_save_dummy_frame_tos): Make static.
1687 (_initialize_xstormy16_tdep): Add declaration.
1688 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
1689 * v850-tdep.c: Make local functions static.
1690 (_initialize_v850_tdep): Add declaration.
1691 * sparc-tdep.c: Make local functions static.
1692 (_initialize_sparc_tdep): Add declaration.
1693 * sh-tdep.c: Make local functions static.
1694 (_initialize_sh_tdep): Add declaration.
1695 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
1696 * s390-tdep.c: Make local functions static.
1697 (_initialize_s390_tdep): Add declaration.
1698 * dbxread.c (find_stab_function_addr): Make static.
1699 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
1700 * ocd.c (_initialize_remote_ocd): Add declaration.
1701 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
1702 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
1703 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
1704 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
1705 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
1706 * remote-array.c (_initialize_array): Add declaration.
1707 (_initialize_remote_monitors): Add declaration.
1708 * remote-mips.c: Make local functions static.
1709 (_initialize_remote_mips): Add declaration.
1710 * mcore-tdep.c: Make all local functions static.
1711 (_initialize_mcore_tdep): Add declaration.
1712 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
1713 * abug-rom.c (_initialize_abug_rom): Add declaration.
1714 * rom68k-rom.c (_initialize_rom68k): Add declaration.
1715 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
1716 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
1717 * remote-est.c (_initialize_est): Add declaration.
1718 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
1719 (m68hc11_call_dummy_address): Make static.
1720 * ia64-tdep.c: Make local functions static.
1721 (_initialize_ia64_tdep): Add declaration.
1722 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
1723 * monitor.c (monitor_wait_filter): Make static.
1724 (_initialize_remote_monitors): Add declaration.
1725 * remote-hms.c (_initialize_remote_hms): Add declaration.
1726 * remote-e7000.c (fetch_regs_from_dump): Make static.
1727 (expect_n): Make static.
1728 (_initialize_remote_e7000): Add declaration.
1729 * ser-e7kpc.c: Always include "defs.h".
1730 (_initialize_ser_e7000pc): Add declaration.
1731 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
1732 * cris-tdep.c: Make all but one function static.
1733 (_initialize_cris_tdep): Add declaration.
1734 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
1735 * solib.c (update_solib_list): Make static.
1736 (_initialize_solib): Add declaration.
1737 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
1738 (_initialize_avr_tdep): Add declaration.
1739 * remote-rdi.c (voiddummy): Make static.
1740 (_initialize_remote_rdi): Add declaration.
1741 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
1742 * remote-rdp.c (send_rdp): Make static.
1743 (_initialize_remote_rdp): Add declaration.
1744 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
1745
cbcdb1f5
CV
17462003-06-11 Corinna Vinschen <vinschen@redhat.com>
1747
1748 * remote-fileio.c: Make ari happy.
1749
a191ea8d
JB
17502003-06-10 J. Brobecker <brobecker@gnat.com>
1751
1752 * rs6000-nat.c (child_xfer_memory): Compute the right address when
1753 fetching the trailing bytes of the buffer we are about to write.
1754
0ef75e11
AC
17552003-06-10 Andrew Cagney <cagney@redhat.com>
1756
1757 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
1758 * Makefile.in (remote-fileio.o): Update dependencies.
1759 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
1760 include <setjmp.h>, or <sys/types.h> conditional on USG.
1761 (remote_fio_jmp_buf): Delete global variable.
1762
449092f6 17632003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 1764 Martin M. Hunt <hunt@redhat.com>
449092f6 1765
559fa028
AC
1766 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
1767 (SFILES): Add remote-fileio.c.
1768 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
1769 dependencies for building remote.o.
449092f6
CV
1770 * remote-fileio.c: New file implementing the remote File-I/O protocol.
1771 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 1772 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
1773 static storage class.
1774 (remote_wait, remote_async_wait): Call remote_fileio_request() on
1775 'F' packet.
1776 (_initialize_remote): Call initialize_remote_fileio().
1777 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
1778 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
1779 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
1780 (captured_main): Initialize new ui_files.
1781 * ui-file.c: Add read and fgets input functions.
1782 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
1783 (null_file_read): New function.
1784 (ui_file_read): New function.
1785 (set_ui_file_read): New function.
1786 (stdio_file_read): New function.
1787 * ui-file.h: New type ui_file_read_ftype.
1788 (set_ui_file_read): Declare.
1789 (ui_file_read): Declare.
1790
248de703
AC
17912003-06-09 Andrew Cagney <cagney@redhat.com>
1792
1793 * frame.h (deprecated_unwind_get_saved_register): Rename
1794 generic_unwind_get_saved_register, update comments.
1795 * mips-tdep.c (mips_get_saved_register): Update.
1796 * frame.c (deprecated_unwind_get_saved_register): Update.
1797
0ed8aa57
AC
17982003-06-09 Andrew Cagney <cagney@redhat.com>
1799
1800 * vax-tdep.c (vax_frame_locals_address): Delete function.
1801 (vax_gdbarch_init): Do not set frame_locals_address.
1802 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
1803 (m68hc11_gdbarch_init): Do not set frame_locals_address.
1804 * s390-tdep.c (s390_frame_args_address): Delete function.
1805 (s390_gdbarch_init): Do not set frame_args_address or
1806 frame_locals_address.
1807 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
1808 (ns32k_gdbarch_init): Do not set frame_locals_address.
1809 * hppa-tdep.c (hppa_frame_args_address): Delete function.
1810 (hppa_frame_locals_address): Delete function.
1811 (hppa_gdbarch_init): Do not set frame_args_address, or
1812 frame_locals_address.
1813 * arm-tdep.c (arm_frame_args_address): Delete.
1814 (arm_frame_locals_address): Delete.
1815 (arm_gdbarch_init): Do not set frame_args_address, or
1816 frame_locals_address.
1817
983a287a
AC
18182003-06-09 Andrew Cagney <cagney@redhat.com>
1819
1820 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
1821 * gdbarch.h, gdbarch.c: Re-generate.
1822 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
1823 * arch-utils.c (frame_num_args_unknown): Delete function.
1824 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
1825 (frame_info): Use FRAME_NUM_ARGS_P.
1826 * arm-tdep.c (arm_frame_num_args): Delete function.
1827 (arm_gdbarch_init): Do not set frame_num_args.
1828 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
1829 * hppa-tdep.c (hppa_frame_num_args): Delete function.
1830 (hppa_gdbarch_init): Do not set frame_num_args.
1831 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
1832 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1833 frame_num_args to default frame_num_args_unknown.
1834 * v850-tdep.c (v850_gdbarch_init): Ditto.
1835 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1836 * sh-tdep.c (sh_gdbarch_init): Ditto.
1837 * s390-tdep.c (s390_gdbarch_init): Ditto.
1838 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1839 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1840 * mips-tdep.c (mips_gdbarch_init): Ditto.
1841 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1842 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1843 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1844 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1845 * i386-tdep.c (i386_gdbarch_init): Ditto.
1846 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1847 * frv-tdep.c (frv_gdbarch_init): Ditto.
1848 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1849 * cris-tdep.c (cris_gdbarch_init): Ditto.
1850 * avr-tdep.c (avr_gdbarch_init): Ditto.
1851 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1852
8d3b0994
AC
18532003-06-09 Andrew Cagney <cagney@redhat.com>
1854
1855 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
1856 (print_frame_args): Moved to "stack.c".
1857 * stack.c: Include "gdb_assert.h".
1858 (print_frame_nameless_args): Moved from "printcmd.c", made static.
1859 (print_frame_args): Moved from "printcmd.c".
1860 * frame.h (print_frame_args): Delete declaration.
1861 * Makefile.in (stack.o): Update dependencies.
1862
25e3a86b
AC
18632003-06-08 Andrew Cagney <cagney@redhat.com>
1864
1865 * frame.c (get_prev_frame): Remove reference to
1866 frame_args_address_correct in comments.
1867 * frame-base.c (default_frame_args_address): Delete code
1868 conditional on FRAME_ARGS_ADDRESS_CORRECT.
1869 * vax-tdep.c (vax_frame_args_address_correct): Delete.
1870 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
1871 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
1872 (vax_frame_args_address_correct): Delete declaration.
1873
a9e5fdc2
AC
18742003-06-08 Andrew Cagney <cagney@redhat.com>
1875
1876 * gdbarch.sh (UNWIND_SP): Add.
1877 * gdbarch.h, gdbarch.c: Re-generate.
1878 * frame.c (frame_sp_unwind): New function.
1879 (get_frame_sp): New function.
1880 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
1881 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
1882 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
1883 value.
1884 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
1885 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
1886
8983bd83
AC
18872003-06-08 Andrew Cagney <cagney@redhat.com>
1888
7fec2c59
AC
1889 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
1890 REMOTE_BREAKPOINT.
1891 * remote.c: Update.
1892 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
1893 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
1894 * config/m68k/tm-sun3.h: Update.
1895 * config/m68k/tm-m68klynx.h: Update.
1896 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
1897
8983bd83
AC
1898 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
1899 trad_frame". Update comments.
1900 * d10v-tdep.c (struct d10v_unwind_cache): Update.
1901 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
1902 (trad_frame_register_value, trad_frame_prev_register): Update.
1903
b9362cc7
AC
19042003-06-08 Andrew Cagney <cagney@redhat.com>
1905
1906 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
1907 from GCC's acinclude.m4.
1908 * configure.in: Check for getopt's delcaration.
8ffd9b1b 1909 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
1910 * main.c (error_init): Delete declaration.
1911 * defs.h (error_init): Declare.
1912 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
1913 (rs6000_convert_from_func_ptr_addr): Make static.
1914 (_initialize_rs6000_tdep): Add declaration.
1915 * cli/cli-cmds.c (dont_repeat): Delete declaration.
1916 (show_commands, set_verbose, show_history): Delete declaration.
1917 * top.h (set_verbose): Add declaration.
1918 (show_history, set_history, show_commands): Add declaration.
1919 (do_restore_instream_cleanup): Add declaration.
1920 * objc-lang.c (specialcmp): Make static.
1921 (print_object_command): Make static.
1922 (find_objc_msgsend): Make static.
1923 (find_objc_msgcall_submethod_helper): Make static.
1924 (find_objc_msgcall_submethod): Make static.
1925 (_initialize_objc_language): Add declaration.
1926 (find_implementation_from_class): Make static.
1927 (find_implementation): Make static.
1928 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
1929 * objc-lang.h (lookup_struct_typedef): Add declaration.
1930 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
1931 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
1932 (do_restore_user_call_depth): Make static.
1933 (do_restore_instream_cleanup): Delete declaration.
1934 (dont_repeat): Delete declaration.
1935 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
1936 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
1937 * reggroups.c (_initialize_reggroup): Add declaration.
1938 * cp-support.c (_initialize_cp_support): Add declaration.
1939 * cp-abi.c (_initialize_cp_abi): Add declaration.
1940 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
1941 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
1942 (_initialize_gnu_v3_abi): Add declaration.
1943 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
1944 (_initialize_gnu_v2_abi): Add declaration.
1945 * frame-base.c (_initialize_frame_base): Add declaration.
1946 * doublest.c (floatformat_from_length): Make static.
1947 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
1948 * frame.c (create_sentinel_frame): Make static.
1949 (_initialize_frame): Add declaration.
1950 * top.c (do_catch_errors): Make static.
1951 (gdb_rl_operate_and_get_next_completion): Make static.
1952 * typeprint.c: Include "typeprint.h".
1953 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
1954 (sentinel_frame_this_id): Make static.
1955 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
1956 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
1957 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
1958 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
1959 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
1960 * maint.c (maintenance_print_architecture): Make static.
1961 * signals/signals.c (_initialize_signals): Add declaration.
1962 * std-regs.c (_initialize_frame_reg): Add declaration.
1963 * jv-exp.y (push_variable): ISO C definition.
1964 (push_qualified_expression_name): Ditto.
1965 * memattr.c (_initialize_mem): Add declaration.
1966 * remote.c (remote_check_watch_resources): Make static.
1967 (remote_stopped_by_watchpoint): Make static.
1968 (remote_stopped_data_address): Make static.
1969 * d10v-tdep.c (nr_dmap_regs): Make static.
1970 (a0_regnum): Make static.
1971 (d10v_frame_unwind_cache): Make static.
1972 (d10v_frame_p): Make static.
1973 * osabi.c (show_osabi): Make static.
1974 (_initialize_gdb_osabi): Add extern declaration.
1975 * gdbtypes.c (make_qualified_type): Make static.
1976 (safe_parse_type): Make static.
1977 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
1978 * macrotab.c (macro_bcache_free): Make static.
1979 * interps.c (interp_set_quiet): Make static.
1980 (interpreter_exec_cmd): Make static.
1981 * stack.h (select_frame_command): New file.
1982 * stack.c: Include "stack.h".
1983 (select_frame_command_wrapper): Delete function.
1984 (select_frame_command): Make global.
1985 * infcall.c: Include "infcall.h".
1986 * linespec.c: Include "linespec.h".
1987 * symfile.c (sections_overlap): Make static.
1988 * cp-support.h (cp_initialize_namespace): ISO C declaration.
1989 * charset.c (_initialize_charset): Add missing prototype.
1990 * regcache.c (init_legacy_regcache_descr): Make static.
1991 (do_regcache_xfree): Make static.
1992 (regcache_xfer_part): Make static.
1993 (_initialize_regcache): Add missing prototype.
1994 * breakpoint.c (parse_breakpoint_sals): Make static.
1995 (breakpoint_sals_to_pc): Make static.
1996 * interps.h (clear_interpreter_hooks): ISO C declaration.
1997 * Makefile.in (stack_h): Define.
1998 (stack.o, typeprint.o, mi-main.o): Update dependencies.
1999 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
2000
a0f267c7
AC
20012003-06-08 Andrew Cagney <cagney@redhat.com>
2002
2003 * Makefile.in (d10v-tdep.o): Update dependencies.
2004 (SFILES): Add trad-frame.c.
2005 (trad_frame_h): Define.
2006 (COMMON_OBS): Add trad-frame.o.
2007 (trad-frame.o): Specify dependencies.
2008 * d10v-tdep.c: Include "trad-frame.h".
2009 (saved_regs_unwinder): Delete function.
2010 (d10v_frame_prev_register): Use trad_frame_prev_register.
2011 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
2012 trad_frame", delete "regs" and "prev_sp".
2013 (prologue_find_regs): Use trad-frame.
2014 * trad-frame.h, trad-frame.c: New files.
2015
4538b4f4
MK
20162003-06-08 Mark Kettenis <kettenis@gnu.org>
2017
2018 * dwarf2cfi.c, dwarf2cfi.h: Remove.
2019
a0273b2f
AF
20202003-06-07 Adam Fedor <fedor@gnu.org>
2021
2022 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
2023 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
2024 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
2025 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 2026 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
2027 Use it.
2028
3a6c3343
AC
20292003-06-07 Andrew Cagney <cagney@redhat.com>
2030
2031 * symfile.h: Re-indent, clean up comments.
2032
b46e02f6
AC
20332003-06-07 Andrew Cagney <cagney@redhat.com>
2034
2035 * inferior.h (deprecated_write_sp): Replace
2036 generic_target_write_sp.
2037 * regcache.c (deprecated_write_sp): Replace
2038 generic_target_write_sp.
2039 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2040 * vax-tdep.c (vax_gdbarch_init): Update.
2041 * v850-tdep.c (v850_gdbarch_init): Update.
2042 * sparc-tdep.c (sparc_gdbarch_init): Update.
2043 * sh-tdep.c (sh_gdbarch_init): Update.
2044 * s390-tdep.c (s390_gdbarch_init): Update.
2045 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2046 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2047 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2048 * mcore-tdep.c (mcore_gdbarch_init): Update.
2049 * m68k-tdep.c (m68k_gdbarch_init): Update.
2050 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2051 * ia64-tdep.c (ia64_gdbarch_init): Update.
2052 * h8300-tdep.c (h8300_gdbarch_init): Update.
2053 * frv-tdep.c (frv_gdbarch_init): Update.
2054 * cris-tdep.c (cris_gdbarch_init): Update.
2055 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
2056
a42e117c
AC
20572003-06-07 Andrew Cagney <cagney@redhat.com>
2058
2059 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
2060 Assert that PC_REGNUM is valid.
2061 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
2062
bd1ce8ba
AC
20632003-06-07 Andrew Cagney <cagney@redhat.com>
2064
2065 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
2066 * gdbarch.h, gdbarch.c: Regenerate.
2067 * mn10300-tdep.c: Include "gdb_assert.h".
2068 (mn10300_read_fp): New function.
2069 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
2070 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
2071 * ia64-tdep.c: Include "gdb_assert.h".
2072 (ia64_read_fp): New function.
2073 (ia64_gdbarch_init): Set deprecated_target_read_fp to
2074 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
2075 * regcache.c (generic_target_read_sp): Delete function.
2076 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
2077 * inferior.h (generic_target_read_sp): Delete declaration.
2078 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
2079 generic_target_read_sp.
2080 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2081 * sparc-tdep.c (sparc_gdbarch_init): Ditto
2082 * sh-tdep.c (sh_gdbarch_init): Ditto.
2083 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2084 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
2085
ec5cbaec
AC
20862003-06-07 Andrew Cagney <cagney@redhat.com>
2087
2088 * gdbarch.sh: Comment each field of startup_gdbarch.
2089 * gdbarch.h, gdbarch.c: Re-generate.
2090
cde9ea48
AC
20912003-06-07 Andrew Cagney <cagney@redhat.com>
2092
2093 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
2094 * gdbarch.h, gdbarch.c: Re-generate.
2095 * regcache.c: Update comments on read_pc et.al.
2096 (generic_target_read_pc): Delete function.
2097 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
2098 * inferior.h (generic_target_read_pc): Delete declaration.
2099 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
2100 generic_target_read_pc.
2101 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2102 * sh-tdep.c (sh_gdbarch_init): Ditto.
2103 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2104 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 2105
9a90a780
AC
21062003-06-07 Andrew Cagney <cagney@redhat.com>
2107
2108 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
2109 "index" with "special_local_sect". Use strcmp instead of STREQ.
2110 Append period to coments.
2111
a39a16c4
MM
21122003-06-06 Mark Mitchell <mark@codesourcery.com>
2113
2114 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
2115 (elfstab_offset_sections): Likewise.
2116 * gdb-stabs.h (stab_section_info): Likewise.
2117 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
2118 * objfiles.c (objfile_relocate): Likewise.
2119 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
2120 * remote.c (get_offsets): Likewise.
2121 (remote_cisco_objfile_relocate): Likewise.
2122 * somread.c (som_symfile_offsets): Likewise.
2123 * symfile.c (alloc_section_addr_info): New function.
2124 (build_section_addr_info_from_section_tab): Use it.
2125 (free_section_addr_info): Adjust.
2126 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
2127 (syms_from_objfile): Allocate local_addr dynamically.
2128 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
2129 dynamically.
2130 (add_symbol_file_command): Allocate sect_opts dynamically.
2131 (reread_symbols): Avoid use of SECT_OFF_MAX.
2132 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
2133 (alloc_section_addr_info): Declare it.
2134 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
2135 * win32-nat.c (solib_symbols_add): Allocate section_addrs
2136 dynamically.
2137 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 2138
20c6c2f8
AC
21392003-06-06 Andrew Cagney <cagney@redhat.com>
2140
2141 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
2142 (d10v_frame_unwind_cache): Do not set "return_pc".
2143
884a26c8
MS
21442003-06-06 Michael Snyder <msnyder@redhat.com>
2145
2146 * h8300-tdep.c: Make tidy (long lines).
2147
088ce440
ML
21482003-06-06 Michal Ludvig <mludvig@suse.cz>
2149
8ffd9b1b 2150 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
2151 to regcache_collect().
2152
7d773d96
JB
21532003-06-05 J. Brobecker <brobecker@gnat.com>
2154
2155 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
2156 pc_in_sigtramp multiarch method.
2157 (hppa_hpux_som_init_abi): Use it.
2158 (hppa_hpux_elf_init_abi): Likewise.
2159 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
2160 macro has been multiarched.
2161 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
2162 macro here, as hppa64 isn't multiarched yet.
2163
1df6926e
AC
21642003-06-05 Andrew Cagney <cagney@redhat.com>
2165
2166 * Makefile.in (value_h): Add $(frame_h).
2167 * value.h: Include "frame.h".
2168 (struct value): Replace "frame_addr" with "frame_id".
2169 (VALUE_FRAME_ID): Replace VALUE_FRAME.
2170 * values.c (allocate_value): Use VALUE_FRAME_ID.
2171 (value_copy): Use VALUE_FRAME_ID.
2172 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
2173 * valops.c (value_assign): Update. Use frame_find_by_id.
2174
6b53acc6
ML
21752003-06-05 Michal Ludvig <mludvig@suse.cz>
2176
2177 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
2178 in each pass.
2179
4d9850d3
JJ
21802003-06-05 Jeff Johnston <jjohnstn@redhat.com>
2181
2182 * thread-db.c (check_event): For create/death event breakpoints,
2183 loop through all messages to ensure that we read the message
2184 corresponding to the breakpoint we are at.
2185
8efca6ba
MS
21862003-06-04 Michael Snyder <msnyder@redhat.com>
2187
2188 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
2189
0912c7f2
MK
21902003-06-04 Mark Kettenis <kettenis@gnu.org>
2191
2192 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
2193 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
2194 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
2195 when handling .eh_frame sections.
2196
4e370325
JB
21972003-06-04 J. Brobecker <brobecker@gnat.com>
2198
2199 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
2200 prepare_to_proceed procedure instead of the hppa-specific one.
2201 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
2202
b757528f 22032003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 2204
b757528f
JJ
2205 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
2206 * config.in: Regenerated.
2207 * configure.in: Add test for syscall function and check for
2208 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
2209 * configure: Regenerated.
2210 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
2211 <sys/syscall.h>.
2212 (kill_lwp): New function that uses tkill syscall or
2213 uses kill, depending on whether threading model is nptl or not.
2214 All callers of kill() changed to use kill_lwp().
2215 (lin_lwp_wait): Make special check when WIFEXITED occurs to
2216 see if all threads have already exited in the nptl model.
2217 (stop_and_resume_callback): New callback function used by the
2218 lin_lwp_wait thread exit handling code.
2219 (stop_wait_callback): Check for threads already having exited and
2220 delete such threads fromt the lwp list when discovered.
2221 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 2222
b757528f
JJ
2223 Roland McGrath <roland@redhat.com>
2224 * i386-linux-nat.c (ps_get_thread_area): New function needed by
2225 nptl libthread_db.
2226
087779b1
RH
22272003-06-03 Richard Henderson <rth@redhat.com>
2228
b21fd293
RH
2229 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
2230 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
2231 (alpha_sigtramp_frame_prev_register): Likewise.
2232 (alpha_heuristic_frame_prev_register): Likewise.
2233 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
2234
8ffd9b1b 2235 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
2236 alpha-specific register id names.
2237 (alpha_mdebug_frame_unwind_cache): Likewise.
2238 (alpha_mdebug_frame_prev_register): Likewise.
2239
baa490c4
RH
22402003-06-03 Richard Henderson <rth@redhat.com>
2241
2242 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
2243 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
2244 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
2245 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
2246 unwind routines.
2247 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
2248 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2249 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
2250
2251 * alpha-linux-tdep.c: Remove unnecessary includes.
2252 * Makefile.in (alpha-linux-tdep.o): Update.
2253
22542003-06-03 Richard Henderson <rth@redhat.com>
2255
2256 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
2257 (alphabsd_fill_fpreg): Likewise.
2258
f534e522
JB
22592003-06-03 J. Brobecker <brobecker@gnat.com>
2260
2261 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
2262 references to struct frame_info fields by calls to the equivalent
2263 accessors. Necessary now that frame_info is opaque.
2264
4035536b
JB
22652003-06-03 J. Brobecker <brobecker@gnat.com>
2266
2267 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
2268 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
2269 structure, field no longer exists.
2270
0bd79c5c
JB
22712003-06-03 J. Brobecker <brobecker@gnat.com>
2272
2273 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2274 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
2275
37bb6d9f
JB
22762003-06-03 J. Brobecker <brobecker@gnat.com>
2277
2278 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
2279 references to struct frame_info fields by calls to the equivalent
2280 accessors. Necessary now that frame_info is opaque.
2281
852ee05c
JB
22822003-06-03 J. Brobecker <brobecker@gnat.com>
2283
2284 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
2285 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
2286 structure, field no longer exists.
2287
7d58c67d
TR
22882003-06-03 Theodore A. Roth <troth@openavr.org>
2289
8ffd9b1b 2290 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
2291 accumulation of the size of all registers instead of blindly using
2292 DEPRECATED_REGISTER_BYTES.
2293
0a48e7e8
MS
22942003-06-03 Michael Snyder <msnyder@redhat.com>
2295
2296 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
2297 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
2298 for h8300sx.
2299
9798ab0d
JB
23002003-06-03 J. Brobecker <brobecker@gnat.com>
2301
2302 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
2303 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
2304
00b037e2
AC
23052003-06-03 Andrew Cagney <cagney@redhat.com>
2306
2307 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
2308 (sparc_convert_to_raw): Delete function.
2309 (sparc_gdbarch_init): Do not set register_convert_to_raw or
2310 register_convert_to_virtual.
2311
043b2f77
JJ
23122003-06-03 Jeff Johnston <jjohnstn@redhat.com>
2313
2314 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
2315 layer if not dealing with a statically-linked threaded program.
2316
f43caff8
KW
23172003-06-03 Kris Warkentin <kewarken@qnx.com>
2318
2319 * solib.c (solib_open): Update comment to reflect actual search order.
2320
ae1e7417
AC
23212003-06-03 Andrew Cagney <cagney@redhat.com>
2322
2323 * frame.c (get_frame_memory_signed): New function.
2324 (get_frame_memory, get_frame_memory_unsigned): New function.
2325 (get_frame_arch): New function.
2326 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
2327 (get_frame_memory, get_frame_unsigned_memory): Declare.
2328 * d10v-tdep.c (d10v_frame_unwind_cache): Use
2329 get_frame_memory_unsigned and get_frame_arch.
2330 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
2331
cb123844
RG
23322003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
2333
2334 * MAINTAINERS (write after approval): Add myself.
2335
1bb792e9
JB
23362003-06-03 Jim Blandy <jimb@redhat.com>
2337
2338 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
2339 elements of gregset_t are 64 bits each, but access registers
2340 are still 32 bits, so they're packed two per gregset_t
2341 element. Unpack/pack them properly.
2342
aee8d8ba
DC
23432003-06-02 David Carlton <carlton@bactrian.org>
2344
2345 * linespec.c (find_methods): Break out code into
2346 add_matching_methods and add_constructors.
2347 (add_matching_methods): New.
2348 (add_constructors): Ditto.
2349
bf7488d2
AC
23502003-06-02 Andrew Cagney <cagney@redhat.com>
2351
bf7488d2
AC
2352 * sparc-tdep.c (sparc_print_registers): Delete call to
2353 REGISTER_CONVERTIBLE.
2354 (sparc_gdbarch_init): Do not set register_convertible.
2355 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2356 * frv-tdep.c (frv_gdbarch_init): Ditto.
2357 * cris-tdep.c (cris_gdbarch_init): Ditto.
2358
adedef68
EZ
23592003-06-02 Elena Zannoni <ezannoni@redhat.com>
2360
8ffd9b1b 2361 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
2362 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
2363 (syms_from_objfile): Ditto.
2364
650fcc91
AS
23652003-06-03 Andreas Schwab <schwab@suse.de>
2366
2367 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
2368 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
2369
df4a182b
RH
23702003-06-02 Richard Henderson <rth@redhat.com>
2371
2372 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
2373 a member of all_reggroup.
2374
c483c494
RH
23752003-06-02 Richard Henderson <rth@redhat.com>
2376
2377 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
2378 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
2379 (alpha_lds, alpha_sts): New.
2380 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 2381 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
2382 restructure and fail for type sizes other than 4 or 8.
2383 (alpha_value_to_register): Similarly.
2384 (alpha_extract_return_value): Use alpha_sts.
2385 (alpha_store_return_value): Use alpha_lds.
2386 (alpha_gdbarch_init): Update hooks.
2387
b38b6be2
RH
23882003-06-02 Richard Henderson <rth@redhat.com>
2389
2390 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
2391 regnum identifiers.
2392 (alpha_sigtramp_register_address): Likewise.
2393
98a8e1e5
RH
23942003-06-02 Richard Henderson <rth@redhat.com>
2395
2396 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
2397 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
2398 * alpha-tdep.h: Declare them.
2399
2400 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
2401 Remove zerobuf. Don't error on UNIQUE.
2402 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
2403 (ALPHA_REGSET_UNIQUE): Provide default.
2404 (supply_gregset): Use alpha_supply_int_regs.
2405 (fill_gregset): Use alpha_fill_int_regs.
2406 (supply_fpregset): Use alpha_supply_fp_regs.
2407 (fill_fpregset): Use alpha_fill_fp_regs.
2408 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
2409 (alphabsd_supply_reg): Use alpha_supply_int_regs.
2410 (alphabsd_fill_reg): Use alpha_fill_int_regs.
2411 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
2412 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
2413 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
2414
67dfac52
RH
24152003-06-02 Richard Henderson <rth@redhat.com>
2416
f75d70cc
RH
2417 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
2418
67dfac52
RH
2419 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
2420 (alpha_store_return_value): Likewise.
2421
0cf566ec
DC
24222003-06-02 David Carlton <carlton@math.stanford.edu>
2423
2424 * block.c (contained_in): Add 'const' to arguments.
2425 (block_function): Ditto.
2426 * block.h: Update declarations for block_function and
2427 contained_in.
2428
cdef89d0
DC
24292003-06-02 David Carlton <carlton@math.stanford.edu>
2430
2431 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
2432 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
2433 * p-valprint.c (pascal_val_print): Ditto.
2434 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
2435
72667056
RH
24362003-06-02 Richard Henderson <rth@redhat.com>
2437
98a8e1e5
RH
2438 * alpha-tdep.c (alpha_push_dummy_call): Use
2439 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 2440
8ffd9b1b 2441 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
2442 sign-extension of 32-bit values.
2443 (alpha_store_return_value): Similarly.
0ede8eca 2444
98a8e1e5
RH
2445 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
2446 (alpha_extract_return_value): Likewise.
2447 (alpha_store_return_value): Likewise.
7b5e1cb3 2448
98a8e1e5
RH
2449 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
2450 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 2451
98a8e1e5
RH
2452 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
2453 (alpha_extract_struct_value_address): Likewise.
2454 (alpha_store_return_value): Likewise.
2455 (alpha_store_struct_return): Remove.
2456 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 2457
98a8e1e5
RH
2458 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
2459 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
2460 macros where appropriate.
2461 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
2462 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 2463
98a8e1e5
RH
2464 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
2465 for SP, GP; void_func_ptr for PC; non-language-specific types
2466 for all others.
2467 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 2468
6dd77b81
RH
24692003-06-02 Richard Henderson <rth@redhat.com>
2470
2471 * top.h (lim_at_start): Declare.
2472 * main.c (captured_main): Set it.
2473 * top.c (lim_at_start): Define.
2474 (command_loop): Use it instead of &environ.
2475 * event-top.c (command_handler): Likewise.
2476
f4dbdb54
JT
24772003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
2478
2479 * mipsnbsd-tdep.c: Update copyright years.
2480 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
2481
8f285956
RH
24822003-06-01 Richard Henderson <rth@redhat.com>
2483
98a8e1e5
RH
2484 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
2485 (alpha-linux-tdep.o): Update dependencies.
2486 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
2487 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 2488
615967cb
RH
24892003-06-01 Richard Henderson <rth@redhat.com>
2490
98a8e1e5
RH
2491 * alpha-tdep.c (alpha_register_reggroup_p): New.
2492 (alpha_gdbarch_init): Register it.
615967cb 2493
b59661bd
AC
24942003-06-02 Andrew Cagney <cagney@redhat.com>
2495
2496 * dwarfread.c: Eliminate "register"
2497 (decode_die_type): Eliminate assignment within "if".
2498 (struct_type, decode_array_element_type): Ditto.
2499 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
2500 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
2501 (decode_modified_type, completedieinfo): Ditto.
2502 * block.c: Eliminate "register".
2503 (blockvector_for_pc_sect): Eliminate assignment within "if".
2504 * cp-support.h (struct symbol): Opaque declaration.
2505 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
2506
5ef165c2
RH
25072003-06-01 Richard Henderson <rth@redhat.com>
2508
98a8e1e5
RH
2509 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
2510 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 2511
143985b7
AF
25122003-06-01 Adam Fedor <fedor@gnu.org>
2513
2514 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
2515 * gdbarch.[ch]: Regenerate.
2516 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
2517 (hppa_gdbarch_init): Set it in the gdbarch vector.
2518 * i386-tdep.c (i386_fetch_pointer_argument): New
2519 (i386_gdbarch_init): Set it into gdbarch.
2520 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
2521 (rs6000_gdbarch_init): Set it in gdbarch.
2522 * sparc-tdep.c (sparc_fetch_pointer_argument): New
2523 (sparc_gdbarch_init): Set it in gdbarch.
2524
ae0167b9
AC
25252003-06-01 Andrew Cagney <cagney@redhat.com>
2526
7c0b4a20
AC
2527 * defs.h (extract_address): Delete declaration.
2528 * findvar.c (extract_address): Delete function.
2529 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
2530 extract_address with the inline equivalent,
2531 extract_unsigned_integer.
2532 (xstormy16_extract_struct_value_address): Ditto.
2533 (xstormy16_pointer_to_address): Ditto.
2534 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
2535 * v850-tdep.c (v850_push_arguments): Ditto.
2536 (v850_extract_return_value): Ditto.
2537 (v850_extract_struct_value_address): Ditto.
2538 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
2539 (sparcnbsd_get_longjmp_target_64): Ditto.
2540 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
2541 (get_longjmp_target): Ditto.
2542 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
2543 (sh64_extract_struct_value_address): Ditto.
2544 (sh_push_arguments): Ditto.
2545 (sh64_push_arguments): Ditto.
2546 * remote-vxsparc.c (vx_read_register): Ditto.
2547 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
2548 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
2549 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
2550 * mipsv4-nat.c (get_longjmp_target): Ditto.
2551 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
2552 * mips-nat.c (get_longjmp_target): Ditto.
2553 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
2554 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
2555 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
2556 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
2557 * irix5-nat.c (get_longjmp_target): Ditto.
2558 * irix4-nat.c (get_longjmp_target): Ditto.
2559 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
2560 (ia64_push_arguments): Ditto.
2561 * hpux-thread.c (hpux_thread_store_registers): Ditto.
2562 * h8300-tdep.c (h8300_push_arguments): Ditto.
2563 (h8300_store_return_value): Ditto.
2564 (h8300_extract_struct_value_address): Ditto.
2565 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
2566 (frv_push_arguments): Ditto.
2567 * avr-tdep.c (avr_pointer_to_address): Ditto.
2568 (avr_push_arguments): Ditto.
2569 * arm-tdep.c (arm_push_dummy_call): Ditto.
2570 (arm_get_longjmp_target): Ditto.
2571 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
2572 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
2573 (alpha_get_longjmp_target): Ditto.
2574
ae0167b9
AC
2575 * solib-irix.c (extract_mips_address): Inline extract_address,
2576 replacing it with extract_signed_integer.
2577 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
2578 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
2579 (first_link_map_member, open_symbol_file_object): Ditto.
2580 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
2581 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
2582 (LM_NEXT, LM_NAME): Ditto.
2583
44d88583
RH
25842003-06-01 Richard Henderson <rth@redhat.com>
2585
98a8e1e5
RH
2586 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
2587 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
2588 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
2589 (alpha_cannot_store_register): Likewise.
2590 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
2591 * alpha-nat.c (supply_gregset): Likewise.
2592 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 2593
310e9b6a
AC
25942003-06-01 Andrew Cagney <cagney@redhat.com>
2595
2596 * infcall.c (call_function_by_hand): Update comment on
2597 DEPRECATED_DUMMY_WRITE_SP.
2598
2599 * mips-tdep.c (mips_gdbarch_init): Do not set
2600 deprecated_dummy_write_sp.
2601 (mips_eabi_push_dummy_call): Set the SP register.
2602 (mips_o64_push_dummy_call): Set the SP register.
2603 (mips_o32_push_dummy_call): Set the SP register.
2604 (mips_n32n64_push_dummy_call): Set the SP register.
2605
5ab84872
RH
26062003-06-01 Richard Henderson <rth@redhat.com>
2607
98a8e1e5
RH
2608 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
2609 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
2610 (supply_gregset): Likewise.
2611 * alpha-tdep.c (alpha_store_return_value): Likewise.
2612 (alpha_get_longjmp_target): Likewise.
2613 (alpha_register_name): Constify array.
2614 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
2615 deprecated_register_size, deprecated_register_bytes,
2616 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
2617 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
2618 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 2619
09cc52fd
RH
26202003-06-01 Richard Henderson <rth@redhat.com>
2621
2622 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
2623 from arg_reg_buffer to regcache to avoid double conversion.
2624
c7f16359
MK
26252003-06-01 Mark Kettenis <kettenis@gnu.org>
2626
2627 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
2628 SP_REGNUM.
2629 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
2630 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
2631
7131cb6e
RH
26322003-06-01 Richard Henderson <rth@redhat.com>
2633
98a8e1e5
RH
2634 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
2635 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 2636
f3e0f90b
RH
26372003-06-01 Richard Henderson <rth@redhat.com>
2638
98a8e1e5
RH
2639 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
2640 not overlapping PC_REGNUM.
f3e0f90b 2641
c88e30c0
RH
26422003-06-01 Richard Henderson <rth@redhat.com>
2643
98a8e1e5
RH
2644 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
2645 alpha_push_arguments. Don't dump argument register data to
2646 the target stack. Fix float and 128-bit long double semantics.
2647 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
2648 (alpha_fix_call_dummy): Remove.
2649 (alpha_call_dummy_words): Remove.
2650 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 2651
f1a559ae
RH
26522003-06-01 Richard Henderson <rth@redhat.com>
2653
2654 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
2655
5e045346
AC
26562003-06-01 Andrew Cagney <cagney@redhat.com>
2657
95404a3e
AC
2658 * mips-tdep.c (is_mips16_addr): New function.
2659 (make_mips16_addr, unmake_mips16_addr): New functions.
2660 (pc_is_mips16, mips_fetch_instruction): Use.
2661 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
2662 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
2663 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
2664 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
2665 TARGET_MIPS.
2666 * config/mips/tm-mips.h: Update copyright.
2667 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
2668 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
2669 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
2670 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
2671 (TM_PRINT_INSN_MACH): Delete.
2672 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
2673
5e045346
AC
2674 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
2675 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
2676 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
2677 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
2678 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
2679 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
2680 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
2681 mips*-*-riscos* and mips*-*-sysv* onto mips.
2682 * config/mips/mips64.mt: New file.
2683 * config/mips/mips.mt: New file.
2684 * config/mips/littlemips.mt: Delete file.
2685 * config/mips/decstation.mt: Delete file.
2686 * config/mips/vr4300el.mt: Delete file.
2687 * config/mips/vr5000el.mt: Delete file.
2688 * config/mips/vr5000.mt: Delete file.
2689 * config/mips/vr4100.mt: Delete file.
2690 * config/mips/vr4xxxel.mt: Delete file.
2691 * config/mips/vr4300.mt: Delete file.
2692 * config/mips/vr4xxx.mt: Delete file.
2693 * config/mips/bigmips.mt: Delete file.
2694 * config/mips/bigmips64.mt: Delete file.
2695 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
2696 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
2697 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
2698 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
2699 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
2700 "tm-bigmips.h".
2701 * config/mips/tm-irix3.h: Ditto.
2702 * config/mips/tm-mipsv4.h: Ditto.
2703 * config/mips/tm-embed.h: Ditto.
2704 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
2705 "tm-bigmips64.h".
2706 * config/mips/tm-vr5000el.h: Delete file.
2707 * config/mips/tm-tx39l.h: Delete file.
2708 * config/mips/tm-vr4300el.h: Delete file.
2709 * config/mips/tm-vr4xxxel.h: Delete file.
2710 * config/mips/tm-vr4300.h: Delete file.
2711 * config/mips/tm-vr4100.h: Delete file.
2712 * config/mips/tm-vr4xxx.h: Delete file.
2713 * config/mips/tm-vr5000.h: Delete file.
2714 * config/mips/tm-embedl64.h: Delete file.
2715 * config/mips/tm-embedl.h: Delete file.
2716 * config/mips/tm-embed64.h: Delete file.
2717 * config/mips/tm-bigmips64.h: Delete file.
2718 * config/mips/tm-bigmips.h: Delete file.
2719
2473a4a9
MK
27202003-06-01 Mark Kettenis <kettenis@gnu.org>
2721
97a5b208
MK
2722 Fix gdb/1216.
2723 * shnbsd-nat.c: Include "sh-tdep.h".
2724
2473a4a9
MK
2725 From Richard Henderson <rth@redhat.com>:
2726 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
2727
e0f7ec59
AC
27282003-05-31 Andrew Cagney <cagney@redhat.com>
2729
2730 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
2731 forward declaration.
2732 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
2733 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
2734 (mips_find_saved_regs): Use set_reg_offset.
2735 (mips_frame_init_saved_regs): Delete function.
2736 (mips_pop_frame): Call mips_find_saved_regs instead of
2737 DEPRECATED_FRAME_INIT_SAVED_REGS.
2738
68dcc709
AC
27392003-05-31 Andrew Cagney <cagney@redhat.com>
2740
2741 * mips-tdep.c (mips_gdbarch_init): Do not set
2742 deprecated_max_register_raw_size, register_virtual_size, and
2743 deprecated_max_register_virtual_size.
2744
cfc14b3a
MK
27452003-05-31 Mark Kettenis <kettenis@gnu.org>
2746
6405b0a6
MK
2747 * i386-tdep.c: Include "dwarf2-frame.h".
2748 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
2749 * Makefile.in (i386-tdep.o): Update dependencies.
2750
cfc14b3a
MK
2751 * dwarf2-frame.c, dwarf2-frame.h: New files.
2752 * Makefile.in (SFILES): Add dwarf2-frame.c.
2753 (dwarf2_frame_h): Define.
2754 (COMMON_OBS): Add dwarf2-frame.o.
2755 (dwarf2-frame.o): Add dependencies.
2756
6a2751d2
AJ
27572003-05-31 Andreas Jaeger <aj@suse.de>
2758
2759 * x86-64-linux-nat.c: Fix comment.
2760
1c3545ae
MK
27612003-05-31 Mark Kettenis <kettenis@gnu.org>
2762
10f93086
MK
2763 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
2764 function signature.
2765
1c3545ae
MK
2766 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
2767 have a sigcontext_addr handler.
2768 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
2769 sigcontext_addr handler.
2770
e11c53d2
AC
27712003-05-31 Andrew Cagney <cagney@redhat.com>
2772
2773 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
2774 (print_fp_register_row): Replace do_fp_register_row.
2775 (mips_print_fp_register): Add "file" and "frame" parameters.
2776 (mips_print_register): Add "file" and "frame" parameters.
2777 (mips_print_registers_info): Replace mips_do_registers_info.
2778 (mips_gdbarch_init): Set print_registers_info instead of
2779 deprecated_do_registers_info.
2780 (mips_read_fp_register_single): Add "frame" parameter.
2781 (mips_read_fp_register_double): Add "frame" parameter.
2782
a3386186
MK
27832003-05-31 Mark Kettenis <kettenis@gnu.org>
2784
70913449
MK
2785 * i386-tdep.c (i386_register_name): Check for MMX registers first.
2786 Fixes a bug where GDB would print the wrong register names for
2787 targets without SSE.
2788
2b5e0749
MK
2789 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
2790 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
2791 registers.
2792
2793 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
2794 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
2795 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2796 TDEP->sc_sp_offset.
2797
a3386186
MK
2798 From Michal Ludvig <mludvig@suse.cz>:
2799 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
2800 and `sc_num_regs'.
2801 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
2802 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
2803 I386_ST0_REGNUM): Move here from...
2804 * i386-tdep.c: ... here.
2805 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
2806 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
2807 registers if possible.
2808 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
2809 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
2810 Remove variables.
2811 (i386bsd_sc_reg_offset): New variable.
2812 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
2813 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2814 TDEP->sc_sp_offset.
2815 (i386fbsd_sc_reg_offset): New variable.
2816 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
2817 TDEP->sc_num_regs.
2818 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
2819 variables.
2820 (i386fbsd4_sc_reg_offset): New variable.
2821 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
2822 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2823 TDEP->sc_sp_offset.
2824 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
2825 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
2826 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
2827 Remove variables.
2828 (i386nbsd_sc_reg_offset): New variable.
2829 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
2830 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2831 TDEP->sc_sp_offset.
2832 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
2833 Remove variables.
2834 (i386obsd_sc_reg_offset): New variable.
2835 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
2836 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2837 TDEP->sc_sp_offset.
2838 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
2839 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
2840 for frame pointer offset in `struct sigcontext'.
2841
25ab4790
AC
28422003-05-31 Andrew Cagney <cagney@redhat.com>
2843
2844 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
2845 architecture methods call_dummy_words, sizeof_call_dummy_words,
2846 push_return_address, store_struct_return, and fix_call_dummy. Set
2847 push_dummy_call instead of deprecated_push_arguments.
2848 (mips_store_struct_return): Delete function.
2849 (mips_fix_call_dummy): Delete function.
2850 (mips_push_return_address): Delete function.
2851 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
2852 RA_REGNUM and T9_REGNUM.
2853 (mips_n32n64_push_dummy_call): Ditto for
2854 mips_n32n64_push_arguments.
2855 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
2856 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
2857
6a65450a
AC
28582003-05-31 Andrew Cagney <cagney@redhat.com>
2859
2860 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
2861 "dummy_addr" to "bp_addr".
2862 * infcall.c (call_function_by_hand): Pass "funaddr" to
2863 gdbarch_push_dummy_call.
2864 * gdbarch.h, gdbarch.c: Re-generate.
2865 * i386-tdep.c (i386_push_dummy_call): Update.
2866 * arm-tdep.c (arm_push_dummy_call): Update.
2867 * d10v-tdep.c (d10v_push_dummy_call): Update.
2868
c4f35dd8
MK
28692003-05-31 Mark Kettenis <kettenis@gnu.org>
2870
2871 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
2872 variable declarations.
2873 (x86_64_register_number, x86_64_register_name): Remove prototypes.
2874 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
2875 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
2876 x86_64_init_frame_pc, x86_64_init_frame_pc,
2877 x86_64_function_has_prologue): Remove prototypes.
2878 (X86_64_NUM_GREGS): New define.
2879 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
2880 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
2881 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
2882 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
2883 XMM1_REGNUM): Remove defines.
2884 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
2885 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
2886 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
2887 X86_64_XMM1_REGNUM): New defines.
2888 (struct x86_64_register_info): Renamed from `struct
2889 register_info'. Remove `size' member.
2890 (x86_64_register_info_table): Remove variable.
2891 (x86_64_register_info): New variable.
2892 (X86_64_NUM_REGS): New define.
2893 (X86_64_NUM_GREGS): Remove define.
2894 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
2895 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
2896 Remove variables.
2897 (x86_54_dwarf2_reg_to_regnum): Remove function.
2898 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
2899 (x86_64_dwarf_reg_to_regnum): New function.
2900 (x86_64_register_name): Rewrite.
2901 (x86_64_register_raw_size): Remove function.
2902 (x86_64_register_byte_table): Remove variable.
2903 (x86_64_register_byte): Remove function.
2904 (x86_64_register_virtual_type): Remove function.
2905 (x86_64_register_type): New function.
2906 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
2907 x86_64_register_convert_to_raw): Remove functions.
2908 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
2909 (x86_64_use_struct_convention): Make static. Adjust for renamed
2910 defines.
2911 (x86_64_frame_init_saved_regs): Remove function.
2912 (x86_64_push_arguments): Make static. Change to accept a regcache
2913 as argument.
2914 (x86_64_store_return_value, x86_64_extract_return_value): Make
2915 static. Rewrite based on i386 counterparts.
2916 (x86_64_push_dummy_call): New function.
2917 (X86_64_NUM_SAVED_REGS): New define.
2918 (x86_64_register_number): Remove function.
2919 (x86_64_store_struct_return): Remove function.
2920 (x86_64_frameless_function_invocation,
2921 x86_64_function_has_prologue): Remove functions.
2922 (PROLOG_BUFSIZE): Remove define.
2923 (struct x86_64_frame_cache): New structure.
2924 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
2925 x86_64_frame_cache, x86_64_frame_this_id,
2926 x86_64_frame_prev_register, x86_64_frame_p,
2927 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
2928 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
2929 functions.
2930 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
2931 variables.
2932 (x86_64_skip_prologue): Rewrite in terms of
2933 x86_64_analyze_prologue.
2934 (x86_64_frame_base_address): New function.
2935 (x86_64_frame_base): New variable.
2936 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
2937 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
2938 set deprecated_fp_regnum, deprecated_register_size,
2939 deprecated_register_bytes, register_raw_size, register_byte,
2940 register_virtual_type, register_convertiable,
2941 register_convert_to_virtual, convert_to_raw,
2942 deprecated_get_saved_register, deprecated_target_read_fp,
2943 deprecated_push_arguments, deprecated_push_return_address,
2944 deprecated_pop_frame, deprecated_store_struct_return,
2945 deprecated_frame_init_saved_regs, deprecated_frame_chain,
2946 frameless_function_invocation, deprecated_frame_saved_pc,
2947 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
2948 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
2949 deprecated_init_frame_pc and virtual_frame_pointer. Call
2950 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
2951 and x86_64_frame_p. Call frame_base_set_default to register
2952 x86_64_frame_base.
2953 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
2954 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
2955 (_initialize_x86_64_tdep): Remove function.
2956 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
2957 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
2958 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
2959 define.
2960 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
2961 (x86_64_linux_sigcontext_addr): Rewrite.
2962 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
2963 x86_64_linux_frame_saved_pc): Remove functions.
2964 (x86_64_linux_pc_in_sigtramp): Renamed from
2965 x86_64_linux_in_sigtramp. Try harder to recognize a signal
2966 trampoline.
2967 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
2968 Remove_functions.
2969 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
2970 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
2971 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
2972 (x86_64_regmap): Rename to regmap.
2973 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
2974 x86_64_num_gregs.
2975 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
2976 x86_64_regmap.
2977 (x86_64_fxsave_offset): Remove function.
2978 (supply_fpregset): Simply call x86_64_supply_fxsave.
2979 (fill_fpregset): Simply call x86_64_fill_fxsave.
2980 (fetch_inferior_registers, store_inferior_registers): Avoid
2981 asignment in if-statement.
2982 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
2983 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
2984 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
2985 (fetch_core_registers): Remove function.
2986 (linux_elf_core_fns): Remove.
2987 (offsetoff): Don't define.
2988 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
2989 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
2990 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
2991 add core-regset.o.
2992 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
2993 protection against multiple includes instead of NM_X86_64_h. Add
2994 various comments. Include "config/nm-linux.h". Don't include
2995 <signal.h>.
2996 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
2997 GET_THREAD_SIGNALS): Remove defines.
2998 (x86_64_register_u_addr, kernel_u_size,
2999 lin_thread_get_thread_signals): Remove prototypes.
3000 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
3001 [HAVE_LINK_H]: Don't include "solib.h".
3002 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
3003 * config/i386/tm-x86-64linux.h: Fix comments.
3004 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
3005 x86-64-tdep.o): Update dependencies.
3006
c25083af
AC
30072003-05-30 Andrew Cagney <cagney@redhat.com>
3008
c8f55a7b
AC
3009 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
3010 Change parameter type to a "struct regcache *".
3011
c25083af
AC
3012 * gdbarch.sh: Regardless of the multi-arch level, always define
3013 the macro when not already defined.
3014 * gdbarch.h, gdbarch.c: Re-generate.
3015
fbe586ae
RH
30162003-05-30 Richard Henderson <rth@redhat.com>
3017
3018 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
3019 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
3020 (alpha_mdebug_frame_this_id): Likewise.
3021 (alpha_mdebug_frame_prev_register): Likewise.
3022 (alpha_mdebug_frame_base_address): Likewise.
3023 (alpha_mdebug_frame_locals_address): Likewise.
3024 (alpha_mdebug_frame_args_address): Likewise.
3025 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
3026 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
3027 (alpha_heuristic_frame_unwind_cache): Make static; add missing
3028 loop increment.
3029 (alpha_heuristic_frame_this_id): Make static.
3030 (alpha_heuristic_frame_prev_register): Likewise.
3031 (alpha_heuristic_frame_base_address): Likewise.
3032 * alpha-tdep.h: Update.
3033
acd5c798
MK
30342003-05-30 Mark Kettenis <kettenis@gnu.org>
3035
3036 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
3037 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
3038 defenitions.
3039 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
3040 * i386-tdep.c: Mark functions that are 64-bit safe as such.
3041 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3042 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3043 I386_ST0_REGNUM): New defines.
3044 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
3045 codestream_get): Remove define.
3046 (codestream_next_addr, condestream_addr, condestream_buf,
3047 codestream_off, codestream_cnt): Remove variables.
3048 (codestream_fill, codestream_seek, codestream_read): Remove
3049 functions.
3050 (i386_follow_jump): Rewrite to avoid usage of removed codestream
3051 functionality.
3052 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
3053 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
3054 i386_frame_saved_pc, i386_saved_pc_after_call,
3055 i386_frame_num_args, i386_frame_init_saved_regs,
3056 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
3057 i386_push_arguments): Remove functions.
3058 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
3059 functionality. Use i386_analyze_prologue instead of
3060 i386_get_frame_setup.
3061 (I386_NUM_SAVED_REGS): New define.
3062 (struct i386_frame_cache): New structure.
3063 (i386_alloc_frame_cache, i386_analyze_struct_return,
3064 i386_skip_probe, i386_analyze_frame_setup,
3065 i386_analyze_register_saves, i386_analyze_prologue,
3066 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
3067 i386_frame_prev_register, i386_sigtramp_frame_cache,
3068 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
3069 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
3070 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
3071 New functions.
3072 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
3073 New variables.
3074 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
3075 I386_EAX_REGNUM and I386_EDX_REGNUM.
3076 (i386_extract_return_value, i386_store_return_value): Use
3077 I386_ST0_REGNUM where appropriate.
3078 (i386_extract_struct_value_address): Rewrite to use extract_address.
3079 (i386_svr4_pc_in_sigtramp): Add comment.
3080 (i386_svr4_sigcontext_addr): Rewrite.
3081 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
3082 TDEP->sc_sp_offset.
3083 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
3084 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
3085 of new defines. Set push_dummy_call, don't set
3086 deprecated_push_arguments, deprecated_push_return_address,
3087 deprecated_pop_frame. Don't set parm_boundary. Don't set
3088 deprecated_frame_chain, deprecated_frame_saved_pc,
3089 deprecated_saved_pc_after_call. Set unwind_dummy_id,
3090 save_dummy_frame_tos, unwind_pc. Call
3091 frame_unwind_append_predicate and frame_base_set_default. Don't
3092 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
3093 Don't set frameless_function_invocation. Don't set
3094 deprecated_register_bytes, deprecated_register_size,
3095 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
3096 * i386-linux-tdep.c: Fix formatting in some comments.
3097 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
3098 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
3099 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
3100 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
3101 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
3102 redundant parentheses.
3103 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
3104 (i386_linux_sigcontext_addr): Use it. Rewrite.
3105 (find_minsym_and_objfile): Change name of second argument.
3106 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
3107 changed. Use frame_pc_unwind instead of
3108 DEPRECATED_SAVED_PC_AFTER_CALL.
3109 (i386_linux_init_abi): Don't set deprecated_register_bytes.
3110 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
3111 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
3112 unwinder.
3113 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
3114 "dummy-frame.h".
3115 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
3116 (_initialize_i386_cygwin_tdep): New prototype.
3117 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
3118 deprecated_frame_chain_valid.
3119 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
3120 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3121 Rely on the SVR4 defaults.
3122 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
3123 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
3124
c89b70f1
AC
31252003-05-30 Andrew Cagney <cagney@redhat.com>
3126
3127 * infcall.c (call_function_by_hand): Always call
3128 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
3129
85b32d22
RH
31302003-05-30 Richard Henderson <rth@redhat.com>
3131
c89b70f1
AC
3132 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
3133 increment.
85b32d22 3134
bfe51b1e
JB
31352003-05-29 Jim Blandy <jimb@redhat.com>
3136
3137 Use gdbarch methods for solib stuff on PowerPC Linux.
3138 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
3139 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
3140 show through.
3141 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3142 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
3143 giving the same effect as the #definitions above.
3144
1abf022c
AF
31452003-05-29 Adam Fedor <fedor@gnu.org>
3146
3147 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
3148 (find_implementation_from_class): Replace it with the standard
3149 case i.e. do nothing.
3150
d2427a71
RH
31512003-05-29 Richard Henderson <rth@redhat.com>
3152
3153 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
3154 (alpha_linux_sigtramp_offset): Use it. Make static.
3155 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
3156 update for new frame model.
3157 * alpha-mdebug-tdep.c: New file.
3158 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
3159 (alpha_osf1_init_abi): Install it.
3160 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
3161 (linked_proc_desc_table): Remove.
3162 (alpha_frame_past_sigtramp_frame): Remove.
3163 (alpha_dynamic_sigtramp_offset): Remove.
3164 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
3165 (alpha_proc_desc_is_dyn_sigtramp): Remove.
3166 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
3167 (push_sigtramp_desc): Remove.
3168 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
3169 (alpha_cannot_store_register): Likewise.
3170 (alpha_sigcontext_addr): Remove.
3171 (alpha_find_saved_regs): Remove.
3172 (alpha_frame_init_saved_regs): Remove.
3173 (alpha_init_frame_pc_first): Remove.
3174 (read_next_frame_reg): Remove.
3175 (alpha_frame_saved_pc): Remove.
3176 (alpha_saved_pc_after_call): Remove.
3177 (temp_proc_desc, temp_saved_regs): Remove.
3178 (alpha_about_to_return): Remove.
3179 (cached_proc_desc): Remove.
3180 (alpha_frame_chain): Remove.
3181 (alpha_print_extra_frame_info): Remove.
3182 (alpha_init_extra_frame_info): Remove.
3183 (alpha_frame_locals_address): Remove.
3184 (alpha_frame_args_address): Remove.
3185 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
3186 (alpha_push_dummy_frame): Remove.
3187 (alpha_pop_frame): Remove.
3188 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
3189 (alpha_read_insn): New.
3190 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
3191 for different insn encodings.
3192 (alpha_in_lenient_prologue): Remove.
3193 (struct alpha_sigtramp_unwind_cache): New.
3194 (alpha_sigtramp_frame_unwind_cache): New.
3195 (alpha_sigtramp_register_address): New.
3196 (alpha_sigtramp_frame_this_id): New.
3197 (alpha_sigtramp_frame_prev_register): New.
3198 (alpha_sigtramp_frame_unwind): New.
3199 (alpha_sigtramp_frame_p): New.
3200 (struct alpha_heuristic_unwind_cache): New.
3201 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
3202 don't count nop insns that occur between functions.
3203 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
3204 heuristic_proc_desc, but without the mdebug wrapping.
3205 (alpha_heuristic_frame_this_id): New.
3206 (alpha_heuristic_frame_prev_register): New.
3207 (alpha_heuristic_frame_unwind): New.
3208 (alpha_heuristic_frame_p): New.
3209 (alpha_heuristic_frame_base_address): New.
3210 (alpha_heuristic_frame_base): New.
3211 (alpha_unwind_dummy_id): New.
3212 (alpha_unwind_pc): New.
3213 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
3214 frame related deprecated initializations; install replacements.
3215 (alpha_dump_tdep): Remove.
3216 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
3217 (alpha_read_insn, alpha_after_prologue,
3218 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
3219 alpha_heuristic_frame_prev_register,
3220 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
3221 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3222 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
3223 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
3224
93ec1121
AC
32252003-05-29 Andrew Cagney <cagney@redhat.com>
3226
3227 * gdb_assert.h (gdb_assert_fail): Provide different definitions
3228 dependant on the availability of ASSERT_FUNCTION.
3229 (ASSERT_FUNCTION): Do not define when there is no function name.
3230
98f08d3d
KB
32312003-05-29 Kevin Buettner <kevinb@redhat.com>
3232
3233 From Jimi X <jimix@watson.ibm.com>:
3234 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
3235
0897f59b
JB
32362003-05-28 Jim Blandy <jimb@redhat.com>
3237
3238 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
3239 argument to ptrace to int; the system headers should give it the
3240 right type, and pointers don't fit in ints on powerpc64-*-*.
3241
14898363
L
32422003-05-28 H.J. Lu <hongjiu.lu@intel.com>
3243
3244 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
3245 DW_TAG_catch_block.
3246
a7a48797
EZ
32472003-05-26 Elena Zannoni <ezannoni@redhat.com>
3248
3249 * stabsread.c (dbx_lookup_type): Make static.
3250 (read_type): Ditto.
3251 (add_undefined_type): Ditto.
3252 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
3253 not export.
3254
f5479e9c
EZ
32552003-05-26 Elena Zannoni <ezannoni@redhat.com>
3256
3257 * hpread.c (hpread_has_name): Make static.
3258 (hpread_psymtab_to_symtab): Ditto.
3259 (file_exists): Ditto.
3260 (hpread_call_pxdb): Ditto.
3261 (hpread_pxdb_needed): Ditto.
3262 (hpread_quick_traverse): Ditto.
3263 (hpread_get_header): Ditto.
3264 (hpread_get_lntt): Ditto.
3265 (hpread_get_slt): Ditto.
3266 (class_of): Ditto.
3267
eb2e12d7
AS
32682003-05-25 Andreas Schwab <schwab@suse.de>
3269
78bf922a
AS
3270 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
3271 stack_align and deprecated_extra_stack_alignment_needed.
3272 (m68k_stack_align): Delete.
3273
eb2e12d7
AS
3274 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
3275 (m68k_register_virtual_size): Likewise.
3276 (altos_skip_prologue): Remove obsolete function.
3277 (isi_frame_num_args): Likewise.
3278 (news_frame_num_args): Likewise.
3279 (m68k_fix_call_dummy): Make static.
3280 (m68k_push_dummy_frame): Likewise.
3281 (m68k_pop_frame): Likewise.
3282 (m68k_skip_prologue): Likewise.
3283 (m68k_frame_init_saved_regs): Likewise.
3284 (m68k_saved_pc_after_call): Likewise.
3285 (m68k_get_longjmp_target): Make multi-arch.
3286 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
3287 structure. Register m68k_get_longjmp_target if enabled.
3288 * m68k-tdep.h (struct gdbarch_tdep): Define.
3289 * config/m68k/tm-m68k.h: Don't include "regcache.h".
3290
3291 * Makefile.in (config.status): Also depend on configure.tgt
3292 and configure.host.
3293 (m68klinux-tdep.o): Update dependencies.
3294 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
3295 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
3296 (M68K_LINUX_JB_PC): Define.
3297 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
3298 and take additional parameter.
3299 (m68k_linux_sigtramp_saved_pc): Update.
3300 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
3301 m68k_linux_pc_in_sigtramp, in_plt_section,
3302 find_solib_trampoline_target.
3303 * config/m68k/tm-linux.h: Don't include any tm headers.
3304 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
3305 (JB_ELEMENT_SIZE): Likewise.
3306 (JB_PC): Likewise.
3307 (GET_LONGJMP_TARGET): Likewise.
3308 (IN_SIGTRAMP): Likewise.
3309 (SVR4_SHARED_LIBS): Define this and include "solib.h".
3310
eb2c22dc
MK
33112003-05-25 Mark Kettenis <kettenis@gnu.org>
3312
3313 * sparc-tdep.c (sparc32_do_push_arguments): New function.
3314 (sparc32_push_arguments): Re-implement by calling
3315 sparc32_do_push_arguments.
3316
44b7b84e
MK
33172003-05-25 Mark Kettenis <kettenis@gnu.org>
3318
3319 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
3320 SPARC_O1_REGNUM): New defines.
3321 (sparc32_extract_return_value): Rewrite to operate on a regcache.
3322 (sparc32_store_return_value): New function.
3323 (sparc_extract_struct_value_address): Rewrite to operate on a
3324 regcache.
3325 (sparc_gdbarch_init): Don't set
3326 deprecated_extract_struct_value_address. Set
3327 extract_struct_value_address instead. Don't set
3328 deprecated_extract_return_value and deprecated_store_return_value
3329 for 32-bit targets. Set extract_return_value and
3330 store_return_value instead.
3331 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
3332 DEPRECTAED_EXTRACT_RETURN_VALUE,
3333 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
3334 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
3335 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
3336 (sparc_store_return_value): Remove prototype.
3337 (sparc32_store_return_value): New prototype.
3338 (sparc32_extract_return_value, sparc_extract_struct_value_address):
3339 Adjust prototypes.
3340
f6ad61e3
MK
33412003-05-24 Mark Kettenis <kettenis@gnu.org>
3342
3343 * sparcnbsd-tdep.c: Include "gdb_string.h".
3344
b276f1bb
AC
33452003-05-23 Andrew Cagney <cagney@redhat.com>
3346
3347 * p-valprint.c (pascal_val_print): Replace extract_address with
3348 the inline equivalent extract_unsigned_integer.
3349 * jv-valprint.c (java_value_print): Ditto.
3350 * ada-valprint.c (ada_val_print_1): Ditto.
3351 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
3352
e76c5fcc
TR
33532003-05-23 Theodore A. Roth <troth@openavr.org>
3354
3355 * blockframe.c (frameless_look_for_prologue): Remove unused
3356 after_prologue variable.
3357
2cdd89cb
MK
33582003-05-23 Mark Kettenis <kettenis@gnu.org>
3359
3360 * blockframe.c (get_pc_function_start): Rewrite to avoid
3361 asignments in if-statements.
3362
182d43bc
EZ
33632003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
3364
3365 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 3366 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
3367 files, don't relocate absolute symbols (and do use mst_abs).
3368
e8f3fcdd
AC
33692003-05-23 Andrew Cagney <cagney@redhat.com>
3370
3371 * objc-lang.c: Include "gdb_assert.h".
3372 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
3373 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
3374 (gdb_check, gdb_check_fatal): Delete functions.
3375 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
3376 gdb_assert.
3377 (parse_selector, parse_method, find_methods, find_imps): Ditto.
3378 * Makefile.in (objc-lang.o): Update dependencies.
3379
3c23e6fb
ILT
33802003-05-22 Ian Lance Taylor <ian@airs.com>
3381
3382 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
3383 with fprintf_filtered, not fprintf_unfiltered.
3384
af1342ab
AC
33852003-05-22 Andrew Cagney <cagney@redhat.com>
3386
3387 * stack.c (frame_info): Inline extract_address, replacing it with
3388 extract_unsigned_integer.
3389 * findvar.c (unsigned_pointer_to_address): Ditto.
3390 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
3391 * dwarf2expr.c (dwarf2_read_address): Ditto.
3392 * frame.c (frame_pc_unwind): Update comment.
3393 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
3394
47e242ec
JJ
33952003-05-22 Jeff Johnston <jjohnstn@redhat.com>
3396
3397 * infptrace.c (detach): Call print_sys_errmsg rather than
3398 perror_with_name to issue warning message when errno is non-zero
3399 after calling ptrace detach.
3400
e2ac8128
JB
34012003-05-21 J. Brobecker <brobecker@gnat.com>
3402
3403 * config/pa/tm-hppa.h: Delete some unused macros. Move some
3404 macro definitions from here...
3405 * hppa-tdep.c: ...to there.
3406
92b3541e
KB
34072003-05-20 Kevin Buettner <kevinb@redhat.com>
3408
3409 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
3410 register_ptrace_addr(). Fix all callers.
3411
55809acb
AS
34122003-05-21 Andreas Schwab <schwab@suse.de>
3413
3414 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3415 dependencies.
3416 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
3417 end.
3418 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
3419 (_initialize_m68k_linux_tdep): New function.
3420 (m68k_linux_frame_saved_pc): Make static.
3421 (m68k_linux_extract_return_value): Likewise.
3422 (m68k_linux_store_return_value): Likewise.
3423 (m68k_linux_extract_struct_value_address): Likewise.
3424 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
3425 Remove.
3426 (DEPRECATED_STORE_RETURN_VALUE): Remove.
3427 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3428 (DEPRECATED_FRAME_SAVED_PC): Remove.
3429
0fbc10f7
KW
34302003-05-20 Kris Warkentin <kewarken@qnx.com>
3431
3432 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
3433 regset numbering rather than our own.
3434
58da2eb2
DC
34352003-05-19 David Carlton <carlton@bactrian.org>
3436
3437 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
3438
1fcb5155
DC
34392003-05-19 David Carlton <carlton@bactrian.org>
3440
3441 Partial fix for PR c++/827.
3442 * cp-support.h: Include symtab.h.
3443 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
3444 * cp-namespace.c: Update contributors.
3445 (cp_lookup_symbol_nonlocal): New.
3446 (lookup_namespace_scope, cp_lookup_symbol_namespace)
3447 (lookup_symbol_file): Ditto.
3448 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
3449 * block.h: Declare block_scope, block_using, block_global_block.
3450 * block.c (block_scope): New.
3451 (block_using, block_global_block): Ditto.
3452 * Makefile.in (cp_support_h): Depend on symtab_h.
3453 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
3454
5f9a71c3
DC
34552003-05-19 David Carlton <carlton@bactrian.org>
3456
3457 * language.h (struct language_defn): Add 'la_value_of_this'
3458 and 'la_lookup_symbol_nonlocal' members.
3459 * symtab.h: Declare basic_lookup_symbol_nonlocal,
3460 lookup_symbol_static, lookup_symbol_global,
3461 lookup_symbol_aux_block.
3462 * symtab.c (lookup_symbol_aux): Call language hooks to determine
3463 if we should search fields of this and how to do static/global
3464 lookup.
3465 (lookup_symbol_aux_block): Make extern.
3466 (basic_lookup_symbol_nonlocal): New.
3467 (lookup_symbol_static, lookup_symbol_global): Ditto.
3468 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
3469 'la_lookup_symbol_nonlocal' members.
3470 * c-lang.c (c_language_defn, cplus_language_defn)
3471 (asm_language_defn, minimal_language_defn): Ditto.
3472 * jv-lang.c (java_language_defn): Ditto.
3473 * language.c (unknown_language_defn, auto_language_defn)
3474 (local_language_defn): Ditto.
3475 * m2-lang.c (m2_language_defn): Ditto.
3476 * objc-lang.c (objc_language_defn): Ditto.
3477 * scm-lang.c (scm_language_defn): Ditto.
3478 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
3479 * p-lang.c (pascal_language_defn): Ditto for both.
3480 * Makefile.in (f-lang.o): Depend on value_h.
3481 (p-lang.o): Ditto.
3482
89a9d1b1
DC
34832003-05-19 David Carlton <carlton@bactrian.org>
3484
3485 * block.h: Declare block_static_block.
3486 * block.c (block_static_block): New.
3487 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
3488 lookup_symbol_aux_local, calling block_static_block instead.
3489 (lookup_symbol_aux_local): Delete 'static_block' argument.
3490
eed3f8ab
DC
34912003-05-19 David Carlton <carlton@bactrian.org>
3492
3493 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
3494
a09d8bda
ML
34952003-05-19 Michal Ludvig <mludvig@suse.cz>
3496
3497 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
3498 register numbers mapping.
3499
69636828
AF
35002003-05-18 Adam Fedor <fedor@gnu.org>
3501
3502 * symtab.c (completion_list_objc_symbol): New function.
3503 (make_symbol_completion_list): Use it to add ObjC symbols
3504 when looking though the list.
3505 (language_search_unquoted_string): New function.
3506 (make_file_symbol_completion_list): Use it.
3507
55baeb84
AS
35082003-05-18 Andreas Schwab <schwab@suse.de>
3509
d0b45d99
AS
3510 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
3511 dependencies.
3512 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
3513 as m68k_linux_extract_return_value.
3514 (DEPRECATED_STORE_RETURN_VALUE): Define as
3515 m68k_linux_store_return_value.
3516 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
3517 m68k_linux_extract_struct_value_address.
3518 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
3519 get_next_frame, get_frame_base, get_frame_pc.
3520 (m68k_linux_frame_saved_pc): Use get_frame_base.
3521 (m68k_linux_extract_return_value): New function.
3522 (m68k_linux_store_return_value): New function.
3523 (m68k_linux_extract_struct_value_address): New function.
3524 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
3525
55baeb84
AS
3526 * c-exp.y (typebase): Remove duplicate occurence of
3527 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 3528 of lookup_signed_typename.
55baeb84 3529
b6b08ebf
MK
35302003-05-18 Mark Kettenis <kettenis@gnu.org>
3531
3532 * dwarf2loc.c (find_location_expression): Change type of second
3533 argument to `size_t *'.
3534 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
3535 for size variable.
3536
5ad1c190
DC
35372003-05-18 David Carlton <carlton@bactrian.org>
3538
3539 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
3540 'linkage_name'. Add comment.
3541 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
3542 'linkage_name'.
3543 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
3544 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
3545 (lookup_block_symbol): Ditto.
3546
b8b527c5
AC
35472003-05-16 Andrew Cagney <cagney@redhat.com>
3548
3549 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
3550 * gdbarch.h, gdbarch.c: Re-generate.
3551 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
3552 * TODO (REGISTER_BYTES): Delete reference.
3553 * alpha-tdep.c (alpha_gdbarch_init): Update.
3554 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3555 * x86-64-tdep.c (x86_64_init_abi): Update.
3556 * vax-tdep.c (vax_gdbarch_init): Update.
3557 * v850-tdep.c (v850_gdbarch_init): Update.
3558 * sparc-tdep.c (sparc_gdbarch_init): Update.
3559 * sh-tdep.c (sh_gdbarch_init): Update.
3560 * s390-tdep.c (s390_gdbarch_init): Update.
3561 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3562 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3563 (ns32k_gdbarch_init_32382): Update.
3564 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3565 * mcore-tdep.c (mcore_gdbarch_init): Update.
3566 * m68k-tdep.c (m68k_gdbarch_init): Update.
3567 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3568 * ia64-tdep.c (ia64_gdbarch_init): Update.
3569 * i386-tdep.c (i386_gdbarch_init): Update.
3570 * i386-linux-tdep.c (i386_linux_init_abi): Update.
3571 * hppa-tdep.c (hppa_gdbarch_init): Update.
3572 * h8300-tdep.c (h8300_gdbarch_init): Update.
3573 * frv-tdep.c (frv_gdbarch_init): Update.
3574 * cris-tdep.c (cris_gdbarch_init): Update.
3575 * avr-tdep.c (avr_gdbarch_init): Update.
3576 * arm-tdep.c (arm_gdbarch_init): Update.
3577 * sparc-tdep.c (sparc_pop_frame): Update.
3578 * rs6000-tdep.c (rs6000_pop_frame): Update.
3579 * remote.c (init_remote_state): Update.
3580 (remote_prepare_to_store): Update.
3581 * remote-vx.c (vx_prepare_to_store): Update.
3582 * remote-sds.c (sds_fetch_registers): Update.
3583 (sds_prepare_to_store): Update.
3584 * remote-array.c: Update.
3585 * regcache.c (init_legacy_regcache_descr): Update.
3586 (init_regcache_descr): Update.
3587 * mips-tdep.c (mips_eabi_extract_return_value): Update.
3588 (mips_o64_extract_return_value): Update.
3589 * irix5-nat.c (fetch_core_registers): Update.
3590 * irix4-nat.c (fetch_core_registers): Update.
3591 * i386-tdep.h: Update.
3592 * hppa-tdep.c (pa_do_registers_info): Update.
3593 (pa_do_strcat_registers_info): Update.
3594 * cris-tdep.c (cris_register_bytes_ok): Update.
3595 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3596 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
3597 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
3598 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
3599 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
3600 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
3601 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
3602 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
3603 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
3604 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
3605 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
3606 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
3607 (REGISTER_BYTES_OK): Update.
3608 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
3609 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
3610
ee2842e2
ILT
36112003-05-16 Ian Lance Taylor <ian@airs.com>
3612
3613 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
3614 (vax_print_insn, print_insn_arg): Remove static functions.
3615 (vax_gdbarch_init): Call set_gdbarch_print_insn with
3616 print_insn_vax from opcodes library.
3617 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
3618
973177d3
AC
36192003-05-15 Andrew Cagney <cagney@redhat.com>
3620
aaab4dba
AC
3621 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
3622 * target.h (memory_breakpoint_from_pc): Delete declaration.
3623 * mem-break.c (memory_breakpoint_from_pc): Delete function.
3624 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
3625 * monitor.c (monitor_insert_breakpoint): Use
3626 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
3627 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
3628 * gdbarch.h, gdbarch.c: Re-generate.
3629 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
3630 (sparc_gdbarch_init): Set breakpoint_from_pc to
3631 sparc_breakpoint_from_pc.
3632 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
3633 (BREAKPOINT_FROM_PC): Define.
3634 (sparc_breakpoint_from_pc): Declare.
3635 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
3636 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
3637 (BREAKPOINT_FROM_PC): Define.
3638 (BREAKPOINT): Delete macro.
3639 * target.h: Update comment.
3640 * s390-tdep.c (s390_gdbarch_init): Update comments.
3641 * remote.c: Update comments.
3642 * remote-mips.c: Update comments.
3643 * proc-api.c (write_with_trace): Do not check for a breakpoint.
3644 * mem-break.c: Update comment.
3645 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
3646 (ia64_memory_insert_breakpoint): Update.
3647 * config/sparc/tm-sparc.h: Update comment.
3648 * config/pa/tm-hppa64.h: Update comment.
3649 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
3650 (rs6000_breakpoint_from_pc): Update.
3651 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
3652 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
3653 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
3654 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
3655 (mips_breakpoint_from_pc): Update.
3656 (mips_dump_tdep): Update.
3657
e06963ff
AC
3658 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
3659 * minsyms.c (lookup_minimal_symbol): Inline
3660 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
3661
973177d3
AC
3662 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
3663 * p-valprint.c (pascal_object_print_value_fields): Ditto.
3664 * p-lang.c (pascal_printstr): Ditto.
3665 * objc-lang.c (objc_printstr): Ditto.
3666 * m2-lang.c (m2_printstr): Ditto.
3667 * jv-valprint.c (java_print_value_fields): Ditto.
3668 * f-lang.c (f_printstr): Ditto.
3669 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
3670 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
3671 for repeat_count_threshold.
3672 * Makefile.in (cp-valprint.o): Update dependencies.
3673
5ea2bd7f 36742003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 3675
5ea2bd7f
JJ
3676 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
3677 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
3678 they start with mov r2,r12. Support skipping over indirect stores
3679 of the input registers. Upon hitting a non-nop branch instruction
3680 or predicated instruction, bail out by setting lim_pc to the current
3681 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
3682 beyond our calculated value and we have trust_limit set,
3683 use the lim_pc value.
3684
cc8c88f3
AC
36852003-05-15 Andrew Cagney <cagney@redhat.com>
3686
3687 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
3688 generic_find_dummy_frame.
3689 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
3690 (deprecated_generic_find_dummy_frame): Update.
3691 (deprecated_read_register_dummy): Update.
3692 * frame.c (deprecated_generic_get_saved_register): Update.
3693
909cd28e
TR
36942003-05-15 Theodore A. Roth <troth@openavr.org>
3695
3696 * avr-tdep.c (avr_breakpoint_from_pc): New function.
3697 (avr_gdbarch_init): Set breakpoint_from_pc method.
3698
b923b08d
AC
36992003-05-15 Andrew Cagney <cagney@redhat.com>
3700
3701 * regcache.c (build_regcache): Set deprecated_register_valid
3702 directly.
3703 (deprecated_grub_regcache_for_register_valid): Delete function.
3704 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
3705 declaration.
3706
ae2f03ac 37072003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
3708
3709 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
3710 * symtab.c (lookup_symbol_aux): Delete calls to
3711 lookup_symbol_aux_minsyms.
3712 (lookup_symbol_aux_minsyms): Comment out function and
3713 prototype. Delete lookup by mangled name.
ae2f03ac 3714
18ec9831
KB
37152003-05-14 Kevin Buettner <kevinb@redhat.com>
3716
3717 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
3718 correctly indicate an empty stack and ``stack_allocated'' to the
3719 indicate the number of elements initially allocated.
3720 (dwarf_expr_grow_stack): Simplify method for computing new
3721 stack size. Don't loop infinitely if ``stack_len'' is zero.
3722 (execute_stack_op): Move ``ctx->in_reg'' initialization
3723 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
3724 be used in conjuction with DW_OP_piece. Revise error message
3725 accordingly.
3726
de18ac1f
TR
37272003-05-14 Theodore A. Roth <troth@openavr.org>
3728
3729 * MAINTAINERS: Update my email address.
3730 * avr-tdep.c: Ditto.
3731
176620f1
EZ
37322003-05-14 Elena Zannoni <ezannoni@redhat.com>
3733
3734 * symtab.h (enum domain_enum): Rename from namespace_enum.
3735 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
3736 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
3737 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
3738 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
3739 TYPES_NAMESPACE, METHODS_NAMESPACE.
3740 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
3741 (struct symbol, struct partial_symbol): Rename field
3742 'namespace_enum namespace' to 'domain_enum domain'.
3743 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
3744 Delete old define kludge for namespace.
3745
3746 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
3747 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
3748 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
3749 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
3750 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
3751 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
3752 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
3753 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
3754 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
3755 occurrences of the above.
3756
b7f31508
ILT
37572003-05-14 Ian Lance Taylor <ian@airs.com>
3758
3759 * Makefile.in (install-only): Use $(SHELL) when running
3760 mkinstalldirs.
3761
2fdbdd39
ILT
37622003-05-13 Ian Lance Taylor <ian@airs.com>
3763
a208d82c
ILT
3764 * MAINTAINERS (write after approval): Add myself.
3765
2fdbdd39
ILT
3766 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
3767 second and third arguments.
3768 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3769 * ser-unix.c (_initialize_ser_hardwire): Likewise.
3770
fbd9dcd3
AC
37712003-05-13 Andrew Cagney <cagney@redhat.com>
3772
3773 * defs.h (store_address): Delete declaration.
3774 findvar.c (store_address): Delete function.
3775 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
3776 store_unsigned_integer.
3777 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
3778 * v850-tdep.c (v850_push_arguments): Ditto.
3779 * sparc-tdep.c (sparc_get_saved_register): Ditto.
3780 * sh-tdep.c (sh64_get_saved_register): Ditto.
3781 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
3782 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
3783 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
3784 (mips_get_saved_register): Ditto.
3785 * ia64-tdep.c (ia64_get_saved_register): Ditto.
3786 (find_func_descr, ia64_push_arguments): Ditto.
3787 * i386-tdep.c (i386_push_arguments): Ditto.
3788 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
3789 * frv-tdep.c (frv_push_arguments): Ditto.
3790 * frame.c (legacy_saved_regs_prev_register): Ditto.
3791 (deprecated_generic_get_saved_register): Ditto.
3792 * findvar.c (unsigned_address_to_pointer): Ditto.
3793 * dwarf2read.c (dwarf2_const_value): Ditto.
3794 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3795 * alpha-tdep.c (alpha_push_arguments): Ditto.
3796
6760f9e6
JB
37972003-05-12 J. Brobecker <brobecker@gnat.com>
3798
3799 * NEWS: Mention that the hppa-hpux port has been partially
3800 multiarched (32bit ABIT only, so far).
3801
30e221b4
AC
38022003-05-11 Andrew Cagney <cagney@redhat.com>
3803
3804 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
3805 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
3806 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
3807 sim/testsuite/sim/arm/misaligned2.ms, and
3808 sim/testsuite/sim/arm/misaligned3.ms.
3809 * disasm.h (struct ui_file): Add opaque struct declaration.
3810 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
3811 * frame.h (struct ui_file): Ditto.
3812
dea7f9ba
MK
38132003-05-11 Mark Kettenis <kettenis@gnu.org>
3814
3815 * value.h: Pretty print.
3816
01986c48
MK
38172003-05-10 Mark Kettenis <kettenis@gnu.org>
3818
3819 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
3820
123a958e
AC
38212003-05-08 Andrew Cagney <cagney@redhat.com>
3822
3823 * regcache.h (max_register_size): Delete declaration.
3824 * regcache.c (max_register_size): Delete function.
3825 (struct regcache_descr): Delete field "max_register_size".
3826 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
3827 registers fit in MAX_REGISTER_SIZE.
3828 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
3829 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
3830 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
3831 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
3832 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
3833 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
3834 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
3835 * dve3900-rom.c, hppa-tdep.c: Ditto.
3836
eb294659
DC
38372003-05-08 David Carlton <carlton@math.stanford.edu>
3838
3839 * valops.c (push_word): Fix typo.
3840
d9d9c31f
AC
38412003-05-08 Andrew Cagney <cagney@redhat.com>
3842
3843 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
3844 * gdbarch.h: Re-generate.
3845 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
3846 (legacy_max_register_raw_size): Delete declaration.
3847 * regcache.c (legacy_max_register_raw_size): Delete function.
3848 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
3849 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
3850 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
3851 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
3852 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
3853 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
3854 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
3855 * findvar.c, dwarf2cfi.c: Ditto.
3856
22540ece
AC
38572003-05-08 Andrew Cagney <cagney@redhat.com>
3858
3859 * mips-tdep.c (read_signed_register): New function, moved to here
3860 from "regcache.c".
3861 (read_signed_register_pid): Ditto.
3862 * regcache.c (read_signed_register_pid): Delete function, moved to
3863 "mips-tdep.c".
3864 (read_signed_register): Ditto.
3865 * regcache.h (read_signed_register): Delete declaration.
3866 (read_signed_register_pid): Delete declaration.
3867
0c92afe8
AC
38682003-05-08 Andrew Cagney <cagney@redhat.com>
3869
3870 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
3871 * gdbarch.h: Re-generate.
3872 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
3873 (legacy_max_register_virtual_size): Delete declaration.
3874 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
3875 * d10v-tdep.c (d10v_print_registers_info): Ditto.
3876 * tracepoint.c (memrange_sortmerge): Ditto.
3877 * sparc-tdep.c (sparc_print_registers): Ditto.
3878 * regcache.c (legacy_max_register_virtual_size): Delete function.
3879
6037b830
JB
38802002-05-08 J. Brobecker <brobecker@gnat.com>
3881
3882 * fork-child.c (escape_bang_in_quoted_argument): New function.
3883 (fork_inferior): Escape '!' characters in quoted arguments
3884 only when needed.
3885
5d62c8b1
JB
38862003-05-08 J. Brobecker <brobecker@gnat.com>
3887
3888 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
3889 the language of the CU is not currently supported by GDB.
3890
20a0e81d
JB
38912003-05-08 J. Brobecker <brobecker@gnat.com>
3892
3893 * defs.h (language): Add language_minimal enum value.
3894 * c-lang.c (minimal_language_defn): New language definition.
3895 (_initialize_c_language): Add the new minimal language to the list
3896 of languages known to GDB.
3897
710ee10a
KB
38982003-05-08 Kevin Buettner <kevinb@redhat.com>
3899
3900 * frame.c (get_frame_type): Don't attempt to lazily initialize
3901 frame's unwinder for legacy frames.
3902
1750fa04
AC
39032003-05-07 Andrew Cagney <cagney@redhat.com>
3904
3905 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
3906 and "regcache" parameters.
3907 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
3908
ddf9f258 39092003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
3910
3911 * dwarf2read.c (dwarf_decode_lines): Only use output of
3912 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
3913 the current address.
3914
87767c29
AC
39152003-05-07 Andrew Cagney <cagney@redhat.com>
3916
3917 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
3918 code.
3919
5e7b2f39
JB
39202003-05-07 Jim Blandy <jimb@redhat.com>
3921
3922 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
3923 'maint info symtabs' and 'maint info psymtabs'.
3924 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
3925 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
3926 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
3927 Declarations updated.
3928 * maint.c (maintenance_list_command): Delete.
3929 (_initialize_maint_cmds): Update calls to add_cmd.
3930 * gdbcmd.h (maintenancelistlist): Delete declaration.
3931 * cli/cli-cmds.c (maintenancelistlist): Delete.
3932 (init_cmd_lists): Don't initialize it.
3933 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
3934
f6684c31
AC
39352003-05-07 Andrew Cagney <cagney@redhat.com>
3936
3937 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
3938 "regcache".
3939 (d10v_print_registers_info): Update.
3940 (d10v_dmap_register, d10v_imap_register): Delete functions.
3941 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
3942 and "imap_register".
3943 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
3944 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
3945 * arch-utils.c (generic_remote_translate_xfer_address): Add
3946 "regcache" and "gdbarch" parameters.
3947 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
3948 parameter. Change class to multi-arch.
3949 * gdbarch.h, gdbarch.c: Re-generate.
3950 * remote.c (remote_xfer_memory): Use
3951 gdbarch_remote_translate_xfer_address.
8ffd9b1b 3952
e4846b08
JJ
39532003-05-07 Jeff Johnston <jjohnstn@redhat.com>
3954
3955 * infrun.c (prev_pc): Move declaration ahead of proceed().
3956 (proceed): Refresh prev_pc value before resuming.
3957 (stop_stepping): Remove code to refresh prev_pc.
3958
6b71b8ac
KW
39592003-05-06 Kris Warkentin <kewarken@qnx.com>
3960
3961 * nto-tdep.c: Removed stray comment.
3962
47979a4b
KW
39632003-05-06 Kris Warkentin <kewarken@qnx.com>
3964
3965 * i386-nto-tdep.c: Fix old K&R function definitions.
3966 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
3967 Also change add_show_from_set() call to add_setshow_cmd().
3968 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
3969
00905d52
AC
39702003-05-05 Andrew Cagney <cagney@redhat.com>
3971
3972 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
3973 (fprint_dummy_frames): New function.
3974 (maintenance_print_dummy_frames): New function.
3975 (_initialize_dummy_frame): Add command "maint print dummy-frames".
3976 * frame.c (fprint_frame_id): Make global.
3977 * frame.h (fprint_frame_id): Declare.
3978 * Makefile.in (dummy-frame.o): Update dependencies.
3979
b1e29e33
AC
39802003-05-05 Andrew Cagney <cagney@redhat.com>
3981
3982 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
3983 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
3984 SIZEOF_CALL_DUMMY_WORDS.
3985 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
3986 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
3987 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
3988 CALL_DUMMY_BREAKPOINT_OFFSET.
3989 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
3990 CALL_DUMMY_START_OFFSET.
3991 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
3992 * gdbarch.h, gdbarch.c: Re-generate.
3993 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
3994 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
3995 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
3996 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
3997 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
3998 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
3999 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
4000 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
4001 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
4002 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
4003 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
4004 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
4005 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
4006 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
4007 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
4008
40092003-05-05 Kris Warkentin <kewarken@qnx.com>
4010
4011 * configure.tgt: Add i[3456]86-*-nto*.
4012 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
4013 * nto-tdep.c: New file. Neutrino target support routines.
4014 * nto-tdep.h: New file. Neutrino target header.
4015 * config/tm-qnxnto.h: New file.
4016 * config/i386/i386nto.mt: New file.
4017 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 4018
0ce3d317
AC
40192003-05-04 Andrew Cagney <cagney@redhat.com>
4020
4021 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
4022 (load_infrun_state): Ditto.
4023 (struct thread_info): Drop "prev_func_name" field.
4024 * thread.c (load_infrun_state): Update.
4025 (save_infrun_state): Update.
4026 * infrun.c (prev_func_name): Delete variable.
4027 (init_wait_for_inferior): Do not clear prev_func_name.
4028 (stop_stepping, keep_going, context_switch): Do not swap
4029 prev_func_name.
4030 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
4031 instead of PC_IN_SIGTRAMP.
4032
46654a5b
AC
40332003-05-04 Andrew Cagney <cagney@redhat.com>
4034
4035 * sentinel-frame.c (sentinel_frame_prev_register): Replace
4036 REGISTER_BYTE with register_offset_hack.
4037 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
4038 that REGISTER_BYTE is consistent with the regcache.
4039 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
4040 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 4041
14b08c1b
MK
40422003-05-04 Mark Kettenis <kettenis@gnu.org>
4043
04c8243f
MK
4044 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
4045 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
4046
14b08c1b
MK
4047 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
4048
c7a11e01
JB
40492003-05-03 J. Brobecker <brobecker@gnat.com>
4050
4051 From Thierry Schneider <tpschneider1@yahoo.com>
4052 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
4053 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
4054 (mi-cmd-symbol.o): Add rule.
4055
7043d8dc
AC
40562003-05-03 Andrew Cagney <cagney@redhat.com>
4057
4058 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
4059 comments noteing that it replaces the old FIX_CALL_DUMMY code.
4060 * gdbarch.h, gdbarch.c: Re-generate.
4061 * d10v-tdep.c (d10v_push_dummy_code): New function.
4062 (d10v_gdbarch_init): Set push_dummy_code.
4063 * infcall.c (legacy_push_dummy_code): New function.
4064 (generic_push_dummy_code): New function.
4065 (push_dummy_code): New function.
4066 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
4067 instead of dummy_addr, to push_dummy_call. Move call to
4068 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
4069 switch.
4070 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
4071
92bf2b80
AC
40722003-05-03 Andrew Cagney <cagney@redhat.com>
4073
4074 * disasm.h (print_insn): Declare.
4075 * disasm.c (init_gdb_disassemble_info): New function.
4076 (gdb_disassembly): Call init_gdb_disassemble_info.
4077 (gdb_print_insn): New function.
4078 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
4079 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
4080 * mcore-tdep.c: Include "disasm.h"
4081 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
4082 * d10v-tdep.c: Include "disasm.h".
4083 (display_trace): Call gdb_print_insn, instead of print_insn.
4084 (print_insn): Delete function.
4085 * printcmd.c: Include "disasm.h".
4086 (print_insn): Delete function.
4087 (print_formatted): Call gdb_print_insn, instead of print_insn.
4088 * Makefile.in (printcmd.o): Update dependencies.
4089 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 4090
27d94c49
AC
40912003-05-02 Andrew Cagney <cagney@redhat.com>
4092
82de1e5b
AC
4093 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
4094 PC_REGNUM, re-indent.
4095 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
4096 PC_REGNUM isn't set.
4097
27d94c49
AC
4098 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
4099 * gdbarch.h, gdbarch.c: Re-generate.
4100 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
4101 register_virtual_size, pc_regnum, or register_bytes.
4102 (D10V_PC_REGNUM): Rename _PC_REGNUM.
4103 (d10v_register_type): Use D10V_PC_REGNUM.
4104 (d10v_print_registers_info, d10v_read_pc): Ditto.
4105 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
4106 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
4107
a9c0dc7f
DC
41082003-05-02 David Carlton <carlton@bactrian.org>
4109
4110 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
4111 the name with mstrsave.
4112
e33d66ec
EZ
41132003-05-02 Elena Zannoni <ezannoni@redhat.com>
4114
4115 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
4116 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
4117 (host_charset_name, target_charset_name): New vars for use by
4118 set/show commands.
4119 (host_charset_enum, target_charset_enum): New enums for set/show
4120 commands.
4121 (set_charset_sfunc, set_host_charset_sfunc,
4122 set_target_charset_sfunc): New functions.
4123 (set_host_charset, set_target_charset): Make static.
4124 (list_charsets, set_host_charset_command,
4125 set_target_charset_command): Delete functions.
4126 (show_charset_command): Rewrite as....
4127 (show_charset): Hook this up with the set/show command mechanism.
4128 (_initialize_charset): Change names of charsets to match the
4129 set/show enums. Use host_charset_name and target_charset_name.
4130 Use set/show mechanism for charset, host-charset, target-charset
4131 commands. Do not make 'show host-charset' and 'show
4132 target-charset' be aliases of 'show charset'.
4133
4134 * charset.h (set_host_charset, set_target_charset): Don't export,
4135 they are not used outside the file.
4136
2b6fd0d8
AC
41372003-05-01 Andrew Cagney <cagney@redhat.com>
4138
4139 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
4140 (gdb_disassembly): Make "di" non static, always initialize and
4141 cleanup. Always use dis_asm_read_memory.
4142 (gdb_dis_asm_read_memory): Delete function.
4143
6ae2f580
AC
41442003-05-01 Andrew Cagney <cagney@redhat.com>
4145
4146 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
4147 (d10v_gdbarch_init): Set frame_align instead of stack_align.
4148
810ecf9f
AC
41492003-04-30 Andrew Cagney <cagney@redhat.com>
4150
4151 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
4152 "tm_print_insn_info".
4153 (TARGET_PRINT_INSN_INFO): Delete macro.
4154 (dis_asm_read_memory): Delete function declaration.
4155 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4156 (tm_print_insn_info): Delete variable definition.
4157 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
4158 * gdbarch.h, gdbarch.c: Re-generate.
4159 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
4160 "deprecated_tm_print_insn_info".
4161 * mcore-tdep.c (mcore_dump_insn): Ditto.
4162 * mips-tdep.c (mips_gdbarch_init): Ditto.
4163 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
4164 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
4165 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
4166 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
4167 instead of TARGET_PRINT_INSN_INFO, add comment.
4168 * s390-tdep.c (s390_get_frame_info): Instead of
4169 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
4170 (s390_check_function_end, s390_is_sigreturn): Ditto.
4171 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
4172 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4173 * disasm.c: Include "gdbcore.h".
4174 (_initialize_disasm): New function, initialize
4175 "deprecated_tm_print_insn_info".
4176 (deprecated_tm_print_insn_info): New variable.
4177 (dis_asm_read_memory): Moved from "corefile.c", made static.
4178 (dis_asm_print_address, dis_asm_memory_error): Ditto.
4179 * Makefile.in (disasm.o): Update dependencies.
4180
07020390
AC
41812003-04-30 Andrew Cagney <cagney@redhat.com>
4182
4183 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
4184
a9fa03de
AF
41852003-04-29 Adam Fedor <fedor@gnu.org>
4186
4187 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
4188 * infcall.c (find_function_addr): Make non-static.
4189 * infcall.h (find_function_addr): Declare.
4190 * Makefile.in (eval.o): Update dependencies.
4191
1bae87b9
AF
41922003-04-28 Adam Fedor <fedor@gnu.org>
4193
4194 * symtab.c (symbol_find_demangled_name): Check for and demangle
4195 ObjC symbols.
4196 (symbol_init_demangled_name): Init for language_objc as well.
4197
0ba6dca9
AC
41982003-04-28 Andrew Cagney <cagney@redhat.com>
4199
4200 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
4201 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
4202 * gdbarch.h, gdbarch.c: Re-generate.
4203 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
4204 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
4205 * inferior.h (deprecated_read_fp): Rename read_fp.
4206 (generic_target_read_fp): Delete declaration.
4207 * regcache.c (generic_target_read_fp): Delete function.
4208 (deprecated_read_fp): Replace read_fp, use
4209 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
4210 * d10v-tdep.c (d10v_read_fp): Delete function.
4211 (d10v_gdbarch_init): Do not set deprecated_read_fp.
4212
4213 * sparc-tdep.c (sparc_gdbarch_init): Do not set
4214 deprecated_target_read_fp to generic_target_read_fp.
4215 * sh-tdep.c (sh_gdbarch_init): Ditto.
4216 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4217 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4218 * frv-tdep.c (frv_gdbarch_init): Ditto.
4219
4220 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
4221 deprecated_fp_regnum.
4222 * x86-64-tdep.c (x86_64_init_abi): Ditto.
4223 * vax-tdep.c (vax_gdbarch_init): Ditto.
4224 * v850-tdep.c (v850_gdbarch_init): Ditto.
4225 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4226 * sh-tdep.c (sh_gdbarch_init): Ditto.
4227 * s390-tdep.c (s390_gdbarch_init): Ditto.
4228 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4229 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4230 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4231 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4232 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4233 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4234 * i386-tdep.c (i386_gdbarch_init): Ditto.
4235 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4236 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4237 * frv-tdep.c (frv_gdbarch_init): Ditto.
4238 * cris-tdep.c (cris_gdbarch_init): Ditto.
4239 * avr-tdep.c (avr_gdbarch_init): Ditto.
4240 * arm-tdep.c (arm_gdbarch_init): Ditto.
4241 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4242
4243 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
4244 * v850-tdep.c (v850_gdbarch_init): Ditto.
4245 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4246 * sh-tdep.c (sh_gdbarch_init): Ditto.
4247 * s390-tdep.c (s390_gdbarch_init): Ditto.
4248 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4249 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4250 * mips-tdep.c (mips_gdbarch_init): Ditto.
4251 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4252 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4253 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4254 * frv-tdep.c (frv_gdbarch_init): Ditto.
4255 * avr-tdep.c (avr_gdbarch_init): Ditto.
4256 * arm-tdep.c (arm_gdbarch_init): Ditto.
4257
4258 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
4259 DEPRECATED_FP_REGNUM.
4260 (vax_push_dummy_frame, vax_pop_frame): Ditto.
4261 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
4262 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
4263 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
4264 (sparc32_register_virtual_type): Ditto.
4265 * sh-tdep.c (sh64_frame_chain): Ditto.
4266 (sh64_get_saved_register, sh64_pop_frame): Ditto.
4267 (sh_nofp_frame_init_saved_regs): Ditto.
4268 (sh64_nofp_frame_init_saved_regs): Ditto.
4269 (sh_fp_frame_init_saved_regs): Ditto.
4270 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4271 * remote-e7000.c (fetch_regs_from_dump): Ditto.
4272 * procfs.c (procfs_fetch_registers): Ditto.
4273 (procfs_store_registers): Ditto.
4274 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
4275 (store_inferior_registers, fetch_core_registers): Ditto.
4276 (fetch_kcore_registers, clear_regs): Ditto.
4277 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
4278 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
4279 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
4280 * nlm/i386.c (do_status): Ditto.
4281 * mipsv4-nat.c (supply_gregset): Ditto.
4282 * mips-tdep.c: Ditto for comments.
4283 * mips-nat.c (fetch_inferior_registers): Ditto.
4284 (store_inferior_registers, fetch_core_registers): Ditto.
4285 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
4286 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
4287 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
4288 (i386_do_pop_frame, i386_register_type): Ditto.
4289 * hppa-tdep.c (hppa_frame_chain): Ditto.
4290 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
4291 (hppa_pop_frame, hppa_read_fp): Ditto.
4292 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
4293 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
4294 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
4295 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
4296 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
4297 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
4298 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
4299 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
4300 * blockframe.c: Ditto for comments.
4301 * arch-utils.h: Ditto for comments.
4302 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
4303 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
4304 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
4305 * alpha-tdep.h: Ditto for comments.
4306 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
4307 (alpha_cannot_store_register): Ditto.
4308 (alpha_push_dummy_frame): Ditto.
4309 * alpha-nat.c (supply_gregset): Ditto.
4310
4311 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
4312 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
4313 * config/sparc/tm-sparc.h: Update comment.
4314
4315 * hppa-tdep.c (hppa_init_extra_frame_info): Use
4316 deprecated_read_fp instead of TARGET_READ_FP.
4317 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
4318 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
4319 * sparc-tdep.c (sparc_init_extra_frame_info): Use
4320 deprecated_read_fp instead of read_fp.
4321 * s390-tdep.c (s390_push_arguments): Ditto.
4322 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4323 * frame.h: Ditto in comments.
4324 * frame.c (legacy_get_prev_frame): Ditto.
4325 * dummy-frame.c (dummy_frame_this_id): Ditto.
4326 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
4327
d7a27068
AC
43282003-04-28 Andrew Cagney <cagney@redhat.com>
4329
4330 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
4331 * gdbarch.h, gdbarch.c: Re-generate.
4332 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
4333 * vax-tdep.c (_initialize_vax_tdep): Update.
4334 * v850-tdep.c (_initialize_v850_tdep): Update.
4335 * sparc-tdep.c (_initialize_sparc_tdep): Update.
4336 * s390-tdep.c (_initialize_s390_tdep): Update.
4337 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
4338 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
4339 * mips-tdep.c (_initialize_mips_tdep): Update.
4340 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4341 * m68k-tdep.c (_initialize_m68k_tdep): Update.
4342 * ia64-tdep.c (_initialize_ia64_tdep): Update.
4343 * hppa-tdep.c (_initialize_hppa_tdep): Update.
4344 * h8300-tdep.c (_initialize_h8300_tdep): Update.
4345 * frv-tdep.c (_initialize_frv_tdep): Update.
4346 * cris-tdep.c (cris_delayed_get_disassembler): Update.
4347 (_initialize_cris_tdep): Update.
4348 * arch-utils.c (legacy_print_insn): Update.
4349 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4350
d2630e69
AF
43512003-04-26 Adam Fedor <fedor@gnu.org>
4352
4353 * linespec.c (decode_objc): New function to decode ObjC calls
4354 (decode_line_1): Check for ObjC calls (using decode_objc)
4355 * Makefile (linespec.o): Update dependencies.
4356
3086aeae
DJ
43572003-04-26 Daniel Jacobowitz <drow@mvista.com>
4358
4359 * breakpoint.h (struct breakpoint_ops): New.
4360 (struct breakpoint): Add ops member.
4361
4362 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
4363 (mention): Use new breakpoint ops member.
4364 (set_raw_breakpoint): Initialize ops field to NULL.
4365 (print_exception_catchpoint, print_one_exception_catchpoint)
4366 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
4367 (gnu_v3_exception_catchpoint_ops): New.
4368 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
4369
1fbec6c3
AF
43702003-04-25 Adam Fedor <fedor@gnu.org>
4371
4372 * Makefile.in (COMMON_OBS): Add objc-lang.o
4373
0ef21242
AC
43742003-04-25 Andrew Cagney <cagney@redhat.com>
4375
4376 * d10v-tdep.c (print_insn): Delete function.
4377 (display_trace): Use TARGET_PRINT_INSN.
4378 (_initialize_d10v_tdep): Do not set tm_print_insn.
4379 (d10v_gdbarch_init): Set print_insn.
4380
f75493ed
AC
43812003-04-25 Andrew Cagney <cagney@redhat.com>
4382
4383 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
4384 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
4385 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
4386 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
4387 (nr_dmap_regs, a0_regnum): ... new functions.
4388 (d10v_print_registers_info): Use a0_regnum, use register_size.
4389 (d10v_register_byte): Delete function.
4390 (d10v_register_raw_size): Delete function.
4391 (d10v_register_type): Use a0_regnum.
4392 (d10v_print_registers_info): Use a0_regnum.
4393 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
4394 (d10v_gdbarch_init): Do not set register_byte or
4395 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
4396 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
4397 extract_address.
4398 (trace_command): Use XCALLOC.
4399 (print_insn): Delete reference to tm_print_insn.
4400 (saved_regs_unwinder): Use store_unsigned_integer instead of
4401 store_address.
4402 * frame.h (FRAME_OBSTACK_CALLOC): Define
4403
2202b100
DC
44042003-04-25 David Carlton <carlton@bactrian.org>
4405
4406 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
4407
4e45ca2e
AF
44082003-04-24 Adam Fedor <fedor@gnu.org>
4409
4410 * objc-lang.c: Include "valprint.h"
4411 * Makefile.in (objc-lang.o): Update dependencies.
4412
93de3e7f
AF
44132003-04-24 Adam Fedor <fedor@gnu.org>
4414
8ffd9b1b 4415 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
4416 architecture dependant compilation and mark as unimplemented
4417 (until they get put in the gdbarch vector).
4418
0f20eeea
DC
44192003-04-23 David Carlton <carlton@bactrian.org>
4420
4421 * cp-support.c (cp_find_first_component): Accept 'operator' in
4422 more locations.
4423
74cfe982
AC
44242003-04-23 Andrew Cagney <cagney@redhat.com>
4425
4426 * infcall.c (call_function_by_hand): Eliminate redundant
4427 indentation. Move "saved_async" and "old_cleanups" to where they
4428 are needed.
8ffd9b1b 4429
52557533
AC
44302003-04-23 Andrew Cagney <cagney@redhat.com>
4431
4432 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
4433 and "buffer". Move the "name" code to where it is needed.
4434
158775de
AC
44352003-04-23 Andrew Cagney <cagney@redhat.com>
4436
4437 * infcall.c (call_function_by_hand): Move variables "start_sp",
4438 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
4439 code to ON_STACK switch branch.
8ffd9b1b 4440
ebc7896c
AC
44412003-04-23 Andrew Cagney <cagney@redhat.com>
4442
4443 * infcall.c (call_function_by_hand): Make declaration of "i",
4444 "sal", "bpt" and "old_sp" more local to their use. Delete #if
4445 lint.
4446
d727590f
AC
44472003-04-23 Andrew Cagney <cagney@redhat.com>
4448
4449 * infcall.c (call_function_by_hand): Delete variable
4450 "n_method_args". Localize "param_type"'s declaration to the loop
4451 that it is used. Reinstate code assigning to said variable -
4452 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
4453 Rationalize code using "param_type".
4454
d585e13a
AC
44552003-04-22 Andrew Cagney <cagney@redhat.com>
4456
4457 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
4458 compute the breakpoint address. Only call FIX_CALL_DUMMY when
4459 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
4460 to DEPRECATED_PUSH_RETURN_ADDRESS.
4461
051caad9
KB
44622003-04-22 Kevin Buettner <kevinb@redhat.com>
4463
4464 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
4465 on the DWARF2 register number prior to fetching a register.
4466
77296879
JB
44672003-04-22 J. Brobecker <brobecker@gnat.com>
4468
4469 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
4470 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 4471 this macro was always set to 0.
77296879
JB
4472 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
4473 considering the fact that this macro was always set to 0.
4474 * hppa-tdep.h (hppa_store_return_value): Likewise.
4475 (hppa_extract_return_value): Likewise.
4476
4252f1df
JB
44772003-04-22 J. Brobecker <brobecker@gnat.com>
4478
4479 * config/pa/tm-hppa.h: Remove obsolete code, was used by
4480 the hppa-pro target only.
4481
14604c6b
JB
44822003-04-21 J. Brobecker <brobecker@gnat.com>
4483
4484 Ongoing multi-arch conversion effort for HP/UX:
4485 * config/pa/tm-hppa.h: Move all macro that are no longer
4486 defined now that GDB_MULTI_ARCH is now set to 1 from here...
4487 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
4488
77eb01d1
JB
44892003-04-21 J. Brobecker <brobecker@gnat.com>
4490
4491 * config/pa/tm-hppa.h: Obsolete a section that was only used
4492 for hppa-pro.
4493
61995b3b
JB
44942003-04-21 J. Brobecker <brobecker@gnat.com>
4495
4496 Ongoing multi-arch conversion for HP/UX.
4497 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
4498 if already defined (allows hppa64 to stay non-multiarched for now).
4499 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
4500
4aa79dcc
AC
45012003-04-21 Andrew Cagney <cagney@redhat.com>
4502
4503 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
4504
0f751ff2
AC
45052003-04-21 Andrew Cagney <cagney@redhat.com>
4506
4507 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
4508 "i386_num_mmx_regs".
4509
04714b91
AC
45102003-04-21 Andrew Cagney <cagney@redhat.com>
4511
4512 * infcall.c: New file.
4513 * infcall.h: New file.
4514 * valarith.c: Include "infcall.h".
4515 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
4516 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
4517 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
4518 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
4519 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
4520 (SFILES): Add "infcall.c"
4521 (COMMON_OBS): Add "infcall.o".
4522 (infcall.o): Specify dependencies.
4523 * value.h (call_function_by_hand): Delete declaration.
4524 * inferior.h (run_stack_dummy): Delete declaration.
4525 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
4526 (run_stack_dummy): Move to "infcall.c", merged into
4527 call_function_by_hand.
4528 * valops.c (call_function_by_hand): Moved to "infcall.c".
4529 (find_function_addr, value_arg_coerce): Ditto.
4530 (unwindonsignal_p, coerce_float_to_double): Ditto.
4531 (_initialize_valops): Move "set/show coerce-float-to-double", and
4532 "set/show unwindonsignal" commands to "infcall.c".
4533 * v850-tdep.c, target.h: Update comments.
4534 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
4535 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
4536 (sh64_init_extra_frame_info): Update comments.
4537 * mn10300-tdep.c: Update comments.
4538 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
4539 * config/sparc/tm-sparc.h: Update comments.
4540 * breakpoint.h: Update comments.
4541 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
4542 * arm-tdep.c: Update comment.
4543
f9d3c2a8
MK
45442003-04-19 Mark Kettenis <kettenis@gnu.org>
4545
c40e1eab
MK
4546 * i386-tdep.c (i386_num_register_names): New variable.
4547 (i386_num_mmx_regs): Renamed from mmx_num_regs.
4548 (MM0_REGNUM): Remove redundant parentheses in define.
4549 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
4550 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
4551 i386_mxcsr_regnum_p): Remove redundant parentheses.
4552 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 4553
94ea66b3
MK
4554 * i386-tdep.c (i386_extract_return_value,
4555 i386_store_return_value): Correct check for availability of
4556 floating-point registers.
4557
54299a1d
MK
4558 * i386-tdep.c (i386_frame_num_args): Remove function.
4559 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
4560
c86c27af
MK
4561 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
4562 mmx_regnum_to_fp_regnum. Adjust all callers.
4563
f9d3c2a8
MK
4564 * i386-tdep.c (i386_get_longjmp_target): Use
4565 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
4566 and TARGET_CHAR_BIT. Use extract_typed_address instead of
4567 extract_address.
4568
94ba74a9
MK
45692003-04-19 Mark Kettenis <kettenis@gnu.org>
4570
4571 * core-regset.c: Update comments to reflect reality. Re-order
4572 includes.
4573 (fetch_core_registers): Use switch instead of if. Remove
4574 redundant prototype.
4575
4074e13c
JB
45762003-04-18 Jim Blandy <jimb@redhat.com>
4577
4578 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 4579 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 4580
e3ab4aba
RH
45812003-04-17 Richard Henderson <rth@redhat.com>
4582
4583 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
4584
627bf7c1
EZ
45852003-04-17 Michael Snyder <msnyder@redhat.com>
4586 Karen Bennet <bennet@redhat.com>
4587
4588 Committed by Elena Zannoni <ezannoni@redhat.com>
4589 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 4590
514621a9
EZ
45912003-04-17 Elena Zannoni <ezannoni@redhat.com>
4592
4593 * values.c (value_being_returned): Don't fetch the return
fbe586ae 4594 value if the return type is void.
514621a9 4595
b4acd559
JJ
45962003-04-17 Jeff Johnston <jjohnstn@redhat.com>
4597
4598 * thread-db.c: Reindented.
8ffd9b1b 4599
530b167e 46002003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
4601
4602 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
4603 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
4604 as types.
4605
0a48e7e8
MS
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
8ffd9b1b 4629
ab9fe00e
KB
46302003-04-16 Kevin Buettner <kevinb@redhat.com>
4631
610a3745 4632 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
4633 the size of ``long double'' to 16, instead of 8.
4634
e64a344c
MK
46352003-04-16 Mark Kettenis <kettenis@gnu.org>
4636
4637 * i386-linux-nat.c: Add some whitespace to make things more
4638 readable.
4639 (fetch_register, store_register, fetch_inferior_registers,
4640 store_inferior_registers): Get rid of assignment in if-statement.
4641 (store_register): Fix typo in error message.
4642
25d41031
AC
46432003-04-16 Andrew Cagney <cagney@redhat.com>
4644
4645 * utils.c (xmmalloc): Always allocate something, matches
4646 libiberty/xmalloc's semantics.
4647 (xmrealloc, xmcalloc): Ditto.
4648
c50901fd
AC
46492003-04-16 Andrew Cagney <cagney@redhat.com>
4650
4651 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
4652 update comments.
4653 (get_frame_type): Initialize unwind and type when needed.
4654 (get_frame_id, frame_register_unwind): Ditto.
4655
f81824a9
AC
46562003-04-16 Andrew Cagney <cagney@redhat.com>
4657
4658 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
4659 obsolete.
4660 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
4661 * sparcl-stub.c: Obsolete file.
4662 * config/sparc/tm-sparclet.h: Obsolete file.
4663 * sparclet-stub.c: Obsolete file.
4664 * sparclet-rom.c: Obsolete file.
4665 * sparcl-tdep.c: Obsolete file.
4666 * config/sparc/tm-sparclite.h: Obsolete file.
4667 * config/sparc/sparclite.mt: Obsolete file.
4668 * config/sparc/sparclet.mt: Obsolete file.
4669 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
4670 sparc86x-*-* obsolete.
4671
9219021c
DC
46722003-04-15 David Carlton <carlton@math.stanford.edu>
4673
4674 * Makefile.in (SFILES): Add cp-namespace.c.
4675 (COMMON_OBS): Add cp-namespace.o.
4676 (block.o): Depend on gdb_obstack_h and cp_support_h.
4677 (buildsym.o): Depend on cp_support_h.
4678 (cp-namespace.o): New.
4679 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
4680 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
4681 (dwarf2read.o): Depend on cp_support_h.
4682 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
4683 * dwarf2read.c (process_die): Set processing_has_namespace_info,
4684 processing_current_namespace.
4685 (read_namespace): Update processing_current_namespace; check for
4686 anonymous namespaces.
4687 (dwarf2_name): New function.
4688 (dwarf2_extension): Ditto.
4689 * cp-support.h: Update copyright, contributors.
4690 Add inclusion guards.
4691 Add opaque declaration for structs obstack, block, symbol.
4692 (struct using_direct): New struct.
4693 Add declarations for cp_find_first_component,
4694 cp_entire_prefix_len, processing_has_namespace_info,
4695 processing_current_namespace, cp_is_anonymous,
4696 cp_add_using_directive, cp_initialize_namespace,
4697 cp_finalize_namespace, cp_set_block_scope,
4698 cp_scan_for_anonymous_namespaces.
4699 * cp-namespace.c: New file.
4700 * cp-support.c: Update copyright.
4701 Include ctype.h, gdb_assert.h, gdbcmd.h.
4702 New variable maint_cplus_cmd_list.
4703 (cp_find_first_component): New function.
4704 (cp_entire_prefix_len, maint_cplus_command)
4705 (first_component_command, _initialize_cp_support): Ditto.
4706 * buildsym.c: Include cp-support.h.
4707 New variable using_list.
4708 (add_symbol_to_list): Check for anonymous namespaces.
4709 (finish_block): Set block's scope.
4710 (start_symtab): Initialize C++ namespace support.
4711 (end_symtab): Finalize C++ namespace support.
4712 * block.h: Add opaque declarations for structs
4713 block_namespace_info, using_direct, and obstack.
4714 Add declarations for block_set_scope and block_set_using.
4715 (struct block): Add 'language_specific' member.
4716 (BLOCK_NAMESPACE): New macro.
4717 * block.c: Include gdb_obstack.h and cp-support.h.
4718 (struct block_namespace_info): New struct.
4719 (block_set_scope): New function.
4720 (block_set_using, block_initialize_namespace): Ditto.
4721
d5a921c9
KB
47222003-04-14 Kevin Buettner <kevinb@redhat.com>
4723
4724 * solib-svr4.c (svr4_have_link_map_offsets): New function.
4725 (locate_base): Return early if there aren't any link map offsets.
4726 (svr4_solib_create_inferior_hook): Warn if shared library support
4727 is unavailable.
4728
d2a52b27
DC
47292003-04-14 David Carlton <carlton@math.stanford.edu>
4730
4731 * symtab.c (symbol_set_names): Add prefix when storing Java names
4732 in hash table. Fix for PR java/1039.
4733
980cae7a
DC
47342003-04-14 David Carlton <carlton@math.stanford.edu>
4735
4736 * symtab.c (symbol_set_names): Rename 'name' arg to
4737 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
4738 * symtab.h: Change 'name' argument in declaration of
4739 symbol_set_names to 'linkage_name'.
4740 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
4741
e227b13c
AC
47422003-04-14 Andrew Cagney <cagney@redhat.com>
4743
4744 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
4745 return the fully sign-extended register value.
4746 (get_frame_pointer): Ditto.
4747 (mips_pop_frame): Initialize "proc_desc" after checking for a
4748 dummy frame.
4749
36712a20
AC
47502003-04-14 Andrew Cagney <cagney@redhat.com>
4751
4752 * mips-tdep.c (mips_push_dummy_frame): Delete function.
4753 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
4754 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
4755 (mips_push_register): Delete function.
4756 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
4757 PUSH_FP_REGNUM.
4758
44ea7b70
JB
47592003-04-14 Jim Blandy <jimb@redhat.com>
4760
4761 * symmisc.c: #include "gdb_regex.h".
4762 (maintenance_list_symtabs, maintenance_list_psymtabs): New
4763 functions.
4764 * maint.c (maintenance_list_command): New function.
4765 (_initialize_maint_cmds): Register the above as commands.
4766 * symtab.h (maintenance_list_symtabs,
4767 maintenance_list_psymtabs): New declarations.
4768 * cli/cli-cmds.c (maintenancelistlist): New variable.
4769 (init_cmd_lists): Initialize it.
4770 * cli/cli-cmds.h (maintenancelistlist): New declaration.
4771 * gdbcmd.h (maintenancelistlist): New declaration.
4772 * Makefile.in (symmisc.o): Update dependencies.
4773
2d0c7962
EZ
47742003-04-14 Elena Zannoni <ezannoni@redhat.com>
4775
4776 * s390-nat.c: Include asm/types.h for addr_t.
4777
1947a811
CV
47782003-04-14 Corinna Vinschen <vinschen@redhat.com>
4779
4780 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
4781 actually incoming type.
4782
adb616d7
AC
47832003-04-13 Andrew Cagney <cagney@redhat.com>
4784
4785 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
4786 get_next_frame and get_frame_saved_regs.
4787
9b5e151c
AC
47882003-04-13 Andrew Cagney <cagney@redhat.com>
4789
4790 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
4791 of gdbarch_num_regs.
4792
ef6e7e13
AC
47932003-04-13 Andrew Cagney <cagney@redhat.com>
4794
4795 * frame.h: Mention what replaced what in "struct frame_info".
4796 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
4797 deprecated_update_frame_base_hack and
4798 deprecated_update_frame_pc_hack.
4799 * hppa-tdep.c: Ditto.
4800
61fbb938
DJ
48012003-04-13 Daniel Jacobowitz <drow@mvista.com>
4802
4803 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
4804 to read_reg and update its comment. Remove regnum member.
4805 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
4806 Don't call read_reg when setting in_reg. Call read_reg to get
4807 the frame base if it's in a register. Return the register number
4808 on the stack instead of in the context. Remove extra arguments
4809 to read_reg.
4810 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
4811 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
4812 the register number on the expression stack.
4813 (needs_frame_read_reg): Remove extra arguments.
4814
0d53c4c4
DJ
48152003-04-13 Daniel Jacobowitz <drow@mvista.com>
4816
4817 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
4818 made non-static.
4819 (execute_stack_op): All callers updated.
4820 * dwarf2expr.h: Add prototype for dwarf2_read_address.
4821 * dwarf2loc.c (find_location_expression): New function.
4822 (dwarf_expr_frame_base): Call it.
4823 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
4824 (dwarf2_tracepoint_var_ref): New function, broken out from
4825 locexpr_tracepoint_var_ref.
4826 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
4827 Make static.
4828 (loclist_read_variable, loclist_read_needs_frame): New functions.
4829 (loclist_describe_location, loclist_tracepoint_var_ref): New
4830 functions.
4831 (dwarf2_loclist_funcs): New struct location_funcs.
4832 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
4833 (struct dwarf2_locexpr_baton): Add comments.
4834 (dwarf2_loclist_funcs): New extern.
4835 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
4836 base_address and base_known.
4837 (dwarf_loc_buffer): New variable.
4838 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
4839 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
4840 (dwarf2_has_info): Initialize dwarf_loc_offset.
4841 (dwarf2_build_psymtabs): Read in .debug_loc.
4842 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
4843 DWARF_LOC_SIZE.
4844 (psymtab_to_symtab_1): Likewise. Move base address calculation
4845 here, from...
4846 (dwarf2_get_pc_bounds): ... here. Use the base address from
4847 cu_header.
4848 (dwarf2_symbol_mark_computed): Handle location lists.
4849
6aca59a3
DJ
48502003-04-13 Daniel Jacobowitz <drow@mvista.com>
4851
4852 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
4853 if the linkage name demangled successfully.
4854
aca1fcd0
MK
48552003-04-13 Mark Kettenis <kettenis@gnu.org>
4856
97095916
MK
4857 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
4858 disassmbly_flavour): Removed.
4859
aca1fcd0
MK
4860 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
4861
562a961f
MK
48622003-04-13 Mark Kettenis <kettenis@gnu.org>
4863
4864 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
4865
bd013d54
AC
48662003-04-12 Andrew Cagney <cagney@redhat.com>
4867
4868 * frame.h (struct frame_info): Move definition from here ...
4869 * frame.c (struct frame_info): ... to here.
4870
167ef8b1
AC
48712003-04-12 Andrew Cagney <cagney@redhat.com>
4872
4873 * gdbthread.h (save_infrun_state): Delete parameter
4874 "prev_func_start".
4875 (struct thread_info): Delete field "prev_func_start".
4876 (load_infrun_state): Ditto.
4877 * thread.c (load_infrun_state, save_infrun_state): Update.
4878 * infrun.c (prev_func_start): Delete variable.
4879 (context_switch, init_wait_for_inferior): Update.
4880 (stop_stepping, keep_going): Update.
4881
da3331ec
AC
48822003-04-12 Andrew Cagney <cagney@redhat.com>
4883
4884 * gdbarch.sh: Add missing opaque declarations.
4885 * gdbarch.h: Regnerate.
4886 * symtab.h: Add missing opaque declarations.
4887 * value.h, target.h, symfile.h, stabsread.h: Ditto.
4888 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
4889 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
4890 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
4891 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
4892 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
4893 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
4894 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
4895 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
4896 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
4897 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
4898 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
4899 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
4900
18adea3f
AC
49012003-04-11 Andrew Cagney <cagney@redhat.com>
4902
4903 * frame.c (get_frame_id): Return this frame's "id".
4904 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
4905 function start.
4906 (legacy_saved_regs_this_id): Replace function body with
4907 internal-error.
4908 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
4909 FRAME_OBSTACK_ZALLOC.
4910 (create_new_frame): Mark the frame ID as valid.
4911
2252e863
AO
49122003-04-11 Alexandre Oliva <aoliva@redhat.com>
4913
4914 * Makefile.in (libbfd_h): Added missing setting.
4915 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
4916 according to the selected ABI.
4917
a8245ab8
JJ
49182003-04-11 Jeff Johnston <jjohnstn@redhat.com>
4919
4920 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
4921
6913c89a
AC
49222003-04-11 Andrew Cagney <cagney@redhat.com>
4923
4924 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
4925 SAVED_PC_AFTER_CALL.
4926 * gdbarch.h, gdbarch.c: Regenerate.
4927 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4928 * x86-64-tdep.c (x86_64_init_abi): Update.
4929 * vax-tdep.c (vax_gdbarch_init): Update.
4930 * v850-tdep.c (v850_gdbarch_init): Update.
4931 * sparc-tdep.c (sparc_gdbarch_init): Update.
4932 * sh-tdep.c (sh_gdbarch_init): Update.
4933 * s390-tdep.c (s390_gdbarch_init): Update.
4934 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4935 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4936 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4937 * mips-tdep.c (mips_gdbarch_init): Update.
4938 * mcore-tdep.c (mcore_gdbarch_init): Update.
4939 * m68k-tdep.c (m68k_gdbarch_init): Update.
4940 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4941 * ia64-tdep.c (ia64_gdbarch_init): Update.
4942 (ia64_saved_pc_after_call): Update declaration.
4943 * i386ly-tdep.c (i386lynx_init_abi): Update.
4944 * i386-tdep.c (i386_gdbarch_init): Update.
4945 * hppa-tdep.c (hppa_gdbarch_init): Update.
4946 * h8300-tdep.c (h8300_gdbarch_init): Update.
4947 * frv-tdep.c (frv_gdbarch_init): Update.
4948 * cris-tdep.c (cris_gdbarch_init): Update.
4949 * avr-tdep.c (avr_gdbarch_init): Update.
4950 * arm-tdep.c (arm_gdbarch_init): Update.
4951 * alpha-tdep.c (alpha_gdbarch_init): Update.
4952 * ns32knbsd-nat.c (frame_num_args): Update.
4953 * ns32k-tdep.c (umax_frame_num_args): Update.
4954 * mips-tdep.c (mips_init_frame_pc_first): Update.
4955 * infrun.c (step_over_function): Update.
4956 * i386-linux-tdep.c (skip_hurd_resolver): Update.
4957 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
4958 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
4959 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4960 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4961 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
4962 * arm-linux-tdep.c (skip_hurd_resolver): Update.
4963 * arch-utils.c (init_frame_pc_default): Update.
4964 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
4965 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
4966 declaration.
8ffd9b1b 4967
38edeab8
AC
49682003-04-11 Andrew Cagney <cagney@redhat.com>
4969
4970 * i387-tdep.c: Update copyright.
4971 (i387_to_double): Delete function.
4972 (double_to_i387): Delete function.
4973
81f8a206
AC
49742003-04-10 Andrew Cagney <cagney@redhat.com>
4975
4976 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
4977 frame's function's address. Simplify.
4978 (d10v_frame_unwind_cache): Check that the frame's function is
4979 non-zero.
4980
6e691f7a
JB
49812003-04-10 Jim Blandy <jimb@redhat.com>
4982
4983 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
4984 call to set_gdbarch_deprecated_push_arguments.
4985
7f78e237
AC
49862003-04-10 Andrew Cagney <cagney@redhat.com>
4987
4988 * frame.c (fprint_frame_id): New function.
4989 (fprint_frame_type, fprint_frame): New function.
4990 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
4991 (create_sentinel_frame, get_frame_id): Ditto.
4992 (frame_id_p, frame_id_eq): Ditto.
4993 (frame_id_inner, create_new_frame): Ditto.
4994 (legacy_get_prev_frame, get_prev_frame): Ditto.
4995 (deprecated_update_frame_pc_hack): Ditto.
4996 (frame_register_unwind): Ditto.
4997 (deprecated_update_frame_base_hack): Ditto.
4998
f870b49b
CV
49992003-04-10 Corinna Vinschen <vinschen@redhat.com>
5000
5001 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
5002 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
5003 frame_chain function.
5004 * Makefile.in: Add dependencies due to above change.
5005
7c86889b
CV
50062003-04-10 Corinna Vinschen <vinschen@redhat.com>
5007
5008 * blockframe.c (legacy_frame_chain_valid): Move call to
5009 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
5010 inside_entry_file.
5011
d0a55772
AC
50122003-04-09 Andrew Cagney <cagney@redhat.com>
5013
5014 * frame.h (struct frame_id): Replace "pc" and "base" with
5015 "stack_addr" and "code_addr". Update comments.
5016 (frame_id_build): Update parameter names and comment.
5017 (struct frame_info): Replace "id_p" and "id" with "this_id".
5018 * dummy-frame.c (dummy_frame_this_id): Update.
5019 * breakpoint.c (print_one_breakpoint): Update.
5020 * frame.c (get_frame_id): Update.
5021 (get_frame_base, frame_id_build): Update.
5022 (create_sentinel_frame, legacy_get_prev_frame): Update.
5023 (deprecated_update_frame_base_hack): Update.
5024 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
5025 (frame_id_inner): Ditto.
5026
ac16bf07
AC
50272003-04-09 Andrew Cagney <cagney@redhat.com>
5028
5029 * defs.h (gdb_print_host_address): Make "addr" parameter a
5030 pointer constant.
5031 * utils.c (gdb_print_host_address): Update.
5032
366cfc9e
KB
50332003-04-09 Kevin Buettner <kevinb@redhat.com>
5034
5035 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
5036 register number for R0 is 0.
5037
cd983b5c
JB
50382003-04-09 J. Brobecker <brobecker@gnat.com>
5039
5040 * frame.h (struct gdbarch): Add opaque structure definition
5041 to avoid a compilation warning on LynxOS 4.0.
5042
d1340264
AC
50432003-04-09 Andrew Cagney <cagney@redhat.com>
5044
5045 * frame.h (struct frame_info): Delete field "pc". Replace
5046 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
5047 structure.
5048 * frame.c (frame_pc_unwind): Update.
5049 (create_sentinel_frame): Do not set "pc".
5050 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
5051 (get_frame_pc): Call frame_pc_unwind.
5052 (deprecated_update_frame_pc_hack): Update.
5053 (create_new_frame): Use "pc" not "->pc".
5054
90a6fffb
AC
50552003-04-09 Andrew Cagney <cagney@redhat.com>
5056
5057 * frame.c (get_frame_id): Eliminate code updating "frame".
5058 (legacy_get_prev_frame): Ditto.
5059 (get_frame_base): Return id.base directly.
5060 (deprecated_update_frame_base_hack): Update "id.base".
5061 * frame.h (struct frame_info): Delete field "frame".
5062
2fbce691
AC
50632003-04-09 Andrew Cagney <cagney@redhat.com>
5064
5065 * NEWS: Mention that the "Sequent family" is obsolete.
5066 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
5067 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5068 * configure.host: Obsolete i[3456]86-sequent-bsd*,
5069 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5070 * config/i386/tm-ptx4.h: Obsolete file.
5071 * config/i386/tm-ptx.h: Obsolete file.
5072 * symm-tdep.c: Obsolete file.
5073 * config/i386/symmetry.mt: Obsolete file.
5074 * config/i386/tm-symmetry.h: Obsolete file.
5075 * symm-nat.c: Obsolete file.
5076 * config/i386/nm-symmetry.h: Obsolete file.
5077 * config/i386/xm-symmetry.h: Obsolete file.
5078 * config/i386/symmetry.mh: Obsolete file.
5079 * config/i386/nm-ptx4.h: Obsolete file.
5080 * config/i386/ptx4.mh: Obsolete file.
5081 * config/i386/ptx.mt: Obsolete file.
5082 * config/i386/ptx.mh: Obsolete file.
5083 * config/i386/xm-ptx4.h: Obsolete file.
5084 * config/i386/xm-ptx.h: Obsolete file.
5085
78c43945
AC
50862003-04-09 Andrew Cagney <cagney@redhat.com>
5087
5088 Obsolete mips*-*-mach3*.
5089 * NEWS: Mention that mips*-*-mach3* is obsolete.
5090 * m3-nat.c: Obsolete file.
5091 * config/nm-m3.h: Obsolete file.
5092 * config/mips/tm-mipsm3.h: Obsolete file.
5093 * config/mips/mipsm3.mt: Obsolete file.
5094 * config/mips/mipsm3.mh: Obsolete file.
5095 * config/mips/xm-mipsm3.h: Obsolete file.
5096 * mipsm3-nat.c: Obsolete file.
5097 * configure.host: Obsolete mips-dec-mach3*.
5098 * configure.tgt: Obsolete mips*-*-mach3*.
5099
f1908289
AC
51002003-04-09 Andrew Cagney <cagney@redhat.com>
5101
5102 * doublest.h: Update copyright.
5103 (deprecated_store_floating, deprecated_extract_floating): Rename
5104 store_floating and extract_floating. Update comments.
5105 * doublest.c: Update copyright.
5106 (extract_floating_by_length): Replace extract_floating.
5107 (store_floating_by_length): Replace store_floating.
5108 (deprecated_extract_floating): New function.
5109 (deprecated_store_floating): New function.
5110 (extract_typed_floating): Call extract_floating_by_length.
5111 (store_typed_floating): Call store_floating_by_length.
5112 * x86-64-tdep.c (x86_64_store_return_value): Update.
5113 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
5114 (sh64_extract_return_value): Update.
5115 (sh_sh4_register_convert_to_virtual): Update.
5116 (sh_sh64_register_convert_to_virtual): Update.
5117 (sh_sh4_register_convert_to_raw): Update.
5118 (sh_sh64_register_convert_to_raw): Update.
5119 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
5120 (rs6000_register_convert_to_raw): Update.
5121 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
5122 (ia64_register_convert_to_raw): Update.
5123 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
5124 (REGISTER_CONVERT_TO_VIRTUAL): Update.
5125 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
5126 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
5127 (alpha_register_convert_to_raw): Update.
5128
4443bd83
AC
51292003-04-08 Andrew Cagney <cagney@redhat.com>
5130
5131 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
5132 * gdbarch.h, gdbarch.c: Re-generate.
5133 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
5134 (d10v_gdbarch_init): Do not set saved_pc_after_call.
5135 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
5136 conditionally, use frame_pc_unwind as an alternative. Add
5137 comments.
5138 * arch-utils.c (init_frame_pc_default): Only call
5139 SAVED_PC_AFTER_CALL when available.
5140
c0236d92
EZ
51412003-04-08 Elena Zannoni <ezannoni@redhat.com>
5142
fbe586ae 5143 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
5144 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
5145 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
5146 (start_remote): Ditto.
5147 (handle_inferior_event): Ditto.
5148 (save_inferior_status): Ditto.
5149 (restore_inferior_status): Ditto.
5150 * infcmd.c (attach_command): Ditto.
5151 * fork-child.c (startup_inferior): Ditto.
fbe586ae 5152 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
5153 * alpha-tdep.c (heuristic_proc_start): Ditto.
5154 * mips-tdep.c (heuristic_proc_start): Ditto.
5155 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
5156 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
5157 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
5158 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
5159 * remote-vx.c (vx_create_inferior): Ditto.
5160
51612003-04-08 Elena Zannoni <ezannoni@redhat.com>
5162
5163 * infrun.c (stop_soon_quietly): Make it an enum, to better
5164 override the default behavior of handle_inferior_event.
5165 (clear_proceed_status): Update uses of stop_soon_quietly to
5166 reflect that it is now an enum.
5167 (start_remote): Ditto.
5168 (handle_inferior_event): Change logic a bit if stop_soon_quietly
5169 is set to handle the new GNU/Linux kernel behavior for
5170 attach/sigstop. Update uses of stop_soon_quietly.
5171 * inferior.h (enum stop_kind): New enum.
5172 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
5173 Reset normal handle_inferior_event behavior, afterwards.
5174 * fork-child.c (startup_inferior): Update.
5175 * alpha-tdep.c (heuristic_proc_start): Update.
5176 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
5177 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
5178 * solib-osf.c (osf_solib_create_inferior_hook): Update.
5179 * solib-irix.c (irix_solib_create_inferior_hook): Update.
5180 * remote-vx.c (vx_create_inferior): Update.
5181 * mips-tdep.c (heuristic_proc_start): Update.
5182
1211bce3
EZ
51832003-04-07 Elena Zannoni <ezannoni@redhat.com>
5184
5185 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 5186 be freed more than once, causing wild memory corruptions.
1211bce3 5187 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 5188 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 5189 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 5190 with the "core" target.
1211bce3 5191
f0ef6b29
KB
51922003-04-07 Kevin Buettner <kevinb@redhat.com>
5193
5194 * mips-tdep.c (mips_print_fp_register): New function, created from
5195 do_fp_register_row(). Registers are now (also) printed as hex.
5196 Only one register is printed per row.
5197 (mips_print_register, do_fp_register_row): Print floating point
5198 registers with mips_print_fp_register().
5199
8cf71652
AC
52002003-04-06 Andrew Cagney <cagney@redhat.com>
5201
5e488a7b
AC
5202 * valprint.h (inspect_it): Add extern declaration.
5203 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
5204 (selectors_info, classes_info): Ditto.
5205 (find_objc_msgcall): Fix indentation.
5206 (objc_printstr): Delete extern declarations.
5207
8cf71652
AC
5208 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
5209
e6ba3bc9
AC
52102003-04-06 Andrew Cagney <cagney@redhat.com>
5211
5212 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
5213 Update comment.
5214 * frame.c (legacy_saved_regs_this_id): Update.
5215 (legacy_get_prev_frame): Update.
5216 * xstormy16-tdep.c: Update comment.
5217 * sparc-tdep.c (sparc_frame_chain): Update comment.
5218 * blockframe.c (legacy_frame_chain_valid): Update.
5219
55e1d7e7
AC
52202003-04-06 Andrew Cagney <cagney@redhat.com>
5221
996179ee
AC
5222 * valprint.c (val_print_type_code_int): Delete #ifdef
5223 PRINT_TYPELESS_INTEGER code.
5224
55e1d7e7
AC
5225 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
5226 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
5227 multi-arch definition.
5228 * gdbarch.h: Re-generate.
5229
43bd9a9e
AC
52302003-04-05 Andrew Cagney <cagney@redhat.com>
5231
5232 Eliminate FRAME_FIND_SAVED_REGS.
5233 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5234 Change FSR parameter to a pointer.
5235 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
5236 Assume FSR parameter is a pointer.
5237 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5238 Make fsr a pointer.
5239 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
5240 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
5241 saved_regs a pointer.
5242 (hppa_frame_saved_pc): Ditto.
5243 (find_dummy_frame_regs): Make frame_saved_regs a pointer
5244 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
5245 pointer.
5246 (restore_pc_queue): Make fsr a pointer.
5247 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
5248 (hppa_frame_chain): Make saved_regs a pointer, call
5249 hppa_frame_init_saved_regs.
5250 * sparc-tdep.c: Include "gdb_assert.h".
5251 (sparc_frame_find_saved_regs): Replace internal_error with
5252 gdb_assert.
5253 * remote-vxsparc.c (vx_read_register): Delete reference to
5254 FRAME_FIND_SAVED_REGS.
5255 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
5256 * gdbarch.h: Regenerate.
5257 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
5258 (deprecated_get_frame_saved_regs): Delete declaration.
5259 (struct frame_saved_regs): Delete definition.
5260 * frame.c (deprecated_get_frame_saved_regs): Delete function.
5261 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
5262 (hppa_frame_find_saved_regs): Delete declaration.
5263 (FRAME_FIND_SAVED_REGS): Delete macro.
5264 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
5265 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
5266 FRAME_FIND_SAVED_REGS in comment.
5267
be41e9f4
AC
52682003-04-05 Andrew Cagney <cagney@redhat.com>
5269
5270 * frame.c (frame_func_unwind, get_frame_func): New functions.
5271 * frame.h (get_frame_func, frame_func_unwind): Declare.
5272 (struct frame_info): Add field "prev_func" for caching the
5273 previous frame's function address.
5274 * arm-tdep.c (arm_frameless_function_invocation): Combine
5275 get_pc_function_start and get_frame_pc into get_frame_func.
5276 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
5277 (sh64_nofp_frame_init_saved_regs): Ditto.
5278 * s390-tdep.c (s390_function_start): Ditto.
5279 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
5280 (rs6000_frameless_function_invocation): Ditto.
5281 (rs6000_frame_saved_pc): Ditto.
5282 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
5283 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
5284 * i386-tdep.c (i386_frameless_signal_p): Ditto.
5285 (i386_frame_init_saved_regs): Ditto.
5286 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
5287 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
5288 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
5289 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5290 * blockframe.c (frameless_look_for_prologue): Ditto.
5291
a01dd7cc
AC
52922003-04-05 Andrew Cagney <cagney@redhat.com>
5293
5294 * frame.c (legacy_get_prev_frame): Link prev to next at the
5295 function start. Update comments.
5296
5e5592e6
AC
52972003-04-05 Andrew Cagney <cagney@redhat.com>
5298
5299 * frame.c (get_frame_id): Update comment.
5300 (legacy_get_prev_frame): Update comment.
5301 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
5302 * gdbarch.h: Regenerate.
5303 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
5304 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
5305
6fba5002
AC
53062003-04-05 Andrew Cagney <cagney@redhat.com>
5307
5308 * stack.c (print_frame_info): Use get_frame_pc.
5309
7df05f2b
AC
53102003-04-04 Andrew Cagney <cagney@redhat.com>
5311
5312 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
5313 the frame's type from the unwinder.
5314 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
5315 (create_new_frame, legacy_get_prev_frame): When the unwinder's
5316 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
5317 (get_frame_base_address): Use get_frame_type.
5318 (get_frame_locals_address, get_frame_args_address): Ditto.
5319 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
5320 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
5321 (struct frame_info): Add comment explaining why the frame contains
5322 a "type" field.
5323 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
5324 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
5325 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
5326 NORMAL_FRAME.
5327 * frame-unwind.h: Include "frame.h".
5328 (struct frame_unwind): Add "type" field.
5329 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 5330
11889732
AC
53312003-04-04 Andrew Cagney <cagney@redhat.com>
5332
5333 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
5334 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
5335 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
5336 get_frame_base.
5337 (d10v_unwind_dummy_id): Use frame_id_build.
5338 * frame.c (find_frame_sal): Use get_frame_pc.
5339 (create_new_frame): Use deprecated_update_frame_pc_hack and
5340 deprecated_update_frame_base_hack.
5341 (create_sentinel_frame): Add comment about ->pc going away.
5342 (get_prev_frame): Add comment about ->pc going away.
5343 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
5344 frame_id_build, deprecated_update_frame_pc_hack and
5345 deprecated_update_frame_base_hack.
5346 (select_frame): Use get_frame_pc.
5347 (legacy_saved_regs_this_id): Use frame_id_build.
5348
50c46a0d
EZ
53492003-04-04 Elena Zannoni <ezannoni@redhat.com>
5350
fbe586ae
RH
5351 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
5352 signed integer case.
5353 (classify_argument): Handle enumerations and references.
50c46a0d 5354
50bbdbd9
AC
53552003-04-04 Andrew Cagney <cagney@redhat.com>
5356
5357 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
5358 ID to NULL.
5359
36018d2e
AF
53602003-04-01 Adam Fedor <fedor@gnu.org>
5361
5362 * gdb/objc-lang.c (selectors_info): Replace calls to
5363 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
5364 SYMBOL_NATURAL_NAME.
5365 (classes_info, find_methods): Likewise.
5366
35cec841
KB
53672003-04-03 Kevin Buettner <kevinb@redhat.com>
5368
5369 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
5370 ``mach'' to the value determined by bfd_default_set_arch_mach().
5371
43136899
BR
53722003-04-02 Bob Rossi <bob_rossi@cox.net>
5373
5374 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
5375 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
5376 (mi-cmd-file.o): Update dependencies.
5377
040b99fd
KB
53782003-04-01 Kevin Buettner <kevinb@redhat.com>
5379
5380 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
5381 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
5382
9a3d7dfd
AF
53832003-04-01 Adam Fedor <fedor@gnu.org>
5384
5385 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
5386 * language.h (struct language_defn): Add la_demangle.
5387 (language_demangle): Declare.
5388 * language.c (language_demangle): New function.
5389 (unk_lang_demangle): Likewise.
5390 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 5391 Add ukn_lang_demangle.
9a3d7dfd 5392 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 5393 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
5394 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
5395 (cplus_language_defn): Add cplus_demangle for la_demangle element.
5396 * jv-lang.c (java_demangle): New function
5397 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
5398 * objc-lang.c (objc_demangle): Add options argument
5399 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
5400 * maint.c (maintenance_demangle): Replace switch with
5401 call to language_demangle.
5402 * utils.c (fprintf_symbol_filtered): Likewise.
5403
5e074003
AC
54042003-04-01 Andrew Cagney <cagney@redhat.com>
5405
5406 * printcmd.c (print_frame_nameless_args): Delete #ifdef
5407 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
5408 PRINT_TYPELESS_INTEGER.
5409 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
5410 PUSH_RETURN_ADDRESS.
5411
270cb5d6
AC
54122003-04-01 Andrew Cagney <cagney@redhat.com>
5413
5414 * Makefile.in (d10v-tdep.o): Update dependencies.
5415 * d10v-tdep.c: Include "frame-base.h".
5416 (d10v_frame_unwind): Make constant.
5417 (d10v_frame_base_address): New function.
5418 (d10v_frame_base): New variable.
5419 (d10v_gdbarch_init): Set frame_base default.
5420 (struct d10v_unwind_cache): Add the field "prev_sp". Update
5421 comment for base.
5422 (d10v_frame_unwind_cache): Set and use "prev_sp".
5423 (d10v_frame_this_id): Use the previous frame's inner most stack
5424 address and this frame's func address for the frame ID. Use
5425 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 5426
6bfb3e36
AC
54272003-04-01 Andrew Cagney <cagney@redhat.com>
5428
5429 * frame.h (get_frame_locals_address, get_frame_args_address):
5430 Refer to the base address, instead of the address of the first
5431 local or parameter.
8ffd9b1b 5432
da62e633
AC
54332003-04-01 Andrew Cagney <cagney@redhat.com>
5434
5435 Add frame debug info addresses:
5436 * frame-base.c: New file.
5437 * frame-base.h: New file.
5438 * frame.h (struct frame_base): Add opaque declaration.
5439 (get_frame_base): Update comment.
5440 (get_frame_base_address): Declare.
5441 (get_frame_locals_address): Declare.
5442 (get_frame_args_address): Declare.
5443 (struct frame_info): Add "base" and "base_cache". Update
5444 comments on the unwinder.
5445 * frame.c: Include "frame-base.h".
5446 (get_frame_locals_address): New function.
5447 (get_frame_base_address): New function.
5448 (get_frame_args_address): New function.
5449 * findvar.c (read_var_value): Use get_frame_locals_address and
5450 get_frame_args_address.
5451 * stack.c (frame_info): Use get_frame_locals_address and
5452 get_frame_args_address.
5453 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
5454 moved to "frame-base.c".
5455 * printcmd.c (print_frame_nameless_args): Ditto.
5456 * symtab.h (address_class): Update comments.
5457 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
5458 get_frame_base_address.
5459 * dwarf2expr.c (execute_stack_op): Ditto.
5460 * Makefile.in (frame_base_h): Define.
5461 (frame.o): Update dependencies.
5462 (frame-base.o): Add dependencies.
5463 (SFILES): Add frame-base.c.
5464 (COMMON_OBS): Add frame-base.o.
5465
3d30e9c2
AC
54662003-04-01 Andrew Cagney <cagney@redhat.com>
5467
5468 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
5469 CALL_DUMMY_LENGTH): Ditto.
5470 * gdbarch.c: Re-generate.
5471 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
5472 (CALL_DUMMY_LENGTH): Delete macro.
5473 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
5474 * arm-tdep.c (arm_gdbarch_init): Ditto.
5475 * avr-tdep.c (avr_gdbarch_init): Ditto.
5476 * cris-tdep.c (cris_gdbarch_init): Ditto.
5477 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5478 * frv-tdep.c (frv_gdbarch_init): Ditto.
5479 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5480 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5481 * i386-tdep.c (i386_gdbarch_init): Ditto.
5482 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5483 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5484 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5485 * mips-tdep.c (mips_gdbarch_init): Ditto.
5486 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5487 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5488 * s390-tdep.c (s390_gdbarch_init): Ditto.
5489 * sh-tdep.c (sh_gdbarch_init): Ditto.
5490 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5491 * v850-tdep.c (v850_gdbarch_init): Ditto.
5492 * vax-tdep.c (vax_gdbarch_init): Ditto.
5493 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5494
ce0c7262
CV
54952003-04-01 Corinna Vinschen <vinschen@redhat.com>
5496
5497 * frame.c (get_prev_frame): Disable call to inside_entry_file().
5498
73dd234f
AC
54992003-04-01 Andrew Cagney <cagney@redhat.com>
5500
5501 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
5502 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5503 * gdbarch.h, gdbarch.c: Re-generate.
5504 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5505 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5506 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5507 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5508 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
5509 * infcmd.c (run_stack_dummy): Simplify assuming
5510 CALL_DUMMY_BREAKPOINT_OFFSET_P.
5511 * infrun.c (handle_inferior_event): Ditto.
5512 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5513 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
5514 * arm-tdep.c (arm_gdbarch_init): Ditto.
5515 * avr-tdep.c (avr_gdbarch_init): Ditto.
5516 * cris-tdep.c (cris_gdbarch_init): Ditto.
5517 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5518 * frv-tdep.c (frv_gdbarch_init): Ditto.
5519 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5520 * i386-tdep.c (i386_gdbarch_init): Ditto.
5521 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5522 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5523 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5524 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5525 * mips-tdep.c (mips_gdbarch_init): Ditto.
5526 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5527 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5528 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5529 * s390-tdep.c (s390_gdbarch_init): Ditto.
5530 * sh-tdep.c (sh_gdbarch_init): Ditto.
5531 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5532 * v850-tdep.c (v850_gdbarch_init): Ditto.
5533 * vax-tdep.c (vax_gdbarch_init): Ditto.
5534 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5535
97606a13
DJ
55362003-04-01 Daniel Jacobowitz <drow@mvista.com>
5537
5538 * symfile.c (symfile_relocate_debug_section): Update call to
5539 bfd_simple_get_relocated_section_contents.
5540
e8ab51f7
AC
55412003-03-31 Andrew Cagney <cagney@redhat.com>
5542
5543 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
5544 * gdbarch.h, gdbarch.c: Regenerate.
5545 * inferior.h (FIX_CALL_DUMMY): Delete macro.
5546 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
5547 available.
5548 * frame.h (generic_fix_call_dummy): Delete declaration.
5549 * dummy-frame.h: Update comment.
5550 * dummy-frame.c (generic_fix_call_dummy): Delete function.
5551 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5552 fix_call_dummy.
5553 * sh-tdep.c (sh_gdbarch_init): Ditto.
5554 * s390-tdep.c (s390_gdbarch_init): Ditto.
5555 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5556 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5557 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5558 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5559 * i386-tdep.c (i386_gdbarch_init): Ditto.
5560 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5561 * frv-tdep.c (frv_gdbarch_init): Ditto.
5562 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5563 * cris-tdep.c (cris_gdbarch_init): Ditto.
5564 * avr-tdep.c (avr_gdbarch_init): Ditto.
5565 * arm-tdep.c (arm_gdbarch_init): Ditto.
5566
018d1b48
JB
55672003-03-31 J. Brobecker <brobecker@gnat.com>
5568
5569 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
5570 (INIT_FRAME_AP): Likewise.
5571 (EXTRA_FRAME_INFO): Likewise.
5572
e9a2674e
AC
55732003-03-31 Andrew Cagney <cagney@redhat.com>
5574
5575 * gdbarch.sh: Include "symfile.h".
5576 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
5577 * gdbarch.h, gdbarch.c: Re-generate.
5578 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
5579 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5580 call_dummy_address, the default is at entry_point_address.
5581 * v850-tdep.c (v850_gdbarch_init): Ditto.
5582 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5583 * sh-tdep.c (sh_gdbarch_init): Ditto.
5584 * s390-tdep.c (s390_gdbarch_init): Ditto.
5585 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5586 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5587 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5588 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5589 * i386-tdep.c (i386_gdbarch_init): Ditto.
5590 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5591 * frv-tdep.c (frv_gdbarch_init): Ditto.
5592 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5593 * cris-tdep.c (cris_gdbarch_init): Ditto.
5594 * arm-tdep.c (arm_gdbarch_init): Ditto.
5595
e8a8712a
AC
55962003-03-31 Andrew Cagney <cagney@redhat.com>
5597
5598 * gdbarch.sh (CALL_DUMMY_P): Delete.
5599 * gdbarch.h, gdbarch.c: Re-generate.
5600 * inferior.h (CALL_DUMMY_P): Delete macro.
5601 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5602 * vax-tdep.c (vax_gdbarch_init): Update.
5603 * v850-tdep.c (v850_gdbarch_init): Update.
5604 * sparc-tdep.c (sparc_gdbarch_init): Update.
5605 * sh-tdep.c (sh_gdbarch_init): Update.
5606 * s390-tdep.c (s390_gdbarch_init): Update.
5607 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5608 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5609 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5610 * mips-tdep.c (mips_gdbarch_init): Update.
5611 * mcore-tdep.c (mcore_gdbarch_init): Update.
5612 * m68k-tdep.c (m68k_gdbarch_init): Update.
5613 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5614 * ia64-tdep.c (ia64_gdbarch_init): Update.
5615 * i386-tdep.c (i386_gdbarch_init): Update.
5616 * h8300-tdep.c (h8300_gdbarch_init): Update.
5617 * frv-tdep.c (frv_gdbarch_init): Update.
5618 * d10v-tdep.c (d10v_gdbarch_init): Update.
5619 * cris-tdep.c (cris_gdbarch_init): Update.
5620 * breakpoint.c (deprecated_frame_in_dummy): Update.
5621 * avr-tdep.c (avr_gdbarch_init): Update.
5622 * alpha-tdep.c (alpha_gdbarch_init): Update.
5623 * arm-tdep.c (arm_gdbarch_init): Update.
5624 * dummy-frame.c (dummy_frame_this_id): Update comments.
5625 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
5626 * frame.c (legacy_get_prev_frame): Ditto.
5627 * valops.c (call_function_by_hand): Delete function.
5628 (hand_function_call): Rename to call_function_by_hand
5629
ed234cf8
AC
56302003-03-30 Andrew Cagney <cagney@redhat.com>
5631
5632 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 5633 * value.h (struct value): Update comment.
ed234cf8 5634
06c77151
AC
56352003-03-30 Andrew Cagney <cagney@redhat.com>
5636
6c2b5168
AC
5637 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
5638 D10V_FP_REGNUM.
5639 (d10v_gdbarch_init): Do not set fp_regnum.
5640
06c77151
AC
5641 * frame.c (get_frame_base): Force ID initialization.
5642 (get_prev_frame): Move computation of the frame ID from here ...
5643 (get_frame_id): ... to here.
5644 (legacy_get_prev_frame): Mark the frame ID as valid.
5645 * frame.h (struct frame_info): Add field "id_p".
5646
97a1a11c
MK
56472003-03-30 Mark Kettenis <kettenis@gnu.org>
5648
5649 * i386-tdep.c (i386_store_struct_return): Removed.
5650 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
5651
6c0e89ed
AC
56522003-03-30 Andrew Cagney <cagney@redhat.com>
5653
5654 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
5655 * gdbarch.h, gdbarch.c: Regenerate.
5656 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
5657 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5658 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5659 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5660 * i386-tdep.c (i386_gdbarch_init): Ditto.
5661 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5662 * cris-tdep.c (cris_gdbarch_init): Ditto.
5663 * vax-tdep.c (vax_gdbarch_init): Ditto.
5664 * s390-tdep.c (s390_gdbarch_init): Ditto.
5665 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5666 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5667 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5668 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
5669 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5670 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
5671 * sparc-tdep.c (sparc_gdbarch_init): Update.
5672 * sh-tdep.c (sh_gdbarch_init): Update.
5673 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5674 * mips-tdep.c (mips_gdbarch_init): Update.
5675 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5676 * ia64-tdep.c (ia64_gdbarch_init): Update.
5677 * frv-tdep.c (frv_gdbarch_init): Update.
5678 * avr-tdep.c (avr_gdbarch_init): Update.
5679 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
5680 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
5681 instead of when push_dummy_call is not available.
8ffd9b1b 5682
f7dd6af2
AC
56832003-03-30 Andrew Cagney <cagney@redhat.com>
5684
5685 * infttrace.c: Include "gdbthread.h".
5686 (parent_attach_all): Fix function signature.
5687 (call_ptrace): Update call.
5688 * Makefile.in (infttrace.o): Update dependencies.
5689
28f617b3
AC
56902003-03-30 Andrew Cagney <cagney@redhat.com>
5691
5692 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
5693 PUSH_RETURN_ADDRESS.
5694 * gdbarch.h, gdbarch.c: Regenerate.
5695 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5696 * x86-64-tdep.c (x86_64_init_abi): Update.
5697 * v850-tdep.c (v850_gdbarch_init): Update.
5698 * sparc-tdep.c (sparc_gdbarch_init): Update.
5699 * sh-tdep.c (sh_gdbarch_init): Update.
5700 * s390-tdep.c (s390_gdbarch_init): Update.
5701 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5702 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5703 * mips-tdep.c (mips_gdbarch_init): Update.
5704 * mcore-tdep.c (mcore_gdbarch_init): Update.
5705 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5706 * ia64-tdep.c (ia64_gdbarch_init): Update.
5707 * i386-tdep.c (i386_gdbarch_init): Update.
5708 * h8300-tdep.c (h8300_gdbarch_init): Update.
5709 * frv-tdep.c (frv_gdbarch_init): Update.
5710 * cris-tdep.c (cris_gdbarch_init): Update.
5711 * avr-tdep.c (avr_gdbarch_init): Update.
5712 * arm-tdep.c (arm_gdbarch_init): Update.
5713 * valops.c (hand_function_call): Update.
5714
4d628cd7
AC
57152003-03-29 Andrew Cagney <cagney@redhat.com>
5716
5717 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
5718 sizeof_call_dummy_words.
5719 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
5720 define.
5721 * gdbarch.h: Regenerate.
8ffd9b1b 5722
65e82032
AC
57232003-03-29 Andrew Cagney <cagney@redhat.com>
5724
5725 * infttrace.h: New file.
5726 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
5727 (hpread_get_textlow): Detect an uninitialized dn_bufp.
5728 (hpread_read_doc_function_type): Detect an initialized type1.
5729 (hpread_quick_traverse): Initialize mod_name_string.
5730 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
5731 (som_solib_get_solib_by_pc): Declare.
5732 (so_lib_thread_start_addr): Declare.
5733 (no_shared_libraries): Declare.
5734 * somread.c (init_import_symbols): Make static. Add forward
5735 declaration.
5736 * config/pa/nm-hppah.h: Include "infttrace.h" for
5737 parent_attach_all.
5738 (hppa_insert_hw_watchpoint): Declare.
5739 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
5740 * hppah-nat.c: Include "gdb_string.h".
5741 (parent_attach_all): Delete extern declaration, moved to
5742 "infttrace.h".
5743 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
5744 int.
5745 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
5746 * Makefile.in (infttrace_h): Define.
5747 (hpread.o): Update dependencies.
5748 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
5749 * hppa-hpux-tdep.c: Include "gdb_string.h".
5750 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
5751 * infrun.c (handle_inferior_event): Always initialize
5752 stepped_after_stopped_by_watchpoint. Add default and remove
5753 fallthrough in switch statement.
5754 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
5755 parameter to int.
5756 (hppa_remove_hw_watchpoint): Ditto.
5757
2c3bbe77
AC
57582003-03-29 Andrew Cagney <cagney@redhat.com>
5759
5760 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
5761 offset.
5762
2dd604e7
RE
57632003-03-29 Richard Earnshaw <rearnsha@arm.com>
5764
5765 * arm-tdep.c (arm_push_arguments): Delete.
5766 (struct stack_item): New type.
5767 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
5768 (arm_store_struct_return): Delte.
5769 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
5770 arm_push_arguments or arm_store_struct_return.
5771
e8933a55
AC
57722003-03-28 Andrew Cagney <cagney@redhat.com>
5773
5774 * Makefile.in (d10v-tdep.o): Update dependencies.
5775 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
5776 * d10v-tdep.c: Include "remote.h".
5777 (target_resume_hook): Delete extern declaration.
5778 (target_wait_loop_hook): Ditto.
5779 (tdisassemble_command): Eliminate assignment in "if" conditional.
5780 (d10v_ts2_register_sim_regno): Eliminate call to
5781 legacy_register_sim_regno.
5782 (d10v_ts3_register_sim_regno): Ditto.
5783
6949171e
JJ
57842003-03-28 Jeff Johnston <jjohnstn@redhat.com>
5785
5786 * thread.c: Reindented.
5787 * lin-lwp.c: Ditto.
5788 * linux-proc.c: Ditto.
5789
98c7071f
BR
57902003-03-28 Bob Rossi <bob_rossi@cox.net>
5791
fbe586ae 5792 * MAINTAINERS (write after approval): Add myself.
98c7071f 5793
5edc9ca6
TR
57942003-03-27 Theodore A. Roth <troth@openavr.org>
5795
5796 * objc-exp.y: Add missing semi-colons.
5797
378bfd1b
AC
57982003-03-27 Andrew Cagney <cagney@redhat.com>
5799
5800 * regcache.c (write_sp): Delete function and references.
5801 * inferior.h (write_sp): Delete declaration.
5802 * valops.c (hand_function_call): Replace write_sp with
5803 TARGET_WRITE_SP.
5804 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
5805 (sparc_pop_frame): Ditto.
8ffd9b1b 5806
56056df7
AC
58072003-03-27 Andrew Cagney <cagney@redhat.com>
5808
5809 * NEWS: Mention removal of support for hppa*-*-bsd* and
5810 hppa*-*-osf* natives, and hppa*-*-pro* target.
5811 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
5812 * config/pa/xm-pa.h: Obsolete file.
5813 * config/pa/xm-hppab.h: Obsolete file.
5814 * config/pa/nm-hppab.h: Obsolete file.
5815 * config/pa/tm-hppab.h: Obsolete file.
5816 * config/pa/tm-hppao.h: Obsolete file.
5817 * config/pa/nm-hppao.h: Obsolete file.
5818 * config/pa/tm-pro.h: Obsolete file.
5819 * config/pa/hppaosf.mt: Obsolete file.
5820 * config/pa/hppaosf.mh: Obsolete file.
5821 * config/pa/hppapro.mt: Obsolete file.
5822 * config/pa/hppabsd.mt: Obsolete file.
5823 * config/pa/hppabsd.mh: Obsolete file.
5824 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
5825 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
5826 hppa*-*-osf*.
5827
5873a88d
AC
58282003-03-27 Andrew Cagney <cagney@redhat.com>
5829
5830 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
5831 push_arguments. Don't set push_return_address or write_sp.
5832 (d10v_push_dummy_call): Replace d10v_push_arguments.
5833 (d10v_push_return_address, d10v_write_sp): Delete function,
5834 handled by push_dummy_call.
5835
b81774d8
AC
58362003-03-26 Andrew Cagney <cagney@redhat.com>
5837
5838 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
5839 (push_dummy_call): New pure multi-arch replacement with gdbarch,
5840 regcache and dummy_addr parameters.
5841 * gdbarch.h, gdbarch.c: Re-generate.
5842 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
5843 available; assume it will handle stack alignment and return
5844 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
5845 legacy_push_arguments.
5846 (legacy_push_arguments): Rename default_push_arguments.
5847 * value.h (legacy_push_arguments): Rename default_push_arguments.
5848 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
5849 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
5850 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
5851 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
5852 * config/i386/tm-symmetry.h: Update.
5853 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5854 * x86-64-tdep.c (x86_64_init_abi): Update.
5855 * v850-tdep.c (v850_gdbarch_init): Update.
5856 * sparc-tdep.c (sparc_gdbarch_init): Update.
5857 * sh-tdep.c (sh_gdbarch_init): Update.
5858 * s390-tdep.c (s390_gdbarch_init): Update.
5859 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5860 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5861 * mips-tdep.c (mips_gdbarch_init): Update.
5862 * mcore-tdep.c (mcore_gdbarch_init): Update.
5863 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5864 * ia64-tdep.c (ia64_gdbarch_init): Update.
5865 * i386-tdep.c (i386_gdbarch_init): Update.
5866 * hppa-tdep.c (hppa_gdbarch_init): Update.
5867 * h8300-tdep.c (h8300_gdbarch_init): Update.
5868 * frv-tdep.c (frv_gdbarch_init): Update.
5869 * d10v-tdep.c (d10v_gdbarch_init): Update.
5870 * cris-tdep.c (cris_gdbarch_init): Update.
5871 * avr-tdep.c (avr_gdbarch_init): Update.
5872 * arm-tdep.c (arm_gdbarch_init): Update.
5873 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5874 * alpha-tdep.c (alpha_gdbarch_init): Update.
5875
f541410f
DJ
58762003-03-26 Daniel Jacobowitz <drow@mvista.com>
5877
5878 * signals/signals.c (do_target_signal_to_host): Correct realtime
5879 signal range test.
5880
69f567ae
DJ
58812003-03-26 Daniel Jacobowitz <drow@mvista.com>
5882
5883 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
5884 (struct sal_chain, map_catch_names): Remove.
5885 (catch_exception_command_1): Don't call
5886 handle_gnu_4_16_catch_command.
5887
d5d14a5a
DJ
58882003-03-26 Daniel Jacobowitz <drow@mvista.com>
5889
5890 From Mark Dettinger <dettinge@de.ibm.com>:
5891 * dwarf2cfi.c (read_2u): Increment pointer by two.
5892
bdd73e22
DJ
58932003-03-26 Daniel Jacobowitz <drow@mvista.com>
5894
5895 * signals/signals.c: Fix typos in last change.
5896
960cb555
DJ
58972003-03-26 Daniel Jacobowitz <drow@mvista.com>
5898
5899 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
5900 not already defined. Use __SIGRTMIN if available.
5901 (target_signal_from_host): Remove SIGRTMIN block.
5902 (do_target_signal_to_host): Remove SIGRTMIN block; check that
5903 the signal is within the realtime range.
5904
f636b87d
AF
59052003-03-25 Adam Fedor <fedor@gnu.org>
5906
5907 * Makefile.in (infrun.o): Add $(language_h)
5908 * infrun.c (handle_inferior_event): Use skip_language_trampoline
5909 for language specific trampolines.
5910 * language.h (struct language_defn): Add skip_trampoline.
5911 (skip_language_trampoline): Declare.
5912 * language.c (unk_lang_trampoline, skip_language_trampoline):
5913 New functions.
5914 (unknown_language_defn, auto_language_defn, local_language_defn):
5915 Add ukn_lang_trampoline.
5916 * ada-lang.c (ada_language_defn): Add NULL for language
5917 specific skip_trampoline.
5918 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
5919 scm-lang.c: Likewise.
5920 * objc-lang.c (objc_skip_trampoline): New function.
5921 (objc_language_defn): Add objc_skip_trampoline.
5922
28f617b3 59232003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
5924
5925 * frame.c (get_prev_frame): Delay validating a frame's ID -
5926 non-NULL, didn't go backwards - until an attempt to unwind it to
5927 the previous frame.
5928
f933a9c5
AC
59292003-03-25 Andrew Cagney <cagney@redhat.com>
5930
5931 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
5932 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
5933 * gdbarch.h, gdbarch.c: Re-generate.
5934 * config/sparc/tm-sparc.h
5935 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
5936 * sparc-tdep.c (sparc_gdbarch_init): Set
5937 deprecated_extra_stack_alignment_needed.
5938 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
5939 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
5940 extra_stack_alignment_needed.
5941 * v850-tdep.c (v850_gdbarch_init): Ditto.
5942 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5943 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5944 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5945 * cris-tdep.c (cris_gdbarch_init): Ditto.
5946 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5947 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 5948
4183d812
AC
59492003-03-25 Andrew Cagney <cagney@redhat.com>
5950
5951 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
5952 STORE_STRUCT_RETURN.
5953 * gdbarch.h, gdbarch.c: Regenerate.
5954 * d10v-tdep.c (d10v_store_struct_return): Delete function.
5955 (d10v_push_arguments): Set the struct return register.
5956 (d10v_gdbarch_init): Update.
5957 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5958 * x86-64-tdep.c (x86_64_init_abi): Update.
5959 * vax-tdep.c (vax_gdbarch_init): Update.
5960 * v850-tdep.c (v850_gdbarch_init): Update.
5961 * sparc-tdep.c (sparc_gdbarch_init): Update.
5962 * sh-tdep.c (sh_gdbarch_init): Update.
5963 * s390-tdep.c (s390_gdbarch_init): Update.
5964 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5965 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5966 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5967 * mips-tdep.c (mips_gdbarch_init): Update.
5968 * mcore-tdep.c (mcore_gdbarch_init): Update.
5969 * m68k-tdep.c (m68k_gdbarch_init): Update.
5970 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5971 * ia64-tdep.c (ia64_gdbarch_init): Update.
5972 * i386-tdep.c (i386_gdbarch_init): Update.
5973 * hppa-tdep.c (hppa_gdbarch_init): Update.
5974 * h8300-tdep.c (h8300_gdbarch_init): Update.
5975 * frv-tdep.c (frv_gdbarch_init): Update.
5976 * cris-tdep.c (cris_gdbarch_init): Update.
5977 * avr-tdep.c (avr_gdbarch_init): Update.
5978 * arm-tdep.c (arm_gdbarch_init): Update.
5979 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 5980
1bf6d5cc
AC
59812003-03-25 Andrew Cagney <cagney@redhat.com>
5982
5983 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
5984 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
5985 CALL_DUMMY_STACK_ADJUST with a predicate variable.
5986 * gdbarch.h, gdbarch.c: Regenerate.
5987 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5988 call_dummy_stack_adjust_p.
5989 * vax-tdep.c (vax_gdbarch_init): Ditto.
5990 * v850-tdep.c (v850_gdbarch_init): Ditto.
5991 * sh-tdep.c (sh_gdbarch_init): Ditto.
5992 * s390-tdep.c (s390_gdbarch_init): Ditto.
5993 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5994 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5995 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5996 * mips-tdep.c (mips_gdbarch_init): Ditto.
5997 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5998 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5999 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6000 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6001 * i386-tdep.c (i386_gdbarch_init): Ditto.
6002 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6003 * frv-tdep.c (frv_gdbarch_init): Ditto.
6004 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6005 * cris-tdep.c (cris_gdbarch_init): Ditto.
6006 * avr-tdep.c (avr_gdbarch_init): Ditto.
6007 * arm-tdep.c (arm_gdbarch_init): Ditto.
6008 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6009 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6010 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
6011 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6012 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
6013 call_dummy_stack_adjust_p.
6014 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
6015 (CALL_DUMMY_STACK_ADJUST): Delete macro.
6016 * sparc-tdep.c (sparc32_push_arguments): Update.
6017 * valops.c (hand_function_call): Update.
6018
71c08af0
CV
60192003-03-25 Corinna Vinschen <vinschen@redhat.com>
6020
6021 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
6022 set_gdbarch_char_signed.
6023
30757f90
RE
60242003-03-25 Richard Earnshaw <rearnsha@arm.com>
6025
6026 PR cli/548
6027 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
6028
03d48a7d
RE
60292003-03-25 Richard Earnshaw <rearnsha@arm.com>
6030
6031 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
6032 (_initialize_arm_tdep): Don't set tm_print_insn.
6033
2cf6873c
AF
60342003-03-24 Adam Fedor <fedor@gnu.org>
6035
6036 * Makefile.in (YYOBJ): Add objc-exp.tab.o
6037 * objc-lang.h: Add multiple inclusion protection.
6038 (start_msglist, add_msglist, end_msglist): Additional declarations.
6039
17c0759e
RE
60402003-03-24 Richard Earnshaw <rearnsha@arm.com>
6041
6042 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
6043 value was renamed to ARM_FLOAT_SOFT_FPA.
6044
618ce49f
AC
60452003-03-23 Andrew Cagney <cagney@redhat.com>
6046
6047 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
6048 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
6049 * gdbarch.h, gdbarch.c: Regenerate.
6050 * valops.c (hand_function_call): Update.
6051 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6052 * frame.c (legacy_saved_regs_this_id): Update.
6053 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
6054 * dummy-frame.h: Update.
6055 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
6056 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6057 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
6058 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
6059 * config/m68k/tm-sun3.h: Update.
6060 * blockframe.c (inside_main_func, frame_chain_valid): Update.
6061 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6062 * x86-64-tdep.c (x86_64_init_abi): Update.
6063 * vax-tdep.c (vax_gdbarch_init): Update.
6064 * v850-tdep.c (v850_gdbarch_init): Update.
6065 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
6066 * sh-tdep.c (sh_gdbarch_init): Update.
6067 * s390-tdep.c (s390_gdbarch_init): Update.
6068 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
6069 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
6070 (frame_get_saved_regs): Update.
6071 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6072 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6073 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6074 * mips-tdep.c (mips_gdbarch_init): Update.
6075 * mcore-tdep.c (mcore_gdbarch_init): Update.
6076 * m68k-tdep.c (m68k_gdbarch_init): Update.
6077 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6078 * ia64-tdep.c (ia64_gdbarch_init): Update.
6079 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
6080 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6081 (i386_interix_back_one_frame): Update.
6082 * hppa-tdep.c (hppa_gdbarch_init): Update.
6083 (hppa_init_extra_frame_info): Update.
6084 * h8300-tdep.c (h8300_gdbarch_init): Update.
6085 * frv-tdep.c (frv_gdbarch_init): Update.
6086 * cris-tdep.c (cris_gdbarch_init): Update.
6087 * avr-tdep.c (avr_gdbarch_init): Update.
6088 * arm-tdep.c (arm_gdbarch_init): Update.
6089 * alpha-tdep.c (alpha_gdbarch_init): Update.
6090
fd50bc42
RE
60912003-03-22 Richard Earnshaw <rearnsha@arm.com>
6092
6093 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
6094 (arm_get_fp_model): Declare.
6095 * arm-tdep.c (fp_model_strings): New string array.
6096 (arm_fp_model, current_fp_model): New variables.
6097 (arm_get_fp_model): New function.
6098 (arm_set_fp): New function.
6099 (set_fp_model_sfunc): New function.
6100 (show_fp_model): New function.
6101 (_initialize_arm_tdep): Add new command to set/show the FPU.
6102 (arm_extract_return_value): Use arm_get_fp_model.
6103 (arm_store_return_value): Likewise.
6104 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
6105 to initialize the floating-point data types.
6106 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
6107 model is FPA.
6108
26304000
RE
61092003-03-22 Richard Earnshaw <rearnsha@arm.com>
6110
6111 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
6112 the current setting of each value.
6113 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 6114 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
6115 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
6116 commands and add new version as subcommands of "set/show arm".
6117
afd7eef0
RE
61182003-03-22 Richard Earnshaw <rearnsha@arm.com>
6119
6120 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
6121 (set_arm_command, show_arm_command): New functions.
6122 (_initialize_arm_tdep): Add them.
6123 (num_disassembly_options): Renamed from num_flavor_options.
6124 (valid_disassembly_styles): Renamed from valid_flavors.
6125 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 6126 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
6127 set_disassembly_flavor_sfunc.
6128 (set_disassembly_style): Renamed from set_disassembly_flavor.
6129 (arm_othernames): Updated.
6130 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
6131 command. Add "set/show arm disassembly" commands. Deprecate
6132 "othernames" command.
6133
299a7944
RE
61342003-03-22 Richard Earnshaw <rearnsha@arm.com>
6135
6136 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
6137 (arm-tdep.o): Depend on elf_arm_h.
6138
c1dac9e6
RE
61392003-03-22 Richard Earnshaw <rearnsha@arm.com>
6140
6141 * Makefile.in (coff_internal_h): Define.
6142 (arm-tdep.o): Update dependencies.
6143
2702d96c
RE
61442003-03-22 Richard Earnshaw <rearnsha@arm.com>
6145
6146 * arm-tdep.c (prologue_cache): Delete.
6147 (check_prologue_cache, save_prologue_cache): Delete.
6148 (arm_scan_prologue): Don't check or update the prologue_cache.
6149 (arm_gdb_arch_init): Don't initialize it.
6150 (_initialize_arm_tdep): Likewise.
6151
27d5d74b
SC
61522003-03-21 Stephane Carrez <stcarrez@nerim.fr>
6153
6154 * MAINTAINERS (tui): Maintainer of tui code.
6155
1762d96d
CV
61562003-03-21 Corinna Vinschen <vinschen@redhat.com>
6157
6158 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
6159 (i386-cygwin-tdep.o): Add dependencies.
6160 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
6161 * i386-cygwin-tdep.c: New file.
6162 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
6163 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
6164
4c2e2391
AC
61652003-03-20 Andrew Cagney <cagney@redhat.com>
6166
f20d38b7
AC
6167 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
6168 (handle_inferior_event): Remove code calling
6169 DYNAMIC_TRAMPOLINE_NEXTPC.
6170
0022b738
AC
6171 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
6172 already has a full path.
6173
864dbc90
AC
6174 * main.c (gdb_main): Return 1.
6175 (captured_main): Call error to report an invalid interpreter.
6176
4c2e2391
AC
6177 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6178 * alpha-osf1-tdep.c: Include "gdb_string.h".
6179
5ef7553b
JB
61802003-03-19 J. Brobecker <brobecker@gnat.com>
6181
6182 Continuing work to convert the hppa targets to multiarch partial.
6183
6184 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
6185 method, now that hppa_push_dummy_frame has a conformant prototype.
6186 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
6187 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
6188 for the switch to multiarch partial.
6189
7bde8967
KB
61902003-03-19 Kevin Buettner <kevinb@redhat.com>
6191
6192 * mdebugread.c (parse_symbol): For stEnd, we're done counting
6193 when iss is issNull.
6194
b006a9e9
KB
61952003-03-18 Kevin Buettner <kevinb@redhat.com>
6196
6197 * mips-tdep.c (mips_register_name): Fix fencepost error involving
6198 NUM_REGS bounds check.
6199
5e2e9765
KB
62002003-03-18 Kevin Buettner <kevinb@redhat.com>
6201
6202 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
6203 * mips-tdep.c (gdb_assert.h): Include.
6204 (mips_generic_reg_names, mips_processor_reg_names): Make static.
6205 (mips_register_name): Handle integer registers explicitly. Add
6206 bounds checking.
6207 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
6208 (mips_lsi33k_reg_names): Don't list integer registers; they're
6209 handled by mips_register_name() now.
6210 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
6211 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
6212 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
6213 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
6214 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
6215
a2867626
AC
62162003-03-18 Andrew Cagney <cagney@redhat.com>
6217
6218 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
6219 a void pointer.
6220 * gdbtypes.h (print_scalar_formatted): Update declaration.
6221 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
6222
06600e06
JB
62232003-03-18 J. Brobecker <brobecker@gnat.com>
6224
6225 * infrun.c (observer.h): Add #include.
6226 (normal_stop): Add call to observer_notify_normal_stop.
6227 * Makefile.in (infrun.o): Add dependency on observer.h.
6228
7daf4f5b
JB
62292003-03-18 J. Brobecker <brobecker@gnat.com>
6230
6231 Continuing work to convert the hppa targets to multiarch partial.
6232 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
6233 parameter. Reformat comment.
6234 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
6235 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
6236 to match new profile.
6237
3371ccc0
JB
62382003-03-18 J. Brobecker <brobecker@gnat.com>
6239
6240 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
6241 appear to be working in any case.
6242
4fbe891e
JB
62432003-03-18 J. Brobecker <brobecker@gnat.com>
6244
6245 * observer.c (observer_test_first_observer): New static variable.
6246 (observer_test_second_observer): Likewise.
6247 (observer_test_third_observer): Likewise.
6248 (observer_test_first_notification_function): New static function.
6249 (observer_test_second_notification_function): Likewise.
6250 (observer_test_third_notification_function): Likewise.
6251
a7ff40e7
JB
62522003-03-17 J. Brobecker <brobecker@gnat.com>
6253
6254 * hppa-tdep.c (gdb_assert.h): Add missing #include.
6255 * somsolib.c (gdb_assert.h): Likewise.
6256 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
6257 (somsolib.o): Likewise.
6258
26ca4152
AC
62592003-03-17 Andrew Cagney <cagney@redhat.com>
6260
6261 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
6262 BFD. Simplify setting of di.endian.
6263
0a613259
AC
62642003-03-17 Andrew Cagney <cagney@redhat.com>
6265
6266 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
6267 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
6268
6269 From Elena Zannoni <ezannoni@redhat.com>
6270 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
6271 vector and floating-point parameters.
6272 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
6273 convention.
6274 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
6275
1132738f
FN
62762003-03-17 Fernando Nasser <fnasser@redhat.com>
6277
6278 * MAINTAINERS: Remove my name from several maintainership roles.
6279
6dc42492
AC
62802003-03-17 Andrew Cagney <cagney@redhat.com>
6281
6282 Fix frame off-by-one bug.
6283 * frame-unwind.h (frame_this_id_ftype): Replace
6284 frame_unwind_id_ftype.
6285 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
6286 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
6287 with "prev_register".
6288 * frame-unwind.c (frame_unwind_find_by_pc): Return
6289 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
6290 comment.
6291 * dummy-frame.c (cached_find_dummy_frame): Delete function.
6292 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
6293 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
6294 (dummy_frame_unwind): Update.
6295 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6296 sentinel_frame_register_unwind.
6297 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
6298 (sentinel_frame_unwinder): Update.
6299 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
6300 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
6301 * frame.c (create_sentinel_frame): Update. Initialize
6302 "prologue_cache" instead of "unwind_cache".
6303 (frame_register_unwind): Call this frame's prev_register with the
6304 next frame and this frame's prologue cache.
6305 (get_prev_frame): Simplify. Always call prev frame's this_id with
6306 this frame and prev frame's prologue cache. Document that this
6307 call is shifted one to the left when compared to the
6308 frame_register_unwind call.
6309 (legacy_saved_regs_prev_register): Replace
6310 frame_saved_regs_register_unwind.
6311 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
6312 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
6313 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
6314 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
6315 (d10v_frame_unwind): Update.
6316 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
6317 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
6318 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
6319 "saved_regs" with "this_saved_regs".
6320
efd710d6
AC
63212003-03-16 Andrew Cagney <cagney@redhat.com>
6322
6323 * frame.c (frame_pop): Don't call target_store_registers. Fix
6324 problem reported by Mark Kettenis.
6325
4e259f09
MK
63262003-03-16 Mark Kettenis <kettenis@gnu.org>
6327
6328 * i386-tdep.c (i386_register_type): Renamed from
6329 i386_register_virtual_type. Adjust function signature.
6330 (i386_gdbarch_init): Set register_type instead of
6331 deprecated_max_register_raw_size,
6332 deprecated_max_register_virtual_size and register_virtual_type.
6333
055bb976
AC
63342003-03-14 Andrew Cagney <cagney@redhat.com>
6335
6336 * frame.c (get_prev_frame): When a legacy frame, always call
6337 legacy_get_prev_frame. Simplify unwind code using assumption that
6338 the unwinder is new.
6339 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
6340 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
6341 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
6342
ac2adee5
AC
63432003-03-14 Andrew Cagney <cagney@redhat.com>
6344
6345 * frame.c (get_saved_register): Delete function.
6346 * frame.h (get_saved_register): Delete declaration.
6347 * xstormy16-tdep.c: Update comment.
6348 * regcache.h: Update comments.
6349 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
6350 get_saved_register and extract_address, use
6351 frame_read_unsigned_register.
6352 (sparc_frame_saved_pc): Ditto.
6353 (sparc_get_saved_register): Instead of get_saved_register, use
6354 frame_register.
6355 (sparc_pop_frame): Ditto.
6356 * findvar.c: Update comments.
6357 (value_of_register): Call frame_register instead of
6358 get_saved_register.
6359 (value_from_register): Ditto.
6360 * config/sparc/tm-sparc.h: Update comment.
6361 * breakpoint.c: Update comment.
6362
129c1cd6
AC
63632003-03-14 Andrew Cagney <cagney@redhat.com>
6364
6365 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
6366 GET_SAVED_REGISTER.
6367 * gdbarch.h, gdbarch.c: Re-generate.
6368 * frame.h: Update comments.
6369 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6370 * x86-64-tdep.c (x86_64_init_abi): Update.
6371 * sparc-tdep.c (sparc_gdbarch_init): Update.
6372 * sh-tdep.c (sh_gdbarch_init): Update.
6373 * mips-tdep.c (mips_gdbarch_init): Update.
6374 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6375 * cris-tdep.c (cris_gdbarch_init): Update.
6376 * ia64-tdep.c (ia64_gdbarch_init): Update.
6377 * frame.c (frame_register): Update.
6378 (get_saved_register): Update.
6379 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 6380
749b82f6
AC
63812003-03-13 Andrew Cagney <cagney@redhat.com>
6382
6383 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
6384 * gdbarch.h, gdbarch.c: Regenerate.
6385 * valops.c (hand_function_call): Update comment.
6386 * stack.c (return_command): Update comment.
6387 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
6388 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
6389 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6390 * x86-64-tdep.c (x86_64_init_abi): Update.
6391 * vax-tdep.c (vax_gdbarch_init): Update.
6392 * v850-tdep.c (v850_gdbarch_init): Update.
6393 * sparc-tdep.c (sparc_gdbarch_init): Update.
6394 * sh-tdep.c (sh_gdbarch_init): Update.
6395 * s390-tdep.c (s390_gdbarch_init): Update.
6396 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6397 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6398 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6399 * mips-tdep.c (mips_gdbarch_init): Update.
6400 * mcore-tdep.c (mcore_gdbarch_init): Update.
6401 * m68k-tdep.c (m68k_gdbarch_init): Update.
6402 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6403 * ia64-tdep.c (ia64_gdbarch_init): Update.
6404 * i386-tdep.c (i386_gdbarch_init): Update.
6405 * hppa-tdep.c (hppa_gdbarch_init): Update.
6406 * h8300-tdep.c (h8300_gdbarch_init): Update.
6407 * frv-tdep.c (frv_gdbarch_init): Update.
6408 * cris-tdep.c (cris_gdbarch_init): Update.
6409 * avr-tdep.c (avr_gdbarch_init): Update.
6410 * arm-tdep.c (arm_gdbarch_init): Update.
6411 * alpha-tdep.c (alpha_gdbarch_init): Update.
6412
1594fa56
AC
64132003-03-13 Andrew Cagney <cagney@redhat.com>
6414
6415 * frame.c (legacy_frame_p): New function.
6416 (get_prev_frame): Use legacy_frame_p.
6417 * frame.h (legacy_frame_p): Declare.
6418
7717fda3
V
64192003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
6420
fbe586ae 6421 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
6422 listing corrected.
6423
0c67cbe9
V
64242003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
6425
fbe586ae 6426 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 6427
03febf99
AC
64282003-03-12 Andrew Cagney <cagney@redhat.com>
6429
6430 * frame.c (get_prev_frame): Rename the frame parameter to
6431 "this_frame".
6432 (get_next_frame, legacy_get_prev_frame): Ditto.
6433
0a1e1ca1
AC
64342003-03-12 Andrew Cagney <cagney@redhat.com>
6435
6436 * frame.c (get_current_frame): Check target_has_registers before
6437 checking target_has_stack.
6438 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
6439 instead of deprecated_selected_frame.
6440 * findvar.c (value_of_register): Pass "frame", not
6441 deprecated_selected_frame, to value_of_builtin_reg.
6442
a66a9c23
AC
64432003-03-12 Andrew Cagney <cagney@redhat.com>
6444
6445 * regcache.c (regcache_cooked_write_signed): New function.
6446 (regcache_cooked_write_unsigned): New function.
6447 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
6448 (regcache_cooked_read_signed): Fix regnum in range assertion.
6449 * regcache.h (regcache_cooked_write_signed): Declare.
6450 (regcache_cooked_write_unsigned): Declare.
6451
8bedc050
AC
64522003-03-12 Andrew Cagney <cagney@redhat.com>
6453
6454 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
6455 * gdbarch.h, gdbarch.c: Re-generate.
6456 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6457 * x86-64-tdep.h: Update.
6458 * x86-64-tdep.c (x86_64_init_abi): Update.
6459 * v850-tdep.c (v850_gdbarch_init): Update.
6460 * sparc-tdep.c (sparc_gdbarch_init): Update.
6461 * sh-tdep.c (sh_gdbarch_init): Update.
6462 * s390-tdep.c (s390_gdbarch_init): Update.
6463 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6464 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6465 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6466 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6467 * mips-tdep.c (mips_gdbarch_init): Update.
6468 * mcore-tdep.c (mcore_gdbarch_init): Update.
6469 * m68k-tdep.c (m68k_gdbarch_init): Update.
6470 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6471 * ia64-tdep.c (ia64_gdbarch_init): Update.
6472 * i386-tdep.c (i386_gdbarch_init): Update.
6473 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6474 * hppa-tdep.c (hppa_gdbarch_init): Update.
6475 * h8300-tdep.c (h8300_gdbarch_init): Update.
6476 * frv-tdep.c (frv_gdbarch_init): Update.
6477 * cris-tdep.c (cris_gdbarch_init): Update.
6478 * avr-tdep.c (avr_gdbarch_init): Update.
6479 * arm-tdep.c (arm_gdbarch_init): Update.
6480 * alpha-tdep.c (alpha_gdbarch_init): Update.
6481 * sh-tdep.c (sh_init_extra_frame_info): Update.
6482 (sh64_init_extra_frame_info): Update.
6483 * ns32knbsd-nat.c (frame_num_args): Update.
6484 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
6485 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
6486 (xstormy16_frame_chain_valid): Update.
6487 * vax-tdep.c (vax_saved_pc_after_call): Update.
6488 * v850-tdep.c (v850_frame_chain): Update.
6489 (v850_pop_frame): Update.
6490 (v850_init_extra_frame_info): Update.
6491 * sparc-tdep.c (setup_arbitrary_frame): Update.
6492 * ns32k-tdep.c (umax_frame_num_args): Update.
6493 * s390-tdep.c (s390_pop_frame_regular): Update.
6494 * mn10300-tdep.c (mn10300_frame_chain): Update.
6495 (mn10300_pop_frame_regular): Update.
6496 (mn10300_init_extra_frame_info): Update.
6497 * mips-tdep.c (mips_init_frame_pc_first): Update.
6498 (mips_frame_chain): Update.
6499 (mips_pop_frame): Update.
6500 * mcore-tdep.c (mcore_frame_chain): Update.
6501 (mcore_pop_frame): Update.
6502 (mcore_init_extra_frame_info): Update.
6503 * arch-utils.c (init_frame_pc_default): Update.
6504 * m68k-tdep.c (isi_frame_num_args): Update.
6505 (delta68_frame_num_args): Update.
6506 (news_frame_num_args): Update.
6507 * ia64-tdep.c (ia64_pop_frame_regular): Update.
6508 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6509 (alpha_frame_chain): Update.
6510 (alpha_pop_frame): Update.
6511 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
6512 (hppa_init_extra_frame_info): Update.
6513 (hppa_frame_chain): Update.
6514 (hppa_frame_chain_valid): Update.
6515 * cris-tdep.c (cris_init_extra_frame_info): Update.
6516 * avr-tdep.c (avr_init_extra_frame_info): Update.
6517 * arm-tdep.c (arm_frame_chain_valid): Update.
6518 (arm_init_extra_frame_info): Update.
6519 (arm_pop_frame): Update.
6520 * frame.c (frame_pc_unwind): Update.
6521 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
6522 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6523 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6524 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
6525 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
6526 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 6527
7a25a7c1
AC
65282003-03-12 Andrew Cagney <cagney@redhat.com>
6529
6530 Eliminate the need for POP_FRAME.
6531 * frame.c (do_frame_unwind_register): New function.
6532 (frame_pop): When no POP_FRAME, pop the frame using register
6533 unwind and a scratch regcache.
6534 (frame_saved_regs_pop): Delete function.
6535 (trad_frame_unwinder): Update.
6536 * d10v-tdep.c (d10v_frame_pop): Delete function.
6537 (d10v_frame_unwind): Update.
6538 * sentinel-frame.c (sentinel_frame_pop): Delete function.
6539 (sentinel_frame_unwinder): Update.
6540 * dummy-frame.c (dummy_frame_pop): Delete function.
6541 (dummy_frame_unwind): Update.
6542 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
6543 (struct frame_unwind): Update.
6544
2f38ef89
KB
65452003-03-11 Kevin Buettner <kevinb@redhat.com>
6546
6547 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
6548 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
6549 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
6550 Do range checks on register number obtained from debugging info.
6551 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
6552 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
6553 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
6554 mapping function.
6555 (do_fp_register_row): Fix typo which caused double type to be
6556 used when attempting to unpack a float.
6557
552f4abf
JB
65582003-03-11 J. Brobecker <brobecker@gnat.com>
6559
6560 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
6561
e0d2ae16
AC
65622003-03-11 Andrew Cagney <cagney@redhat.com>
6563
6564 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
6565 frame. Problem found by Corinna Vinschen.
6566
ddbfdd06
PM
65672003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
6568
6569 * doublest.c (floatformat_from_length): Accept also
6570 the real size of 'long double' type.
6571
088b2ddc 65722003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 6573
088b2ddc 6574 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
6575 * breakpoint.c (bpstat_copy): Copy the command lines as well
6576 as the old value, to match what is freed in bpstat_clear.
6577
f56f77c1
DC
65782003-03-10 David Carlton <carlton@math.stanford.edu>
6579
6580 * minsyms.c (add_minsym_to_hash_table): Replace
6581 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6582 (compare_minimal_symbols, compact_minimal_symbols)
6583 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
6584 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
6585 of DEPRECATED_SYMBOL_MATCHES_NAME.
6586 (lookup_minimal_symbol_solib_trampoline): Ditto.
6587
5602984a
AC
65882003-03-10 Andrew Cagney <cagney@redhat.com>
6589
6590 * regcache.h (regcache_cooked_read_ftype): Define.
6591 (regcache_save, regcache_restore): Add a cooked_read parameter.
6592 * regcache.c (regcache_save, regcache_restore): Update.
6593 (do_cooked_read): New function.
6594 (regcache_cpy): Pass do_cooked_read to regcache_save and
6595 regcache_restore.
6596
8bedc050
AC
65972003-03-10 Andrew Cagney <cagney@redhat.com>
6598
6599 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
6600 * gdbarch.h, gdbarch.c: Re-generate.
6601 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6602 * x86-64-tdep.h: Update.
6603 * x86-64-tdep.c (x86_64_init_abi): Update.
6604 * v850-tdep.c (v850_gdbarch_init): Update.
6605 * sparc-tdep.c (sparc_gdbarch_init): Update.
6606 * sh-tdep.c (sh_gdbarch_init): Update.
6607 * s390-tdep.c (s390_gdbarch_init): Update.
6608 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6609 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6610 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6611 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6612 * mips-tdep.c (mips_gdbarch_init): Update.
6613 * mcore-tdep.c (mcore_gdbarch_init): Update.
6614 * m68k-tdep.c (m68k_gdbarch_init): Update.
6615 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6616 * ia64-tdep.c (ia64_gdbarch_init): Update.
6617 * i386-tdep.c (i386_gdbarch_init): Update.
6618 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6619 * hppa-tdep.c (hppa_gdbarch_init): Update.
6620 * h8300-tdep.c (h8300_gdbarch_init): Update.
6621 * frv-tdep.c (frv_gdbarch_init): Update.
6622 * cris-tdep.c (cris_gdbarch_init): Update.
6623 * avr-tdep.c (avr_gdbarch_init): Update.
6624 * arm-tdep.c (arm_gdbarch_init): Update.
6625 * alpha-tdep.c (alpha_gdbarch_init): Update.
6626 * sh-tdep.c (sh_init_extra_frame_info): Update.
6627 (sh64_init_extra_frame_info): Update.
6628 * ns32knbsd-nat.c (frame_num_args): Update.
6629 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
6630 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
6631 (xstormy16_frame_chain_valid): Update.
6632 * vax-tdep.c (vax_saved_pc_after_call): Update.
6633 * v850-tdep.c (v850_frame_chain): Update.
6634 (v850_pop_frame): Update.
6635 (v850_init_extra_frame_info): Update.
6636 * sparc-tdep.c (setup_arbitrary_frame): Update.
6637 * ns32k-tdep.c (umax_frame_num_args): Update.
6638 * s390-tdep.c (s390_pop_frame_regular): Update.
6639 * mn10300-tdep.c (mn10300_frame_chain): Update.
6640 (mn10300_pop_frame_regular): Update.
6641 (mn10300_init_extra_frame_info): Update.
6642 * mips-tdep.c (mips_init_frame_pc_first): Update.
6643 (mips_frame_chain): Update.
6644 (mips_pop_frame): Update.
6645 * mcore-tdep.c (mcore_frame_chain): Update.
6646 (mcore_pop_frame): Update.
6647 (mcore_init_extra_frame_info): Update.
6648 * arch-utils.c (init_frame_pc_default): Update.
6649 * m68k-tdep.c (isi_frame_num_args): Update.
6650 (delta68_frame_num_args): Update.
6651 (news_frame_num_args): Update.
6652 * ia64-tdep.c (ia64_pop_frame_regular): Update.
6653 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6654 (alpha_frame_chain): Update.
6655 (alpha_pop_frame): Update.
6656 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
6657 (hppa_init_extra_frame_info): Update.
6658 (hppa_frame_chain): Update.
6659 (hppa_frame_chain_valid): Update.
6660 * cris-tdep.c (cris_init_extra_frame_info): Update.
6661 * avr-tdep.c (avr_init_extra_frame_info): Update.
6662 * arm-tdep.c (arm_frame_chain_valid): Update.
6663 (arm_init_extra_frame_info): Update.
6664 (arm_pop_frame): Update.
6665 * frame.c (frame_pc_unwind): Update.
6666 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
6667 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6668 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6669 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
6670 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
6671 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 6672
12cc2063
AC
66732003-03-10 Andrew Cagney <cagney@redhat.com>
6674
6675 * gdbarch.sh (gdbarch_unwind_pc): New method.
6676 * gdbarch.h, gdbarch.c: Regenerate.
6677 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
6678 but use read_pc and FRAME_SAVED_PC as fall backs.
6679 (frame_saved_regs_pc_unwind): Delete function.
6680 (trad_frame_unwinder): Update.
6681 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
6682 (struct frame_unwind): Update.
6683 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
6684 (dummy_frame_unwind): Update.
6685 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
6686 (sentinel_frame_unwinder): Update.
6687 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
6688 (d10v_frame_unwind): Update.
6689 (d10v_unwind_pc): New function.
6690 (d10v_gdbarch_init): Set unwind_pc.
6691
ef840a37
AC
66922003-03-10 Andrew Cagney <cagney@redhat.com>
6693
a2ce2e56
AC
6694 * gdbarch.h: Re-generate.
6695
ef840a37
AC
6696 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
6697 PC.
6698 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
6699 the PC register.
6700
08f3424b
MK
67012003-03-08 Mark Kettenis <kettenis@gnu.org>
6702
6703 * gdbarch.sh (save_dummy_frame_tos): Add comment.
6704
1248ede2
AC
67052003-03-08 Andrew Cagney <cagney@redhat.com>
6706
6707 * cli-out.c: Update copyright.
6708 (cli_out_data): Define typedef. Use instead of ui_out_data.
6709
f49bacc8
AC
67102003-03-08 Andrew Cagney <cagney@redhat.com>
6711
6712 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
6713 the result.
6714
9b05f993
AC
67152003-03-07 Andrew Cagney <cagney@redhat.com>
6716
6717 * gdbarch.sh: Don't generate two macro definitions when an
6718 undefined macro taking no arguments.
6719 * gdbarch.h: Regenerate.
8ffd9b1b 6720
166f4c7b
ML
67212002-03-07 Michal Ludvig <mludvig@suse.cz>
6722
6723 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
6724 (x86_64_unwind_dummy_id): New functions.
6725 (x86_64_init_abi): Register these two new functions.
6726
6d686a84
ML
67272003-03-07 Michal Ludvig <mludvig@suse.cz>
6728
6729 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 6730 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
6731 separate function.
6732 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
6733
6314f104
AC
67342003-03-05 Andrew Cagney <cagney@redhat.com>
6735
6736 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
6737 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
6738 * frame.c (get_prev_frame): Restructure the frame ID unwind code
6739 to use unwind_dummy_id when a dummy frame.
6740 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
6741 predicate.
6742 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 6743
ceea5145
AC
67442003-03-05 Andrew Cagney <cagney@redhat.com>
6745
6746 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
6747 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
6748 Do not use d10v_read_sp or d10v_read_fp when obtaining register
6749 values.
6750
0d843116
AC
67512003-03-05 Andrew Cagney <cagney@redhat.com>
6752
6753 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
6754 (struct d10v_unwind_cache): Delete field "frameless". Replace
6755 "next_addr" with "sp_offset". Add "r11_offset".
6756 (d10v_frame_unwind_cache): Update.
6757 (prologue_find_regs): Update. When "mv r11, sp", save the
6758 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
6759 RN was saved in r11_offset.
6760
b2579786
AC
67612003-03-05 Andrew Cagney <cagney@redhat.com>
6762
6763 * frame.c (deprecated_update_frame_pc_hack): Also update the the
6764 cached PC value in the next frame.
6765
218e5956
AC
67662003-03-05 Andrew Cagney <cagney@redhat.com>
6767
6768 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
6769 "id_unwind_cache" with "id".
6770 (frame_id_unwind): Delete declaration.
6771 * frame.c (frame_id_unwind): Delete function.
6772 (get_prev_frame): Call the frame id unwind method directly. Store
6773 the returned next frame's ID value in NEXT_FRAME. Note that there
6774 is a problem with the wrong unwind ID being called with the wrong
6775 unwind cache.
6776
ed363b1b
DJ
67772003-03-05 Daniel Jacobowitz <drow@mvista.com>
6778
6779 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
6780
fe1f4a5e
DJ
67812003-03-05 James Ingham <jingham@apple.com>
6782 Daniel Jacobowitz <drow@mvista.com>
6783
6784 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
6785 (auto_cp_abi): New variable.
6786 (current_cp_abi, num_cp_abis): Make static.
6787 (CP_ABI_MAX): Define.
6788 (cp_abis): Turn into an array.
6789 (value_virtual_fn_field): Fix formatting.
6790 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
6791 takes a pointer.
6792 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
6793 (list_cp_abis, _initialize_cp_abi): New functions.
6794 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
6795 declarations for cp_abis, num_cp_abis, current_cp_abi, and
6796 switch_to_cp_abi. Update prototype for register_cp_abi.
6797 * Makefile.in (cp-abi.o): Update dependencies.
6798 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
6799 instead of switch_to_cp_abi.
6800 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
6801 register_cp_abi.
6802 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
6803 register_cp_abi.
6804 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
6805
e4adbba9
DJ
68062003-03-05 Daniel Jacobowitz <drow@mvista.com>
6807
6808 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
6809 * dwarf2loc.c: Include "regcache.h".
6810 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
6811 register_size.
6812 * Makefile.in (dwarf2loc.o): Update dependencies.
6813
91ccbfc1
TR
68142003-03-04 Theodore A. Roth <troth@openavr.org>
6815
6816 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
6817 number of io registers reported by remote target is not a multiple of
6818 step.
6819
3d4e8fd2
DC
68202003-03-04 David Carlton <carlton@math.stanford.edu>
6821
6822 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
6823 (lookup_symbol_aux_psymtabs): Update call to
6824 lookup_partial_symbol.
6825 (lookup_transparent_type, find_main_psymtab)
6826 (make_symbol_overload_list): Ditto.
6827
ed42d87b
KH
68282003-03-04 Kazu Hirata <kazu@cs.umass.edu>
6829
6830 * MAINTAINERS (Write after approval): Update my email address.
6831
a0ed5532
AC
68322003-03-03 Andrew Cagney <cagney@redhat.com>
6833
6834 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
6835 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
6836 predicate. Replace MAX_REGISTER_RAW_SIZE.
6837 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
6838 MAX_REGISTER_VIRTUAL_SIZE.
6839 * regcache.c (legacy_max_register_raw_size): New function.
6840 (legacy_max_register_virtual_size): New function.
6841 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
6842 (MAX_REGISTER_RAW_SIZE): Define.
6843 (legacy_max_register_raw_size): Declare.
6844 (legacy_max_register_virtual_size): Declare.
6845 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6846 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
6847 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6848 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
6849 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6850 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
6851 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
6852 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
6853 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
6854 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6855 * vax-tdep.c (vax_gdbarch_init): Update.
6856 * v850-tdep.c (v850_gdbarch_init): Update.
6857 * sparc-tdep.c (sparc_gdbarch_init): Update.
6858 * sh-tdep.c (sh_gdbarch_init): Update.
6859 * s390-tdep.c (s390_gdbarch_init): Update.
6860 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6861 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6862 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6863 * mips-tdep.c (mips_gdbarch_init): Update.
6864 * mcore-tdep.c (mcore_gdbarch_init): Update.
6865 * m68k-tdep.c (m68k_gdbarch_init): Update.
6866 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6867 * ia64-tdep.c (ia64_gdbarch_init): Update.
6868 * i386-tdep.c (i386_gdbarch_init): Update.
6869 * hppa-tdep.c (hppa_gdbarch_init): Update.
6870 * h8300-tdep.c (h8300_gdbarch_init): Update.
6871 * frv-tdep.c (frv_gdbarch_init): Update.
6872 * cris-tdep.c (cris_gdbarch_init): Update.
6873 * avr-tdep.c (avr_gdbarch_init): Update.
6874 * arm-tdep.c (arm_gdbarch_init): Update.
6875 * alpha-tdep.c (alpha_gdbarch_init): Update.
6876 * d10v-tdep.c (d10v_gdbarch_init): Do not set
6877 max_register_raw_size or max_register_virtual_size.
6878
8e437497
DC
68792003-03-03 David Carlton <carlton@math.stanford.edu>
6880
6881 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
6882 SYMBOL_MATCHES_NAME, add comment.
6883 (SYMBOL_MATCHES_NATURAL_NAME): New.
6884 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
6885 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
6886 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
6887 * symtab.c (lookup_partial_symbol): Use
6888 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
6889 unhelpful comment.
6890 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
6891 SYMBOL_MATCHES_NAME.
6892 Fix for PR c++/33.
6893
25120b0d
DC
68942003-03-03 David Carlton <carlton@math.stanford.edu>
6895
6896 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
6897 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
6898 by regexp matching against SYMBOL_NATURAL_NAME.
6899
78a11fb4
DC
69002003-03-03 David Carlton <carlton@math.stanford.edu>
6901
6902 * linespec.c (find_method): Extract code into collect_methods.
6903 (collect_methods): New.
6904
645dd519
MK
69052003-03-02 Mark Kettenis <kettenis@gnu.org>
6906
b4700d91
MK
6907 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
6908 get_frame_base.
6909
645dd519
MK
6910 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
6911 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6912
0aa7e1aa
SC
69132003-03-02 Stephane Carrez <stcarrez@nerim.fr>
6914
8ffd9b1b 6915 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
6916 and not regnum when summing the size of all registers up to regnum.
6917
f30ee0bc
AC
69182003-03-01 Andrew Cagney <cagney@redhat.com>
6919
6920 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
6921 FRAME_INIT_SAVED_REGS.
6922 * gdbarch.h, gdbarch.c: Regenerate.
6923 * stack.c (frame_info): Update.
6924 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
6925 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
6926 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
6927 * ns32k-tdep.c (ns32k_pop_frame): Update.
6928 * mips-tdep.c (mips_pop_frame): Update.
6929 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
6930 * ia64-tdep.c (ia64_frame_chain): Update.
6931 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
6932 (ia64_frameless_function_invocation): Update.
6933 (ia64_init_extra_frame_info): Update.
6934 (ia64_pop_frame_regular): Update.
6935 * frame.h (struct frame_info): Update comment.
6936 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
6937 * frame.c (frame_saved_regs_register_unwind): Update.
6938 (frame_saved_regs_register_unwind): Update.
6939 (deprecated_generic_get_saved_register): Update.
6940 * cris-tdep.c: Update comment.
6941 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
6942 Rename macro.
6943 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6944 * x86-64-tdep.c (x86_64_init_abi): Update.
6945 * vax-tdep.c (vax_gdbarch_init): Update.
6946 * v850-tdep.c (v850_gdbarch_init): Update.
6947 * sparc-tdep.c (sparc_gdbarch_init): Update.
6948 * sh-tdep.c (sh_gdbarch_init): Update.
6949 * s390-tdep.c (s390_gdbarch_init): Update.
6950 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6951 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6952 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6953 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6954 * mips-tdep.c (mips_gdbarch_init): Update.
6955 * mcore-tdep.c (mcore_gdbarch_init): Update.
6956 * m68k-tdep.c (m68k_gdbarch_init): Update.
6957 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6958 * ia64-tdep.c (ia64_gdbarch_init): Update.
6959 * i386-tdep.c (i386_gdbarch_init): Update.
6960 * frv-tdep.c (frv_gdbarch_init): Update.
6961 * avr-tdep.c (avr_gdbarch_init): Update.
6962 * arm-tdep.c (arm_gdbarch_init): Update.
6963 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 6964
42fa7c0f
AC
69652003-03-01 Andrew Cagney <cagney@redhat.com>
6966
6967 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
6968 option enum and switch. When no windows, set the interpreter to
6969 INTERP_CONSOLE.
8ffd9b1b 6970
49c7e338
AC
69712003-03-01 Andrew Cagney <cagney@redhat.com>
6972
6973 * main.c (captured_main): Replace magic option characters with an
6974 enum.
6975
e9582e71
AC
69762003-03-01 Andrew Cagney <cagney@redhat.com>
6977
6978 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
6979 INIT_EXTRA_FRAME_INFO.
6980 * gdbarch.h, gdbarch.c: Regenerate.
6981 * arm-tdep.c: Update comments.
6982 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
6983 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
6984 * frame.h, avr-tdep.c: Ditto.
6985 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
6986 (create_new_frame, legacy_get_prev_frame): Ditto.
6987 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
6988 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
6989 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
6990 deprecated_init_extra_frame_info instead of init_extra_frame_info.
6991 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6992 * v850-tdep.c (v850_gdbarch_init): Ditto.
6993 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6994 * sh-tdep.c (sh_gdbarch_init): Ditto.
6995 * s390-tdep.c (s390_gdbarch_init): Ditto.
6996 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
6997 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6998 * mips-tdep.c (mips_gdbarch_init): Ditto.
6999 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7000 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7001 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7002 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
7003 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7004 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7005 * frv-tdep.c (frv_gdbarch_init): Ditto.
7006 * cris-tdep.c (cris_gdbarch_init): Ditto.
7007 * avr-tdep.c (avr_gdbarch_init): Ditto.
7008 * arm-tdep.c (arm_gdbarch_init): Ditto.
7009 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7010 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7011
35cac7cf
AC
70122003-03-01 Andrew Cagney <cagney@redhat.com>
7013
7014 * gdbarch.sh (register_type): New function with predicate.
7015 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
7016 * gdbarch.h, gdbarch.c: Re-generate.
7017 * arch-utils.c (generic_register_byte): Use generic_register_size.
7018 (generic_register_size): When available, use
7019 gdbarch_register_type.
7020 * regcache.c (init_regcache_descr): When available, initialize the
7021 register type array using gdbarch_register_type. If the
7022 architecture supplies gdbarch_register_type, do not use the legacy
7023 regcache layout.
7024 * d10v-tdep.c (d10v_register_type): Replace
7025 d10v_register_virtual_type.
7026 (d10v_gdbarch_init): Set register_type instead of
7027 register_virtual_type.
7028
7b83296f
AC
70292003-03-01 Andrew Cagney <cagney@redhat.com>
7030
7031 * Makefile.in (ax-gdb.o): Update dependencies.
7032 * ax-gdb.c: Include "regcache.h".
7033 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
7034 * findvar.c (value_of_register): Ditto.
7035 * infcmd.c (default_print_registers_info): Ditto.
7036
eadc1c87
MK
70372003-03-01 Mark Kettenis <kettenis@gnu.org>
7038
7039 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
7040 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7041
14143612
MK
70422003-03-01 Mark Kettenis <kettenis@gnu.org>
7043
7044 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
7045 of STREQ.
7046
a55cc764
DJ
70472003-02-28 Daniel Jacobowitz <drow@mvista.com>
7048
7049 * Makefile.in (dwarf2loc.o): Update dependencies.
7050 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
7051 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
7052 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
7053 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
7054 (locexpr_tracepoint_var_ref): New function.
7055 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
7056
08a617da
AC
70572003-02-28 Andrew Cagney <cagney@redhat.com>
7058
7059 * regcache.c (register_size): New function.
7060 * regcache.h (register_size): Declare
7061 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
7062 max_register_size instead of MAX_REGISTER_RAW_SIZE.
7063
4224873a
DC
70642003-02-28 David Carlton <carlton@math.stanford.edu>
7065
7066 * linespec.c (decode_compound): Extract code into find_method.
7067 (find_method): New.
7068
ccdc5d7f
JB
70692003-02-28 J. Brobecker <brobecker@gnat.com>
7070
7071 * Makefile.in: Add rules to build and link in observer.o.
7072
974e8ced
JB
70732003-02-27 J. Brobecker <brobecker@gnat.com>
7074
7075 * observer.c: Minor comments edits.
7076
7a28f973
JB
70772003-02-27 J. Brobecker <brobecker@gnat.com>
7078
7079 * observer.h, observer.c: New file.
7080
27cddce2
AC
70812003-02-27 Andrew Cagney <cagney@redhat.com>
7082
7083 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
7084
b94a41a1
SC
70852003-02-27 Stephane Carrez <stcarrez@nerim.fr>
7086
7087 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
7088 (M6812_OP_STS_EXT): Likewise.
7089 (m6811_prologue): Use the above to recognize prologue.
7090 (m6812_prologue): Likewise.
7091
c8be8951
DC
70922003-02-27 David Carlton <carlton@math.stanford.edu>
7093
7094 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
7095 SYMBOL_PRINT_NAME.
7096 (compare_psymbols): Ditto.
7097 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
7098
d05bb1fc
MS
70992003-02-27 Michael Snyder <msnyder@redhat.com>
7100
4e845cd3
MS
7101 * f-lang.c (build_fortran_types): New function.
7102 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
7103 * doublest.c (extract_floating): Fix warning text.
7104
f3824013
AC
71052003-02-27 Andrew Cagney <cagney@redhat.com>
7106
7107 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
7108 predicate. Replaces PUSH_DUMMY_FRAME.
7109 * gdbarch.h, gdbarch.c: Regnerate.
7110 * valops.c (hand_function_call): Update. Call
7111 generic_push_dummy_frame directly.
7112 * vax-tdep.c (vax_gdbarch_init): Update.
7113 * sparc-tdep.c (sparc_gdbarch_init): Update.
7114 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7115 * m68k-tdep.c (m68k_gdbarch_init): Update.
7116 * hppa-tdep.c (hppa_gdbarch_init): Update.
7117 * alpha-tdep.c (alpha_gdbarch_init): Update.
7118 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7119 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7120 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
7121 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
7122 push_dummy_frame to generic_push_dummy_frame.
7123 * v850-tdep.c (v850_gdbarch_init): Ditto.
7124 * sh-tdep.c (sh_gdbarch_init): Ditto.
7125 * s390-tdep.c (s390_gdbarch_init): Ditto.
7126 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7127 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7128 * mips-tdep.c (mips_gdbarch_init): Ditto.
7129 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7130 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7131 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7132 * i386-tdep.c (i386_gdbarch_init): Ditto.
7133 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7134 * frv-tdep.c (frv_gdbarch_init): Ditto.
7135 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7136 * cris-tdep.c (cris_gdbarch_init): Ditto.
7137 * avr-tdep.c (avr_gdbarch_init): Ditto.
7138 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 7139
ad188201
KB
71402003-02-26 Kevin Buettner <kevinb@redhat.com>
7141
7142 * mips-tdep.c (show_mips_abi): New function.
7143 (_initialize_mips_tdep): Use show_mips_abi() to implement the
7144 command ``show mips abi''.
7145
6b37567a 71462003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7147
6b37567a 7148 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 7149 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
7150 more sline entries have been seen for the function.
7151
d3e0a5bf
MC
71522003-02-26 Michael Chastain <mec@shout.net>
7153
7154 * configure: Regenerate with autoconf 000227.
7155
18972eea
MC
71562003-02-26 Michael Chastain <mec@shout.net>
7157
7158 Close PR build/660.
7159 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
7160 for old libc5/glibc.
7161 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
7162
0bbde931
KW
71632003-02-26 Kris Warkentin <kewarken@qnx.com>
7164
7165 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
7166 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
7167
27ca5dad
MC
71682003-02-26 Michael Chastain <mec@shout.net>
7169
7170 * configure.in: New variable HAVE_UINTPTR_T.
7171 * configure, config.in: Regenerated.
7172
6f88d630
DJ
71732003-02-26 Daniel Jacobowitz <drow@mvista.com>
7174
7175 Fix PR build/1097.
7176 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
7177
b14185ce
AC
71782003-02-25 Andrew Cagney <cagney@redhat.com>
7179
7180 * frame.c (get_prev_frame): Add comment on check for
7181 inside_entry_func. Only check for inside_entry_file when not a
7182 dummy and not a sentinel. Check that the new frame is not inner
7183 to the old frame.
7184
ac2bd0a9
AC
71852003-02-25 Andrew Cagney <cagney@redhat.com>
7186
7187 * frame.c (frame_debug): New variable.
7188 (_initialize_frame): Add "set/show debug frame" command.
7189 (get_prev_frame): When frame_debug, print reason why unwind
7190 failed.
7191
b18a0fd2
MC
71922003-02-25 Michael Chastain <mec@shout.net>
7193
7194 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
7195 to avoid uintptr_t definition problems.
7196
22abf04a
DC
71972003-02-25 David Carlton <carlton@math.stanford.edu>
7198
7199 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
7200 (SYMBOL_LINKAGE_NAME): Ditto.
7201 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
7202 SYMBOL_LINKAGE_NAME.
7203 (struct general_symbol_info): Expand comment.
7204 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
7205 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
7206 (SYMBOL_MATCHES_REGEXP): Ditto.
7207 * symtab.c (symbol_natural_name): New function.
7208 * objfiles.h: Replace all uses of SYMBOL_NAME by
7209 DEPRECATED_SYMBOL_NAME.
7210 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
7211 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
7212 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
7213 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
7214 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
7215 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
7216 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
7217 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
7218 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
7219 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
7220 * ada-exp.y: Ditto.
7221 * ada-exp.y: Update copyright.
7222 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
7223 * cp-valprint.c: Ditto.
7224
1a5848f6
JJ
72252003-02-25 Jeff Johnston <jjohnstn@redhat.com>
7226
7227 * infptrace.c (detach): Do not flag error if ptrace detach fails
7228 and errno is set to ESRCH.
7229
7343d46a
AC
72302003-02-24 Andrew Cagney <cagney@redhat.com>
7231
7232 * infptrace.c (udot_info): Change type of udot_off to long. Use
7233 paddr when printing udot_off's value.
7234
49fa1dc2
DC
72352003-02-24 David Carlton <carlton@math.stanford.edu>
7236
7237 * symtab.c (make_symbol_overload_list): Only read in partial
7238 symtabs containing a matching partial symbol.
7239
0fe19209
DC
72402003-02-24 David Carlton <carlton@math.stanford.edu>
7241
7242 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
7243 do the comparison, not strcmp.
7244 * symfile.c (compare_psymbols): Ditto.
7245 * defs.h: Declare strcmp_iw_ordered.
7246 * utils.c (strcmp_iw_ordered): New function.
7247
8e3ee7b5
JB
72482003-02-24 Jim Blandy <jimb@redhat.com>
7249
7250 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
7251 support, shared libs): Remove my name from here, to better reflect
7252 reality.
7253
7df1a324
KW
72542003-02-24 Kris Warkentin <kewarken@qnx.com>
7255
7256 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
7257 (target_ops): Add to_have_continuable_watchpoint.
7258 * target.c (update_current_target): Add INHERIT line for
7259 to_have_continuable_watchpoint.
7260 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
7261 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
7262 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
7263 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
7264
d1c76907
EZ
72652003-02-24 Elena Zannoni <ezannoni@redhat.com>
7266
7267 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
7268 maintainership.
7269
2610b0bf
KW
72702003-02-24 Kris Warkentin <kewarken@qnx.com>
7271
f46169db
KW
7272 * solib.c (solib_open): Call target defined search function after
7273 failing with solib-search-path.
7274 * solist.h (target_so_ops): Add find_and_open_solib function hook and
7275 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 7276
9a3c34fe
KW
72772003-02-24 Kris Warkentin <kewarken@qnx.com>
7278
f46169db 7279 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 7280
2417dd25
SC
72812003-02-23 Stephane Carrez <stcarrez@nerim.fr>
7282
7283 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
7284
b631436b
SC
72852003-02-22 Stephane Carrez <stcarrez@nerim.fr>
7286
7287 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
7288 (m68hc11_add_reggroups): New function.
7289 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
7290 (m68hc11_gdbarch_init): Install the reggroups.
7291 (_initialize_m68hc11_tdep): Initialize them.
7292
0aa8c1e4
JW
72932003-02-21 James E Wilson <wilson@tuliptree.org>
7294
7295 * MAINTAINERS: Update my email address.
7296
50ceaba5
DC
72972003-02-21 David Carlton <carlton@math.stanford.edu>
7298
7299 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
7300
4c2df51b
DJ
73012003-02-21 Daniel Jacobowitz <drow@mvista.com>
7302
7303 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
7304 * symtab.h: Add opaque declarations of struct axs_value and
7305 struct agent_expr.
7306 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
7307 (struct location_funcs): New type.
7308 (struct symbol): Add "loc" to aux_value.
7309 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
7310 * dwarf2read.c: Include "dwarf2expr.h".
7311 (dwarf2_symbol_mark_computed): New function.
7312 (read_func_scope): Use it.
7313 (var_decode_location): New function.
7314 (new_symbol): Use it.
7315 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
7316
7317 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
7318 (dwarf2expr_h, dwarf2loc_h): New variables.
7319 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
7320 (dwarf2expr.o, dwarf2loc.o): New rules.
7321 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
7322 * buildsym.c (finish_block): Handle LOC_COMPUTED and
7323 LOC_COMPUTED_ARG.
7324 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
7325 * m2-exp.y (yylex): Likewise.
7326 * printcmd.c (address_info, print_frame_args): Likewise.
7327 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
7328 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
7329 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
7330 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
7331 * symtab.c (lookup_block_symbol): Likewise.
7332
5784d15e
AF
73332003-02-20 Adam Fedor <fedor@gnu.org>
7334
7335 * symtab.h: Remove objc_specific struct
7336 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
7337 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
7338 Have language_objc use cplus_specific struct.
7339
d4cad8db
TT
73402003-02-20 Tom Tromey <tromey@redhat.com>
7341
7342 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
7343 TYPE_NAME, when printing a String value. PR java/1075.
7344
2f9a90b4
AF
73452003-02-20 Adam Fedor <fedor@gnu.org>
7346
d38074a8 7347 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 7348 * objc-lang.c (find_methods): Make static.
2f9a90b4 7349
6f17862b
CF
73502003-02-20 Christopher Faylor <cgf@redhat.com>
7351
7352 * win32-nat.c (get_image_name): Check return value from
7353 ReadProcessMemory.
7354 (child_xfer_memory): Ditto.
7355
715d1656
AO
73562003-02-20 Alexandre Oliva <aoliva@redhat.com>
7357
7358 * configure.in (TARGET_SYSTEM_ROOT): Set default to
7359 ${exec_prefix}/${target_alias}/sys-root. Match explicit
7360 '${exec_prefix}' (in addition to the expansion thereof) as
7361 relocatable.
7362 * configure: Rebuilt.
7363
b1262a02
DC
73642003-02-20 David Carlton <carlton@math.stanford.edu>
7365
7366 * symtab.c (search_symbols): Revert the search_symbols part of my
7367 2002-12-23 patch. Add comment.
7368
7134143f
DJ
73692002-02-20 Daniel Jacobowitz <drow@mvista.com>
7370
7371 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
7372 * dbxread.c (elfstab_build_psymtabs): Don't call
7373 install_minimal_symbols.
7374 (stabsect_build_psymtabs): Likewise.
7375 * elfread.c (elf_symfile_read): Call install_minimal_symbols
7376 earlier.
7377 * somread.c (som_symfile_read): Call install_minimal_symbols
7378 and do_cleanups earlier.
7379 * nlmread.c (nlm_symfile_read): Likewise.
7380 * mdebugread.c (elfmdebug_build_psymtabs): Call
7381 install_minimal_symbols and make appropriate cleanups.
7382
cf466558
KB
73832003-02-20 Kevin Buettner <kevinb@redhat.com>
7384
7385 * solib.c (reload_shared_libraries): New function.
7386 (_initialize_solib): Add callbacks for ``set solib-search-path''
7387 and ``set solib-absolute-prefix''.
7388
de5ad195
DC
73892003-02-20 David Carlton <carlton@math.stanford.edu>
7390
7391 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
7392 expand comment.
7393 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
7394 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
7395 * ada-typeprint.c (ada_typedef_print): Ditto.
7396 * ax-gdb.c (gen_var_ref): Ditto.
7397 * breakpoint.c (print_one_breakpoint): Ditto.
7398 * buildsym.c (finish_block): Ditto.
7399 * c-valprint.c (c_val_print): Ditto.
7400 * expprint.c (print_subexp): Ditto.
7401 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
7402 * infcmd.c (jump_command): Ditto.
7403 * linespec.c (decode_line_2, decode_compound): Ditto.
7404 * maint.c (maintenance_translate_address): Ditto.
7405 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
7406 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
7407 Ditto.
8ffd9b1b
AJ
7408 * p-valprint.c (pascal_val_print): Ditto.
7409 * stabsread.c (define_symbol): Ditto.
de5ad195 7410 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
7411 (print_frame_arg_vars, return_command): Ditto.
7412 * symfile.c (compare_symbols, compare_psymbols): Ditto.
7413 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
7414 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
7415 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
7416 (rbreak_command): Ditto.
7417 * tracepoint.c (tracepoints_info): Ditto.
7418 * typeprint.c (typedef_print): Ditto.
7419 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
7420 * cli/cli-cmds.c (edit_command, list_command): Ditto.
7421 * ada-typeprint.c: Update Copyright.
7422 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
7423 * tracepoint.c, cli/cli-cmds.c: Ditto.
7424
f796e4be
KB
74252003-02-20 Kevin Buettner <kevinb@redhat.com>
7426
7427 * frame.c (generic_unwind_get_saved_register): Make non-static.
7428 * frame.h (generic_unwind_get_saved_register): Declare.
7429 * mips-tdep.c (read_next_frame_reg): Fetch register from
7430 current regcache when frame is NULL.
7431 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
7432 that must be NULL.
7433 (mips_get_saved_register): Call generic_unwind_get_saved_register()
7434 instead of frame_register_unwind().
7435
836cc9f4
AC
74362003-02-20 Andrew Cagney <ac131313@redhat.com>
7437
7438 * remote-sim.c (gdbsim_insert_breakpoint)
7439 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
7440 code.
7441
501eef12
AC
74422003-02-20 Andrew Cagney <ac131313@redhat.com>
7443
7444 * remote.c (_initialize_remote): Add commands "set/show remote
7445 hardware-watchpoint-limit" and "set/show remote
7446 hardware-breakpoint-limit".
7447 (remote_hw_watchpoint_limit): Initialize to -1.
7448 (remote_hw_breakpoint_limit): Ditto.
7449 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
7450
1b6bc7e0
CF
74512003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
7452
7453 * coff-pe-read.c: New file - support reading of minimal symbols from a
7454 portable executable using the export table.
7455 * coff-pe-read.h: New file.
7456 * coffread.c: Include coff-pe-read.h.
7457 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
7458 debugging symbols found.
7459 * Makefile.in (SFILES): Add coff-pe-read.o.
7460 (coff_pe_read_h): Define.
7461 (COMMON_OBS): Add coff-pe-read.o.
7462 (coffread.o): Add coff_pe_read_h dependency.
7463 (coff-pe-read.o): New target.
7464
fe898f56
DC
74652003-02-19 David Carlton <carlton@math.stanford.edu>
7466
7467 * Makefile.in (SFILES): Add block.c.
7468 (block_h): New.
7469 (COMMON_OBS): Add block.o.
7470 (block.o): New.
7471 (x86-64-tdep.o): Add $(block_h).
7472 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
7473 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
7474 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
7475 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
7476 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
7477 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
7478 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
7479 * value.h: Add opaque declaration for struct block.
7480 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
7481 * ada-lang.h: Ditto.
7482 * x86-64-tdep.c: #include "block.h"
7483 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
7484 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
7485 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
7486 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
7487 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
7488 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
7489 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
7490 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
7491 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
7492 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
7493 * symtab.c (block_function): Ditto.
7494 (contained_in): Ditto.
7495 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
7496 block.h. Add opaque declaration for struct block.
7497 * symtab.h: Move block_function and contained_in declarations to
7498 block.h. Add opaque declarations for struct block, struct
7499 blockvector.
7500 (struct block): Move to block.h.
7501 (struct blockvector): Ditto.
7502 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
7503 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
7504 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
7505 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
7506 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
7507 Ditto.
7508 * block.c: New file.
7509 * block.h: New file.
7510
173345b5
TR
75112003-02-19 Theodore A. Roth <troth@openavr.org>
7512
7513 * avr-tdep.c (avr_extract_return_value): Remove function.
7514 (avr_store_return_value): Remove function.
7515 (avr_extract_struct_value_address): Remove function.
7516 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
7517
338ef23d
AC
75182003-02-19 Andrew Cagney <ac131313@redhat.com>
7519
7520 * rs6000-tdep.c: Include "gdb_assert.h".
7521 (registers_e500): Add "acc" and "spefscr".
7522 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
7523 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
7524 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
7525 really is "r0".
7526 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
7527
5412f5f3
KS
75282003-02-18 Keith Seitz <keiths@redhat.com>
7529
7530 * Makefile.in: Add gdbtk-interps.c.
7531
881324eb
KB
75322003-02-18 Kevin Buettner <kevinb@redhat.com>
7533
7534 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
7535 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
7536
6a2f5abf
AC
75372003-02-18 Andrew Cagney <cagney@redhat.com>
7538
7539 * symtab.h (struct objfile): Add opaque declaration.
7540
54c7009d
EZ
75412003-02-18 Elena Zannoni <ezannoni@redhat.com>
7542
7543 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
7544 * dbxread.c (process_one_symbol): Use last_function_start rather
7545 than function_start_offset to find the real beginning of the
7546 current function. The latter is just the text section offset on
7547 some systems, the former is always the real function start.
54c7009d 7548
7ee6d7eb
AC
75492003-02-17 Andrew Cagney <cagney@redhat.com>
7550
7551 * configure.in: Revert ${target} != ${host}.
7552
2846da9b
AC
75532003-02-17 Andrew Cagney <ac131313@redhat.com>
7554
7555 * configure.in (Makefile): Use the test ${target} != ${host},
7556 instead of the absence of the "nm.h" file, to determine of the
7557 configuration non-native.
7558 * configure: Regenerate.
8ffd9b1b 7559
3b27aeea
EZ
75602003-02-14 Elena Zannoni <ezannoni@redhat.com>
7561
fbe586ae 7562 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
7563
7564 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
7565 conditionalize tui_active test.
7566 (lookup_cmd_1): Ditto.
7567
b0b1c2c0
MK
75682003-02-14 Mark Kettenis <kettenis@gnu.org>
7569
7570 * configure.in: Add check for _etext.
7571 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
7572 available.
7573 * config.in, configure: regenerated.
7574
8f05cde5
DJ
75752003-02-14 Daniel Jacobowitz <drow@mvista.com>
7576
7577 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
7578
021e7609
AC
75792003-02-14 Andrew Cagney <ac131313@redhat.com>
7580
7581 * main.c (tui_version): Delete variable.
7582 (captured_main): When --tui, set interpreter_p to "tui" instead of
7583 enabling tui_version.
7584 * printcmd.c (display_command) [TUI]: Test tui_active instead of
7585 tui_version.
7586 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
7587 * cli/cli-cmds.c (disassemble_command): Ditto.
7588 * defs.h (tui_version): Delete declaration.
7589 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
7590 (tui-interp.o): Add rules.
7591 (SUBDIR_TUI_OBS): Add "tui-interp.o".
7592
e325dcec
CF
75932003-02-14 Christopher Faylor <cgf@redhat.com>
7594
36ffb041 7595 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
7596 just-loaded dll.
7597
c4f90d87
JM
75982003-02-12 Jason Molenda (jmolenda@apple.com)
7599
fbe586ae
RH
7600 * symmisc.c (print_objfile_statistics): Include information about
7601 the number of psymtabs and symtabs in each object file.
c4f90d87 7602
e46e5ccd
KS
76032003-02-13 Keith R Seitz <keiths@redhat.com>
7604
7605 * main.h (struct captured_main_args): Add interpreter_p.
7606 * main.c (captured_main): Initialize interpreter_p from context.
7607 * gdb.c (main): Set interpreter_p argument.
7608 * Makefile.in (gdb.o): Add dependency for interps.h.
7609
fe97fe9c
AC
76102003-02-12 Andrew Cagney <ac131313@redhat.com>
7611
7612 * event-top.c (cli_command_loop): Delete declaration.
7613 (_initialize_event_loop): Delete function setting event_loop_hook.
7614 * event-top.h (cli_command_loop): Declare. Update copyright.
7615 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
7616 * interps.c (current_interp_command_loop): When event_loop_p, call
7617 cli_command_loop.
7618
1cdac4ef
AC
76192003-02-12 Andrew Cagney <ac131313@redhat.com>
7620
7621 * interps.h (interp_command_loop_ftype): Change return type to
7622 void.
7623
48037ead
ML
76242003-02-12 Michal Ludvig <mludvig@suse.cz>
7625
7626 * x86-64-tdep.c (x86_64_extract_return_value)
7627 (x86_64_store_return_value): Use regcache instead of regbuf.
7628 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
7629 * x86-64-linux-nat.c (fill_gregset): Use regcache.
7630
033afc63
AC
76312003-02-11 Andrew Cagney <ac131313@redhat.com>
7632
7633 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
7634 * aclocal.m4: Regenerate.
7635 * configure: Regenerate.
7636
7637 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
7638 TCL_LD_SEARCH_FLAGS.
7639
40d02bca
ML
76402003-02-10 Michal Ludvig <mludvig@suse.cz>
7641
7642 * dwarf2cfi.c: Reindented.
7643
11308a41
AC
76442003-02-09 Andrew Cagney <ac131313@redhat.com>
7645
7646 * interps.c (clear_interpreter_hooks): Convert function definition
7647 to ISO C.
7648
e1c1c0f6
DC
76492003-02-07 David Carlton <carlton@math.stanford.edu>
7650
7651 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
7652
ab5d3da6
KB
76532003-02-07 Kevin Buettner <kevinb@redhat.com>
7654
7655 * gdbtypes.h (struct main_type): Move ``length'' field from here...
7656 (struct type): ...to here.
7657 (TYPE_LENGTH): Adjust to reflect different location of ``length''
7658 field.
7659 * gdbtypes.c (make_qualified_type): Set length on newly created type.
7660 (replace_type): Set length on all type variants for a given type.
7661
b8a92b82
AC
76622003-02-07 Andrew Cagney <ac131313@redhat.com>
7663
7664 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
7665 <sys/stat.h>.
7666 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 7667
5cb316ef
AC
76682003-02-06 Andrew Cagney <ac131313@redhat.com>
7669
2555fe1a
AC
7670 * Makefile.in (symm-nat.o): Update dependencies.
7671 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
7672 (lynx-nat.o, ia64-linux-nat.): Ditto.
7673 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
7674 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
7675 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
7676
44270758
AC
7677 * Makefile.in (inflow_h): Define.
7678 (procfs.o, inflow.o, procfs.o): Update dependencies.
7679 * inftarg.c (child_stop): Delete extern declaration of
7680 inferior_process_group. Include "inflow.h".
7681 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
7682 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
7683 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
7684 (our_process_group, inferior_process_group): Extern declarations.
7685
df8f7274
AC
7686 * procfs.c: Include "gdb_assert.h".
7687
5cb316ef
AC
7688 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
7689 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
7690 * jv-typeprint.c (java_type_print_base): Ditto.
7691 * typeprint.c (typedef_print): Eliminate STREQ.
7692 * cli/cli-script.c (define_command, define_command): Ditto.
7693 * main.c (captured_main): Ditto.
7694 * values.c (lookup_internalvar): Ditto.
7695 * utils.c (safe_strerror, parse_escape): Eliminate assignment
7696 within `if' conditional.
7697 * linespec.c (decode_line_2): Ditto.
7698 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
7699 (bfd_openw_with_cleanup): Ditto.
7700
2a28ccea
MK
77012003-02-07 Mark Kettenis <kettenis@gnu.org>
7702
7703 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
7704 legacy_extract_return_value and store_return_value to
7705 legacy_return_value.
7706
786b8124
CF
77072003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
7708
7709 * win32-nat.c (get_relocated_section_addrs): New function. Find
7710 section load addresses for symbol handling in relocated DLLs.
7711 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
7712
b871e4ec
FF
77132003-02-05 Fred Fish <fnf@intrinsity.com>
7714
7715 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
7716 '=' and '!='.
7717 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
7718 with '&' and '=='.
7719 (angel_RDI_info): Ditto.
7720 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
7721 with '&' and '!='.
7722 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 7723
4389a95a 77242003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
7725 Keith Seitz <keiths@redhat.com>
7726 Elena Zannoni <ezannoni@redhat.com>
7727 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
7728
7729 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
7730 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
7731 (SUBDIR_MI_OBS): Add "mi-interp.o".
7732 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
7733 (SFILES): Add "interps.c".
7734 (COMMON_OBS): Add "interps.o".
7735 (interps_h, mi_main_h): Define.
7736 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
7737 (mi-main.o, main.o, event-top.o): Update dependencies.
7738 * cli/cli-interp.c: New file.
7739 * interps.h, interps.c: New files.
7740 * top.c: (gdb_init): Don't install the default interpreter, handed
7741 by captured_main.
7742 * main.c: Include "interps.h".
7743 (interpreter_p): Note that it should malloc'ed.
7744 (captured_command_loop): Call current_interp_command_loop.
7745 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
7746 xfree and xstrdup when updating interpreter_p. Install the
7747 default interpreter. Add hack to stop mi1's copyright notice
7748 being encoded.
7749 * event-top.h (gdb_setup_readline): Declare.
7750 (gdb_disable_readline): Declare.
7751 * event-top.c: Include "interps.h".
7752 (display_gdb_prompt): Call current_interp_display_prompt_p.
7753 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
7754 gdb_stdlog, and gdb_stdtarg.
7755 (_initialize_event_loop): Don't call gdb_setup_readline.
7756 * cli-out.c (cli_out_set_stream): New function.
7757 * cli-out.h (cli_out_set_stream): Declare.
7758
ff3b5810
MK
77592003-02-06 Mark Kettenis <kettenis@gnu.org>
7760
7761 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
7762 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
7763 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
7764 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
7765 config/i386/i386v42mp.mt: Removed.
7766
5b729aa5
MK
77672003-02-05 Mark Kettenis <kettenis@gnu.org>
7768
7769 * configure.tgt (*-*-solaris*): Set gdb_osabi to
7770 GDB_OSABI_SOLARIS.
7771
8cc15142
MC
77722003-02-05 Michael Chastain <mec@shout.net>
7773
7774 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
7775 2.12.1 and earlier versions.
7776
5aa5d4b9
AC
77772003-02-05 Andrew Cagney <ac131313@redhat.com>
7778
7779 Remove orphaned hosts, targets and files.
7780 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
7781 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
7782 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
7783 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
7784 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
7785 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
7786 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
7787 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
7788 * config/sparc/tm-sp64sim.h: Delete.
7789 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
7790 hosts.
7791 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
7792 mips*-dec-mach3* targets.
7793
b68767c1
MC
77942003-02-04 Michael Chastain <mec@shout.net>
7795
7796 * NEWS: Fix typo: sepcifying -> specifying.
7797
5ae7ca1d
MC
77982003-02-04 Michael Chastain <mec@shout.net>
7799
7800 * dwarfread.c: Add documentation on the state of dwarf-1,
7801 looking towards obsoletion.
7802
d08a4280
MC
78032003-02-03 Michael Chastain <mec@shout.net>
7804
7805 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
7806 gdb/testsuite/gdb.c++/pr-1023.exp.
7807
e9be73e4
AC
78082003-02-04 Andrew Cagney <ac131313@redhat.com>
7809
7810 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
7811 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
7812
7813 * utils.c (init_page_info): Delete reference to MPW in comments.
7814 * main.c (captured_main): Delete #ifdef MPW.
7815
05d57f6f
AC
78162003-02-04 Andrew Cagney <ac131313@redhat.com>
7817
8ffd9b1b 7818 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
7819 * monitor.c (monitor_expect): Obsolete reference to m32r.
7820 * configure.tgt: Mark m32r-*-elf* as obsolete.
7821 * MAINTAINERS: Mark m32k as obsolete.
7822 * m32r-rom.c: Obsolete file.
7823 * config/m32r/m32r.mt: Obsolete file.
7824 * config/m32r/tm-m32r.h: Obsolete file.
7825 * m32r-stub.c: Obsolete file.
7826 * m32r-tdep.c: Obsolete file.
7827
8b0e5691
AC
78282003-02-04 Andrew Cagney <ac131313@redhat.com>
7829
7830 * NEWS: Mention that the z8k-zilog-none is obsolete.
7831 * MAINTAINERS: Mark z8k as obsolete.
7832 * configure.tgt: Obsolete the z8k-*-coff* target.
7833 * config/z8k/z8k.mt: Obsolete file.
7834 * config/z8k/tm-z8k.h: Obsolete file.
7835 * z8k-tdep.c: Obsolete file.
7836
67f16606
AC
78372003-02-04 Andrew Cagney <ac131313@redhat.com>
7838
7839 * NEWS: Mention that the mn10200-elf is obsolete.
7840 * configure.tgt: Obsolete mn10200-*-* target.
7841 * breakpoint.c (update_breakpoints_after_exec): Update comment to
7842 mention that the mn10200 is obsolete.
7843 * breakpoint.h: Ditto.
7844 * MAINTAINERS: Mark the mn10200-elf as obsolete.
7845 * config/mn10200/mn10200.mt: Obsolete file.
7846 * config/mn10200/tm-mn10200.h: Obsolete file.
7847 * mn10200-tdep.c: Obsolete file.
7848
fd2299bd
AC
78492003-02-04 Andrew Cagney <ac131313@redhat.com>
7850
7851 * MAINTAINERS: Mark h8500 as obsolete.
7852 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
7853 * findvar.c (value_from_register): Ditto.
7854 * h8500-tdep.c: Mark file as obsolete.
7855 * config/h8500/h8500.mt: Ditto.
7856 * config/h8500/tm-h8500.h: Ditto.
7857 * NEWS: Mention that h8500 is obsolete.
7858
eb9a305d
DC
78592003-02-04 David Carlton <carlton@math.stanford.edu>
7860
7861 * objfiles.c (allocate_objfile): Always set name. Add comment at
7862 start of function.
7863 * jv-lang.c (get_dynamics_objfile): Add comment.
7864
406fc7fb
DC
78652003-02-04 David Carlton <carlton@math.stanford.edu>
7866
7867 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
7868 * printcmd.c (build_address_symbolic): Replace uses of
7869 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
7870 SYMBOL_NAME, and asm_demangle.
7871 Update copyright.
7872
93d91629
DC
78732003-02-04 David Carlton <carlton@math.stanford.edu>
7874
7875 * linespec.c (decode_compound): Extract code into
7876 lookup_prefix_sym.
7877 (lookup_prefix_sym): New function.
7878
1c5cb38e
DC
78792003-02-04 David Carlton <carlton@math.stanford.edu>
7880
7881 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
7882 FLOAT_COERCION_BADNESS.
7883 * gdbtypes.c (rank_one_type): Replace all uses of
7884 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
7885
0cf824c9
JB
78862003-02-04 Jim Blandy <jimb@redhat.com>
7887
7888 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
7889 section, let dwarf_macinfo_section point to it, not
7890 dwarf_loc_section.
7891
a2d356b0
DJ
78922003-02-04 Daniel Jacobowitz <drow@mvista.com>
7893
7894 Pointed out by Anton Blanchard <anton@samba.org>.
7895 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
7896 (ppc_linux_at_sigtramp_return_path): Use it.
7897
2de7ced7
DJ
78982003-02-04 Daniel Jacobowitz <drow@mvista.com>
7899
7900 * defs.h (streq): Add prototype.
7901 * utils.c (streq): New function.
7902
7903 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
7904 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
7905 * mdebugread.c (new_symbol): Likewise.
7906 * stabsread.c (define_symbol): Likewise.
7907 * coffread.c (process_coff_symbol): Likewise.
7908 * dwarfread.c (new_symbol): Likewise.
7909
7910 * minsyms.c (prim_record_minimal_symbol_and_info): Use
7911 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
7912 here.
7913 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
7914 SYMBOL_INIT_DEMANGLED_NAME.
7915 * objfiles.c: Include "hashtab.h".
7916 (allocate_objfile): Call htab_set_functions_ex for the
7917 demangled_names_hash.
7918 (free_objfile): Call htab_delete for the demangled_names_hash.
7919 * objfiles.h (struct htab): Add declaration.
7920 (struct objfile): Add demangled_names_hash.
7921 * symfile.c: Include "hashtab.h".
7922 (reread_symbols): Call htab_delete for the demangled_names_hash.
7923 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
7924 SYMBOL_NAME in the bcache.
7925 * symtab.c: Include "hashtab.h". Update comments.
7926 (create_demangled_names_hash, symbol_set_names): New functions.
7927 (symbol_find_demangled_name): New function, broken out from
7928 symbol_init_demangled_names.
7929 (symbol_init_demangled_names): Use it.
7930 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
7931 (SYMBOL_SET_NAMES): New macro.
7932 (symbol_set_names): Add prototype.
7933
15831452
JB
79342003-02-03 Jim Blandy <jimb@redhat.com>
7935
7936 Use a single, consistent representation for an empty minimal
7937 symbol table in an objfile.
7938 * objfiles.c (terminate_minimal_symbol_table): New function.
7939 (allocate_objfile): Call it.
7940 * objfiles.h (terminate_minimal_symbol_table): New declaration.
7941 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 7942 non-NULL.
15831452
JB
7943 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
7944 objfile has minimal symbols, compare minimal_symbol_count to zero,
7945 instead of comparing msymbols with NULL.
7946 * objfiles.c (have_minimal_symbols): Same.
7947 * solib-sunos.c (solib_add_common_symbols): Call
7948 terminate_minimal_symbol_table.
7949 * symfile.c (reread_symbols): Same.
8ffd9b1b 7950
ffc65945
KB
79512003-02-03 Kevin Buettner <kevinb@redhat.com>
7952
7953 * s390-tdep.c (s390_address_class_type_flags)
7954 (s390_address_class_type_flags_to_name)
7955 (s390_address_class_name_to_type_flags): New functions.
7956 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
7957 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
7958
f211c6d4
MS
79592003-02-03 Michael Snyder <msnyder@redhat.com>
7960
7961 * arm-tdep.c: Fix spell-o in comment.
7962
659b0389
ML
79632003-02-03 Michal Ludvig <mludvig@suse.cz>
7964
7965 * dwarf2cfi.c (pointer_encoding): Added new parameter.
7966 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 7967 error messages to contain BFD filename.
659b0389 7968
3b31d625
EZ
79692003-02-02 Elena Zannoni <ezannoni@redhat.com>
7970
997b089a 7971 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
7972 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
7973 (do_mixed_source_and_assembly): Use
7974 make_cleanup_ui_out_tuple_begin_end and
7975 make_cleanup_ui_out_tuple_begin_end.
7976 (do_mixed_source_and_assembly): Ditto.
7977 * thread.c (do_captured_list_thread_ids): Ditto.
7978 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
7979 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
7980 ui_out_tuple_end): Delete prototypes.
7981 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
7982 ui_out_list_end, ui_out_tuple_end): Delete.
7983
7984 From Kevin Buettner <kevinb@redhat.com>:
7985 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
7986 * ui-out.c (make_cleanup_ui_out_table_begin_end)
7987 (do_cleanup_table_end): New functions.
7988 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
7989 Use cleanups to invoke_ui_out_tuple_end().
7990 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
7991 * cli/cli-setshow.c (cmd_show_list): Use
7992 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 7993
5b181d62
AC
79942003-02-02 Andrew Cagney <ac131313@redhat.com>
7995
7996 * frame.c (frame_unwind_register): New function.
7997 (frame_unwind_unsigned_register): Use.
7998 (frame_unwind_signed_register): Use.
7999 (frame_read_register): New function.
8000 * frame.h (frame_unwind_register): Declare.
8001 (frame_read_register): Declare.
8002
8003 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
8004 and frame_unwind_register instead of read_memory, write_register
8005 and deprecated_write_register_bytes.
8006
5f601589
AC
80072003-02-02 Andrew Cagney <ac131313@redhat.com>
8008
8009 * frame.h: Note that namelen can be negative.
8010 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
8011 NAME's length.
8012
8013 * NEWS: Mention that the d10v's `regs' command is deprecated.
8014 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
8015 (d10v_print_registers_info): New function.
8016 (show_regs): Call d10v_print_registers_info.
8017 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
8018
6a3fe0a4
MK
80192003-02-02 Mark Kettenis <kettenis@gnu.org>
8020
8021 * stack.c (print_frame_info): Restore call to annotate_frame_begin
8022 lost in the previous patch.
8023
075559bc
AC
80242003-02-01 Andrew Cagney <ac131313@redhat.com>
8025
8026 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
8027 * stack.c (print_frame_info_base): Output complete FRAME tuple
8028 for synthesized frames.
075559bc 8029
6789195b
AC
80302003-02-02 Andrew Cagney <ac131313@redhat.com>
8031
8032 * mips-nat.c (zerobuf): Delete.
8033 (fetch_inferior_registers): Alloc local zerobuf.
8034 (fetch_core_registers): Alloc local zerobuf.
8035 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
8036 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
8037 * thread-db.c (thread_db_store_registers): Ditto.
8038 * sh-tdep.c (sh_do_register): Ditto.
8039 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
8040 * remote-sim.c (gdbsim_store_register): Ditto.
8041 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8042 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8043 * monitor.c (monitor_supply_register): Ditto.
8044 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
8045 * mips-nat.c (fetch_inferior_registers): Ditto.
8046 * m68klinux-nat.c (fetch_register): Ditto.
8047 * lynx-nat.c (fetch_inferior_registers): Ditto.
8048 (fetch_inferior_registers): Ditto.
8049 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
8050 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8051 (hpux_thread_store_registers): Ditto.
8052 * hppah-nat.c (fetch_register): Ditto.
8053 * hppab-nat.c (fetch_register): Ditto.
8054 * hppa-tdep.c (pa_register_look_aside): Ditto.
8055 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
8056 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
8057
e669114a
AC
80582003-02-01 Andrew Cagney <ac131313@redhat.com>
8059
8060 * gdbarch.sh: Explictly specify all method levels. When a
8061 variable with an empty level, provide a non-multi-arch default.
8062 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
8063 * gdbarch.h: Re-generate.
8064 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
8065 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
8066
9a043c1d
AC
80672003-02-01 Andrew Cagney <ac131313@redhat.com>
8068
8069 * defs.h (host_pointer_to_address): Delete declaration.
8070 (address_to_host_pointer): Delete declaration.
8071 * utils.c (host_pointer_to_address): Delete function.
8072 (address_to_host_pointer): Delete function.
8073 * procfs.c (procfs_address_to_host_pointer): New function.
8074 * procfs.c (proc_set_watchpoint): Use.
8075 (procfs_can_use_hw_breakpoint): Update comments.
8076 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
8077 (som_solib_add): Use.
8078 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
8079 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 8080
7ca9f392
AC
80812003-02-01 Andrew Cagney <ac131313@redhat.com>
8082
94bbfd30
AC
8083 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
8084 strlen d_name.
8085
7ca9f392
AC
8086 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
8087 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
8088 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
8089 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
8090 (define_symbol): Update.
8091 * symfile.c (generic_load): Remove references to nindy.
8092 * symtab.c: Remove references to nindy.
8093
31a85ea2
AC
80942003-02-01 Andrew Cagney <ac131313@redhat.com>
8095
8096 * infcmd.c (print_float_info): Delete code conditional on
8097 FLOAT_INFO.
8098 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
8099 * config/m68k/nm-apollo68b.h: Ditto.
8100 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
8101 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
8102 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
8103
f6e85fc8
MK
81042003-02-01 Mark Kettenis <kettenis@gnu.org>
8105
6015b6a0
MK
8106 * config/i386/tm-i386os9k.h: Removed.
8107
f7a30bdf
MK
8108 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
8109 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
8110 they're identical to i[3456]86-*-sysv* now.
8111 * config/i386/i386v32.mh: Removed.
8112 * config/i386/xm-i386v32.h: Removed.
8113 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
8114
28d52111
MK
8115 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
8116
4d3f6bce
MK
8117 * config/i386/i386dgux.mh: Removed.
8118 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
8119
f6e85fc8
MK
8120 * configure.in: Fix typo.
8121 * configure: Regenerated.
8122
53955967
DC
81232003-01-31 David Carlton <carlton@math.stanford.edu>
8124
8125 * dwarf2read.c (dwarf2_locate_sections): Set
8126 dwarf_ranges_section.
8127
b1364885
AC
81282003-01-31 Andrew Cagney <ac131313@redhat.com>
8129
8dbb1c65
AC
8130 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
8131 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 8132
8731e58e
AC
8133 * utils.c: Re-indent.
8134
b1364885
AC
8135 * config/djgpp/fnchange.lst: Delete nindy files.
8136 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
8137 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
8138 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
8139 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
8140 * nindy-share/README, nindy-share/Onindy.c: Delete files.
8141 * nindy-tdep.c, nindy-share/Makefile: Delete files.
8142 * Makefile.in (init.c): Remove nindy references.
8143 (saber_gdb): Delete rule.
8144 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
8145 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
8146 and a68v-nat.c.
8147 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
8148 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
8149 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
8150 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
8151 nindy-share/stop.h.
8152 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
8153 * saber.suppress: Delete file.
8154
086df311
DJ
81552003-01-31 Daniel Jacobowitz <drow@mvista.com>
8156
8157 * dbxread.c (stabs_data): New static variable.
8158 (fill_symbuf): Support an in-memory buffer for stabs data.
8159 (stabs_seek): New function.
8160 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
8161 (read_ofile_symtab): Use stabs_seek.
8162 (elfstab_build_psymtabs): Take an asection* instead of
8163 an offset and size. Relocate the stabs data if necessary.
8164 Save the section* for dbx_psymtab_to_symtab.
8165 * dwarf2read.c: Add section variables for each debug section.
8166 (dwarf2_locate_sections): Fill them in.
8167 (dwarf2_read_section): Take an asection* argument.
8168 Relocate the section contents if necessary.
8169 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
8170 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
8171 it to dwarf2_read_section.
8172 (dwarf2_build_frame_info): Update callers.
8173 * elfread.c (elf_symfile_read): Update call to
8174 elfstab_build_psymtabs.
8175 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
8176 (DBX_STAB_SECTION): New macro.
8ffd9b1b 8177 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
8178 * symfile.c (symfile_dummy_outputs): New function.
8179 (symfile_relocate_debug_section): New function.
8180 * symfile.h (symfile_relocate_debug_section): Add prototype.
8181
87d1b352
RH
81822003-01-31 Richard Henderson <rth@redhat.com>
8183
8184 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
8185 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
8186 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
8187 * alpha-tdep.c (alpha_register_name): Add "unique".
8188 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
8189 (ALPHA_UNIQUE_REGNUM): New.
8190 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
8191
c48861fb
AC
81922003-01-31 Andrew Cagney <ac131313@redhat.com>
8193
8194 * README: Remove reference to Ericsson 1800 monitor.
8195 * Makefile.in (remote-es.o): Delete rule.
8196 (ALLDEPFILES): Delete remote-es.c.
8197 * remote-es.c: Delete file.
8198 * config/m68k/es1800.mt: Delete file.
8199 * config/djgpp/fnchange.lst: Update.
8200 * configure.tgt: Delete m68*-ericsson-* target.
8201
d764a824
AF
82022003-01-31 Adam Fedor <fedor@gnu.org>
8203
8204 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
8205 Remove duplicate/shadowing variable of same name.
8206
fe36c4f4
JB
82072003-01-30 Jim Blandy <jimb@redhat.com>
8208
8209 * symfile.c (find_separate_debug_file): Assert that the objfile's
8210 directory name we compute ends with a slash, and then assume that
8211 that's so everywhere we use it.
8212
cb741690
DJ
82132003-01-30 Daniel Jacobowitz <drow@mvista.com>
8214
8215 * valops.c (value_assign): Flush frame cache after stores to memory
8216 also.
8217
96ee5227
AC
82182003-01-30 Andrew Cagney <ac131313@redhat.com>
8219
8220 * Makefile.in (mon960-rom.o): Delete rule.
8221 * mon960-rom.c: Delete file.
8222
7f6104a9
AC
82232003-01-30 Andrew Cagney <ac131313@redhat.com>
8224
8225 * d10v-tdep.c: Include "frame-unwind.h".
8226 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
8227 list.
8228 (next_addr, uses_frame): Delete.
8229 (struct d10v_unwind_cache): Define.
8230 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
8231 Use info instead of next_addr and uses_frame globals.
8232 (d10v_frame_init_saved_regs): Delete function.
8233 (d10v_init_extra_frame_info): Delete function.
8234 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
8235 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
8236 init_frame_pc or frame_saved_pc.
8237 (d10v_pop_frame): Delete function.
8238 (do_d10v_pop_frame): Delete function.
8239 (d10v_frame_chain): Delete function.
8240 (d10v_frame_chain_valid): Delete function.
8241 (d10v_frame_pc_unwind): New function.
8242 (d10v_frame_id_unwind): New function.
8243 (saved_regs_unwinder): New function.
8244 (d10v_frame_register_unwind): New function.
8245 (d10v_frame_pop): New function.
8246 (d10v_frame_unwind): New variable.
8247 (d10v_frame_p): New function.
8248 (d10v_frame_saved_pc): Delete function.
8249 * Makefile.in (d10v-tdep.o): Update dependencies.
8250
cad2e848
JB
82512003-01-30 J. Brobecker <brobecker@gnat.com>
8252
8253 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
8254 causing some regressions due to a change in the default value
8255 for this macro.
8256
af34e669
DJ
82572003-01-29 Richard Henderson <rth@redhat.com>
8258 Elena Zannoni <ezannoni@redhat.com>
8259 Daniel Jacobowitz <drow@mvista.com>
8260
8261 Fix PR gdb/961.
8ffd9b1b 8262 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
8263 variables.
8264 (RANGES_SECTION): New.
8265 (dwarf_ranges_buffer): New variable.
8266 (struct comp_unit_head): Add member "die".
8267 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
8268 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
8269 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
8270 (dwarf2_locate_sections): Likewise.
8271 (dwarf2_build_psymtabs): Read .debug_ranges.
8272 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
8273 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
8274 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
8275 Look for DW_AT_ranges and return the bounding box.
8276
baa93fa6
CF
82772003-01-29 Brian Ford <ford@vss.fsi.com>
8278
8279 * win32-nat.c (cygwin_pid): Removed as unused.
8280 (child_attach): Try fall back to Cygwin pid.
8281
c63f977f
JB
82822003-01-29 Jim Blandy <jimb@redhat.com>
8283
8284 * objfiles.h (struct objfile): Doc fix.
8285
d62d1979
AC
82862003-01-29 Andrew Cagney <ac131313@redhat.com>
8287
8288 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
8289 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
8290 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
8291 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
8292 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
8293 (FRAME_SAVED_PC): Change to a function with predicate.
8294 * gdbarch.h, gdbarch.c: Re-generate.
8295
1ae18a04
AC
82962003-01-28 Andrew Cagney <ac131313@redhat.com>
8297
52287340
AC
8298 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
8299
1ae18a04
AC
8300 * complaints.c (complain): Delete function.
8301 * complaints.h (struct deprecated_complaint): Delete definition.
8302 (complain): Delete declaration.
8303
f2c16bd6
KB
83042003-01-28 Kevin Buettner <kevinb@redhat.com>
8305
8306 * mips-tdep.c (mips_init_extra_frame_info): Return early for
8307 dummy frames.
8308
a94dd1fd
AC
83092003-01-27 Andrew Cagney <ac131313@redhat.com>
8310
8311 * sentinel-frame.h, sentinel-frame.c: New files.
8312 * Makefile.in (frame.o): Update dependencies.
8313 (SFILES): Add sentinel-frame.c.
8314 (sentinel_frame_h): Define.
8315 (COMMON_OBS): Add sentinel-frame.o.
8316 (sentinel-frame.o): Specify dependencies.
8317 * frame.c: Include "sentinel-frame.h".
8318 (frame_register_unwind): Rewrite assuming that there is always a a
8319 ->next frame.
8320 (frame_register, generic_unwind_get_saved_register): Ditto.
8321 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
8322 (create_sentinel_frame, unwind_to_current_frame): New functions.
8323 (get_current_frame): Rewrite using create_sentinel_frame and
8324 unwind_to_current_frame. When possible, always create a frame.
8325 (create_new_frame): Set next to the sentinel frame.
8326 (get_next_frame): Rewrite. Don't go below the level 0 frame.
8327 (deprecated_update_frame_pc_hack): Update the next frame's PC and
8328 ID cache when necessary.
8329 (frame_saved_regs_id_unwind): Use frame_relative_level.
8330 (deprecated_generic_get_saved_register): Use frame_relative_level,
8331 get_frame_saved_regs, get_frame_pc, get_frame_base and
8332 get_next_frame.
8333 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
8334 frame_register.
8335
5378adc4
DJ
83362003-01-27 Daniel Jacobowitz <drow@mvista.com>
8337
8338 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
8339
51ee2ddc
DJ
83402003-01-27 Daniel Jacobowitz <drow@mvista.com>
8341
8342 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
8343 (maintenance_set_profile_cmd): Use error () instead of warning ().
8344
d9feb4e7
DJ
83452003-01-27 Daniel Jacobowitz <drow@mvista.com>
8346
8347 * configure.in: Check that -pg works if using --enable-profiling.
8348 Check for monstartup and _mcleanup regardless of --enable-profiling.
8349 * maint.c: Check for monstartup and _mcleanup before using them.
8350 * config.in: Regenerated.
8351 * configure: Regenerated.
8352
2d188dd3
NC
83532003-01-24 Nick Clifton <nickc@redhat.com>
8354
8355 * Add sh2e support:
8356
8357 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
8358
8359 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
8360 (sh2e_show_regs): New.
8361 (sh_gdbarch_init): Handle bfd_mach_sh2e.
8362 * config/sh/tm-sh.h: Added sh2e to comments.
8363
cb3c37b2
JB
83642003-01-23 Jim Blandy <jimb@redhat.com>
8365
8366 * symfile.c (syms_from_objfile): Don't print the "(no debugging
8367 symbols found)" message here; we haven't checked for a separate
8368 debug info file yet, so we don't know yet.
8369 (symbol_file_add_with_addrs_or_offsets): Print it here, after
8370 we've looked everywhere. Also, there's no need to print a special
8371 message when we're loading the separate debug info file: the one
8372 symbol_file_add prints is fine.
8373
5b5d99cf
JB
83742003-01-23 Alexander Larsson <alexl@redhat.com>
8375 Jim Blandy <jimb@redhat.com>
8376
8377 Add support for executables whose debug info has been separated
8378 out into a separate file, leaving only a link behind.
8379 * objfiles.h (struct objfile): New fields: separate_debug_objfile
8380 and separate_debug_objfile_backlink.
8381 (put_objfile_before): New declaration.
8382 * symfile.c: #include "filenames.h".
8383 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
8384 debug info in a separate file, read that, too. Save the addrs
8385 argument, so we can use it again to read the separated debug info;
8386 syms_from_objfile modifies the table we pass it.
8387 (reread_symbols): After re-reading an objfile, call
8388 reread_separate_symbols to refresh its separate debug info
8389 objfile, if it has one.
8390 (reread_separate_symbols, find_separate_debug_file,
8391 get_debug_link_info, separate_debug_file_exists): New functions.
8392 (debug_file_directory): New global var.
8393 (_initialize_symfile): Initialize debug_file_directory, and
8394 provide the new `set debug-file-directory' command to let the user
8395 change it.
8396 * objfiles.c (free_objfile): If this objfile has its debug info in
8397 a separate objfile, free that one too. If this is itself a
8398 separate debug info objfile, clear our parent's backlink.
8399 (put_objfile_before): New function.
8400 * utils.c (gnu_debuglink_crc32): New function.
8401 * defs.h (gnu_debuglink_crc32): New declaration.
8402 * Makefile.in (symfile.o): Note dependency on "filenames.h".
8403 * configure.in: Handle --with-separate-debug-dir config option.
8404 * acinclude.m4 (AC_DEFINE_DIR): New macro.
8405 * acconfig.h (DEBUGDIR): New macro.
8406 * configure, aclocal.m4, config.in: Regenerated.
8407
7e8580c1
JB
84082003-01-22 Jim Blandy <jimb@redhat.com>
8409
7904e09f
JB
8410 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
8411 like the old symbol_file_add, but taking new arguments: you can
8412 now pass in either a `struct section_addr_info' list to say where
8413 each section is loaded, or a `struct section_offsets' table. Pass
8414 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 8415 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
8416 with the appropriate quiescent values for the new arguments.
8417
7e8580c1
JB
8418 * symfile.c: #include "gdb_assert.h".
8419 (syms_from_objfile): Add the ability to pass in a section offset
8420 table directly, as an alternative to the section_addr_info table.
8421 Document arguments better.
8422 (symbol_file_add): Pass extra arguments to syms_from_objfile.
8423 * symfile.h (syms_from_objfile): Update declaration.
8424 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
8425 syms_from_objfile.
8426 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
8427
d28f9cdf
DJ
84282003-01-22 Daniel Jacobowitz <drow@mvista.com>
8429
8430 Original patch by Tom Tromey <tromey@cygnus.com> and
8431 Jason Molenda <jmolenda@apple.com>.
8432 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
8433 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
8434 * NEWS: Mention profiling.
8435 * configure.in (--enable-gdbtk): Fix typo.
8436 (--enable-profiling): New. Set PROFILE_CFLAGS.
8437 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
8438 Fill in function.
8439 (profiling_state): New variable.
8440 (mcleanup_wrapper): New function.
8441 (_initialize_maint): Remove NOTYET, fix call to
8442 add_setshow_boolean_cmd for "maint set profile".
8443 * configure: Regenerated.
8444
df21e465
MH
84452003-01-21 Martin M. Hunt <hunt@redhat.com>
8446
8447 * Makefile.in (install-gdbtk): Install PNG images too.
8448
73c1f219
AC
84492003-01-21 Andrew Cagney <ac131313@redhat.com>
8450
8451 * exec.c (text_start): Delete global variable.
8452 (exec_file_attach): Make text_start local to the function.
8453 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
8454 * valops.c (hand_function_call): Delete code that handles
8455 BEFORE_TEXT_END and AFTER_TEXT_END.
8456 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
8457 of CALL_DUMMY_LOCATION.
8458 * gdbarch.c: Regenerate.
8459 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
8460 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
8461 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
8462 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
8463 (text_end): Delete extern declaration.
8464
eb4f72c5
AC
84652003-01-21 Andrew Cagney <ac131313@redhat.com>
8466
8467 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
8468 * blockframe.c (backtrace_below_main): Move to "frame.c".
8469 (frame_chain_valid): Delete check for backtrace_below_main.
8470 (_initialize_blockframe): Delete initialization, move ``set
8471 backtrace-below-main'' command to "frame.c".
8472 (do_flush_frames_sfunc): Delete function.
8473 * frame.c: Include "command.h" and "gdbcmd.h".
8474 (frame_type_from_pc): New function.
8475 (create_new_frame): Use frame_type_from_pc.
8476 (legacy_get_prev_frame): New function.
8477 (get_prev_frame): Rewrite. When an old style frame, call
8478 legacy_get_prev_frame. Otherwize, unwind the PC first.
8479 (_initialize_frame): Add ``set backtrace-below-main'' command.
8480 * Makefile.in (frame.o): Update dependencies.
8481
778ce8cc
AC
84822003-01-19 Andrew Cagney <ac131313@redhat.com>
8483
8484 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
8485 DEPRECATED_REGISTERS_INFO.
8486
01c193c8
AC
84872003-01-19 Andrew Cagney <ac131313@redhat.com>
8488
8489 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
8490 Maintainers'. Update `Various Maintainers'.
8491
dedc2a2b
AC
84922003-01-19 Andrew Cagney <ac131313@redhat.com>
8493
8494 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
8495 * gdbarch.sh (POP_FRAME): Change to function with predicate.
8496 Suppress actual parameters when `-'.
8497 * gdbarch.h, gdbarch.c: Regenerate.
8498
b7261c70
AC
84992003-01-19 Andrew Cagney <ac131313@redhat.com>
8500
8501 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
8502 code handling dummy frames.
8503
dbe9fe58
AC
85042003-01-19 Andrew Cagney <ac131313@redhat.com>
8505
8506 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
8507 (struct frame_unwind): Add field pop.
8508 * frame.h (frame_pop): Declare.
8509 * frame.c (frame_saved_regs_pop): New function.
8510 (trad_frame_unwinder): Add frame_saved_regs_pop.
8511 (frame_pop): New function.
8512 * dummy-frame.c (dummy_frame_pop): New function.
8513 (discard_innermost_dummy): New function.
8514 (generic_pop_dummy_frame): Use discard_innermost_dummy.
8515 (dummy_frame_unwind): Add dummy_frame_pop.
8516 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
8517 * valops.c (hand_function_call): Ditto.
8518 * stack.c (return_command): Ditto.
8519
570b8f7c
AC
85202003-01-18 Andrew Cagney <ac131313@redhat.com>
8521
8522 * cris-tdep.c: Fix function declaration indentation.
8523 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
8524 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
8525 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
8526 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
8527 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
8528 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
8529
85302003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
8531
8532 * README (Unpacking and Installation -- quick overview):
8533 Warn against ".../gdb-5.3/gdb/configure".
8534
494cca16
AC
85352003-01-18 Andrew Cagney <ac131313@redhat.com>
8536
8537 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
8538 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
8539 (struct frame_unwind): Declare opaque.
8540 (dummy_frame_p): Declare function.
8541 * dummy-frame.c (dummy_frame_id_unwind): Make static.
8542 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
8543 * dummy-frame.c: Include "frame-unwind.h".
8544 (dummy_frame_p): New function.
8545 (dummy_frame_unwind): New variable.
8546 * frame.c: Include "frame-unwind.h".
8547 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
8548 to use the new unwind field.
8549 (set_unwind_by_pc): Delete function.
8550 (create_new_frame, get_prev_frame): Set unwind field using
8551 frame_unwind_find_by_pc.
8552 (trad_frame_unwind, trad_frame_unwinder): New variables.
8553 * frame.h (trad_frame_unwind): Declare variable.
8554 (frame_id_unwind_ftype): Delete declaration.
8555 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
8556 (struct frame_unwind): Declare opaque.
8557 (struct frame_info): Replace the fields id_unwind, pc_unwind and
8558 register_unwind with a single unwind pointer.
8559 * frame-unwind.h, frame-unwind.c: New files.
8560 * Makefile.in (SFILES): Add frame-unwind.c.
8561 (frame_unwind_h): Define.
8562 (COMMON_OBS): Add frame-unwind.o.
8563 (frame-unwind.o): Specify dependencies.
8564 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 8565
4efb68b1
AC
85662003-01-18 Andrew Cagney <ac131313@redhat.com>
8567
8568 * ada-valprint.c: Eliminate PTR.
8569 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
8570 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
8571 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
8572 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
8573 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
8574 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
8575 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 8576
a84d24ee
AC
85772003-01-17 Andrew Cagney <ac131313@redhat.com>
8578
762f08a3
AC
8579 * main.c (captured_main): Don't use PTR.
8580 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
8581 * gdbtypes.c (lookup_primitive_typename): Ditto.
8582 (lookup_struct_elt_type): Ditto.
8583 * f-valprint.c (info_common_command): Ditto.
8584 (list_all_visible_commons): Ditto.
8585 * jv-typeprint.c (java_type_print_base): Ditto.
8586
a84d24ee
AC
8587 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
8588 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
8589 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
8590 i386-interix-nat.c and i386-interix-tdep.c. Rename
8591 m68klinux-nat.c and m68klinux-tdep.c. Rename
8592 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
8593 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
8594 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
8595 * main.c (captured_main): Use xfree, not free.
8596
c170fb60
AC
85972003-01-16 Andrew Cagney <ac131313@redhat.com>
8598
8599 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
8600 ID back using a parameter.
8601 * frame.c (frame_id_unwind): Update call.
8602 (frame_saved_regs_id_unwind): Update.
8603 * dummy-frame.c (dummy_frame_id_unwind): Update function.
8604 * dummy-frame.h (struct frame_id): Add opaque declaration.
8605 (dummy_frame_id_unwind): Update declaration.
8606
867f3898
AC
86072003-01-15 Andrew Cagney <ac131313@redhat.com>
8608
8609 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
8610
40622be8 86112003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 8612
40622be8 8613 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 8614
ae66c1fc
EZ
86152003-01-14 Elena Zannoni <ezannoni@redhat.com>
8616
997b089a 8617 Fix PR gdb/898
ae66c1fc
EZ
8618 * breakpoint.c (until_break_command): Add new argument. Use it to
8619 decide whether to stop only at the current frame or not.
8620 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 8621 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
8622 call.
8623 (advance_command): New function.
8624 (_initialize_infcmd): Update help string for 'until' command.
8625 Add new 'advance' command.
8626
a04257e6
DC
86272003-01-14 David Carlton <carlton@math.stanford.edu>
8628
8629 * linespec.c (decode_line_1): Normalize comments.
8630 (set_flags): Ditto.
8631 (locate_first_half): Ditto.
8632 (decode_compound): Ditto.
8633 (symtab_from_filename): Ditto.
8634 (decode_all_digits): Ditto.
8635 (decode_dollar): Ditto.
8636 (find_methods): Ditto.
8637 (find_toplevel_char): Ditto.
8638
1bac305b
AC
86392003-01-13 Andrew Cagney <ac131313@redhat.com>
8640
8641 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
8642 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
8643 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
8644 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
8645 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
8646 * language.c, language.h, m32r-tdep.c: Update copyright.
8647 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
8648 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
8649 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
8650 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
8651 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
8652 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
8653
25caa7a8
EZ
86542003-01-13 Elena Zannoni <ezannoni@redhat.com>
8655
8656 * stabsread.h (process_later, resolve_cfront_continuation):
8657 Obsolete.
8658 Update copyright years.
8659 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
8660 Update copyright year.
8661 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 8662 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
8663 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
8664 Update copyright year.
8665 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
8666 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
8667 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
8668 (parse_partial_symbols): Obsolete cfront support.
8669 * stabsread.c
8670 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
8671 macros.
8672 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
8673 read_cfront_baseclasses, read_cfront_member_functions,
8674 resolve_cfront_continuation,read_cfront_static_fields,
8675 copy_cfront_struct_fields): Obsolete functions.
8676 (define_symbol, read_one_struct_field): Obsolete cfront support.
8677 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
8678 Update Copyright year.
8679
7789c6f5
EZ
86802003-01-13 Elena Zannoni <ezannoni@redhat.com>
8681
8682 * stack.c (print_frame_info, print_stack_frame_base_stub,
8683 print_stack_frame_base, show_and_print_stack_frame_stub,
8684 show_and_print_stack_frame, print_only_stack_frame_stub,
8685 print_only_stack_frame): Delete functions.
8686 (print_stack_frame_stub): Call print_frame_info instead of
8687 print_frame_info_base.
8688 (print_frame_info_base): Rename to print_frame_info.
8689 (backtrace_command_1): Call print_frame_info, instead of
8690 print_frame_info_base.
8691 (current_frame_command): Call print_stack_frame, instead of
8692 print_only_stack_frame.
8693 (frame_command): Call print_stack_frame, instead of
8694 show_and_print_stack_frame.
8695 (up_command): Ditto.
8696 (down_command): Ditto.
8697 * frame.h (print_only_stack_frame): Delete prototype.
8698 * infrun.c (normal_stop): Call print_stack_frame, instead of
8699 show_and_print_stack_frame.
8700 * thread.c (info_threads_command): Call print_stack_frame, instead
8701 of print_only_stack_frame.
8702
3f5a3016
AC
87032003-01-13 Andrew Cagney <ac131313@redhat.com>
8704
d99ba314
AC
8705 * README (Graphical interface to GDB): Update URL. Point at
8706 gdb/links/.
8707
3f5a3016
AC
8708 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
8709 version match.
8710
083ae935
DJ
87112003-01-13 Daniel Jacobowitz <drow@mvista.com>
8712
8713 * symtab.c (find_pc_sect_line): Don't consider end-of-function
8714 lines.
8715
5365276c
DJ
87162003-01-13 Daniel Jacobowitz <drow@mvista.com>
8717
8718 * thread-db.c (attach_thread): Prototype.
8719 (struct private_thread_info): Remove lwpid. Add thread handle (th),
8720 thread information (ti), and valid flags (th_valid, ti_valid).
8721 (attach_thread): Move target_pid_to_str call to after the thread
8722 is added to GDB's list. Initialize the cache.
8723 (thread_get_info_callback, thread_db_map_id2thr)
8724 (thread_db_get_info): New functions.
8725 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
8726 (thread_db_store_registers, thread_db_thread_alive)
8727 (thread_db_get_thread_local_address): Use them.
8728 (thread_db_pid_to_str): Likewise. Return "Missing" instead
8729 of calling error() for threads in unknown state.
8730
8731 (clear_lwpid_callback): New function.
8732 (thread_db_resume): Use it to clear the cache.
8733
9fc30b6b
DJ
87342003-01-13 Daniel Jacobowitz <drow@mvista.com>
8735
8736 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
8737 (resume_callback): Remove dead code.
8738
8f871025
AC
87392003-01-13 Andrew Cagney <ac131313@redhat.com>
8740
8741 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
8742 predicate.
8743 * gdbarch.h, gdbarch.c: Regenerate.
8744 * stack.c (frame_info): Only initialize the saved registers when
8745 FRAME_INIT_SAVED_REGS_P.
8746 * frame.c (frame_saved_regs_register_unwind): Assert
8747 FRAME_INIT_SAVED_REGS_P.
8748 (deprecated_generic_get_saved_register): Ditto.
8749
3f565f1e
DJ
87502003-01-13 Daniel Jacobowitz <drow@mvista.com>
8751
8752 * source.c (openp): Squelch warning about "filename".
8753
072b1022
DJ
87542003-01-13 Daniel Jacobowitz <drow@mvista.com>
8755
8756 * source.c (openp): If the file does not exist don't necessarily
8757 search the path.
8758
973ccf8b
DJ
87592003-01-13 Daniel Jacobowitz <drow@mvista.com>
8760
8761 Fix PR gdb/872.
8762 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
8763 (integer_types_same_name_p): New function.
8764 (rank_one_type): Use it.
8765 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
8766
030292b7
DJ
87672003-01-13 Daniel Jacobowitz <drow@mvista.com>
8768
8769 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
8770 variables.
8771 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
8772 * configure.in: Add --with-sysroot.
8773 * configure: Regenerated.
8774 * main.c (gdb_sysroot): New variable.
8775 (captured_main): Initialize gdb_sysroot.
8776 * defs.h (gdb_sysroot): New extern declaration.
8777 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
8778
afb5d334
MC
87792003-01-12 Michael Chastain <mec@shout.net>
8780
8781 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
8782
751ceeb4
MC
87832003-01-12 Michael Chastain <mec@shout.net>
8784
8785 * top.c (print_gdb_version): Bump copyright year to 2003.
8786
94cd26f8
DC
87872003-01-12 David Carlton <carlton@bactrian.org>
8788
8789 * linespec.c (symtab_from_filename): Rename variable 's' to
8790 'file_symtab'.
8791
1ce79225
AC
87922003-01-12 Andrew Cagney <ac131313@redhat.com>
8793
8794 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
8795 dummy frame.
8796 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
8797
fa1fd571
AC
87982003-01-12 Andrew Cagney <ac131313@redhat.com>
8799
8800 * d10v-tdep.c: Include "gdb_assert.h".
8801 (d10v_store_return_value): Rewrite to match current interface.
8802 (d10v_extract_struct_value_address): Ditto.
8803 (d10v_extract_return_value): Ditto.
8804 (d10v_gdbarch_init): Set store_restore_value,
8805 extract_struct_value_address and extract_return_value.
8806
68b8d23e
JB
88072003-01-12 J. Brobecker <brobecker@gnat.com>
8808
8809 * hpread.c (set_namestring): New procedure replacing the
8810 SET_NAMESTRING macro.
8811 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
8812 by calls to set_namestring.
8813
88142003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
8815
8816 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
8817 a compilation warning.
8818 (hpread_process_one_debug_symbol): Likewise.
8819
88d262ca
DC
88202003-01-10 David Carlton <carlton@math.stanford.edu>
8821
8822 * linespec.c (decode_line_1): Rename variable 's' to
8823 'file_symtab'.
8824 (decode_all_digits): Rename argument 's' to 'file_symtab'.
8825 (decode_dollar): Ditto.
8826 (decode_variable): Ditto.
8827 (symbol_found): Ditto.
8828
86669319
MC
88292003-01-09 Michael Chastain <mec@shout.net>
8830
8831 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
8832
616a9dc4
CV
88332003-01-07 Corinna Vinschen <vinschen@redhat.com>
8834
8835 * win32-nat.c (set_process_privilege): New function.
8836 (child_attach): Call set_process_privilege() to enable the
8837 SE_DEBUG_NAME user privilege if available in process token.
8838
3269bcfa
JB
88392003-01-10 J. Brobecker <brobecker@gnat.com>
8840
8841 * hpread.c (hpread_process_one_debug_symbol): Fix a small
8842 compilation error in the previous revision.
8843
2b0ee454
DC
88442003-01-09 David Carlton <carlton@math.stanford.edu>
8845
8846 * linespec.c: Update copyright.
8847
b3ba1b44
DJ
88482003-01-09 Daniel Jacobowitz <drow@mvista.com>
8849
8850 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
8851 than inferior_ptid.
8852 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
8853
4ef3f3be
AC
88542003-01-09 Andrew Cagney <ac131313@redhat.com>
8855
479ab5a0
AC
8856 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
8857 Update comments.
8858 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
8859 (frame_saved_regs_zalloc): Update.
8860 (frame_saved_regs_register_unwind): Update.
8861 (create_new_frame): Update.
8862 (get_prev_frame): Update.
8863 (frame_extra_info_zalloc): Update.
8864 (deprecated_get_frame_saved_regs): Update.
8865 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
8866 * cris-tdep.c: Update comment.
8867
bde58177
AC
8868 * somsolib.h: Fix function indentation.
8869 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
8870 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
8871 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
8872 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
8873 * somsolib.c, inftarg.c: Remove assignment in if conditional.
8874
4ef3f3be
AC
8875 * infrun.c (follow_fork): Use ISO C definition.
8876 * expprint.c (print_subexp): Use xfree instead of free.
8877 * charset.c: Include "gdb_string.h" instead of <string.h>.
8878 (register_iconv_charsets): Use ISO C definition.
8879 (host_charset, target_charset): Ditto.
8880 * Makefile.in (charset.o): Update dependencies.
8881 (mi-cmd-env.o): Update dependencies.
8882
1c615f7a
AC
88832003-01-08 Andrew Cagney <cagney@redhat.com>
8884
8885 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
8886 get_frame_base.
8887
c9a1dc08
AC
88882003-01-08 Andrew Cagney <ac131313@redhat.com>
8889
8890 * gdb_mbuild.sh: Add --keep option. When specified, keep the
8891 build directories. Save edited gdb output in Mbuild.log. If a
8892 build fails, remove any final GDB executable.
8893
dbad9d94
AC
88942003-01-08 Andrew Cagney <ac131313@redhat.com>
8895
8896 * gdb_mbuild.sh: Edit the output of `maint print architecture'
8897 replacing hex constants with function names and stripping leading
8898 file name directory prefixes.
8899
8d357cca
AC
89002003-01-08 Andrew Cagney <cagney@redhat.com>
8901
8902 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
8903 get_frame_base.
8904
bca02a8a
DC
89052003-01-08 David Carlton <carlton@math.stanford.edu>
8906
8907 * linespec.c (decode_line_1): Move code into decode_variable.
8908 (decode_variable): New function.
8909
7f8ab3a0
AC
89102003-01-08 Andrew Cagney <ac131313@redhat.com>
8911
8912 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
8913
7b5849cc
AC
89142003-01-08 Andrew Cagney <cagney@redhat.com>
8915
8916 * cris-tdep.c (cris_frame_init_saved_regs): Use
8917 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
8918 saved_regs buffer.
8919 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8920 (sh64_nofp_frame_init_saved_regs): Ditto.
8921 (sh_fp_frame_init_saved_regs): Ditto.
8922 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
8923 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
8924 * mcore-tdep.c (analyze_dummy_frame): Ditto.
8925 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
8926
72a5efb3
DJ
89272003-01-08 Daniel Jacobowitz <drow@mvista.com>
8928
8929 * minsyms.c (lookup_minimal_symbol): Update comment.
8930 (lookup_minimal_symbol_text): Update comment. Use the hash table.
8931 (lookup_minimal_symbol_solib_trampoline): Likewise.
8932
11c02a10
AC
89332003-01-08 Andrew Cagney <cagney@redhat.com>
8934
aab3ea25
AC
8935 * d10v-tdep.c (d10v_init_extra_frame_info): Use
8936 frame_relative_level.
8937
da50a4b7
AC
8938 * alpha-tdep.c: Use get_frame_extra_info.
8939 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
8940 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
8941 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
8942 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
8943
11c02a10
AC
8944 * alpha-tdep.c: Use get_next_frame.
8945 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
8946 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
8947 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
8948 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
8949 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
8950 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
8951 * xstormy16-tdep.c: Ditto.
8ffd9b1b 8952
1e2330ba
AC
89532003-01-07 Andrew Cagney <cagney@redhat.com>
8954
8955 * alpha-tdep.c: Use get_frame_base.
8956 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
8957 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
8958 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
8959 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
8960 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
8961 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
8962 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
8963 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 8964
2d75187b
AC
89652003-01-07 Andrew Cagney <cagney@redhat.com>
8966
8967 * frame.c (deprecated_get_frame_context): New function.
8968 (deprecated_set_frame_context): New function.
8969 * frame.h (deprecated_get_frame_context): Declare.
8970 (deprecated_set_frame_context): Declare.
8971 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
8972 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 8973
483d36b2
AC
89742003-01-07 Andrew Cagney <cagney@redhat.com>
8975
8976 * frame.c (deprecated_set_frame_next_hack): New function.
8977 (deprecated_set_frame_prev_hack): New function.
8978 * frame.h (deprecated_set_frame_next_hack): Declare.
8979 (deprecated_set_frame_prev_hack): Declare.
8980 * mcore-tdep.c (analyze_dummy_frame): Use
8981 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
8982 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
8983
14e91ac5
DC
89842003-01-07 David Carlton <carlton@math.stanford.edu>
8985
8986 * linespec.c (decode_line_1): Move code into decode_dollar.
8987 (decode_dollar): New function.
8988
b0c6b05c
AC
89892003-01-07 Andrew Cagney <cagney@redhat.com>
8990
8991 * arm-tdep.c (arm_init_extra_frame_info): Use
8992 deprecated_update_frame_base_hack.
8993 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
8994 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
8995 (fix_frame_pointer): Ditto.
8996 (mn10300_analyze_prologue): Ditto.
8997
a00a19e9
AC
89982003-01-07 Andrew Cagney <cagney@redhat.com>
8999
9000 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
9001 extra_info using frame_extra_info_zalloc.
9002 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9003 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
9004 (sh64_init_extra_frame_info): Ditto.
9005 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
9006 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
9007 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9008 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
9009 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
9010 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
9011 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
9012 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
9013 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
9014 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
9015 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9016 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
9017
9018 * mn10300-tdep.c (analyze_dummy_frame): Use
9019 deprecated_set_frame_extra_info_hack.
9020 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9021
1fb4c65b
JB
90222003-01-07 J. Brobecker <brobecker@gnat.com>
9023
9024 * mdebugread.c (parse_symbol): Skip stProc entries which storage
9025 class is not scText. These do not define "real" procedures.
9026 (parse_partial_symbols): Likewise.
9027
9fe7d6bf
MS
90282003-01-06 Michael Snyder <msnyder@redhat.com>
9029
9030 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
9031
f6c609c4
AC
90322003-01-06 Andrew Cagney <ac131313@redhat.com>
9033
9034 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
9035 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
9036 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
9037 deprecated_frame_xmalloc_with_cleanup.
9038 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
9039 deprecated_frame_xmalloc.
9040 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
9041 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
9042
d995ff4b
AC
90432003-01-06 Andrew Cagney <cagney@redhat.com>
9044
84dc46cb
AC
9045 * x86-64-linux-tdep.c: Include "osabi.h".
9046 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
9047
d995ff4b
AC
9048 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
9049
66140c26
AC
90502003-01-06 Andrew Cagney <cagney@redhat.com>
9051
9052 * MAINTAINERS (Target Instruction Set Architectures): Update
9053 arm-elf. Can be built with -Werror, has been multiarched.
9054
9055 * value.h (unpack_long): Make buffer parameter constant.
9056 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
9057 * scm-lang.h (scm_parse): Ditto.
9058 * defs.h (extract_typed_address, extract_address): Ditto.
9059 (extract_long_unsigned_integer): Ditto.
9060 * inferior.h (unsigned_pointer_to_address): Ditto.
9061 (signed_pointer_to_address): Ditto.
9062 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
9063 * gdbarch.h, gdbarch.c: Regenerate.
9064 * findvar.c (extract_long_unsigned_integer): Update.
9065 (extract_address): Update.
9066 (extract_typed_address): Update.
9067 (unsigned_pointer_to_address): Update.
9068 * values.c (unpack_long): Update.
9069 (unpack_double): Update.
9070 (unpack_pointer): Update.
9071 (unpack_field_as_long): Update.
9072 * d10v-tdep.c (d10v_pointer_to_address): Update.
9073 * avr-tdep.c (avr_pointer_to_address): Update.
9074 * scm-lang.c (scm_unpack): Update.
9075 * findvar.c (signed_pointer_to_address): Update.
9076
b089b3da
ML
90772003-01-06 Michal Ludvig <mludvig@suse.cz>
9078
8ffd9b1b 9079 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
9080 since it is in i386-tdep.c.
9081
aff87235
JB
90822003-01-06 J. Brobecker <brobecker@gnat.com>
9083
9084 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
9085 failure introduced in the previous change.
9086
34f5e845
MC
90872003-01-05 Michael Chastain <mec@shout.net>
9088
9089 * README: Remove references to deleted remote-*.c files:
9090 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
9091 remote-nrom.c, remote-os9k.c, remote-udi.c.
9092
28bcfd30
MK
90932003-01-05 Mark Kettenis <kettenis@gnu.org>
9094
9095 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
9096 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
9097 i386_get_longjmp_target.
9098
15a5b3ee
AC
90992003-01-05 Andrew Cagney <ac131313@redhat.com>
9100
9101 * arm-tdep.c (prologue_cache): Change to a pointer.
9102 (_initialize_arm_tdep): Allocate prologue_cache.
9103 (check_prologue_cache): Update.
9104 (save_prologue_cache): Update.
9105 (arm_gdbarch_init): Update.
9106
c263362b
DJ
91072003-01-04 Daniel Jacobowitz <drow@mvista.com>
9108
9109 * stabsread.c (update_method_name_from_physname): Call complaint()
9110 instead of error.
9111
51603483
DJ
91122003-01-04 Daniel Jacobowitz <drow@mvista.com>
9113
9114 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
9115 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
9116 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
9117
9118 * blockframe.c: Include "gdbcmd.h" and "command.h".
9119 (backtrace_below_main): New variable.
9120 (file_frame_chain_valid, func_frame_chain_valid)
9121 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
9122 (generic_func_frame_chain_valid): Remove functions.
9123 (frame_chain_valid, do_flush_frames_sfunc): New functions.
9124 (_initialize_blockframe): New function.
9125 * Makefile.in (blockframe.o): Update dependencies.
9126 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
9127 comment. Call frame_chain_valid ().
9128 * frame.h: Remove old prototypes. Add prototype for
9129 frame_chain_valid and update comments to match.
9130 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
9131 Remove old comment.
9132 * gdbarch.h: Regenerated.
9133 * gdbarch.c: Regenerated.
9134
9135 * alpha-tdep.c (alpha_gdbarch_init): Don't call
9136 set_gdbarch_frame_chain_valid.
9137 * avr-tdep.c (avr_gdbarch_init): Likewise.
9138 * cris-tdep.c (cris_gdbarch_init): Likewise.
9139 * frv-tdep.c (frv_gdbarch_init): Likewise.
9140 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
9141 * i386-tdep.c (i386_svr4_init_abi): Likewise.
9142 (i386_nw_init_abi): Likewise.
9143 (i386_gdbarch_init): Likewise.
9144 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
9145 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
9146 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
9147 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
9148 * mips-tdep.c (mips_gdbarch_init): Likewise.
9149 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9150 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
9151 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9152 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9153 * s390-tdep.c (s390_gdbarch_init): Likewise.
9154 * sh-tdep.c (sh_gdbarch_init): Likewise.
9155 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
9156 * v850-tdep.c (v850_gdbarch_init): Likewise.
9157 * vax-tdep.c (vax_gdbarch_init): Likewise.
9158 * x86-64-tdep.c (x86_64_init_abi): Likewise.
9159
9160 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
9161 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
9162 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
9163 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
9164 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
9165 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
9166 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
9167 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
9168
b00a8037
DJ
91692002-01-04 Daniel Jacobowitz <drow@mvista.com>
9170
9171 * Makefile.in (acconfig_h): Remove incorrect macro.
9172 (config_h): Define.
9173 (osabi.o): Update dependencies.
9174 * configure.tgt: Set gdb_osabi based on target triplet.
9175 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
9176 * configure: Regenerated.
9177 * config.in: Regenerated.
9178 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
9179 (GDB_OSABI_DEFAULT): Define if not already defined.
9180 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
9181 (set_osabi_string): New variables.
9182 (gdbarch_register_osabi): Add new OS ABI to
9183 gdb_osabi_available_names.
9184 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
9185 (set_osabi, show_osabi): New functions.
9186 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
9187
4be87837
DJ
91882003-01-04 Daniel Jacobowitz <drow@mvista.com>
9189
9190 * arch-utils.c (gdbarch_info_init): Set osabi to
9191 GDB_OSABI_UNINITIALIZED.
9192 * gdbarch.sh: Add osabi to struct gdbarch and to struct
9193 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
9194 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
9195 * gdbarch.c: Regenerated.
9196 * gdbarch.h: Regenerated.
9197 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
9198 there's no BFD.
9199 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
9200 * osabi.h (enum gdb_osabi): Move to defs.h.
9201 (gdbarch_init_osabi): Update prototype.
9202 * defs.h (enum gdb_osabi): Moved here.
9203 * Makefile.in: Update dependencies.
9204
9205 * alpha-tdep.h: Don't include "osabi.h".
9206 (struct gdbarch_tdep): Remove osabi member.
9207 * alpha-tdep.c: Include "osabi.h".
9208 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9209 iterate over arches. Update call to gdbarch_init_osabi.
9210 (alpha_dump_tdep): Don't dump osabi.
9211 * alpha-linux-tdep.c: Include "osabi.h".
9212 * alpha-osf1-tdep.c: Include "osabi.h".
9213 * alphafbsd-tdep.c: Include "osabi.h".
9214 * alphanbsd-tdep.c: Include "osabi.h".
9215
9216 * arm-tdep.h: Don't include "osabi.h".
9217 (struct gdbarch_tdep): Remove osabi member.
9218 * arm-tdep.c: Include "osabi.h".
9219 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9220 iterate over arches. Update call to gdbarch_init_osabi.
9221 (arm_dump_tdep): Don't dump osabi.
9222 * arm-linux-tdep.c: Include "osabi.h".
9223 * armnbsd-tdep.c: Include "osabi.h".
9224
9225 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
9226 Update call to gdbarch_init_osabi.
9227
9228 * i386-tdep.h: Don't include "osabi.h".
9229 (struct gdbarch_tdep): Remove osabi member.
9230 * i386-tdep.c: Include "osabi.h".
9231 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9232 iterate over arches. Update call to gdbarch_init_osabi.
9233 (i386_dump_tdep): Don't dump osabi.
9234 * i386-linux-tdep.c: Include "osabi.h".
9235 * i386-sol2-tdep.c: Include "osabi.h".
9236 * i386bsd-tdep.c: Include "osabi.h".
9237 * i386gnu-tdep.c: Include "osabi.h".
9238 * i386ly-tdep.c: Include "osabi.h".
9239 * i386nbsd-tdep.c: Include "osabi.h".
9240 * i386obsd-tdep.c: Include "osabi.h".
9241
9242 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
9243 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9244 check osabi when iterating over arches. Update call to
9245 gdbarch_init_osabi.
9246 (mips_dump_tdep): Don't dump osabi.
9247
9248 * ns32k-tdep.h: Don't include "osabi.h".
9249 (struct gdbarch_tdep): Remove.
9250 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
9251 gdbarch_lookup_osabi. Don't iterate over arches. Don't
9252 allocate tdep. Update call to gdbarch_init_osabi.
9253 (ns32k_dump_tdep): Remove.
9254 (_initialize_ns32k_tdep): Update call to gdbarch_register.
9255 * ns32knbsd-tdep.c: Include "osabi.h".
9256
9257 * ppc-tdep.h: Don't include "osabi.h".
9258 (struct gdbarch_tdep): Remove osabi member.
9259 * rs6000-tdep.c: Include "osabi.h".
9260 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
9261 osabi when iterating over arches. Update call to
9262 gdbarch_init_osabi.
9263 (rs6000_dump_tdep): Don't dump osabi.
9264 * ppc-linux-tdep.c: Include "osabi.h".
9265 * ppcnbsd-tdep.c: Include "osabi.h".
9266
9267 * sh-tdep.h: Don't include "osabi.h".
9268 (struct gdbarch_tdep): Remove osabi member.
9269 * sh-tdep.c: Include "osabi.h".
9270 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9271 iterate over arches. Update call to gdbarch_init_osabi.
9272 (sh_dump_tdep): Don't dump osabi.
9273 * shnbsd-tdep.c: Include "osabi.h".
9274
9275 * sparc-tdep.c: Include "osabi.h".
9276 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9277 iterate over arches. Update call to gdbarch_init_osabi.
9278 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
9279 tdep structure.
9280
9281 * vax-tdep.h: Don't include "osabi.h".
9282 (struct gdbarch_tdep): Remove.
9283 * vax-tdep.c: Include "osabi.h".
9284 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9285 iterate over arches. Don't allocate tdep. Update call
9286 to gdbarch_init_osabi.
9287 (vax_dump_tdep): Remove.
9288 (_initialize_vax_tdep): Update call to gdbarch_register.
9289
a881cf8e
DJ
92902003-01-04 Daniel Jacobowitz <drow@mvista.com>
9291
9292 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
9293 entirely.
9294 (breakpoint_re_set_one): Don't fetch the value for a disabled
9295 watchpoint.
9296
1e698235
DJ
92972003-01-04 Daniel Jacobowitz <drow@mvista.com>
9298
9299 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
9300 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
9301 (COERCE_FLOAT_TO_DOUBLE): Remove.
9302 * gdbarch.c: Regenerate.
9303 * gdbarch.h: Regenerate.
9304 * Makefile.in: Remove value_h from gdbarch_h.
9305 * valops.c (coerce_float_to_double): New variable.
9306 (default_coerce_float_to_double): Remove.
9307 (standard_coerce_float_to_double): Remove.
9308 (value_arg_coerce): Use coerce_float_to_double.
9309 (_initialize_valops): Add "set coerce-float-to-double".
9310 * value.h (default_coerce_float_to_double): Remove prototype.
9311 (standard_coerce_float_to_double): Remove prototype.
9312
9313 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
9314 prototyped.
9315 * mdebugread.c (parse_symbol): Likewise.
9316 * stabsread.c (define_symbol): Mark all functions as prototyped.
9317
9318 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
9319 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
9320 set_gdbarch_coerce_float_to_double.
9321 * arm-tdep.c (arm_gdbarch_init): Likewise.
9322 * frv-tdep.c (frv_gdbarch_init): Likewise.
9323 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
9324 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
9325 * mips-tdep.c (mips_gdbarch_init): Likewise.
9326 (mips_coerce_float_to_double): Remove.
9327 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9328 (rs6000_coerce_float_to_double): Remove.
9329 * s390-tdep.c (s390_gdbarch_init): Likewise.
9330 * sh-tdep.c (sh_gdbarch_init): Likewise.
9331 (sh_coerce_float_to_double): Remove.
9332 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
9333 (sparc_coerce_float_to_double): Remove.
9334 * v850-tdep.c (v850_gdbarch_init): Likewise.
9335 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
9336 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9337 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
9338 (hppa_coerce_float_to_double): Remove prototype.
9339 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9340
f436a26a
DJ
93412003-01-04 Daniel Jacobowitz <drow@mvista.com>
9342
9343 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
9344
248f8055
DJ
93452003-01-04 Daniel Jacobowitz <drow@mvista.com>
9346
9347 Suggested by Stewart Brown <sb24@avaya.com>:
9348 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
9349 in recursive calls. Handle TYPE_CODE_TYPEDEF.
9350 (c_type_print_varspec_suffix): Likewise.
9351
72cfdc76
MK
93522003-01-04 Mark Kettenis <kettenis@gnu.org>
9353
bfd260bb
MK
9354 * configure.in: Don't set and AC_SUBST SUBDIRS.
9355 * configure: Regenerated.
9356
72cfdc76
MK
9357 * configure.in: Remove code dealing with shared libraries.
9358 * Makefile.in: Remove HLDFLAGS and HLDENV.
9359 * configure: Regenerated.
9360
c8b8a898
AC
93612003-01-04 Andrew Cagney <ac131313@redhat.com>
9362
9363 * frame.c (deprecated_frame_xmalloc): New function.
9364 (deprecated_set_frame_saved_regs_hack): New function.
9365 (deprecated_set_frame_extra_info_hack): New function.
9366 * frame.h (deprecated_frame_xmalloc): Declare.
9367 (deprecated_set_frame_saved_regs_hack): Declare.
9368 (deprecated_set_frame_extra_info_hack): Declare.
9369
14abd0fb
MK
93702003-01-04 Mark Kettenis <kettenis@gnu.org>
9371
8ee53726
MK
9372 * configure.in: Move code that provides the --enable-gdbtk option
9373 right after the code that handles the --enable-tui option, and
9374 polish it somewhat.
9375 * configure: Regenerated.
9376
14abd0fb
MK
9377 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
9378 AC_CHECK_FUNCS and remove the old check for pread64.
9379 * acinclude.m4 (AC_GNU_SOURCE): New macro.
9380 * acconfig.h (_GNU_SOURCE): Add.
9381 (HAVE_PREAD64): Remove.
9382 * configure, aclocal.m4, config.in: Regenerated.
9383
b2fb4676
AC
93842003-01-03 Andrew Cagney <ac131313@redhat.com>
9385
9386 * alpha-tdep.c: Use get_frame_saved_regs.
9387 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9388 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
9389 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
9390 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
9391 * vax-tdep.c, xstormy16-tdep.c: Ditto.
9392
8dcde887
MK
93932003-01-03 Mark Kettenis <kettenis@gnu.org>
9394
9395 * configure.in: Remove all use of the SUBDIRS variable; add
9396 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
9397 code providing the --enable-multi-ice option, and move it right in
9398 front of the code that checks whether gdbserver is supported.
9399 Polish that too.
9400 * configure: Regenerated.
9401 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
9402 @SUBDIRS@.
9403
8ccd593b
AC
94042003-01-03 Andrew Cagney <cagney@redhat.com>
9405
9406 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
9407 * avr-tdep.c, cris-tdep.c: Ditto.
9408 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
9409 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 9410
91151a06
MK
94112003-01-03 Mark Kettenis <kettenis@gnu.org>
9412
9413 * configure.in: Remove --enable-netrom option.
9414 * configure: Regenerated.
9415
8fe84d01
MK
94162003-01-03 Mark Kettenis <kettenis@gnu.org>
9417
9418 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
9419 declaration for `struct re_pattern_buffer' instead.
9420 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
9421
f0394be6
JB
94222003-01-03 J. Brobecker <brobecker@gnat.com>
9423
9424 * mdebugread.c (parse_symbol): Count until the stEnd matching
9425 the structure name.
9426
27e9bf90
MK
94272003-01-02 Mark Kettenis <kettenis@gnu.org>
9428
93d331ba
MK
9429 * configure.in: Remove --with-cpu option.
9430 subscripts. Remove evil changequotes here.
9431 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
9432 * config.in, configure: Regenerated.
8ffd9b1b 9433
27e9bf90
MK
9434 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
9435 * configure.in: Cleanup section that sources GDB and BFD configure
9436 subscripts. Remove evil changequotes here.
9437 * config.in, configure: Regenerated.
9438
50abf9e5
AC
94392003-01-02 Andrew Cagney <ac131313@redhat.com>
9440
9441 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
9442 frame accessor methods.
9443 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9444 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
9445 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
9446 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
9447 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
9448 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
9449 * z8k-tdep.c: Ditto.
8ffd9b1b 9450
287c1a40
MK
94512003-01-02 Mark Kettenis <kettenis@gnu.org>
9452
f5dbc56d
MK
9453 * configure.in: Remove UI_OUT configuration code.
9454 * ada-lang.c: Update assuming UI_OUT is always true.
9455 * Makefile.in (UIOUT_CFLAGS): Remove.
9456 * configure: Regenerated.
9457 * TODO: Remove blurb about elimination of -DUI_OUT.
9458
627af7ea
MK
9459 * configure.in: Move code that provides the --enable-gdbcli,
9460 --enable-gdbmi options right before the code that handles the
9461 --enable-tui option. Polish a bit.
9462 * configure: Regenerated.
9463
06825bd1
MK
9464 * configure.in: Rewrite check for GNU regex and the
9465 --without-included regex option, and move it into the "Checks for
9466 library functions" section. This makes us use the system regex
9467 again by default on systems with version 2 of the GNU C library.
9468 This was apparently broken.
9469 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
9470 * acconfig.h (USE_INCLUDED_REGEX): Remove.
9471 * config.in, configure: Regenerated.
9472
287c1a40
MK
9473 * configure.in: Move code that provides the --enable-tui option
9474 before the "Checks for libraries" section. Polish the code
9475 somewhat and set need_curses to yes if we build the TUI. Rewrite
9476 code that looks for a library providing termcap functionality to
9477 match more closely what's done in the Readline library, and move
9478 it into to the "Checks for libraries" section.
9479 * configure: Regenerated.
9480 * Makefile.in (TERMCAP): Remove variable.
9481 * config/i386/go32.mh (TERMCAP): Remove variable.
9482
684e56bf
AC
94832003-01-02 Andrew Cagney <ac131313@redhat.com>
9484
9485 * MAINTAINERS: Mention gdb_mbuild.sh.
9486 * gdb_mbuild.sh: Rewrite.
9487
e1ea1d75
MK
94882003-01-02 Mark Kettenis <kettenis@gnu.org>
9489
9490 * configure.in: Fix typo in last change.
9491 * config.in, configure: Regenerated.
9492
1b831c93
AC
94932003-01-02 Andrew Cagney <ac131313@redhat.com>
9494
9495 * valarith.c (value_binop): Delete obsolete code and comments.
9496 * configure.host: Ditto.
9497 * buildsym.h (make_blockvector): Ditto.
9498 * buildsym.c (make_blockvector): Ditto.
9499 * defs.h (enum language): Ditto.
9500 (chill_demangle): Ditto.
9501 * elfread.c (elf_symtab_read): Ditto.
9502 * dwarfread.c (CHILL_PRODUCER): Ditto.
9503 (set_cu_language): Ditto.
9504 (handle_producer): Ditto.
9505 * expprint.c (print_subexp): Ditto.
9506 * gdbtypes.c (chill_varying_type): Ditto.
9507 * gdbtypes.h (builtin_type_chill_bool): Ditto.
9508 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
9509 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
9510 (chill_varying_type): Ditto.
9511 * language.h (_LANG_chill): Ditto.
9512 * language.c (binop_result_type, integral_type): Ditto.
9513 (character_type, string_type, structured_type): Ditto.
9514 (lang_bool_type, binop_type_check): Ditto.
9515 * stabsread.h (os9k_stabs): Ditto.
9516 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
9517 (define_symbol, read_type, read_struct_fields): Ditto.
9518 (read_array_type, read_enum_type, read_huge_number): Ditto.
9519 (read_range_type, start_stabs): Ditto.
9520 * symfile.c (init_filename_language_table): Ditto.
9521 (add_psymbol_with_dem_name_to_list): Ditto.
9522 * symtab.c (symbol_init_language_specific): Ditto.
9523 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
9524 * symtab.h (struct general_symbol_info): Ditto.
9525 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
9526 * typeprint.c (typedef_print): Ditto.
9527 * utils.c (fprintf_symbol_filtered): Ditto.
9528 * valops.c (value_cast, search_struct_field, value_slice): Delete
9529 obsolete code.
9530 (varying_to_slice): Delete function.
9531 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
9532 (varying_to_slice): Delete declaration.
9533 * MAINTAINERS: Update.
9534
8bb2c122
MK
95352003-01-02 Mark Kettenis <kettenis@gnu.org>
9536
97bf5e38
MK
9537 * configure.in: Reorganize "Checks for library functions section"
9538 a bit. Remove check for `btowc' and `isascii' functions.
9539 * configure: Regenerated.
9540
5ee754fc
MK
9541 * acconfig.h (_MSE_INT_H): Remove.
9542 * configure.in: Create "Checks for header files" section, and move
9543 appropriate tests there. Don't check for objlist.h, wchar.h,
9544 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
9545 misdetection fix. Also add "Checks for types", "Checks for
9546 compiler characteristics" and "Checks for library functions"
9547 sections.
9548 * config.in, configure: Regenerated.
9549
8bb2c122
MK
9550 * configure.in: Create "Checks for programs" section, and move
9551 appropriate tests there.
9552
9a156167
MK
95532003-01-01 Mark Kettenis <kettenis@gnu.org>
9554
9555 * configure.in: Create "Checks for libraries" section, and move
9556 appropriate tests there. Cleanup check for wctype in libw. Use
9557 AC_SEARCH_LIBS to see whether we need libsocket.
9558 * configure: Regenerated.
9559
a80e2bcb 9560For older changes see ChangeLog-2002
c906108c
SS
9561\f
9562Local Variables:
9563mode: change-log
9564left-margin: 8
9565fill-column: 74
9566version-control: never
9567End:
This page took 1.184454 seconds and 4 git commands to generate.