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