daily update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
fbe586ae
RH
12003-05-30 Richard Henderson <rth@redhat.com>
2
3 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5 (alpha_mdebug_frame_this_id): Likewise.
6 (alpha_mdebug_frame_prev_register): Likewise.
7 (alpha_mdebug_frame_base_address): Likewise.
8 (alpha_mdebug_frame_locals_address): Likewise.
9 (alpha_mdebug_frame_args_address): Likewise.
10 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
11 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
12 (alpha_heuristic_frame_unwind_cache): Make static; add missing
13 loop increment.
14 (alpha_heuristic_frame_this_id): Make static.
15 (alpha_heuristic_frame_prev_register): Likewise.
16 (alpha_heuristic_frame_base_address): Likewise.
17 * alpha-tdep.h: Update.
18
acd5c798
MK
192003-05-30 Mark Kettenis <kettenis@gnu.org>
20
21 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
22 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
23 defenitions.
24 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
25 * i386-tdep.c: Mark functions that are 64-bit safe as such.
26 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
27 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
28 I386_ST0_REGNUM): New defines.
29 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
30 codestream_get): Remove define.
31 (codestream_next_addr, condestream_addr, condestream_buf,
32 codestream_off, codestream_cnt): Remove variables.
33 (codestream_fill, codestream_seek, codestream_read): Remove
34 functions.
35 (i386_follow_jump): Rewrite to avoid usage of removed codestream
36 functionality.
37 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
38 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
39 i386_frame_saved_pc, i386_saved_pc_after_call,
40 i386_frame_num_args, i386_frame_init_saved_regs,
41 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
42 i386_push_arguments): Remove functions.
43 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
44 functionality. Use i386_analyze_prologue instead of
45 i386_get_frame_setup.
46 (I386_NUM_SAVED_REGS): New define.
47 (struct i386_frame_cache): New structure.
48 (i386_alloc_frame_cache, i386_analyze_struct_return,
49 i386_skip_probe, i386_analyze_frame_setup,
50 i386_analyze_register_saves, i386_analyze_prologue,
51 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
52 i386_frame_prev_register, i386_sigtramp_frame_cache,
53 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
54 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
55 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
56 New functions.
57 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
58 New variables.
59 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
60 I386_EAX_REGNUM and I386_EDX_REGNUM.
61 (i386_extract_return_value, i386_store_return_value): Use
62 I386_ST0_REGNUM where appropriate.
63 (i386_extract_struct_value_address): Rewrite to use extract_address.
64 (i386_svr4_pc_in_sigtramp): Add comment.
65 (i386_svr4_sigcontext_addr): Rewrite.
66 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
67 TDEP->sc_sp_offset.
68 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
69 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
70 of new defines. Set push_dummy_call, don't set
71 deprecated_push_arguments, deprecated_push_return_address,
72 deprecated_pop_frame. Don't set parm_boundary. Don't set
73 deprecated_frame_chain, deprecated_frame_saved_pc,
74 deprecated_saved_pc_after_call. Set unwind_dummy_id,
75 save_dummy_frame_tos, unwind_pc. Call
76 frame_unwind_append_predicate and frame_base_set_default. Don't
77 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
78 Don't set frameless_function_invocation. Don't set
79 deprecated_register_bytes, deprecated_register_size,
80 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
81 * i386-linux-tdep.c: Fix formatting in some comments.
82 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
83 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
84 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
85 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
86 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
87 redundant parentheses.
88 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
89 (i386_linux_sigcontext_addr): Use it. Rewrite.
90 (find_minsym_and_objfile): Change name of second argument.
91 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
92 changed. Use frame_pc_unwind instead of
93 DEPRECATED_SAVED_PC_AFTER_CALL.
94 (i386_linux_init_abi): Don't set deprecated_register_bytes.
95 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
96 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
97 unwinder.
98 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
99 "dummy-frame.h".
100 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
101 (_initialize_i386_cygwin_tdep): New prototype.
102 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
103 deprecated_frame_chain_valid.
104 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
105 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
106 Rely on the SVR4 defaults.
107 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
108 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
109
c89b70f1
AC
1102003-05-30 Andrew Cagney <cagney@redhat.com>
111
112 * infcall.c (call_function_by_hand): Always call
113 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
114
85b32d22
RH
1152003-05-30 Richard Henderson <rth@redhat.com>
116
c89b70f1
AC
117 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
118 increment.
85b32d22 119
bfe51b1e
JB
1202003-05-29 Jim Blandy <jimb@redhat.com>
121
122 Use gdbarch methods for solib stuff on PowerPC Linux.
123 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
124 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
125 show through.
126 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
127 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
128 giving the same effect as the #definitions above.
129
1abf022c
AF
1302003-05-29 Adam Fedor <fedor@gnu.org>
131
132 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
133 (find_implementation_from_class): Replace it with the standard
134 case i.e. do nothing.
135
d2427a71
RH
1362003-05-29 Richard Henderson <rth@redhat.com>
137
138 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
139 (alpha_linux_sigtramp_offset): Use it. Make static.
140 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
141 update for new frame model.
142 * alpha-mdebug-tdep.c: New file.
143 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
144 (alpha_osf1_init_abi): Install it.
145 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
146 (linked_proc_desc_table): Remove.
147 (alpha_frame_past_sigtramp_frame): Remove.
148 (alpha_dynamic_sigtramp_offset): Remove.
149 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
150 (alpha_proc_desc_is_dyn_sigtramp): Remove.
151 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
152 (push_sigtramp_desc): Remove.
153 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
154 (alpha_cannot_store_register): Likewise.
155 (alpha_sigcontext_addr): Remove.
156 (alpha_find_saved_regs): Remove.
157 (alpha_frame_init_saved_regs): Remove.
158 (alpha_init_frame_pc_first): Remove.
159 (read_next_frame_reg): Remove.
160 (alpha_frame_saved_pc): Remove.
161 (alpha_saved_pc_after_call): Remove.
162 (temp_proc_desc, temp_saved_regs): Remove.
163 (alpha_about_to_return): Remove.
164 (cached_proc_desc): Remove.
165 (alpha_frame_chain): Remove.
166 (alpha_print_extra_frame_info): Remove.
167 (alpha_init_extra_frame_info): Remove.
168 (alpha_frame_locals_address): Remove.
169 (alpha_frame_args_address): Remove.
170 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
171 (alpha_push_dummy_frame): Remove.
172 (alpha_pop_frame): Remove.
173 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
174 (alpha_read_insn): New.
175 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
176 for different insn encodings.
177 (alpha_in_lenient_prologue): Remove.
178 (struct alpha_sigtramp_unwind_cache): New.
179 (alpha_sigtramp_frame_unwind_cache): New.
180 (alpha_sigtramp_register_address): New.
181 (alpha_sigtramp_frame_this_id): New.
182 (alpha_sigtramp_frame_prev_register): New.
183 (alpha_sigtramp_frame_unwind): New.
184 (alpha_sigtramp_frame_p): New.
185 (struct alpha_heuristic_unwind_cache): New.
186 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
187 don't count nop insns that occur between functions.
188 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
189 heuristic_proc_desc, but without the mdebug wrapping.
190 (alpha_heuristic_frame_this_id): New.
191 (alpha_heuristic_frame_prev_register): New.
192 (alpha_heuristic_frame_unwind): New.
193 (alpha_heuristic_frame_p): New.
194 (alpha_heuristic_frame_base_address): New.
195 (alpha_heuristic_frame_base): New.
196 (alpha_unwind_dummy_id): New.
197 (alpha_unwind_pc): New.
198 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
199 frame related deprecated initializations; install replacements.
200 (alpha_dump_tdep): Remove.
201 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
202 (alpha_read_insn, alpha_after_prologue,
203 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
204 alpha_heuristic_frame_prev_register,
205 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
206 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
207 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
208 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
209
93ec1121
AC
2102003-05-29 Andrew Cagney <cagney@redhat.com>
211
212 * gdb_assert.h (gdb_assert_fail): Provide different definitions
213 dependant on the availability of ASSERT_FUNCTION.
214 (ASSERT_FUNCTION): Do not define when there is no function name.
215
98f08d3d
KB
2162003-05-29 Kevin Buettner <kevinb@redhat.com>
217
218 From Jimi X <jimix@watson.ibm.com>:
219 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
220
0897f59b
JB
2212003-05-28 Jim Blandy <jimb@redhat.com>
222
223 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
224 argument to ptrace to int; the system headers should give it the
225 right type, and pointers don't fit in ints on powerpc64-*-*.
226
14898363
L
2272003-05-28 H.J. Lu <hongjiu.lu@intel.com>
228
229 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
230 DW_TAG_catch_block.
231
a7a48797
EZ
2322003-05-26 Elena Zannoni <ezannoni@redhat.com>
233
234 * stabsread.c (dbx_lookup_type): Make static.
235 (read_type): Ditto.
236 (add_undefined_type): Ditto.
237 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
238 not export.
239
f5479e9c
EZ
2402003-05-26 Elena Zannoni <ezannoni@redhat.com>
241
242 * hpread.c (hpread_has_name): Make static.
243 (hpread_psymtab_to_symtab): Ditto.
244 (file_exists): Ditto.
245 (hpread_call_pxdb): Ditto.
246 (hpread_pxdb_needed): Ditto.
247 (hpread_quick_traverse): Ditto.
248 (hpread_get_header): Ditto.
249 (hpread_get_lntt): Ditto.
250 (hpread_get_slt): Ditto.
251 (class_of): Ditto.
252
eb2e12d7
AS
2532003-05-25 Andreas Schwab <schwab@suse.de>
254
78bf922a
AS
255 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
256 stack_align and deprecated_extra_stack_alignment_needed.
257 (m68k_stack_align): Delete.
258
eb2e12d7
AS
259 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
260 (m68k_register_virtual_size): Likewise.
261 (altos_skip_prologue): Remove obsolete function.
262 (isi_frame_num_args): Likewise.
263 (news_frame_num_args): Likewise.
264 (m68k_fix_call_dummy): Make static.
265 (m68k_push_dummy_frame): Likewise.
266 (m68k_pop_frame): Likewise.
267 (m68k_skip_prologue): Likewise.
268 (m68k_frame_init_saved_regs): Likewise.
269 (m68k_saved_pc_after_call): Likewise.
270 (m68k_get_longjmp_target): Make multi-arch.
271 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
272 structure. Register m68k_get_longjmp_target if enabled.
273 * m68k-tdep.h (struct gdbarch_tdep): Define.
274 * config/m68k/tm-m68k.h: Don't include "regcache.h".
275
276 * Makefile.in (config.status): Also depend on configure.tgt
277 and configure.host.
278 (m68klinux-tdep.o): Update dependencies.
279 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
280 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
281 (M68K_LINUX_JB_PC): Define.
282 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
283 and take additional parameter.
284 (m68k_linux_sigtramp_saved_pc): Update.
285 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
286 m68k_linux_pc_in_sigtramp, in_plt_section,
287 find_solib_trampoline_target.
288 * config/m68k/tm-linux.h: Don't include any tm headers.
289 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
290 (JB_ELEMENT_SIZE): Likewise.
291 (JB_PC): Likewise.
292 (GET_LONGJMP_TARGET): Likewise.
293 (IN_SIGTRAMP): Likewise.
294 (SVR4_SHARED_LIBS): Define this and include "solib.h".
295
eb2c22dc
MK
2962003-05-25 Mark Kettenis <kettenis@gnu.org>
297
298 * sparc-tdep.c (sparc32_do_push_arguments): New function.
299 (sparc32_push_arguments): Re-implement by calling
300 sparc32_do_push_arguments.
301
44b7b84e
MK
3022003-05-25 Mark Kettenis <kettenis@gnu.org>
303
304 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
305 SPARC_O1_REGNUM): New defines.
306 (sparc32_extract_return_value): Rewrite to operate on a regcache.
307 (sparc32_store_return_value): New function.
308 (sparc_extract_struct_value_address): Rewrite to operate on a
309 regcache.
310 (sparc_gdbarch_init): Don't set
311 deprecated_extract_struct_value_address. Set
312 extract_struct_value_address instead. Don't set
313 deprecated_extract_return_value and deprecated_store_return_value
314 for 32-bit targets. Set extract_return_value and
315 store_return_value instead.
316 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
317 DEPRECTAED_EXTRACT_RETURN_VALUE,
318 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
319 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
320 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
321 (sparc_store_return_value): Remove prototype.
322 (sparc32_store_return_value): New prototype.
323 (sparc32_extract_return_value, sparc_extract_struct_value_address):
324 Adjust prototypes.
325
f6ad61e3
MK
3262003-05-24 Mark Kettenis <kettenis@gnu.org>
327
328 * sparcnbsd-tdep.c: Include "gdb_string.h".
329
b276f1bb
AC
3302003-05-23 Andrew Cagney <cagney@redhat.com>
331
332 * p-valprint.c (pascal_val_print): Replace extract_address with
333 the inline equivalent extract_unsigned_integer.
334 * jv-valprint.c (java_value_print): Ditto.
335 * ada-valprint.c (ada_val_print_1): Ditto.
336 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
337
e76c5fcc
TR
3382003-05-23 Theodore A. Roth <troth@openavr.org>
339
340 * blockframe.c (frameless_look_for_prologue): Remove unused
341 after_prologue variable.
342
2cdd89cb
MK
3432003-05-23 Mark Kettenis <kettenis@gnu.org>
344
345 * blockframe.c (get_pc_function_start): Rewrite to avoid
346 asignments in if-statements.
347
182d43bc
EZ
3482003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
349
350 Committed by Elena Zannoni <ezannoni@redhat.com>.
351 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
352 files, don't relocate absolute symbols (and do use mst_abs).
353
e8f3fcdd
AC
3542003-05-23 Andrew Cagney <cagney@redhat.com>
355
356 * objc-lang.c: Include "gdb_assert.h".
357 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
358 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
359 (gdb_check, gdb_check_fatal): Delete functions.
360 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
361 gdb_assert.
362 (parse_selector, parse_method, find_methods, find_imps): Ditto.
363 * Makefile.in (objc-lang.o): Update dependencies.
364
3c23e6fb
ILT
3652003-05-22 Ian Lance Taylor <ian@airs.com>
366
367 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
368 with fprintf_filtered, not fprintf_unfiltered.
369
af1342ab
AC
3702003-05-22 Andrew Cagney <cagney@redhat.com>
371
372 * stack.c (frame_info): Inline extract_address, replacing it with
373 extract_unsigned_integer.
374 * findvar.c (unsigned_pointer_to_address): Ditto.
375 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
376 * dwarf2expr.c (dwarf2_read_address): Ditto.
377 * frame.c (frame_pc_unwind): Update comment.
378 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
379
47e242ec
JJ
3802003-05-22 Jeff Johnston <jjohnstn@redhat.com>
381
382 * infptrace.c (detach): Call print_sys_errmsg rather than
383 perror_with_name to issue warning message when errno is non-zero
384 after calling ptrace detach.
385
e2ac8128
JB
3862003-05-21 J. Brobecker <brobecker@gnat.com>
387
388 * config/pa/tm-hppa.h: Delete some unused macros. Move some
389 macro definitions from here...
390 * hppa-tdep.c: ...to there.
391
92b3541e
KB
3922003-05-20 Kevin Buettner <kevinb@redhat.com>
393
394 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
395 register_ptrace_addr(). Fix all callers.
396
55809acb
AS
3972003-05-21 Andreas Schwab <schwab@suse.de>
398
399 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
400 dependencies.
401 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
402 end.
403 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
404 (_initialize_m68k_linux_tdep): New function.
405 (m68k_linux_frame_saved_pc): Make static.
406 (m68k_linux_extract_return_value): Likewise.
407 (m68k_linux_store_return_value): Likewise.
408 (m68k_linux_extract_struct_value_address): Likewise.
409 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
410 Remove.
411 (DEPRECATED_STORE_RETURN_VALUE): Remove.
412 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
413 (DEPRECATED_FRAME_SAVED_PC): Remove.
414
0fbc10f7
KW
4152003-05-20 Kris Warkentin <kewarken@qnx.com>
416
417 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
418 regset numbering rather than our own.
419
58da2eb2
DC
4202003-05-19 David Carlton <carlton@bactrian.org>
421
422 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
423
1fcb5155
DC
4242003-05-19 David Carlton <carlton@bactrian.org>
425
426 Partial fix for PR c++/827.
427 * cp-support.h: Include symtab.h.
428 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
429 * cp-namespace.c: Update contributors.
430 (cp_lookup_symbol_nonlocal): New.
431 (lookup_namespace_scope, cp_lookup_symbol_namespace)
432 (lookup_symbol_file): Ditto.
433 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
434 * block.h: Declare block_scope, block_using, block_global_block.
435 * block.c (block_scope): New.
436 (block_using, block_global_block): Ditto.
437 * Makefile.in (cp_support_h): Depend on symtab_h.
438 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
439
5f9a71c3
DC
4402003-05-19 David Carlton <carlton@bactrian.org>
441
442 * language.h (struct language_defn): Add 'la_value_of_this'
443 and 'la_lookup_symbol_nonlocal' members.
444 * symtab.h: Declare basic_lookup_symbol_nonlocal,
445 lookup_symbol_static, lookup_symbol_global,
446 lookup_symbol_aux_block.
447 * symtab.c (lookup_symbol_aux): Call language hooks to determine
448 if we should search fields of this and how to do static/global
449 lookup.
450 (lookup_symbol_aux_block): Make extern.
451 (basic_lookup_symbol_nonlocal): New.
452 (lookup_symbol_static, lookup_symbol_global): Ditto.
453 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
454 'la_lookup_symbol_nonlocal' members.
455 * c-lang.c (c_language_defn, cplus_language_defn)
456 (asm_language_defn, minimal_language_defn): Ditto.
457 * jv-lang.c (java_language_defn): Ditto.
458 * language.c (unknown_language_defn, auto_language_defn)
459 (local_language_defn): Ditto.
460 * m2-lang.c (m2_language_defn): Ditto.
461 * objc-lang.c (objc_language_defn): Ditto.
462 * scm-lang.c (scm_language_defn): Ditto.
463 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
464 * p-lang.c (pascal_language_defn): Ditto for both.
465 * Makefile.in (f-lang.o): Depend on value_h.
466 (p-lang.o): Ditto.
467
89a9d1b1
DC
4682003-05-19 David Carlton <carlton@bactrian.org>
469
470 * block.h: Declare block_static_block.
471 * block.c (block_static_block): New.
472 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
473 lookup_symbol_aux_local, calling block_static_block instead.
474 (lookup_symbol_aux_local): Delete 'static_block' argument.
475
eed3f8ab
DC
4762003-05-19 David Carlton <carlton@bactrian.org>
477
478 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
479
a09d8bda
ML
4802003-05-19 Michal Ludvig <mludvig@suse.cz>
481
482 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
483 register numbers mapping.
484
69636828
AF
4852003-05-18 Adam Fedor <fedor@gnu.org>
486
487 * symtab.c (completion_list_objc_symbol): New function.
488 (make_symbol_completion_list): Use it to add ObjC symbols
489 when looking though the list.
490 (language_search_unquoted_string): New function.
491 (make_file_symbol_completion_list): Use it.
492
55baeb84
AS
4932003-05-18 Andreas Schwab <schwab@suse.de>
494
d0b45d99
AS
495 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
496 dependencies.
497 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
498 as m68k_linux_extract_return_value.
499 (DEPRECATED_STORE_RETURN_VALUE): Define as
500 m68k_linux_store_return_value.
501 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
502 m68k_linux_extract_struct_value_address.
503 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
504 get_next_frame, get_frame_base, get_frame_pc.
505 (m68k_linux_frame_saved_pc): Use get_frame_base.
506 (m68k_linux_extract_return_value): New function.
507 (m68k_linux_store_return_value): New function.
508 (m68k_linux_extract_struct_value_address): New function.
509 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
510
55baeb84
AS
511 * c-exp.y (typebase): Remove duplicate occurence of
512 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
513 of lookup_signed_typename.
514
b6b08ebf
MK
5152003-05-18 Mark Kettenis <kettenis@gnu.org>
516
517 * dwarf2loc.c (find_location_expression): Change type of second
518 argument to `size_t *'.
519 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
520 for size variable.
521
5ad1c190
DC
5222003-05-18 David Carlton <carlton@bactrian.org>
523
524 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
525 'linkage_name'. Add comment.
526 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
527 'linkage_name'.
528 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
529 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
530 (lookup_block_symbol): Ditto.
531
b8b527c5
AC
5322003-05-16 Andrew Cagney <cagney@redhat.com>
533
534 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
535 * gdbarch.h, gdbarch.c: Re-generate.
536 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
537 * TODO (REGISTER_BYTES): Delete reference.
538 * alpha-tdep.c (alpha_gdbarch_init): Update.
539 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
540 * x86-64-tdep.c (x86_64_init_abi): Update.
541 * vax-tdep.c (vax_gdbarch_init): Update.
542 * v850-tdep.c (v850_gdbarch_init): Update.
543 * sparc-tdep.c (sparc_gdbarch_init): Update.
544 * sh-tdep.c (sh_gdbarch_init): Update.
545 * s390-tdep.c (s390_gdbarch_init): Update.
546 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
547 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
548 (ns32k_gdbarch_init_32382): Update.
549 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
550 * mcore-tdep.c (mcore_gdbarch_init): Update.
551 * m68k-tdep.c (m68k_gdbarch_init): Update.
552 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
553 * ia64-tdep.c (ia64_gdbarch_init): Update.
554 * i386-tdep.c (i386_gdbarch_init): Update.
555 * i386-linux-tdep.c (i386_linux_init_abi): Update.
556 * hppa-tdep.c (hppa_gdbarch_init): Update.
557 * h8300-tdep.c (h8300_gdbarch_init): Update.
558 * frv-tdep.c (frv_gdbarch_init): Update.
559 * cris-tdep.c (cris_gdbarch_init): Update.
560 * avr-tdep.c (avr_gdbarch_init): Update.
561 * arm-tdep.c (arm_gdbarch_init): Update.
562 * sparc-tdep.c (sparc_pop_frame): Update.
563 * rs6000-tdep.c (rs6000_pop_frame): Update.
564 * remote.c (init_remote_state): Update.
565 (remote_prepare_to_store): Update.
566 * remote-vx.c (vx_prepare_to_store): Update.
567 * remote-sds.c (sds_fetch_registers): Update.
568 (sds_prepare_to_store): Update.
569 * remote-array.c: Update.
570 * regcache.c (init_legacy_regcache_descr): Update.
571 (init_regcache_descr): Update.
572 * mips-tdep.c (mips_eabi_extract_return_value): Update.
573 (mips_o64_extract_return_value): Update.
574 * irix5-nat.c (fetch_core_registers): Update.
575 * irix4-nat.c (fetch_core_registers): Update.
576 * i386-tdep.h: Update.
577 * hppa-tdep.c (pa_do_registers_info): Update.
578 (pa_do_strcat_registers_info): Update.
579 * cris-tdep.c (cris_register_bytes_ok): Update.
580 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
581 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
582 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
583 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
584 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
585 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
586 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
587 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
588 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
589 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
590 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
591 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
592 (REGISTER_BYTES_OK): Update.
593 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
594 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
595
ee2842e2
ILT
5962003-05-16 Ian Lance Taylor <ian@airs.com>
597
598 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
599 (vax_print_insn, print_insn_arg): Remove static functions.
600 (vax_gdbarch_init): Call set_gdbarch_print_insn with
601 print_insn_vax from opcodes library.
602 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
603
973177d3
AC
6042003-05-15 Andrew Cagney <cagney@redhat.com>
605
aaab4dba
AC
606 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
607 * target.h (memory_breakpoint_from_pc): Delete declaration.
608 * mem-break.c (memory_breakpoint_from_pc): Delete function.
609 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
610 * monitor.c (monitor_insert_breakpoint): Use
611 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
612 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
613 * gdbarch.h, gdbarch.c: Re-generate.
614 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
615 (sparc_gdbarch_init): Set breakpoint_from_pc to
616 sparc_breakpoint_from_pc.
617 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
618 (BREAKPOINT_FROM_PC): Define.
619 (sparc_breakpoint_from_pc): Declare.
620 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
621 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
622 (BREAKPOINT_FROM_PC): Define.
623 (BREAKPOINT): Delete macro.
624 * target.h: Update comment.
625 * s390-tdep.c (s390_gdbarch_init): Update comments.
626 * remote.c: Update comments.
627 * remote-mips.c: Update comments.
628 * proc-api.c (write_with_trace): Do not check for a breakpoint.
629 * mem-break.c: Update comment.
630 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
631 (ia64_memory_insert_breakpoint): Update.
632 * config/sparc/tm-sparc.h: Update comment.
633 * config/pa/tm-hppa64.h: Update comment.
634 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
635 (rs6000_breakpoint_from_pc): Update.
636 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
637 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
638 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
639 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
640 (mips_breakpoint_from_pc): Update.
641 (mips_dump_tdep): Update.
642
e06963ff
AC
643 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
644 * minsyms.c (lookup_minimal_symbol): Inline
645 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
646
973177d3
AC
647 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
648 * p-valprint.c (pascal_object_print_value_fields): Ditto.
649 * p-lang.c (pascal_printstr): Ditto.
650 * objc-lang.c (objc_printstr): Ditto.
651 * m2-lang.c (m2_printstr): Ditto.
652 * jv-valprint.c (java_print_value_fields): Ditto.
653 * f-lang.c (f_printstr): Ditto.
654 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
655 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
656 for repeat_count_threshold.
657 * Makefile.in (cp-valprint.o): Update dependencies.
658
5ea2bd7f
JJ
6592003-05-15 Jeff Johnston <jjohnstn@redhat.com>
660
661 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
662 (examine_prologue): Support looking through leaf functions, knowing
663 they start with mov r2,r12. Support skipping over indirect stores
664 of the input registers. Upon hitting a non-nop branch instruction
665 or predicated instruction, bail out by setting lim_pc to the current
666 pc value in the loop. At the end, if the lim_pc value is still
667 beyond our calculated value and we have trust_limit set,
668 use the lim_pc value.
669
cc8c88f3
AC
6702003-05-15 Andrew Cagney <cagney@redhat.com>
671
672 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
673 generic_find_dummy_frame.
674 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
675 (deprecated_generic_find_dummy_frame): Update.
676 (deprecated_read_register_dummy): Update.
677 * frame.c (deprecated_generic_get_saved_register): Update.
678
909cd28e
TR
6792003-05-15 Theodore A. Roth <troth@openavr.org>
680
681 * avr-tdep.c (avr_breakpoint_from_pc): New function.
682 (avr_gdbarch_init): Set breakpoint_from_pc method.
683
b923b08d
AC
6842003-05-15 Andrew Cagney <cagney@redhat.com>
685
686 * regcache.c (build_regcache): Set deprecated_register_valid
687 directly.
688 (deprecated_grub_regcache_for_register_valid): Delete function.
689 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
690 declaration.
691
ae2f03ac
EZ
6922003-05-15 David Carlton <carlton@bactrian.org>
693
694 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
695 * symtab.c (lookup_symbol_aux): Delete calls to
696 lookup_symbol_aux_minsyms.
697 (lookup_symbol_aux_minsyms): Comment out function and
698 prototype. Delete lookup by mangled name.
ae2f03ac 699
18ec9831
KB
7002003-05-14 Kevin Buettner <kevinb@redhat.com>
701
702 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
703 correctly indicate an empty stack and ``stack_allocated'' to the
704 indicate the number of elements initially allocated.
705 (dwarf_expr_grow_stack): Simplify method for computing new
706 stack size. Don't loop infinitely if ``stack_len'' is zero.
707 (execute_stack_op): Move ``ctx->in_reg'' initialization
708 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
709 be used in conjuction with DW_OP_piece. Revise error message
710 accordingly.
711
de18ac1f
TR
7122003-05-14 Theodore A. Roth <troth@openavr.org>
713
714 * MAINTAINERS: Update my email address.
715 * avr-tdep.c: Ditto.
716
176620f1
EZ
7172003-05-14 Elena Zannoni <ezannoni@redhat.com>
718
719 * symtab.h (enum domain_enum): Rename from namespace_enum.
720 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
721 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
722 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
723 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
724 TYPES_NAMESPACE, METHODS_NAMESPACE.
725 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
726 (struct symbol, struct partial_symbol): Rename field
727 'namespace_enum namespace' to 'domain_enum domain'.
728 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
729 Delete old define kludge for namespace.
730
731 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
732 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
733 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
734 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
735 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
736 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
737 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
738 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
739 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
740 occurrences of the above.
741
b7f31508
ILT
7422003-05-14 Ian Lance Taylor <ian@airs.com>
743
744 * Makefile.in (install-only): Use $(SHELL) when running
745 mkinstalldirs.
746
2fdbdd39
ILT
7472003-05-13 Ian Lance Taylor <ian@airs.com>
748
a208d82c
ILT
749 * MAINTAINERS (write after approval): Add myself.
750
2fdbdd39
ILT
751 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
752 second and third arguments.
753 * ser-tcp.c (_initialize_ser_tcp): Likewise.
754 * ser-unix.c (_initialize_ser_hardwire): Likewise.
755
fbd9dcd3
AC
7562003-05-13 Andrew Cagney <cagney@redhat.com>
757
758 * defs.h (store_address): Delete declaration.
759 findvar.c (store_address): Delete function.
760 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
761 store_unsigned_integer.
762 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
763 * v850-tdep.c (v850_push_arguments): Ditto.
764 * sparc-tdep.c (sparc_get_saved_register): Ditto.
765 * sh-tdep.c (sh64_get_saved_register): Ditto.
766 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
767 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
768 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
769 (mips_get_saved_register): Ditto.
770 * ia64-tdep.c (ia64_get_saved_register): Ditto.
771 (find_func_descr, ia64_push_arguments): Ditto.
772 * i386-tdep.c (i386_push_arguments): Ditto.
773 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
774 * frv-tdep.c (frv_push_arguments): Ditto.
775 * frame.c (legacy_saved_regs_prev_register): Ditto.
776 (deprecated_generic_get_saved_register): Ditto.
777 * findvar.c (unsigned_address_to_pointer): Ditto.
778 * dwarf2read.c (dwarf2_const_value): Ditto.
779 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
780 * alpha-tdep.c (alpha_push_arguments): Ditto.
781
6760f9e6
JB
7822003-05-12 J. Brobecker <brobecker@gnat.com>
783
784 * NEWS: Mention that the hppa-hpux port has been partially
785 multiarched (32bit ABIT only, so far).
786
30e221b4
AC
7872003-05-11 Andrew Cagney <cagney@redhat.com>
788
789 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
790 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
791 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
792 sim/testsuite/sim/arm/misaligned2.ms, and
793 sim/testsuite/sim/arm/misaligned3.ms.
794 * disasm.h (struct ui_file): Add opaque struct declaration.
795 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
796 * frame.h (struct ui_file): Ditto.
797
dea7f9ba
MK
7982003-05-11 Mark Kettenis <kettenis@gnu.org>
799
800 * value.h: Pretty print.
801
01986c48
MK
8022003-05-10 Mark Kettenis <kettenis@gnu.org>
803
804 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
805
123a958e
AC
8062003-05-08 Andrew Cagney <cagney@redhat.com>
807
808 * regcache.h (max_register_size): Delete declaration.
809 * regcache.c (max_register_size): Delete function.
810 (struct regcache_descr): Delete field "max_register_size".
811 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
812 registers fit in MAX_REGISTER_SIZE.
813 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
814 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
815 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
816 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
817 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
818 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
819 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
820 * dve3900-rom.c, hppa-tdep.c: Ditto.
821
eb294659
DC
8222003-05-08 David Carlton <carlton@math.stanford.edu>
823
824 * valops.c (push_word): Fix typo.
825
d9d9c31f
AC
8262003-05-08 Andrew Cagney <cagney@redhat.com>
827
828 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
829 * gdbarch.h: Re-generate.
830 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
831 (legacy_max_register_raw_size): Delete declaration.
832 * regcache.c (legacy_max_register_raw_size): Delete function.
833 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
834 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
835 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
836 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
837 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
838 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
839 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
840 * findvar.c, dwarf2cfi.c: Ditto.
841
22540ece
AC
8422003-05-08 Andrew Cagney <cagney@redhat.com>
843
844 * mips-tdep.c (read_signed_register): New function, moved to here
845 from "regcache.c".
846 (read_signed_register_pid): Ditto.
847 * regcache.c (read_signed_register_pid): Delete function, moved to
848 "mips-tdep.c".
849 (read_signed_register): Ditto.
850 * regcache.h (read_signed_register): Delete declaration.
851 (read_signed_register_pid): Delete declaration.
852
0c92afe8
AC
8532003-05-08 Andrew Cagney <cagney@redhat.com>
854
855 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
856 * gdbarch.h: Re-generate.
857 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
858 (legacy_max_register_virtual_size): Delete declaration.
859 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
860 * d10v-tdep.c (d10v_print_registers_info): Ditto.
861 * tracepoint.c (memrange_sortmerge): Ditto.
862 * sparc-tdep.c (sparc_print_registers): Ditto.
863 * regcache.c (legacy_max_register_virtual_size): Delete function.
864
6037b830
JB
8652002-05-08 J. Brobecker <brobecker@gnat.com>
866
867 * fork-child.c (escape_bang_in_quoted_argument): New function.
868 (fork_inferior): Escape '!' characters in quoted arguments
869 only when needed.
870
5d62c8b1
JB
8712003-05-08 J. Brobecker <brobecker@gnat.com>
872
873 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
874 the language of the CU is not currently supported by GDB.
875
20a0e81d
JB
8762003-05-08 J. Brobecker <brobecker@gnat.com>
877
878 * defs.h (language): Add language_minimal enum value.
879 * c-lang.c (minimal_language_defn): New language definition.
880 (_initialize_c_language): Add the new minimal language to the list
881 of languages known to GDB.
882
710ee10a
KB
8832003-05-08 Kevin Buettner <kevinb@redhat.com>
884
885 * frame.c (get_frame_type): Don't attempt to lazily initialize
886 frame's unwinder for legacy frames.
887
1750fa04
AC
8882003-05-07 Andrew Cagney <cagney@redhat.com>
889
890 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
891 and "regcache" parameters.
892 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
893
ddf9f258
JJ
8942003-05-07 Jeff Johnston <jjohnstn@redhat.com>
895
896 * dwarf2read.c (dwarf_decode_lines): Only use output of
897 check_cu_functions() when calling record_line(). Do not update
898 the current address.
899
87767c29
AC
9002003-05-07 Andrew Cagney <cagney@redhat.com>
901
902 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
903 code.
904
5e7b2f39
JB
9052003-05-07 Jim Blandy <jimb@redhat.com>
906
907 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
908 'maint info symtabs' and 'maint info psymtabs'.
909 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
910 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
911 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
912 Declarations updated.
913 * maint.c (maintenance_list_command): Delete.
914 (_initialize_maint_cmds): Update calls to add_cmd.
915 * gdbcmd.h (maintenancelistlist): Delete declaration.
916 * cli/cli-cmds.c (maintenancelistlist): Delete.
917 (init_cmd_lists): Don't initialize it.
918 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
919
f6684c31
AC
9202003-05-07 Andrew Cagney <cagney@redhat.com>
921
922 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
923 "regcache".
924 (d10v_print_registers_info): Update.
925 (d10v_dmap_register, d10v_imap_register): Delete functions.
926 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
927 and "imap_register".
928 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
929 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
930 * arch-utils.c (generic_remote_translate_xfer_address): Add
931 "regcache" and "gdbarch" parameters.
932 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
933 parameter. Change class to multi-arch.
934 * gdbarch.h, gdbarch.c: Re-generate.
935 * remote.c (remote_xfer_memory): Use
936 gdbarch_remote_translate_xfer_address.
937
e4846b08
JJ
9382003-05-07 Jeff Johnston <jjohnstn@redhat.com>
939
940 * infrun.c (prev_pc): Move declaration ahead of proceed().
941 (proceed): Refresh prev_pc value before resuming.
942 (stop_stepping): Remove code to refresh prev_pc.
943
6b71b8ac
KW
9442003-05-06 Kris Warkentin <kewarken@qnx.com>
945
946 * nto-tdep.c: Removed stray comment.
947
47979a4b
KW
9482003-05-06 Kris Warkentin <kewarken@qnx.com>
949
950 * i386-nto-tdep.c: Fix old K&R function definitions.
951 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
952 Also change add_show_from_set() call to add_setshow_cmd().
953 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
954
00905d52
AC
9552003-05-05 Andrew Cagney <cagney@redhat.com>
956
957 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
958 (fprint_dummy_frames): New function.
959 (maintenance_print_dummy_frames): New function.
960 (_initialize_dummy_frame): Add command "maint print dummy-frames".
961 * frame.c (fprint_frame_id): Make global.
962 * frame.h (fprint_frame_id): Declare.
963 * Makefile.in (dummy-frame.o): Update dependencies.
964
b1e29e33
AC
9652003-05-05 Andrew Cagney <cagney@redhat.com>
966
967 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
968 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
969 SIZEOF_CALL_DUMMY_WORDS.
970 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
971 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
972 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
973 CALL_DUMMY_BREAKPOINT_OFFSET.
974 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
975 CALL_DUMMY_START_OFFSET.
976 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
977 * gdbarch.h, gdbarch.c: Re-generate.
978 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
979 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
980 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
981 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
982 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
983 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
984 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
985 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
986 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
987 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
988 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
989 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
990 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
991 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
992 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
993
9942003-05-05 Kris Warkentin <kewarken@qnx.com>
995
996 * configure.tgt: Add i[3456]86-*-nto*.
997 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
998 * nto-tdep.c: New file. Neutrino target support routines.
999 * nto-tdep.h: New file. Neutrino target header.
1000 * config/tm-qnxnto.h: New file.
1001 * config/i386/i386nto.mt: New file.
1002 * config/i386/tm-i386nto.h: New file.
b1e29e33 1003
0ce3d317
AC
10042003-05-04 Andrew Cagney <cagney@redhat.com>
1005
1006 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
1007 (load_infrun_state): Ditto.
1008 (struct thread_info): Drop "prev_func_name" field.
1009 * thread.c (load_infrun_state): Update.
1010 (save_infrun_state): Update.
1011 * infrun.c (prev_func_name): Delete variable.
1012 (init_wait_for_inferior): Do not clear prev_func_name.
1013 (stop_stepping, keep_going, context_switch): Do not swap
1014 prev_func_name.
1015 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
1016 instead of PC_IN_SIGTRAMP.
1017
46654a5b
AC
10182003-05-04 Andrew Cagney <cagney@redhat.com>
1019
1020 * sentinel-frame.c (sentinel_frame_prev_register): Replace
1021 REGISTER_BYTE with register_offset_hack.
1022 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
1023 that REGISTER_BYTE is consistent with the regcache.
1024 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
1025 * gdbarch.h, gdbarch.c: Regenerate.
1026
14b08c1b
MK
10272003-05-04 Mark Kettenis <kettenis@gnu.org>
1028
04c8243f
MK
1029 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
1030 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
1031
14b08c1b
MK
1032 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
1033
c7a11e01
JB
10342003-05-03 J. Brobecker <brobecker@gnat.com>
1035
1036 From Thierry Schneider <tpschneider1@yahoo.com>
1037 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
1038 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
1039 (mi-cmd-symbol.o): Add rule.
1040
7043d8dc
AC
10412003-05-03 Andrew Cagney <cagney@redhat.com>
1042
1043 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
1044 comments noteing that it replaces the old FIX_CALL_DUMMY code.
1045 * gdbarch.h, gdbarch.c: Re-generate.
1046 * d10v-tdep.c (d10v_push_dummy_code): New function.
1047 (d10v_gdbarch_init): Set push_dummy_code.
1048 * infcall.c (legacy_push_dummy_code): New function.
1049 (generic_push_dummy_code): New function.
1050 (push_dummy_code): New function.
1051 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
1052 instead of dummy_addr, to push_dummy_call. Move call to
1053 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
1054 switch.
1055 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
1056
92bf2b80
AC
10572003-05-03 Andrew Cagney <cagney@redhat.com>
1058
1059 * disasm.h (print_insn): Declare.
1060 * disasm.c (init_gdb_disassemble_info): New function.
1061 (gdb_disassembly): Call init_gdb_disassemble_info.
1062 (gdb_print_insn): New function.
1063 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
1064 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
1065 * mcore-tdep.c: Include "disasm.h"
1066 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
1067 * d10v-tdep.c: Include "disasm.h".
1068 (display_trace): Call gdb_print_insn, instead of print_insn.
1069 (print_insn): Delete function.
1070 * printcmd.c: Include "disasm.h".
1071 (print_insn): Delete function.
1072 (print_formatted): Call gdb_print_insn, instead of print_insn.
1073 * Makefile.in (printcmd.o): Update dependencies.
1074 (mcore-tdep.o, d10v-tdep.o): Ditto.
1075
27d94c49
AC
10762003-05-02 Andrew Cagney <cagney@redhat.com>
1077
82de1e5b
AC
1078 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
1079 PC_REGNUM, re-indent.
1080 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
1081 PC_REGNUM isn't set.
1082
27d94c49
AC
1083 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
1084 * gdbarch.h, gdbarch.c: Re-generate.
1085 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
1086 register_virtual_size, pc_regnum, or register_bytes.
1087 (D10V_PC_REGNUM): Rename _PC_REGNUM.
1088 (d10v_register_type): Use D10V_PC_REGNUM.
1089 (d10v_print_registers_info, d10v_read_pc): Ditto.
1090 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
1091 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
1092
a9c0dc7f
DC
10932003-05-02 David Carlton <carlton@bactrian.org>
1094
1095 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
1096 the name with mstrsave.
1097
e33d66ec
EZ
10982003-05-02 Elena Zannoni <ezannoni@redhat.com>
1099
1100 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
1101 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
1102 (host_charset_name, target_charset_name): New vars for use by
1103 set/show commands.
1104 (host_charset_enum, target_charset_enum): New enums for set/show
1105 commands.
1106 (set_charset_sfunc, set_host_charset_sfunc,
1107 set_target_charset_sfunc): New functions.
1108 (set_host_charset, set_target_charset): Make static.
1109 (list_charsets, set_host_charset_command,
1110 set_target_charset_command): Delete functions.
1111 (show_charset_command): Rewrite as....
1112 (show_charset): Hook this up with the set/show command mechanism.
1113 (_initialize_charset): Change names of charsets to match the
1114 set/show enums. Use host_charset_name and target_charset_name.
1115 Use set/show mechanism for charset, host-charset, target-charset
1116 commands. Do not make 'show host-charset' and 'show
1117 target-charset' be aliases of 'show charset'.
1118
1119 * charset.h (set_host_charset, set_target_charset): Don't export,
1120 they are not used outside the file.
1121
2b6fd0d8
AC
11222003-05-01 Andrew Cagney <cagney@redhat.com>
1123
1124 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
1125 (gdb_disassembly): Make "di" non static, always initialize and
1126 cleanup. Always use dis_asm_read_memory.
1127 (gdb_dis_asm_read_memory): Delete function.
1128
6ae2f580
AC
11292003-05-01 Andrew Cagney <cagney@redhat.com>
1130
1131 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
1132 (d10v_gdbarch_init): Set frame_align instead of stack_align.
1133
810ecf9f
AC
11342003-04-30 Andrew Cagney <cagney@redhat.com>
1135
1136 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
1137 "tm_print_insn_info".
1138 (TARGET_PRINT_INSN_INFO): Delete macro.
1139 (dis_asm_read_memory): Delete function declaration.
1140 (dis_asm_memory_error, dis_asm_print_address): Ditto.
1141 (tm_print_insn_info): Delete variable definition.
1142 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
1143 * gdbarch.h, gdbarch.c: Re-generate.
1144 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
1145 "deprecated_tm_print_insn_info".
1146 * mcore-tdep.c (mcore_dump_insn): Ditto.
1147 * mips-tdep.c (mips_gdbarch_init): Ditto.
1148 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
1149 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
1150 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
1151 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
1152 instead of TARGET_PRINT_INSN_INFO, add comment.
1153 * s390-tdep.c (s390_get_frame_info): Instead of
1154 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
1155 (s390_check_function_end, s390_is_sigreturn): Ditto.
1156 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
1157 (dis_asm_memory_error, dis_asm_print_address): Ditto.
1158 * disasm.c: Include "gdbcore.h".
1159 (_initialize_disasm): New function, initialize
1160 "deprecated_tm_print_insn_info".
1161 (deprecated_tm_print_insn_info): New variable.
1162 (dis_asm_read_memory): Moved from "corefile.c", made static.
1163 (dis_asm_print_address, dis_asm_memory_error): Ditto.
1164 * Makefile.in (disasm.o): Update dependencies.
1165
07020390
AC
11662003-04-30 Andrew Cagney <cagney@redhat.com>
1167
1168 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
1169
a9fa03de
AF
11702003-04-29 Adam Fedor <fedor@gnu.org>
1171
1172 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
1173 * infcall.c (find_function_addr): Make non-static.
1174 * infcall.h (find_function_addr): Declare.
1175 * Makefile.in (eval.o): Update dependencies.
1176
1bae87b9
AF
11772003-04-28 Adam Fedor <fedor@gnu.org>
1178
1179 * symtab.c (symbol_find_demangled_name): Check for and demangle
1180 ObjC symbols.
1181 (symbol_init_demangled_name): Init for language_objc as well.
1182
0ba6dca9
AC
11832003-04-28 Andrew Cagney <cagney@redhat.com>
1184
1185 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
1186 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
1187 * gdbarch.h, gdbarch.c: Re-generate.
1188 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
1189 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
1190 * inferior.h (deprecated_read_fp): Rename read_fp.
1191 (generic_target_read_fp): Delete declaration.
1192 * regcache.c (generic_target_read_fp): Delete function.
1193 (deprecated_read_fp): Replace read_fp, use
1194 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
1195 * d10v-tdep.c (d10v_read_fp): Delete function.
1196 (d10v_gdbarch_init): Do not set deprecated_read_fp.
1197
1198 * sparc-tdep.c (sparc_gdbarch_init): Do not set
1199 deprecated_target_read_fp to generic_target_read_fp.
1200 * sh-tdep.c (sh_gdbarch_init): Ditto.
1201 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1202 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1203 * frv-tdep.c (frv_gdbarch_init): Ditto.
1204
1205 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
1206 deprecated_fp_regnum.
1207 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1208 * vax-tdep.c (vax_gdbarch_init): Ditto.
1209 * v850-tdep.c (v850_gdbarch_init): Ditto.
1210 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1211 * sh-tdep.c (sh_gdbarch_init): Ditto.
1212 * s390-tdep.c (s390_gdbarch_init): Ditto.
1213 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1214 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1215 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1216 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1217 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1218 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1219 * i386-tdep.c (i386_gdbarch_init): Ditto.
1220 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1221 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1222 * frv-tdep.c (frv_gdbarch_init): Ditto.
1223 * cris-tdep.c (cris_gdbarch_init): Ditto.
1224 * avr-tdep.c (avr_gdbarch_init): Ditto.
1225 * arm-tdep.c (arm_gdbarch_init): Ditto.
1226 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1227
1228 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
1229 * v850-tdep.c (v850_gdbarch_init): Ditto.
1230 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1231 * sh-tdep.c (sh_gdbarch_init): Ditto.
1232 * s390-tdep.c (s390_gdbarch_init): Ditto.
1233 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1234 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1235 * mips-tdep.c (mips_gdbarch_init): Ditto.
1236 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1237 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1238 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1239 * frv-tdep.c (frv_gdbarch_init): Ditto.
1240 * avr-tdep.c (avr_gdbarch_init): Ditto.
1241 * arm-tdep.c (arm_gdbarch_init): Ditto.
1242
1243 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
1244 DEPRECATED_FP_REGNUM.
1245 (vax_push_dummy_frame, vax_pop_frame): Ditto.
1246 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
1247 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
1248 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
1249 (sparc32_register_virtual_type): Ditto.
1250 * sh-tdep.c (sh64_frame_chain): Ditto.
1251 (sh64_get_saved_register, sh64_pop_frame): Ditto.
1252 (sh_nofp_frame_init_saved_regs): Ditto.
1253 (sh64_nofp_frame_init_saved_regs): Ditto.
1254 (sh_fp_frame_init_saved_regs): Ditto.
1255 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1256 * remote-e7000.c (fetch_regs_from_dump): Ditto.
1257 * procfs.c (procfs_fetch_registers): Ditto.
1258 (procfs_store_registers): Ditto.
1259 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
1260 (store_inferior_registers, fetch_core_registers): Ditto.
1261 (fetch_kcore_registers, clear_regs): Ditto.
1262 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
1263 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
1264 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
1265 * nlm/i386.c (do_status): Ditto.
1266 * mipsv4-nat.c (supply_gregset): Ditto.
1267 * mips-tdep.c: Ditto for comments.
1268 * mips-nat.c (fetch_inferior_registers): Ditto.
1269 (store_inferior_registers, fetch_core_registers): Ditto.
1270 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
1271 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
1272 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
1273 (i386_do_pop_frame, i386_register_type): Ditto.
1274 * hppa-tdep.c (hppa_frame_chain): Ditto.
1275 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
1276 (hppa_pop_frame, hppa_read_fp): Ditto.
1277 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
1278 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
1279 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
1280 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
1281 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
1282 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
1283 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
1284 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
1285 * blockframe.c: Ditto for comments.
1286 * arch-utils.h: Ditto for comments.
1287 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
1288 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
1289 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
1290 * alpha-tdep.h: Ditto for comments.
1291 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
1292 (alpha_cannot_store_register): Ditto.
1293 (alpha_push_dummy_frame): Ditto.
1294 * alpha-nat.c (supply_gregset): Ditto.
1295
1296 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
1297 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
1298 * config/sparc/tm-sparc.h: Update comment.
1299
1300 * hppa-tdep.c (hppa_init_extra_frame_info): Use
1301 deprecated_read_fp instead of TARGET_READ_FP.
1302 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
1303 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
1304 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1305 deprecated_read_fp instead of read_fp.
1306 * s390-tdep.c (s390_push_arguments): Ditto.
1307 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1308 * frame.h: Ditto in comments.
1309 * frame.c (legacy_get_prev_frame): Ditto.
1310 * dummy-frame.c (dummy_frame_this_id): Ditto.
1311 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
1312
d7a27068
AC
13132003-04-28 Andrew Cagney <cagney@redhat.com>
1314
1315 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
1316 * gdbarch.h, gdbarch.c: Re-generate.
1317 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
1318 * vax-tdep.c (_initialize_vax_tdep): Update.
1319 * v850-tdep.c (_initialize_v850_tdep): Update.
1320 * sparc-tdep.c (_initialize_sparc_tdep): Update.
1321 * s390-tdep.c (_initialize_s390_tdep): Update.
1322 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
1323 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
1324 * mips-tdep.c (_initialize_mips_tdep): Update.
1325 * mcore-tdep.c (_initialize_mcore_tdep): Update.
1326 * m68k-tdep.c (_initialize_m68k_tdep): Update.
1327 * ia64-tdep.c (_initialize_ia64_tdep): Update.
1328 * hppa-tdep.c (_initialize_hppa_tdep): Update.
1329 * h8300-tdep.c (_initialize_h8300_tdep): Update.
1330 * frv-tdep.c (_initialize_frv_tdep): Update.
1331 * cris-tdep.c (cris_delayed_get_disassembler): Update.
1332 (_initialize_cris_tdep): Update.
1333 * arch-utils.c (legacy_print_insn): Update.
1334 * alpha-tdep.c (_initialize_alpha_tdep): Update.
1335
d2630e69
AF
13362003-04-26 Adam Fedor <fedor@gnu.org>
1337
1338 * linespec.c (decode_objc): New function to decode ObjC calls
1339 (decode_line_1): Check for ObjC calls (using decode_objc)
1340 * Makefile (linespec.o): Update dependencies.
1341
3086aeae
DJ
13422003-04-26 Daniel Jacobowitz <drow@mvista.com>
1343
1344 * breakpoint.h (struct breakpoint_ops): New.
1345 (struct breakpoint): Add ops member.
1346
1347 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
1348 (mention): Use new breakpoint ops member.
1349 (set_raw_breakpoint): Initialize ops field to NULL.
1350 (print_exception_catchpoint, print_one_exception_catchpoint)
1351 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
1352 (gnu_v3_exception_catchpoint_ops): New.
1353 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
1354
1fbec6c3
AF
13552003-04-25 Adam Fedor <fedor@gnu.org>
1356
1357 * Makefile.in (COMMON_OBS): Add objc-lang.o
1358
0ef21242
AC
13592003-04-25 Andrew Cagney <cagney@redhat.com>
1360
1361 * d10v-tdep.c (print_insn): Delete function.
1362 (display_trace): Use TARGET_PRINT_INSN.
1363 (_initialize_d10v_tdep): Do not set tm_print_insn.
1364 (d10v_gdbarch_init): Set print_insn.
1365
f75493ed
AC
13662003-04-25 Andrew Cagney <cagney@redhat.com>
1367
1368 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
1369 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
1370 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
1371 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
1372 (nr_dmap_regs, a0_regnum): ... new functions.
1373 (d10v_print_registers_info): Use a0_regnum, use register_size.
1374 (d10v_register_byte): Delete function.
1375 (d10v_register_raw_size): Delete function.
1376 (d10v_register_type): Use a0_regnum.
1377 (d10v_print_registers_info): Use a0_regnum.
1378 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
1379 (d10v_gdbarch_init): Do not set register_byte or
1380 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
1381 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
1382 extract_address.
1383 (trace_command): Use XCALLOC.
1384 (print_insn): Delete reference to tm_print_insn.
1385 (saved_regs_unwinder): Use store_unsigned_integer instead of
1386 store_address.
1387 * frame.h (FRAME_OBSTACK_CALLOC): Define
1388
2202b100
DC
13892003-04-25 David Carlton <carlton@bactrian.org>
1390
1391 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
1392
4e45ca2e
AF
13932003-04-24 Adam Fedor <fedor@gnu.org>
1394
1395 * objc-lang.c: Include "valprint.h"
1396 * Makefile.in (objc-lang.o): Update dependencies.
1397
93de3e7f
AF
13982003-04-24 Adam Fedor <fedor@gnu.org>
1399
1400 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
1401 architecture dependant compilation and mark as unimplemented
1402 (until they get put in the gdbarch vector).
1403
0f20eeea
DC
14042003-04-23 David Carlton <carlton@bactrian.org>
1405
1406 * cp-support.c (cp_find_first_component): Accept 'operator' in
1407 more locations.
1408
74cfe982
AC
14092003-04-23 Andrew Cagney <cagney@redhat.com>
1410
1411 * infcall.c (call_function_by_hand): Eliminate redundant
1412 indentation. Move "saved_async" and "old_cleanups" to where they
1413 are needed.
1414
52557533
AC
14152003-04-23 Andrew Cagney <cagney@redhat.com>
1416
1417 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
1418 and "buffer". Move the "name" code to where it is needed.
1419
158775de
AC
14202003-04-23 Andrew Cagney <cagney@redhat.com>
1421
1422 * infcall.c (call_function_by_hand): Move variables "start_sp",
1423 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
1424 code to ON_STACK switch branch.
1425
ebc7896c
AC
14262003-04-23 Andrew Cagney <cagney@redhat.com>
1427
1428 * infcall.c (call_function_by_hand): Make declaration of "i",
1429 "sal", "bpt" and "old_sp" more local to their use. Delete #if
1430 lint.
1431
d727590f
AC
14322003-04-23 Andrew Cagney <cagney@redhat.com>
1433
1434 * infcall.c (call_function_by_hand): Delete variable
1435 "n_method_args". Localize "param_type"'s declaration to the loop
1436 that it is used. Reinstate code assigning to said variable -
1437 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
1438 Rationalize code using "param_type".
1439
d585e13a
AC
14402003-04-22 Andrew Cagney <cagney@redhat.com>
1441
1442 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
1443 compute the breakpoint address. Only call FIX_CALL_DUMMY when
1444 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
1445 to DEPRECATED_PUSH_RETURN_ADDRESS.
1446
051caad9
KB
14472003-04-22 Kevin Buettner <kevinb@redhat.com>
1448
1449 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
1450 on the DWARF2 register number prior to fetching a register.
1451
77296879
JB
14522003-04-22 J. Brobecker <brobecker@gnat.com>
1453
1454 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
1455 Update all the tests using SOFT_FLOAT considering the fact that
1456 this macro was always set to 0.
1457 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
1458 considering the fact that this macro was always set to 0.
1459 * hppa-tdep.h (hppa_store_return_value): Likewise.
1460 (hppa_extract_return_value): Likewise.
1461
4252f1df
JB
14622003-04-22 J. Brobecker <brobecker@gnat.com>
1463
1464 * config/pa/tm-hppa.h: Remove obsolete code, was used by
1465 the hppa-pro target only.
1466
14604c6b
JB
14672003-04-21 J. Brobecker <brobecker@gnat.com>
1468
1469 Ongoing multi-arch conversion effort for HP/UX:
1470 * config/pa/tm-hppa.h: Move all macro that are no longer
1471 defined now that GDB_MULTI_ARCH is now set to 1 from here...
1472 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
1473
77eb01d1
JB
14742003-04-21 J. Brobecker <brobecker@gnat.com>
1475
1476 * config/pa/tm-hppa.h: Obsolete a section that was only used
1477 for hppa-pro.
1478
61995b3b
JB
14792003-04-21 J. Brobecker <brobecker@gnat.com>
1480
1481 Ongoing multi-arch conversion for HP/UX.
1482 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
1483 if already defined (allows hppa64 to stay non-multiarched for now).
1484 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
1485
4aa79dcc
AC
14862003-04-21 Andrew Cagney <cagney@redhat.com>
1487
1488 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
1489
0f751ff2
AC
14902003-04-21 Andrew Cagney <cagney@redhat.com>
1491
1492 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
1493 "i386_num_mmx_regs".
1494
04714b91
AC
14952003-04-21 Andrew Cagney <cagney@redhat.com>
1496
1497 * infcall.c: New file.
1498 * infcall.h: New file.
1499 * valarith.c: Include "infcall.h".
1500 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
1501 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
1502 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
1503 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
1504 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
1505 (SFILES): Add "infcall.c"
1506 (COMMON_OBS): Add "infcall.o".
1507 (infcall.o): Specify dependencies.
1508 * value.h (call_function_by_hand): Delete declaration.
1509 * inferior.h (run_stack_dummy): Delete declaration.
1510 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
1511 (run_stack_dummy): Move to "infcall.c", merged into
1512 call_function_by_hand.
1513 * valops.c (call_function_by_hand): Moved to "infcall.c".
1514 (find_function_addr, value_arg_coerce): Ditto.
1515 (unwindonsignal_p, coerce_float_to_double): Ditto.
1516 (_initialize_valops): Move "set/show coerce-float-to-double", and
1517 "set/show unwindonsignal" commands to "infcall.c".
1518 * v850-tdep.c, target.h: Update comments.
1519 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
1520 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
1521 (sh64_init_extra_frame_info): Update comments.
1522 * mn10300-tdep.c: Update comments.
1523 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
1524 * config/sparc/tm-sparc.h: Update comments.
1525 * breakpoint.h: Update comments.
1526 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
1527 * arm-tdep.c: Update comment.
1528
f9d3c2a8
MK
15292003-04-19 Mark Kettenis <kettenis@gnu.org>
1530
c40e1eab
MK
1531 * i386-tdep.c (i386_num_register_names): New variable.
1532 (i386_num_mmx_regs): Renamed from mmx_num_regs.
1533 (MM0_REGNUM): Remove redundant parentheses in define.
1534 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
1535 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
1536 i386_mxcsr_regnum_p): Remove redundant parentheses.
1537 (i386_register_name): Use i386_num_register_names.
1538
94ea66b3
MK
1539 * i386-tdep.c (i386_extract_return_value,
1540 i386_store_return_value): Correct check for availability of
1541 floating-point registers.
1542
54299a1d
MK
1543 * i386-tdep.c (i386_frame_num_args): Remove function.
1544 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
1545
c86c27af
MK
1546 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
1547 mmx_regnum_to_fp_regnum. Adjust all callers.
1548
f9d3c2a8
MK
1549 * i386-tdep.c (i386_get_longjmp_target): Use
1550 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
1551 and TARGET_CHAR_BIT. Use extract_typed_address instead of
1552 extract_address.
1553
94ba74a9
MK
15542003-04-19 Mark Kettenis <kettenis@gnu.org>
1555
1556 * core-regset.c: Update comments to reflect reality. Re-order
1557 includes.
1558 (fetch_core_registers): Use switch instead of if. Remove
1559 redundant prototype.
1560
4074e13c
JB
15612003-04-18 Jim Blandy <jimb@redhat.com>
1562
1563 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 1564 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 1565
e3ab4aba
RH
15662003-04-17 Richard Henderson <rth@redhat.com>
1567
1568 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
1569
627bf7c1
EZ
15702003-04-17 Michael Snyder <msnyder@redhat.com>
1571 Karen Bennet <bennet@redhat.com>
1572
1573 Committed by Elena Zannoni <ezannoni@redhat.com>
1574 * gdb_gcore.sh: New script to create a core dump of a process.
1575
514621a9
EZ
15762003-04-17 Elena Zannoni <ezannoni@redhat.com>
1577
1578 * values.c (value_being_returned): Don't fetch the return
fbe586ae 1579 value if the return type is void.
514621a9 1580
b4acd559
JJ
15812003-04-17 Jeff Johnston <jjohnstn@redhat.com>
1582
1583 * thread-db.c: Reindented.
1584
530b167e
JJ
15852003-04-17 Jeff Johnston <jjohnstn@redhat.com>
1586
1587 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
1588 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
1589 as types.
1590
ab9fe00e
KB
15912003-04-16 Kevin Buettner <kevinb@redhat.com>
1592
610a3745 1593 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
1594 the size of ``long double'' to 16, instead of 8.
1595
e64a344c
MK
15962003-04-16 Mark Kettenis <kettenis@gnu.org>
1597
1598 * i386-linux-nat.c: Add some whitespace to make things more
1599 readable.
1600 (fetch_register, store_register, fetch_inferior_registers,
1601 store_inferior_registers): Get rid of assignment in if-statement.
1602 (store_register): Fix typo in error message.
1603
25d41031
AC
16042003-04-16 Andrew Cagney <cagney@redhat.com>
1605
1606 * utils.c (xmmalloc): Always allocate something, matches
1607 libiberty/xmalloc's semantics.
1608 (xmrealloc, xmcalloc): Ditto.
1609
c50901fd
AC
16102003-04-16 Andrew Cagney <cagney@redhat.com>
1611
1612 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
1613 update comments.
1614 (get_frame_type): Initialize unwind and type when needed.
1615 (get_frame_id, frame_register_unwind): Ditto.
1616
f81824a9
AC
16172003-04-16 Andrew Cagney <cagney@redhat.com>
1618
1619 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
1620 obsolete.
1621 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
1622 * sparcl-stub.c: Obsolete file.
1623 * config/sparc/tm-sparclet.h: Obsolete file.
1624 * sparclet-stub.c: Obsolete file.
1625 * sparclet-rom.c: Obsolete file.
1626 * sparcl-tdep.c: Obsolete file.
1627 * config/sparc/tm-sparclite.h: Obsolete file.
1628 * config/sparc/sparclite.mt: Obsolete file.
1629 * config/sparc/sparclet.mt: Obsolete file.
1630 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
1631 sparc86x-*-* obsolete.
1632
9219021c
DC
16332003-04-15 David Carlton <carlton@math.stanford.edu>
1634
1635 * Makefile.in (SFILES): Add cp-namespace.c.
1636 (COMMON_OBS): Add cp-namespace.o.
1637 (block.o): Depend on gdb_obstack_h and cp_support_h.
1638 (buildsym.o): Depend on cp_support_h.
1639 (cp-namespace.o): New.
1640 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
1641 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
1642 (dwarf2read.o): Depend on cp_support_h.
1643 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
1644 * dwarf2read.c (process_die): Set processing_has_namespace_info,
1645 processing_current_namespace.
1646 (read_namespace): Update processing_current_namespace; check for
1647 anonymous namespaces.
1648 (dwarf2_name): New function.
1649 (dwarf2_extension): Ditto.
1650 * cp-support.h: Update copyright, contributors.
1651 Add inclusion guards.
1652 Add opaque declaration for structs obstack, block, symbol.
1653 (struct using_direct): New struct.
1654 Add declarations for cp_find_first_component,
1655 cp_entire_prefix_len, processing_has_namespace_info,
1656 processing_current_namespace, cp_is_anonymous,
1657 cp_add_using_directive, cp_initialize_namespace,
1658 cp_finalize_namespace, cp_set_block_scope,
1659 cp_scan_for_anonymous_namespaces.
1660 * cp-namespace.c: New file.
1661 * cp-support.c: Update copyright.
1662 Include ctype.h, gdb_assert.h, gdbcmd.h.
1663 New variable maint_cplus_cmd_list.
1664 (cp_find_first_component): New function.
1665 (cp_entire_prefix_len, maint_cplus_command)
1666 (first_component_command, _initialize_cp_support): Ditto.
1667 * buildsym.c: Include cp-support.h.
1668 New variable using_list.
1669 (add_symbol_to_list): Check for anonymous namespaces.
1670 (finish_block): Set block's scope.
1671 (start_symtab): Initialize C++ namespace support.
1672 (end_symtab): Finalize C++ namespace support.
1673 * block.h: Add opaque declarations for structs
1674 block_namespace_info, using_direct, and obstack.
1675 Add declarations for block_set_scope and block_set_using.
1676 (struct block): Add 'language_specific' member.
1677 (BLOCK_NAMESPACE): New macro.
1678 * block.c: Include gdb_obstack.h and cp-support.h.
1679 (struct block_namespace_info): New struct.
1680 (block_set_scope): New function.
1681 (block_set_using, block_initialize_namespace): Ditto.
1682
d5a921c9
KB
16832003-04-14 Kevin Buettner <kevinb@redhat.com>
1684
1685 * solib-svr4.c (svr4_have_link_map_offsets): New function.
1686 (locate_base): Return early if there aren't any link map offsets.
1687 (svr4_solib_create_inferior_hook): Warn if shared library support
1688 is unavailable.
1689
d2a52b27
DC
16902003-04-14 David Carlton <carlton@math.stanford.edu>
1691
1692 * symtab.c (symbol_set_names): Add prefix when storing Java names
1693 in hash table. Fix for PR java/1039.
1694
980cae7a
DC
16952003-04-14 David Carlton <carlton@math.stanford.edu>
1696
1697 * symtab.c (symbol_set_names): Rename 'name' arg to
1698 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
1699 * symtab.h: Change 'name' argument in declaration of
1700 symbol_set_names to 'linkage_name'.
1701 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
1702
e227b13c
AC
17032003-04-14 Andrew Cagney <cagney@redhat.com>
1704
1705 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
1706 return the fully sign-extended register value.
1707 (get_frame_pointer): Ditto.
1708 (mips_pop_frame): Initialize "proc_desc" after checking for a
1709 dummy frame.
1710
36712a20
AC
17112003-04-14 Andrew Cagney <cagney@redhat.com>
1712
1713 * mips-tdep.c (mips_push_dummy_frame): Delete function.
1714 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
1715 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
1716 (mips_push_register): Delete function.
1717 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
1718 PUSH_FP_REGNUM.
1719
44ea7b70
JB
17202003-04-14 Jim Blandy <jimb@redhat.com>
1721
1722 * symmisc.c: #include "gdb_regex.h".
1723 (maintenance_list_symtabs, maintenance_list_psymtabs): New
1724 functions.
1725 * maint.c (maintenance_list_command): New function.
1726 (_initialize_maint_cmds): Register the above as commands.
1727 * symtab.h (maintenance_list_symtabs,
1728 maintenance_list_psymtabs): New declarations.
1729 * cli/cli-cmds.c (maintenancelistlist): New variable.
1730 (init_cmd_lists): Initialize it.
1731 * cli/cli-cmds.h (maintenancelistlist): New declaration.
1732 * gdbcmd.h (maintenancelistlist): New declaration.
1733 * Makefile.in (symmisc.o): Update dependencies.
1734
2d0c7962
EZ
17352003-04-14 Elena Zannoni <ezannoni@redhat.com>
1736
1737 * s390-nat.c: Include asm/types.h for addr_t.
1738
1947a811
CV
17392003-04-14 Corinna Vinschen <vinschen@redhat.com>
1740
1741 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
1742 actually incoming type.
1743
adb616d7
AC
17442003-04-13 Andrew Cagney <cagney@redhat.com>
1745
1746 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
1747 get_next_frame and get_frame_saved_regs.
1748
9b5e151c
AC
17492003-04-13 Andrew Cagney <cagney@redhat.com>
1750
1751 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
1752 of gdbarch_num_regs.
1753
ef6e7e13
AC
17542003-04-13 Andrew Cagney <cagney@redhat.com>
1755
1756 * frame.h: Mention what replaced what in "struct frame_info".
1757 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
1758 deprecated_update_frame_base_hack and
1759 deprecated_update_frame_pc_hack.
1760 * hppa-tdep.c: Ditto.
1761
61fbb938
DJ
17622003-04-13 Daniel Jacobowitz <drow@mvista.com>
1763
1764 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
1765 to read_reg and update its comment. Remove regnum member.
1766 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
1767 Don't call read_reg when setting in_reg. Call read_reg to get
1768 the frame base if it's in a register. Return the register number
1769 on the stack instead of in the context. Remove extra arguments
1770 to read_reg.
1771 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
1772 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
1773 the register number on the expression stack.
1774 (needs_frame_read_reg): Remove extra arguments.
1775
0d53c4c4
DJ
17762003-04-13 Daniel Jacobowitz <drow@mvista.com>
1777
1778 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
1779 made non-static.
1780 (execute_stack_op): All callers updated.
1781 * dwarf2expr.h: Add prototype for dwarf2_read_address.
1782 * dwarf2loc.c (find_location_expression): New function.
1783 (dwarf_expr_frame_base): Call it.
1784 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
1785 (dwarf2_tracepoint_var_ref): New function, broken out from
1786 locexpr_tracepoint_var_ref.
1787 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
1788 Make static.
1789 (loclist_read_variable, loclist_read_needs_frame): New functions.
1790 (loclist_describe_location, loclist_tracepoint_var_ref): New
1791 functions.
1792 (dwarf2_loclist_funcs): New struct location_funcs.
1793 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
1794 (struct dwarf2_locexpr_baton): Add comments.
1795 (dwarf2_loclist_funcs): New extern.
1796 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
1797 base_address and base_known.
1798 (dwarf_loc_buffer): New variable.
1799 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
1800 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
1801 (dwarf2_has_info): Initialize dwarf_loc_offset.
1802 (dwarf2_build_psymtabs): Read in .debug_loc.
1803 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
1804 DWARF_LOC_SIZE.
1805 (psymtab_to_symtab_1): Likewise. Move base address calculation
1806 here, from...
1807 (dwarf2_get_pc_bounds): ... here. Use the base address from
1808 cu_header.
1809 (dwarf2_symbol_mark_computed): Handle location lists.
1810
6aca59a3
DJ
18112003-04-13 Daniel Jacobowitz <drow@mvista.com>
1812
1813 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
1814 if the linkage name demangled successfully.
1815
aca1fcd0
MK
18162003-04-13 Mark Kettenis <kettenis@gnu.org>
1817
97095916
MK
1818 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
1819 disassmbly_flavour): Removed.
1820
aca1fcd0
MK
1821 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
1822
562a961f
MK
18232003-04-13 Mark Kettenis <kettenis@gnu.org>
1824
1825 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
1826
bd013d54
AC
18272003-04-12 Andrew Cagney <cagney@redhat.com>
1828
1829 * frame.h (struct frame_info): Move definition from here ...
1830 * frame.c (struct frame_info): ... to here.
1831
167ef8b1
AC
18322003-04-12 Andrew Cagney <cagney@redhat.com>
1833
1834 * gdbthread.h (save_infrun_state): Delete parameter
1835 "prev_func_start".
1836 (struct thread_info): Delete field "prev_func_start".
1837 (load_infrun_state): Ditto.
1838 * thread.c (load_infrun_state, save_infrun_state): Update.
1839 * infrun.c (prev_func_start): Delete variable.
1840 (context_switch, init_wait_for_inferior): Update.
1841 (stop_stepping, keep_going): Update.
1842
da3331ec
AC
18432003-04-12 Andrew Cagney <cagney@redhat.com>
1844
1845 * gdbarch.sh: Add missing opaque declarations.
1846 * gdbarch.h: Regnerate.
1847 * symtab.h: Add missing opaque declarations.
1848 * value.h, target.h, symfile.h, stabsread.h: Ditto.
1849 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
1850 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
1851 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
1852 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
1853 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
1854 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
1855 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
1856 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
1857 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
1858 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
1859 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
1860 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
1861
18adea3f
AC
18622003-04-11 Andrew Cagney <cagney@redhat.com>
1863
1864 * frame.c (get_frame_id): Return this frame's "id".
1865 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
1866 function start.
1867 (legacy_saved_regs_this_id): Replace function body with
1868 internal-error.
1869 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
1870 FRAME_OBSTACK_ZALLOC.
1871 (create_new_frame): Mark the frame ID as valid.
1872
2252e863
AO
18732003-04-11 Alexandre Oliva <aoliva@redhat.com>
1874
1875 * Makefile.in (libbfd_h): Added missing setting.
1876 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
1877 according to the selected ABI.
1878
a8245ab8
JJ
18792003-04-11 Jeff Johnston <jjohnstn@redhat.com>
1880
1881 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
1882
6913c89a
AC
18832003-04-11 Andrew Cagney <cagney@redhat.com>
1884
1885 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
1886 SAVED_PC_AFTER_CALL.
1887 * gdbarch.h, gdbarch.c: Regenerate.
1888 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1889 * x86-64-tdep.c (x86_64_init_abi): Update.
1890 * vax-tdep.c (vax_gdbarch_init): Update.
1891 * v850-tdep.c (v850_gdbarch_init): Update.
1892 * sparc-tdep.c (sparc_gdbarch_init): Update.
1893 * sh-tdep.c (sh_gdbarch_init): Update.
1894 * s390-tdep.c (s390_gdbarch_init): Update.
1895 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1896 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1897 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1898 * mips-tdep.c (mips_gdbarch_init): Update.
1899 * mcore-tdep.c (mcore_gdbarch_init): Update.
1900 * m68k-tdep.c (m68k_gdbarch_init): Update.
1901 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1902 * ia64-tdep.c (ia64_gdbarch_init): Update.
1903 (ia64_saved_pc_after_call): Update declaration.
1904 * i386ly-tdep.c (i386lynx_init_abi): Update.
1905 * i386-tdep.c (i386_gdbarch_init): Update.
1906 * hppa-tdep.c (hppa_gdbarch_init): Update.
1907 * h8300-tdep.c (h8300_gdbarch_init): Update.
1908 * frv-tdep.c (frv_gdbarch_init): Update.
1909 * cris-tdep.c (cris_gdbarch_init): Update.
1910 * avr-tdep.c (avr_gdbarch_init): Update.
1911 * arm-tdep.c (arm_gdbarch_init): Update.
1912 * alpha-tdep.c (alpha_gdbarch_init): Update.
1913 * ns32knbsd-nat.c (frame_num_args): Update.
1914 * ns32k-tdep.c (umax_frame_num_args): Update.
1915 * mips-tdep.c (mips_init_frame_pc_first): Update.
1916 * infrun.c (step_over_function): Update.
1917 * i386-linux-tdep.c (skip_hurd_resolver): Update.
1918 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
1919 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
1920 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1921 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1922 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
1923 * arm-linux-tdep.c (skip_hurd_resolver): Update.
1924 * arch-utils.c (init_frame_pc_default): Update.
1925 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1926 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
1927 declaration.
1928
38edeab8
AC
19292003-04-11 Andrew Cagney <cagney@redhat.com>
1930
1931 * i387-tdep.c: Update copyright.
1932 (i387_to_double): Delete function.
1933 (double_to_i387): Delete function.
1934
81f8a206
AC
19352003-04-10 Andrew Cagney <cagney@redhat.com>
1936
1937 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
1938 frame's function's address. Simplify.
1939 (d10v_frame_unwind_cache): Check that the frame's function is
1940 non-zero.
1941
6e691f7a
JB
19422003-04-10 Jim Blandy <jimb@redhat.com>
1943
1944 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
1945 call to set_gdbarch_deprecated_push_arguments.
1946
7f78e237
AC
19472003-04-10 Andrew Cagney <cagney@redhat.com>
1948
1949 * frame.c (fprint_frame_id): New function.
1950 (fprint_frame_type, fprint_frame): New function.
1951 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
1952 (create_sentinel_frame, get_frame_id): Ditto.
1953 (frame_id_p, frame_id_eq): Ditto.
1954 (frame_id_inner, create_new_frame): Ditto.
1955 (legacy_get_prev_frame, get_prev_frame): Ditto.
1956 (deprecated_update_frame_pc_hack): Ditto.
1957 (frame_register_unwind): Ditto.
1958 (deprecated_update_frame_base_hack): Ditto.
1959
f870b49b
CV
19602003-04-10 Corinna Vinschen <vinschen@redhat.com>
1961
1962 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
1963 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
1964 frame_chain function.
1965 * Makefile.in: Add dependencies due to above change.
1966
7c86889b
CV
19672003-04-10 Corinna Vinschen <vinschen@redhat.com>
1968
1969 * blockframe.c (legacy_frame_chain_valid): Move call to
1970 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
1971 inside_entry_file.
1972
d0a55772
AC
19732003-04-09 Andrew Cagney <cagney@redhat.com>
1974
1975 * frame.h (struct frame_id): Replace "pc" and "base" with
1976 "stack_addr" and "code_addr". Update comments.
1977 (frame_id_build): Update parameter names and comment.
1978 (struct frame_info): Replace "id_p" and "id" with "this_id".
1979 * dummy-frame.c (dummy_frame_this_id): Update.
1980 * breakpoint.c (print_one_breakpoint): Update.
1981 * frame.c (get_frame_id): Update.
1982 (get_frame_base, frame_id_build): Update.
1983 (create_sentinel_frame, legacy_get_prev_frame): Update.
1984 (deprecated_update_frame_base_hack): Update.
1985 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
1986 (frame_id_inner): Ditto.
1987
ac16bf07
AC
19882003-04-09 Andrew Cagney <cagney@redhat.com>
1989
1990 * defs.h (gdb_print_host_address): Make "addr" parameter a
1991 pointer constant.
1992 * utils.c (gdb_print_host_address): Update.
1993
366cfc9e
KB
19942003-04-09 Kevin Buettner <kevinb@redhat.com>
1995
1996 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
1997 register number for R0 is 0.
1998
cd983b5c
JB
19992003-04-09 J. Brobecker <brobecker@gnat.com>
2000
2001 * frame.h (struct gdbarch): Add opaque structure definition
2002 to avoid a compilation warning on LynxOS 4.0.
2003
d1340264
AC
20042003-04-09 Andrew Cagney <cagney@redhat.com>
2005
2006 * frame.h (struct frame_info): Delete field "pc". Replace
2007 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
2008 structure.
2009 * frame.c (frame_pc_unwind): Update.
2010 (create_sentinel_frame): Do not set "pc".
2011 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
2012 (get_frame_pc): Call frame_pc_unwind.
2013 (deprecated_update_frame_pc_hack): Update.
2014 (create_new_frame): Use "pc" not "->pc".
2015
90a6fffb
AC
20162003-04-09 Andrew Cagney <cagney@redhat.com>
2017
2018 * frame.c (get_frame_id): Eliminate code updating "frame".
2019 (legacy_get_prev_frame): Ditto.
2020 (get_frame_base): Return id.base directly.
2021 (deprecated_update_frame_base_hack): Update "id.base".
2022 * frame.h (struct frame_info): Delete field "frame".
2023
2fbce691
AC
20242003-04-09 Andrew Cagney <cagney@redhat.com>
2025
2026 * NEWS: Mention that the "Sequent family" is obsolete.
2027 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
2028 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
2029 * configure.host: Obsolete i[3456]86-sequent-bsd*,
2030 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
2031 * config/i386/tm-ptx4.h: Obsolete file.
2032 * config/i386/tm-ptx.h: Obsolete file.
2033 * symm-tdep.c: Obsolete file.
2034 * config/i386/symmetry.mt: Obsolete file.
2035 * config/i386/tm-symmetry.h: Obsolete file.
2036 * symm-nat.c: Obsolete file.
2037 * config/i386/nm-symmetry.h: Obsolete file.
2038 * config/i386/xm-symmetry.h: Obsolete file.
2039 * config/i386/symmetry.mh: Obsolete file.
2040 * config/i386/nm-ptx4.h: Obsolete file.
2041 * config/i386/ptx4.mh: Obsolete file.
2042 * config/i386/ptx.mt: Obsolete file.
2043 * config/i386/ptx.mh: Obsolete file.
2044 * config/i386/xm-ptx4.h: Obsolete file.
2045 * config/i386/xm-ptx.h: Obsolete file.
2046
78c43945
AC
20472003-04-09 Andrew Cagney <cagney@redhat.com>
2048
2049 Obsolete mips*-*-mach3*.
2050 * NEWS: Mention that mips*-*-mach3* is obsolete.
2051 * m3-nat.c: Obsolete file.
2052 * config/nm-m3.h: Obsolete file.
2053 * config/mips/tm-mipsm3.h: Obsolete file.
2054 * config/mips/mipsm3.mt: Obsolete file.
2055 * config/mips/mipsm3.mh: Obsolete file.
2056 * config/mips/xm-mipsm3.h: Obsolete file.
2057 * mipsm3-nat.c: Obsolete file.
2058 * configure.host: Obsolete mips-dec-mach3*.
2059 * configure.tgt: Obsolete mips*-*-mach3*.
2060
f1908289
AC
20612003-04-09 Andrew Cagney <cagney@redhat.com>
2062
2063 * doublest.h: Update copyright.
2064 (deprecated_store_floating, deprecated_extract_floating): Rename
2065 store_floating and extract_floating. Update comments.
2066 * doublest.c: Update copyright.
2067 (extract_floating_by_length): Replace extract_floating.
2068 (store_floating_by_length): Replace store_floating.
2069 (deprecated_extract_floating): New function.
2070 (deprecated_store_floating): New function.
2071 (extract_typed_floating): Call extract_floating_by_length.
2072 (store_typed_floating): Call store_floating_by_length.
2073 * x86-64-tdep.c (x86_64_store_return_value): Update.
2074 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
2075 (sh64_extract_return_value): Update.
2076 (sh_sh4_register_convert_to_virtual): Update.
2077 (sh_sh64_register_convert_to_virtual): Update.
2078 (sh_sh4_register_convert_to_raw): Update.
2079 (sh_sh64_register_convert_to_raw): Update.
2080 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
2081 (rs6000_register_convert_to_raw): Update.
2082 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
2083 (ia64_register_convert_to_raw): Update.
2084 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
2085 (REGISTER_CONVERT_TO_VIRTUAL): Update.
2086 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
2087 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
2088 (alpha_register_convert_to_raw): Update.
2089
4443bd83
AC
20902003-04-08 Andrew Cagney <cagney@redhat.com>
2091
2092 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
2093 * gdbarch.h, gdbarch.c: Re-generate.
2094 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
2095 (d10v_gdbarch_init): Do not set saved_pc_after_call.
2096 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
2097 conditionally, use frame_pc_unwind as an alternative. Add
2098 comments.
2099 * arch-utils.c (init_frame_pc_default): Only call
2100 SAVED_PC_AFTER_CALL when available.
2101
c0236d92
EZ
21022003-04-08 Elena Zannoni <ezannoni@redhat.com>
2103
fbe586ae 2104 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
2105 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
2106 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
2107 (start_remote): Ditto.
2108 (handle_inferior_event): Ditto.
2109 (save_inferior_status): Ditto.
2110 (restore_inferior_status): Ditto.
2111 * infcmd.c (attach_command): Ditto.
2112 * fork-child.c (startup_inferior): Ditto.
fbe586ae 2113 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
2114 * alpha-tdep.c (heuristic_proc_start): Ditto.
2115 * mips-tdep.c (heuristic_proc_start): Ditto.
2116 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
2117 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
2118 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
2119 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
2120 * remote-vx.c (vx_create_inferior): Ditto.
2121
21222003-04-08 Elena Zannoni <ezannoni@redhat.com>
2123
2124 * infrun.c (stop_soon_quietly): Make it an enum, to better
2125 override the default behavior of handle_inferior_event.
2126 (clear_proceed_status): Update uses of stop_soon_quietly to
2127 reflect that it is now an enum.
2128 (start_remote): Ditto.
2129 (handle_inferior_event): Change logic a bit if stop_soon_quietly
2130 is set to handle the new GNU/Linux kernel behavior for
2131 attach/sigstop. Update uses of stop_soon_quietly.
2132 * inferior.h (enum stop_kind): New enum.
2133 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
2134 Reset normal handle_inferior_event behavior, afterwards.
2135 * fork-child.c (startup_inferior): Update.
2136 * alpha-tdep.c (heuristic_proc_start): Update.
2137 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2138 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
2139 * solib-osf.c (osf_solib_create_inferior_hook): Update.
2140 * solib-irix.c (irix_solib_create_inferior_hook): Update.
2141 * remote-vx.c (vx_create_inferior): Update.
2142 * mips-tdep.c (heuristic_proc_start): Update.
2143
1211bce3
EZ
21442003-04-07 Elena Zannoni <ezannoni@redhat.com>
2145
2146 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 2147 be freed more than once, causing wild memory corruptions.
1211bce3 2148 (gdb_disassembly): Look for the substring "-thread",
fbe586ae
RH
2149 instead of "-threads" in the target name, to make sure to find
2150 the 'multi-thread' target. Also, make sure we do the right thing
2151 with the "core" target.
1211bce3 2152
f0ef6b29
KB
21532003-04-07 Kevin Buettner <kevinb@redhat.com>
2154
2155 * mips-tdep.c (mips_print_fp_register): New function, created from
2156 do_fp_register_row(). Registers are now (also) printed as hex.
2157 Only one register is printed per row.
2158 (mips_print_register, do_fp_register_row): Print floating point
2159 registers with mips_print_fp_register().
2160
8cf71652
AC
21612003-04-06 Andrew Cagney <cagney@redhat.com>
2162
5e488a7b
AC
2163 * valprint.h (inspect_it): Add extern declaration.
2164 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
2165 (selectors_info, classes_info): Ditto.
2166 (find_objc_msgcall): Fix indentation.
2167 (objc_printstr): Delete extern declarations.
2168
8cf71652
AC
2169 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
2170
e6ba3bc9
AC
21712003-04-06 Andrew Cagney <cagney@redhat.com>
2172
2173 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
2174 Update comment.
2175 * frame.c (legacy_saved_regs_this_id): Update.
2176 (legacy_get_prev_frame): Update.
2177 * xstormy16-tdep.c: Update comment.
2178 * sparc-tdep.c (sparc_frame_chain): Update comment.
2179 * blockframe.c (legacy_frame_chain_valid): Update.
2180
55e1d7e7
AC
21812003-04-06 Andrew Cagney <cagney@redhat.com>
2182
996179ee
AC
2183 * valprint.c (val_print_type_code_int): Delete #ifdef
2184 PRINT_TYPELESS_INTEGER code.
2185
55e1d7e7
AC
2186 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
2187 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
2188 multi-arch definition.
2189 * gdbarch.h: Re-generate.
2190
43bd9a9e
AC
21912003-04-05 Andrew Cagney <cagney@redhat.com>
2192
2193 Eliminate FRAME_FIND_SAVED_REGS.
2194 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
2195 Change FSR parameter to a pointer.
2196 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
2197 Assume FSR parameter is a pointer.
2198 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
2199 Make fsr a pointer.
2200 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
2201 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
2202 saved_regs a pointer.
2203 (hppa_frame_saved_pc): Ditto.
2204 (find_dummy_frame_regs): Make frame_saved_regs a pointer
2205 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
2206 pointer.
2207 (restore_pc_queue): Make fsr a pointer.
2208 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
2209 (hppa_frame_chain): Make saved_regs a pointer, call
2210 hppa_frame_init_saved_regs.
2211 * sparc-tdep.c: Include "gdb_assert.h".
2212 (sparc_frame_find_saved_regs): Replace internal_error with
2213 gdb_assert.
2214 * remote-vxsparc.c (vx_read_register): Delete reference to
2215 FRAME_FIND_SAVED_REGS.
2216 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
2217 * gdbarch.h: Regenerate.
2218 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
2219 (deprecated_get_frame_saved_regs): Delete declaration.
2220 (struct frame_saved_regs): Delete definition.
2221 * frame.c (deprecated_get_frame_saved_regs): Delete function.
2222 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
2223 (hppa_frame_find_saved_regs): Delete declaration.
2224 (FRAME_FIND_SAVED_REGS): Delete macro.
2225 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
2226 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
2227 FRAME_FIND_SAVED_REGS in comment.
2228
be41e9f4
AC
22292003-04-05 Andrew Cagney <cagney@redhat.com>
2230
2231 * frame.c (frame_func_unwind, get_frame_func): New functions.
2232 * frame.h (get_frame_func, frame_func_unwind): Declare.
2233 (struct frame_info): Add field "prev_func" for caching the
2234 previous frame's function address.
2235 * arm-tdep.c (arm_frameless_function_invocation): Combine
2236 get_pc_function_start and get_frame_pc into get_frame_func.
2237 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
2238 (sh64_nofp_frame_init_saved_regs): Ditto.
2239 * s390-tdep.c (s390_function_start): Ditto.
2240 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
2241 (rs6000_frameless_function_invocation): Ditto.
2242 (rs6000_frame_saved_pc): Ditto.
2243 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
2244 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
2245 * i386-tdep.c (i386_frameless_signal_p): Ditto.
2246 (i386_frame_init_saved_regs): Ditto.
2247 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
2248 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
2249 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
2250 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2251 * blockframe.c (frameless_look_for_prologue): Ditto.
2252
a01dd7cc
AC
22532003-04-05 Andrew Cagney <cagney@redhat.com>
2254
2255 * frame.c (legacy_get_prev_frame): Link prev to next at the
2256 function start. Update comments.
2257
5e5592e6
AC
22582003-04-05 Andrew Cagney <cagney@redhat.com>
2259
2260 * frame.c (get_frame_id): Update comment.
2261 (legacy_get_prev_frame): Update comment.
2262 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
2263 * gdbarch.h: Regenerate.
2264 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
2265 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
2266
6fba5002
AC
22672003-04-05 Andrew Cagney <cagney@redhat.com>
2268
2269 * stack.c (print_frame_info): Use get_frame_pc.
2270
7df05f2b
AC
22712003-04-04 Andrew Cagney <cagney@redhat.com>
2272
2273 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
2274 the frame's type from the unwinder.
2275 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
2276 (create_new_frame, legacy_get_prev_frame): When the unwinder's
2277 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
2278 (get_frame_base_address): Use get_frame_type.
2279 (get_frame_locals_address, get_frame_args_address): Ditto.
2280 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
2281 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
2282 (struct frame_info): Add comment explaining why the frame contains
2283 a "type" field.
2284 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
2285 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
2286 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
2287 NORMAL_FRAME.
2288 * frame-unwind.h: Include "frame.h".
2289 (struct frame_unwind): Add "type" field.
2290 * Makefile.in (frame_unwind_h): Add $(frame_h).
2291
11889732
AC
22922003-04-04 Andrew Cagney <cagney@redhat.com>
2293
2294 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
2295 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
2296 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
2297 get_frame_base.
2298 (d10v_unwind_dummy_id): Use frame_id_build.
2299 * frame.c (find_frame_sal): Use get_frame_pc.
2300 (create_new_frame): Use deprecated_update_frame_pc_hack and
2301 deprecated_update_frame_base_hack.
2302 (create_sentinel_frame): Add comment about ->pc going away.
2303 (get_prev_frame): Add comment about ->pc going away.
2304 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
2305 frame_id_build, deprecated_update_frame_pc_hack and
2306 deprecated_update_frame_base_hack.
2307 (select_frame): Use get_frame_pc.
2308 (legacy_saved_regs_this_id): Use frame_id_build.
2309
50c46a0d
EZ
23102003-04-04 Elena Zannoni <ezannoni@redhat.com>
2311
fbe586ae
RH
2312 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
2313 signed integer case.
2314 (classify_argument): Handle enumerations and references.
50c46a0d 2315
50bbdbd9
AC
23162003-04-04 Andrew Cagney <cagney@redhat.com>
2317
2318 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
2319 ID to NULL.
2320
36018d2e
AF
23212003-04-01 Adam Fedor <fedor@gnu.org>
2322
2323 * gdb/objc-lang.c (selectors_info): Replace calls to
2324 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
2325 SYMBOL_NATURAL_NAME.
2326 (classes_info, find_methods): Likewise.
2327
35cec841
KB
23282003-04-03 Kevin Buettner <kevinb@redhat.com>
2329
2330 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
2331 ``mach'' to the value determined by bfd_default_set_arch_mach().
2332
43136899
BR
23332003-04-02 Bob Rossi <bob_rossi@cox.net>
2334
2335 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
2336 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
2337 (mi-cmd-file.o): Update dependencies.
2338
040b99fd
KB
23392003-04-01 Kevin Buettner <kevinb@redhat.com>
2340
2341 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
2342 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
2343
9a3d7dfd
AF
23442003-04-01 Adam Fedor <fedor@gnu.org>
2345
2346 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
2347 * language.h (struct language_defn): Add la_demangle.
2348 (language_demangle): Declare.
2349 * language.c (language_demangle): New function.
2350 (unk_lang_demangle): Likewise.
2351 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 2352 Add ukn_lang_demangle.
9a3d7dfd 2353 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 2354 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
2355 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
2356 (cplus_language_defn): Add cplus_demangle for la_demangle element.
2357 * jv-lang.c (java_demangle): New function
2358 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
2359 * objc-lang.c (objc_demangle): Add options argument
2360 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
2361 * maint.c (maintenance_demangle): Replace switch with
2362 call to language_demangle.
2363 * utils.c (fprintf_symbol_filtered): Likewise.
2364
5e074003
AC
23652003-04-01 Andrew Cagney <cagney@redhat.com>
2366
2367 * printcmd.c (print_frame_nameless_args): Delete #ifdef
2368 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
2369 PRINT_TYPELESS_INTEGER.
2370 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
2371 PUSH_RETURN_ADDRESS.
2372
270cb5d6
AC
23732003-04-01 Andrew Cagney <cagney@redhat.com>
2374
2375 * Makefile.in (d10v-tdep.o): Update dependencies.
2376 * d10v-tdep.c: Include "frame-base.h".
2377 (d10v_frame_unwind): Make constant.
2378 (d10v_frame_base_address): New function.
2379 (d10v_frame_base): New variable.
2380 (d10v_gdbarch_init): Set frame_base default.
2381 (struct d10v_unwind_cache): Add the field "prev_sp". Update
2382 comment for base.
2383 (d10v_frame_unwind_cache): Set and use "prev_sp".
2384 (d10v_frame_this_id): Use the previous frame's inner most stack
2385 address and this frame's func address for the frame ID. Use
2386 frame_id_build. Don't analyze beyond the current instruction.
2387
6bfb3e36
AC
23882003-04-01 Andrew Cagney <cagney@redhat.com>
2389
2390 * frame.h (get_frame_locals_address, get_frame_args_address):
2391 Refer to the base address, instead of the address of the first
2392 local or parameter.
2393
da62e633
AC
23942003-04-01 Andrew Cagney <cagney@redhat.com>
2395
2396 Add frame debug info addresses:
2397 * frame-base.c: New file.
2398 * frame-base.h: New file.
2399 * frame.h (struct frame_base): Add opaque declaration.
2400 (get_frame_base): Update comment.
2401 (get_frame_base_address): Declare.
2402 (get_frame_locals_address): Declare.
2403 (get_frame_args_address): Declare.
2404 (struct frame_info): Add "base" and "base_cache". Update
2405 comments on the unwinder.
2406 * frame.c: Include "frame-base.h".
2407 (get_frame_locals_address): New function.
2408 (get_frame_base_address): New function.
2409 (get_frame_args_address): New function.
2410 * findvar.c (read_var_value): Use get_frame_locals_address and
2411 get_frame_args_address.
2412 * stack.c (frame_info): Use get_frame_locals_address and
2413 get_frame_args_address.
2414 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
2415 moved to "frame-base.c".
2416 * printcmd.c (print_frame_nameless_args): Ditto.
2417 * symtab.h (address_class): Update comments.
2418 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
2419 get_frame_base_address.
2420 * dwarf2expr.c (execute_stack_op): Ditto.
2421 * Makefile.in (frame_base_h): Define.
2422 (frame.o): Update dependencies.
2423 (frame-base.o): Add dependencies.
2424 (SFILES): Add frame-base.c.
2425 (COMMON_OBS): Add frame-base.o.
2426
3d30e9c2
AC
24272003-04-01 Andrew Cagney <cagney@redhat.com>
2428
2429 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
2430 CALL_DUMMY_LENGTH): Ditto.
2431 * gdbarch.c: Re-generate.
2432 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
2433 (CALL_DUMMY_LENGTH): Delete macro.
2434 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
2435 * arm-tdep.c (arm_gdbarch_init): Ditto.
2436 * avr-tdep.c (avr_gdbarch_init): Ditto.
2437 * cris-tdep.c (cris_gdbarch_init): Ditto.
2438 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2439 * frv-tdep.c (frv_gdbarch_init): Ditto.
2440 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2441 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2442 * i386-tdep.c (i386_gdbarch_init): Ditto.
2443 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2444 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2445 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2446 * mips-tdep.c (mips_gdbarch_init): Ditto.
2447 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2448 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2449 * s390-tdep.c (s390_gdbarch_init): Ditto.
2450 * sh-tdep.c (sh_gdbarch_init): Ditto.
2451 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2452 * v850-tdep.c (v850_gdbarch_init): Ditto.
2453 * vax-tdep.c (vax_gdbarch_init): Ditto.
2454 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2455
ce0c7262
CV
24562003-04-01 Corinna Vinschen <vinschen@redhat.com>
2457
2458 * frame.c (get_prev_frame): Disable call to inside_entry_file().
2459
73dd234f
AC
24602003-04-01 Andrew Cagney <cagney@redhat.com>
2461
2462 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
2463 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
2464 * gdbarch.h, gdbarch.c: Re-generate.
2465 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
2466 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
2467 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
2468 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
2469 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2470 * infcmd.c (run_stack_dummy): Simplify assuming
2471 CALL_DUMMY_BREAKPOINT_OFFSET_P.
2472 * infrun.c (handle_inferior_event): Ditto.
2473 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2474 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
2475 * arm-tdep.c (arm_gdbarch_init): Ditto.
2476 * avr-tdep.c (avr_gdbarch_init): Ditto.
2477 * cris-tdep.c (cris_gdbarch_init): Ditto.
2478 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2479 * frv-tdep.c (frv_gdbarch_init): Ditto.
2480 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2481 * i386-tdep.c (i386_gdbarch_init): Ditto.
2482 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2483 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2484 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2485 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2486 * mips-tdep.c (mips_gdbarch_init): Ditto.
2487 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2488 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2489 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2490 * s390-tdep.c (s390_gdbarch_init): Ditto.
2491 * sh-tdep.c (sh_gdbarch_init): Ditto.
2492 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2493 * v850-tdep.c (v850_gdbarch_init): Ditto.
2494 * vax-tdep.c (vax_gdbarch_init): Ditto.
2495 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2496
97606a13
DJ
24972003-04-01 Daniel Jacobowitz <drow@mvista.com>
2498
2499 * symfile.c (symfile_relocate_debug_section): Update call to
2500 bfd_simple_get_relocated_section_contents.
2501
e8ab51f7
AC
25022003-03-31 Andrew Cagney <cagney@redhat.com>
2503
2504 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
2505 * gdbarch.h, gdbarch.c: Regenerate.
2506 * inferior.h (FIX_CALL_DUMMY): Delete macro.
2507 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
2508 available.
2509 * frame.h (generic_fix_call_dummy): Delete declaration.
2510 * dummy-frame.h: Update comment.
2511 * dummy-frame.c (generic_fix_call_dummy): Delete function.
2512 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2513 fix_call_dummy.
2514 * sh-tdep.c (sh_gdbarch_init): Ditto.
2515 * s390-tdep.c (s390_gdbarch_init): Ditto.
2516 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2517 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2518 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2519 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2520 * i386-tdep.c (i386_gdbarch_init): Ditto.
2521 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2522 * frv-tdep.c (frv_gdbarch_init): Ditto.
2523 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2524 * cris-tdep.c (cris_gdbarch_init): Ditto.
2525 * avr-tdep.c (avr_gdbarch_init): Ditto.
2526 * arm-tdep.c (arm_gdbarch_init): Ditto.
2527
018d1b48
JB
25282003-03-31 J. Brobecker <brobecker@gnat.com>
2529
2530 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
2531 (INIT_FRAME_AP): Likewise.
2532 (EXTRA_FRAME_INFO): Likewise.
2533
e9a2674e
AC
25342003-03-31 Andrew Cagney <cagney@redhat.com>
2535
2536 * gdbarch.sh: Include "symfile.h".
2537 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
2538 * gdbarch.h, gdbarch.c: Re-generate.
2539 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
2540 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2541 call_dummy_address, the default is at entry_point_address.
2542 * v850-tdep.c (v850_gdbarch_init): Ditto.
2543 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2544 * sh-tdep.c (sh_gdbarch_init): Ditto.
2545 * s390-tdep.c (s390_gdbarch_init): Ditto.
2546 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2547 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2548 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2549 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2550 * i386-tdep.c (i386_gdbarch_init): Ditto.
2551 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2552 * frv-tdep.c (frv_gdbarch_init): Ditto.
2553 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2554 * cris-tdep.c (cris_gdbarch_init): Ditto.
2555 * arm-tdep.c (arm_gdbarch_init): Ditto.
2556
e8a8712a
AC
25572003-03-31 Andrew Cagney <cagney@redhat.com>
2558
2559 * gdbarch.sh (CALL_DUMMY_P): Delete.
2560 * gdbarch.h, gdbarch.c: Re-generate.
2561 * inferior.h (CALL_DUMMY_P): Delete macro.
2562 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2563 * vax-tdep.c (vax_gdbarch_init): Update.
2564 * v850-tdep.c (v850_gdbarch_init): Update.
2565 * sparc-tdep.c (sparc_gdbarch_init): Update.
2566 * sh-tdep.c (sh_gdbarch_init): Update.
2567 * s390-tdep.c (s390_gdbarch_init): Update.
2568 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2569 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2570 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2571 * mips-tdep.c (mips_gdbarch_init): Update.
2572 * mcore-tdep.c (mcore_gdbarch_init): Update.
2573 * m68k-tdep.c (m68k_gdbarch_init): Update.
2574 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2575 * ia64-tdep.c (ia64_gdbarch_init): Update.
2576 * i386-tdep.c (i386_gdbarch_init): Update.
2577 * h8300-tdep.c (h8300_gdbarch_init): Update.
2578 * frv-tdep.c (frv_gdbarch_init): Update.
2579 * d10v-tdep.c (d10v_gdbarch_init): Update.
2580 * cris-tdep.c (cris_gdbarch_init): Update.
2581 * breakpoint.c (deprecated_frame_in_dummy): Update.
2582 * avr-tdep.c (avr_gdbarch_init): Update.
2583 * alpha-tdep.c (alpha_gdbarch_init): Update.
2584 * arm-tdep.c (arm_gdbarch_init): Update.
2585 * dummy-frame.c (dummy_frame_this_id): Update comments.
2586 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
2587 * frame.c (legacy_get_prev_frame): Ditto.
2588 * valops.c (call_function_by_hand): Delete function.
2589 (hand_function_call): Rename to call_function_by_hand
2590
ed234cf8
AC
25912003-03-30 Andrew Cagney <cagney@redhat.com>
2592
2593 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 2594 * value.h (struct value): Update comment.
ed234cf8 2595
06c77151
AC
25962003-03-30 Andrew Cagney <cagney@redhat.com>
2597
6c2b5168
AC
2598 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
2599 D10V_FP_REGNUM.
2600 (d10v_gdbarch_init): Do not set fp_regnum.
2601
06c77151
AC
2602 * frame.c (get_frame_base): Force ID initialization.
2603 (get_prev_frame): Move computation of the frame ID from here ...
2604 (get_frame_id): ... to here.
2605 (legacy_get_prev_frame): Mark the frame ID as valid.
2606 * frame.h (struct frame_info): Add field "id_p".
2607
97a1a11c
MK
26082003-03-30 Mark Kettenis <kettenis@gnu.org>
2609
2610 * i386-tdep.c (i386_store_struct_return): Removed.
2611 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
2612
6c0e89ed
AC
26132003-03-30 Andrew Cagney <cagney@redhat.com>
2614
2615 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
2616 * gdbarch.h, gdbarch.c: Regenerate.
2617 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
2618 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2619 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2620 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2621 * i386-tdep.c (i386_gdbarch_init): Ditto.
2622 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2623 * cris-tdep.c (cris_gdbarch_init): Ditto.
2624 * vax-tdep.c (vax_gdbarch_init): Ditto.
2625 * s390-tdep.c (s390_gdbarch_init): Ditto.
2626 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2627 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2628 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2629 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
2630 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
2631 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
2632 * sparc-tdep.c (sparc_gdbarch_init): Update.
2633 * sh-tdep.c (sh_gdbarch_init): Update.
2634 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2635 * mips-tdep.c (mips_gdbarch_init): Update.
2636 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2637 * ia64-tdep.c (ia64_gdbarch_init): Update.
2638 * frv-tdep.c (frv_gdbarch_init): Update.
2639 * avr-tdep.c (avr_gdbarch_init): Update.
2640 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
2641 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
2642 instead of when push_dummy_call is not available.
2643
f7dd6af2
AC
26442003-03-30 Andrew Cagney <cagney@redhat.com>
2645
2646 * infttrace.c: Include "gdbthread.h".
2647 (parent_attach_all): Fix function signature.
2648 (call_ptrace): Update call.
2649 * Makefile.in (infttrace.o): Update dependencies.
2650
28f617b3
AC
26512003-03-30 Andrew Cagney <cagney@redhat.com>
2652
2653 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
2654 PUSH_RETURN_ADDRESS.
2655 * gdbarch.h, gdbarch.c: Regenerate.
2656 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2657 * x86-64-tdep.c (x86_64_init_abi): Update.
2658 * v850-tdep.c (v850_gdbarch_init): Update.
2659 * sparc-tdep.c (sparc_gdbarch_init): Update.
2660 * sh-tdep.c (sh_gdbarch_init): Update.
2661 * s390-tdep.c (s390_gdbarch_init): Update.
2662 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2663 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2664 * mips-tdep.c (mips_gdbarch_init): Update.
2665 * mcore-tdep.c (mcore_gdbarch_init): Update.
2666 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2667 * ia64-tdep.c (ia64_gdbarch_init): Update.
2668 * i386-tdep.c (i386_gdbarch_init): Update.
2669 * h8300-tdep.c (h8300_gdbarch_init): Update.
2670 * frv-tdep.c (frv_gdbarch_init): Update.
2671 * cris-tdep.c (cris_gdbarch_init): Update.
2672 * avr-tdep.c (avr_gdbarch_init): Update.
2673 * arm-tdep.c (arm_gdbarch_init): Update.
2674 * valops.c (hand_function_call): Update.
2675
4d628cd7
AC
26762003-03-29 Andrew Cagney <cagney@redhat.com>
2677
2678 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
2679 sizeof_call_dummy_words.
2680 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
2681 define.
2682 * gdbarch.h: Regenerate.
2683
65e82032
AC
26842003-03-29 Andrew Cagney <cagney@redhat.com>
2685
2686 * infttrace.h: New file.
2687 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
2688 (hpread_get_textlow): Detect an uninitialized dn_bufp.
2689 (hpread_read_doc_function_type): Detect an initialized type1.
2690 (hpread_quick_traverse): Initialize mod_name_string.
2691 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
2692 (som_solib_get_solib_by_pc): Declare.
2693 (so_lib_thread_start_addr): Declare.
2694 (no_shared_libraries): Declare.
2695 * somread.c (init_import_symbols): Make static. Add forward
2696 declaration.
2697 * config/pa/nm-hppah.h: Include "infttrace.h" for
2698 parent_attach_all.
2699 (hppa_insert_hw_watchpoint): Declare.
2700 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
2701 * hppah-nat.c: Include "gdb_string.h".
2702 (parent_attach_all): Delete extern declaration, moved to
2703 "infttrace.h".
2704 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
2705 int.
2706 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
2707 * Makefile.in (infttrace_h): Define.
2708 (hpread.o): Update dependencies.
2709 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
2710 * hppa-hpux-tdep.c: Include "gdb_string.h".
2711 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
2712 * infrun.c (handle_inferior_event): Always initialize
2713 stepped_after_stopped_by_watchpoint. Add default and remove
2714 fallthrough in switch statement.
2715 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
2716 parameter to int.
2717 (hppa_remove_hw_watchpoint): Ditto.
2718
2c3bbe77
AC
27192003-03-29 Andrew Cagney <cagney@redhat.com>
2720
2721 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
2722 offset.
2723
2dd604e7
RE
27242003-03-29 Richard Earnshaw <rearnsha@arm.com>
2725
2726 * arm-tdep.c (arm_push_arguments): Delete.
2727 (struct stack_item): New type.
2728 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
2729 (arm_store_struct_return): Delte.
2730 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
2731 arm_push_arguments or arm_store_struct_return.
2732
e8933a55
AC
27332003-03-28 Andrew Cagney <cagney@redhat.com>
2734
2735 * Makefile.in (d10v-tdep.o): Update dependencies.
2736 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
2737 * d10v-tdep.c: Include "remote.h".
2738 (target_resume_hook): Delete extern declaration.
2739 (target_wait_loop_hook): Ditto.
2740 (tdisassemble_command): Eliminate assignment in "if" conditional.
2741 (d10v_ts2_register_sim_regno): Eliminate call to
2742 legacy_register_sim_regno.
2743 (d10v_ts3_register_sim_regno): Ditto.
2744
6949171e
JJ
27452003-03-28 Jeff Johnston <jjohnstn@redhat.com>
2746
2747 * thread.c: Reindented.
2748 * lin-lwp.c: Ditto.
2749 * linux-proc.c: Ditto.
2750
98c7071f
BR
27512003-03-28 Bob Rossi <bob_rossi@cox.net>
2752
fbe586ae 2753 * MAINTAINERS (write after approval): Add myself.
98c7071f 2754
5edc9ca6
TR
27552003-03-27 Theodore A. Roth <troth@openavr.org>
2756
2757 * objc-exp.y: Add missing semi-colons.
2758
378bfd1b
AC
27592003-03-27 Andrew Cagney <cagney@redhat.com>
2760
2761 * regcache.c (write_sp): Delete function and references.
2762 * inferior.h (write_sp): Delete declaration.
2763 * valops.c (hand_function_call): Replace write_sp with
2764 TARGET_WRITE_SP.
2765 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
2766 (sparc_pop_frame): Ditto.
2767
56056df7
AC
27682003-03-27 Andrew Cagney <cagney@redhat.com>
2769
2770 * NEWS: Mention removal of support for hppa*-*-bsd* and
2771 hppa*-*-osf* natives, and hppa*-*-pro* target.
2772 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
2773 * config/pa/xm-pa.h: Obsolete file.
2774 * config/pa/xm-hppab.h: Obsolete file.
2775 * config/pa/nm-hppab.h: Obsolete file.
2776 * config/pa/tm-hppab.h: Obsolete file.
2777 * config/pa/tm-hppao.h: Obsolete file.
2778 * config/pa/nm-hppao.h: Obsolete file.
2779 * config/pa/tm-pro.h: Obsolete file.
2780 * config/pa/hppaosf.mt: Obsolete file.
2781 * config/pa/hppaosf.mh: Obsolete file.
2782 * config/pa/hppapro.mt: Obsolete file.
2783 * config/pa/hppabsd.mt: Obsolete file.
2784 * config/pa/hppabsd.mh: Obsolete file.
2785 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
2786 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
2787 hppa*-*-osf*.
2788
5873a88d
AC
27892003-03-27 Andrew Cagney <cagney@redhat.com>
2790
2791 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
2792 push_arguments. Don't set push_return_address or write_sp.
2793 (d10v_push_dummy_call): Replace d10v_push_arguments.
2794 (d10v_push_return_address, d10v_write_sp): Delete function,
2795 handled by push_dummy_call.
2796
b81774d8
AC
27972003-03-26 Andrew Cagney <cagney@redhat.com>
2798
2799 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
2800 (push_dummy_call): New pure multi-arch replacement with gdbarch,
2801 regcache and dummy_addr parameters.
2802 * gdbarch.h, gdbarch.c: Re-generate.
2803 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
2804 available; assume it will handle stack alignment and return
2805 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
2806 legacy_push_arguments.
2807 (legacy_push_arguments): Rename default_push_arguments.
2808 * value.h (legacy_push_arguments): Rename default_push_arguments.
2809 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
2810 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
2811 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
2812 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
2813 * config/i386/tm-symmetry.h: Update.
2814 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2815 * x86-64-tdep.c (x86_64_init_abi): Update.
2816 * v850-tdep.c (v850_gdbarch_init): Update.
2817 * sparc-tdep.c (sparc_gdbarch_init): Update.
2818 * sh-tdep.c (sh_gdbarch_init): Update.
2819 * s390-tdep.c (s390_gdbarch_init): Update.
2820 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2821 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2822 * mips-tdep.c (mips_gdbarch_init): Update.
2823 * mcore-tdep.c (mcore_gdbarch_init): Update.
2824 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2825 * ia64-tdep.c (ia64_gdbarch_init): Update.
2826 * i386-tdep.c (i386_gdbarch_init): Update.
2827 * hppa-tdep.c (hppa_gdbarch_init): Update.
2828 * h8300-tdep.c (h8300_gdbarch_init): Update.
2829 * frv-tdep.c (frv_gdbarch_init): Update.
2830 * d10v-tdep.c (d10v_gdbarch_init): Update.
2831 * cris-tdep.c (cris_gdbarch_init): Update.
2832 * avr-tdep.c (avr_gdbarch_init): Update.
2833 * arm-tdep.c (arm_gdbarch_init): Update.
2834 * arm-linux-tdep.c (arm_linux_init_abi): Update.
2835 * alpha-tdep.c (alpha_gdbarch_init): Update.
2836
f541410f
DJ
28372003-03-26 Daniel Jacobowitz <drow@mvista.com>
2838
2839 * signals/signals.c (do_target_signal_to_host): Correct realtime
2840 signal range test.
2841
69f567ae
DJ
28422003-03-26 Daniel Jacobowitz <drow@mvista.com>
2843
2844 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
2845 (struct sal_chain, map_catch_names): Remove.
2846 (catch_exception_command_1): Don't call
2847 handle_gnu_4_16_catch_command.
2848
d5d14a5a
DJ
28492003-03-26 Daniel Jacobowitz <drow@mvista.com>
2850
2851 From Mark Dettinger <dettinge@de.ibm.com>:
2852 * dwarf2cfi.c (read_2u): Increment pointer by two.
2853
bdd73e22
DJ
28542003-03-26 Daniel Jacobowitz <drow@mvista.com>
2855
2856 * signals/signals.c: Fix typos in last change.
2857
960cb555
DJ
28582003-03-26 Daniel Jacobowitz <drow@mvista.com>
2859
2860 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
2861 not already defined. Use __SIGRTMIN if available.
2862 (target_signal_from_host): Remove SIGRTMIN block.
2863 (do_target_signal_to_host): Remove SIGRTMIN block; check that
2864 the signal is within the realtime range.
2865
f636b87d
AF
28662003-03-25 Adam Fedor <fedor@gnu.org>
2867
2868 * Makefile.in (infrun.o): Add $(language_h)
2869 * infrun.c (handle_inferior_event): Use skip_language_trampoline
2870 for language specific trampolines.
2871 * language.h (struct language_defn): Add skip_trampoline.
2872 (skip_language_trampoline): Declare.
2873 * language.c (unk_lang_trampoline, skip_language_trampoline):
2874 New functions.
2875 (unknown_language_defn, auto_language_defn, local_language_defn):
2876 Add ukn_lang_trampoline.
2877 * ada-lang.c (ada_language_defn): Add NULL for language
2878 specific skip_trampoline.
2879 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
2880 scm-lang.c: Likewise.
2881 * objc-lang.c (objc_skip_trampoline): New function.
2882 (objc_language_defn): Add objc_skip_trampoline.
2883
28f617b3 28842003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
2885
2886 * frame.c (get_prev_frame): Delay validating a frame's ID -
2887 non-NULL, didn't go backwards - until an attempt to unwind it to
2888 the previous frame.
2889
f933a9c5
AC
28902003-03-25 Andrew Cagney <cagney@redhat.com>
2891
2892 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
2893 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
2894 * gdbarch.h, gdbarch.c: Re-generate.
2895 * config/sparc/tm-sparc.h
2896 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
2897 * sparc-tdep.c (sparc_gdbarch_init): Set
2898 deprecated_extra_stack_alignment_needed.
2899 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
2900 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
2901 extra_stack_alignment_needed.
2902 * v850-tdep.c (v850_gdbarch_init): Ditto.
2903 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2904 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2905 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2906 * cris-tdep.c (cris_gdbarch_init): Ditto.
2907 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2908 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2909
4183d812
AC
29102003-03-25 Andrew Cagney <cagney@redhat.com>
2911
2912 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
2913 STORE_STRUCT_RETURN.
2914 * gdbarch.h, gdbarch.c: Regenerate.
2915 * d10v-tdep.c (d10v_store_struct_return): Delete function.
2916 (d10v_push_arguments): Set the struct return register.
2917 (d10v_gdbarch_init): Update.
2918 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2919 * x86-64-tdep.c (x86_64_init_abi): Update.
2920 * vax-tdep.c (vax_gdbarch_init): Update.
2921 * v850-tdep.c (v850_gdbarch_init): Update.
2922 * sparc-tdep.c (sparc_gdbarch_init): Update.
2923 * sh-tdep.c (sh_gdbarch_init): Update.
2924 * s390-tdep.c (s390_gdbarch_init): Update.
2925 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2926 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2927 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2928 * mips-tdep.c (mips_gdbarch_init): Update.
2929 * mcore-tdep.c (mcore_gdbarch_init): Update.
2930 * m68k-tdep.c (m68k_gdbarch_init): Update.
2931 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2932 * ia64-tdep.c (ia64_gdbarch_init): Update.
2933 * i386-tdep.c (i386_gdbarch_init): Update.
2934 * hppa-tdep.c (hppa_gdbarch_init): Update.
2935 * h8300-tdep.c (h8300_gdbarch_init): Update.
2936 * frv-tdep.c (frv_gdbarch_init): Update.
2937 * cris-tdep.c (cris_gdbarch_init): Update.
2938 * avr-tdep.c (avr_gdbarch_init): Update.
2939 * arm-tdep.c (arm_gdbarch_init): Update.
2940 * alpha-tdep.c (alpha_gdbarch_init): Update.
2941
1bf6d5cc
AC
29422003-03-25 Andrew Cagney <cagney@redhat.com>
2943
2944 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
2945 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
2946 CALL_DUMMY_STACK_ADJUST with a predicate variable.
2947 * gdbarch.h, gdbarch.c: Regenerate.
2948 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2949 call_dummy_stack_adjust_p.
2950 * vax-tdep.c (vax_gdbarch_init): Ditto.
2951 * v850-tdep.c (v850_gdbarch_init): Ditto.
2952 * sh-tdep.c (sh_gdbarch_init): Ditto.
2953 * s390-tdep.c (s390_gdbarch_init): Ditto.
2954 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2955 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2956 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2957 * mips-tdep.c (mips_gdbarch_init): Ditto.
2958 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2959 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2960 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2961 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2962 * i386-tdep.c (i386_gdbarch_init): Ditto.
2963 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2964 * frv-tdep.c (frv_gdbarch_init): Ditto.
2965 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2966 * cris-tdep.c (cris_gdbarch_init): Ditto.
2967 * avr-tdep.c (avr_gdbarch_init): Ditto.
2968 * arm-tdep.c (arm_gdbarch_init): Ditto.
2969 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2970 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
2971 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
2972 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
2973 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
2974 call_dummy_stack_adjust_p.
2975 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
2976 (CALL_DUMMY_STACK_ADJUST): Delete macro.
2977 * sparc-tdep.c (sparc32_push_arguments): Update.
2978 * valops.c (hand_function_call): Update.
2979
71c08af0
CV
29802003-03-25 Corinna Vinschen <vinschen@redhat.com>
2981
2982 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
2983 set_gdbarch_char_signed.
2984
30757f90
RE
29852003-03-25 Richard Earnshaw <rearnsha@arm.com>
2986
2987 PR cli/548
2988 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
2989
03d48a7d
RE
29902003-03-25 Richard Earnshaw <rearnsha@arm.com>
2991
2992 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
2993 (_initialize_arm_tdep): Don't set tm_print_insn.
2994
2cf6873c
AF
29952003-03-24 Adam Fedor <fedor@gnu.org>
2996
2997 * Makefile.in (YYOBJ): Add objc-exp.tab.o
2998 * objc-lang.h: Add multiple inclusion protection.
2999 (start_msglist, add_msglist, end_msglist): Additional declarations.
3000
17c0759e
RE
30012003-03-24 Richard Earnshaw <rearnsha@arm.com>
3002
3003 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
3004 value was renamed to ARM_FLOAT_SOFT_FPA.
3005
618ce49f
AC
30062003-03-23 Andrew Cagney <cagney@redhat.com>
3007
3008 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
3009 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
3010 * gdbarch.h, gdbarch.c: Regenerate.
3011 * valops.c (hand_function_call): Update.
3012 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
3013 * frame.c (legacy_saved_regs_this_id): Update.
3014 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
3015 * dummy-frame.h: Update.
3016 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
3017 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
3018 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
3019 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
3020 * config/m68k/tm-sun3.h: Update.
3021 * blockframe.c (inside_main_func, frame_chain_valid): Update.
3022 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3023 * x86-64-tdep.c (x86_64_init_abi): Update.
3024 * vax-tdep.c (vax_gdbarch_init): Update.
3025 * v850-tdep.c (v850_gdbarch_init): Update.
3026 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
3027 * sh-tdep.c (sh_gdbarch_init): Update.
3028 * s390-tdep.c (s390_gdbarch_init): Update.
3029 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3030 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
3031 (frame_get_saved_regs): Update.
3032 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
3033 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3034 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3035 * mips-tdep.c (mips_gdbarch_init): Update.
3036 * mcore-tdep.c (mcore_gdbarch_init): Update.
3037 * m68k-tdep.c (m68k_gdbarch_init): Update.
3038 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3039 * ia64-tdep.c (ia64_gdbarch_init): Update.
3040 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
3041 * i386-interix-tdep.c (i386_interix_init_abi): Update.
3042 (i386_interix_back_one_frame): Update.
3043 * hppa-tdep.c (hppa_gdbarch_init): Update.
3044 (hppa_init_extra_frame_info): Update.
3045 * h8300-tdep.c (h8300_gdbarch_init): Update.
3046 * frv-tdep.c (frv_gdbarch_init): Update.
3047 * cris-tdep.c (cris_gdbarch_init): Update.
3048 * avr-tdep.c (avr_gdbarch_init): Update.
3049 * arm-tdep.c (arm_gdbarch_init): Update.
3050 * alpha-tdep.c (alpha_gdbarch_init): Update.
3051
fd50bc42
RE
30522003-03-22 Richard Earnshaw <rearnsha@arm.com>
3053
3054 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
3055 (arm_get_fp_model): Declare.
3056 * arm-tdep.c (fp_model_strings): New string array.
3057 (arm_fp_model, current_fp_model): New variables.
3058 (arm_get_fp_model): New function.
3059 (arm_set_fp): New function.
3060 (set_fp_model_sfunc): New function.
3061 (show_fp_model): New function.
3062 (_initialize_arm_tdep): Add new command to set/show the FPU.
3063 (arm_extract_return_value): Use arm_get_fp_model.
3064 (arm_store_return_value): Likewise.
3065 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
3066 to initialize the floating-point data types.
3067 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
3068 model is FPA.
3069
26304000
RE
30702003-03-22 Richard Earnshaw <rearnsha@arm.com>
3071
3072 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
3073 the current setting of each value.
3074 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
3075 new_set and new_show. Use add_setshow_cmd_full and
3076 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
3077 commands and add new version as subcommands of "set/show arm".
3078
afd7eef0
RE
30792003-03-22 Richard Earnshaw <rearnsha@arm.com>
3080
3081 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
3082 (set_arm_command, show_arm_command): New functions.
3083 (_initialize_arm_tdep): Add them.
3084 (num_disassembly_options): Renamed from num_flavor_options.
3085 (valid_disassembly_styles): Renamed from valid_flavors.
3086 (disassembly_style): Renamed from disassembly_flavor.
3087 (set_disassembly_style_sfunc): Renamed from
3088 set_disassembly_flavor_sfunc.
3089 (set_disassembly_style): Renamed from set_disassembly_flavor.
3090 (arm_othernames): Updated.
3091 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
3092 command. Add "set/show arm disassembly" commands. Deprecate
3093 "othernames" command.
3094
299a7944
RE
30952003-03-22 Richard Earnshaw <rearnsha@arm.com>
3096
3097 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
3098 (arm-tdep.o): Depend on elf_arm_h.
3099
c1dac9e6
RE
31002003-03-22 Richard Earnshaw <rearnsha@arm.com>
3101
3102 * Makefile.in (coff_internal_h): Define.
3103 (arm-tdep.o): Update dependencies.
3104
2702d96c
RE
31052003-03-22 Richard Earnshaw <rearnsha@arm.com>
3106
3107 * arm-tdep.c (prologue_cache): Delete.
3108 (check_prologue_cache, save_prologue_cache): Delete.
3109 (arm_scan_prologue): Don't check or update the prologue_cache.
3110 (arm_gdb_arch_init): Don't initialize it.
3111 (_initialize_arm_tdep): Likewise.
3112
27d5d74b
SC
31132003-03-21 Stephane Carrez <stcarrez@nerim.fr>
3114
3115 * MAINTAINERS (tui): Maintainer of tui code.
3116
1762d96d
CV
31172003-03-21 Corinna Vinschen <vinschen@redhat.com>
3118
3119 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
3120 (i386-cygwin-tdep.o): Add dependencies.
3121 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
3122 * i386-cygwin-tdep.c: New file.
3123 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
3124 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
3125
4c2e2391
AC
31262003-03-20 Andrew Cagney <cagney@redhat.com>
3127
f20d38b7
AC
3128 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
3129 (handle_inferior_event): Remove code calling
3130 DYNAMIC_TRAMPOLINE_NEXTPC.
3131
0022b738
AC
3132 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
3133 already has a full path.
3134
864dbc90
AC
3135 * main.c (gdb_main): Return 1.
3136 (captured_main): Call error to report an invalid interpreter.
3137
4c2e2391
AC
3138 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3139 * alpha-osf1-tdep.c: Include "gdb_string.h".
3140
5ef7553b
JB
31412003-03-19 J. Brobecker <brobecker@gnat.com>
3142
3143 Continuing work to convert the hppa targets to multiarch partial.
3144
3145 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
3146 method, now that hppa_push_dummy_frame has a conformant prototype.
3147 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
3148 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
3149 for the switch to multiarch partial.
3150
7bde8967
KB
31512003-03-19 Kevin Buettner <kevinb@redhat.com>
3152
3153 * mdebugread.c (parse_symbol): For stEnd, we're done counting
3154 when iss is issNull.
3155
b006a9e9
KB
31562003-03-18 Kevin Buettner <kevinb@redhat.com>
3157
3158 * mips-tdep.c (mips_register_name): Fix fencepost error involving
3159 NUM_REGS bounds check.
3160
5e2e9765
KB
31612003-03-18 Kevin Buettner <kevinb@redhat.com>
3162
3163 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
3164 * mips-tdep.c (gdb_assert.h): Include.
3165 (mips_generic_reg_names, mips_processor_reg_names): Make static.
3166 (mips_register_name): Handle integer registers explicitly. Add
3167 bounds checking.
3168 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
3169 (mips_lsi33k_reg_names): Don't list integer registers; they're
3170 handled by mips_register_name() now.
3171 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
3172 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
3173 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
3174 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
3175 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
3176
a2867626
AC
31772003-03-18 Andrew Cagney <cagney@redhat.com>
3178
3179 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
3180 a void pointer.
3181 * gdbtypes.h (print_scalar_formatted): Update declaration.
3182 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
3183
06600e06
JB
31842003-03-18 J. Brobecker <brobecker@gnat.com>
3185
3186 * infrun.c (observer.h): Add #include.
3187 (normal_stop): Add call to observer_notify_normal_stop.
3188 * Makefile.in (infrun.o): Add dependency on observer.h.
3189
7daf4f5b
JB
31902003-03-18 J. Brobecker <brobecker@gnat.com>
3191
3192 Continuing work to convert the hppa targets to multiarch partial.
3193 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
3194 parameter. Reformat comment.
3195 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
3196 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
3197 to match new profile.
3198
3371ccc0
JB
31992003-03-18 J. Brobecker <brobecker@gnat.com>
3200
3201 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
3202 appear to be working in any case.
3203
4fbe891e
JB
32042003-03-18 J. Brobecker <brobecker@gnat.com>
3205
3206 * observer.c (observer_test_first_observer): New static variable.
3207 (observer_test_second_observer): Likewise.
3208 (observer_test_third_observer): Likewise.
3209 (observer_test_first_notification_function): New static function.
3210 (observer_test_second_notification_function): Likewise.
3211 (observer_test_third_notification_function): Likewise.
3212
a7ff40e7
JB
32132003-03-17 J. Brobecker <brobecker@gnat.com>
3214
3215 * hppa-tdep.c (gdb_assert.h): Add missing #include.
3216 * somsolib.c (gdb_assert.h): Likewise.
3217 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
3218 (somsolib.o): Likewise.
3219
26ca4152
AC
32202003-03-17 Andrew Cagney <cagney@redhat.com>
3221
3222 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
3223 BFD. Simplify setting of di.endian.
3224
0a613259
AC
32252003-03-17 Andrew Cagney <cagney@redhat.com>
3226
3227 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
3228 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
3229
3230 From Elena Zannoni <ezannoni@redhat.com>
3231 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
3232 vector and floating-point parameters.
3233 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
3234 convention.
3235 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
3236
1132738f
FN
32372003-03-17 Fernando Nasser <fnasser@redhat.com>
3238
3239 * MAINTAINERS: Remove my name from several maintainership roles.
3240
6dc42492
AC
32412003-03-17 Andrew Cagney <cagney@redhat.com>
3242
3243 Fix frame off-by-one bug.
3244 * frame-unwind.h (frame_this_id_ftype): Replace
3245 frame_unwind_id_ftype.
3246 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
3247 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
3248 with "prev_register".
3249 * frame-unwind.c (frame_unwind_find_by_pc): Return
3250 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
3251 comment.
3252 * dummy-frame.c (cached_find_dummy_frame): Delete function.
3253 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
3254 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
3255 (dummy_frame_unwind): Update.
3256 * sentinel-frame.c (sentinel_frame_prev_register): Replace
3257 sentinel_frame_register_unwind.
3258 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
3259 (sentinel_frame_unwinder): Update.
3260 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
3261 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
3262 * frame.c (create_sentinel_frame): Update. Initialize
3263 "prologue_cache" instead of "unwind_cache".
3264 (frame_register_unwind): Call this frame's prev_register with the
3265 next frame and this frame's prologue cache.
3266 (get_prev_frame): Simplify. Always call prev frame's this_id with
3267 this frame and prev frame's prologue cache. Document that this
3268 call is shifted one to the left when compared to the
3269 frame_register_unwind call.
3270 (legacy_saved_regs_prev_register): Replace
3271 frame_saved_regs_register_unwind.
3272 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
3273 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
3274 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
3275 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
3276 (d10v_frame_unwind): Update.
3277 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
3278 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
3279 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
3280 "saved_regs" with "this_saved_regs".
3281
efd710d6
AC
32822003-03-16 Andrew Cagney <cagney@redhat.com>
3283
3284 * frame.c (frame_pop): Don't call target_store_registers. Fix
3285 problem reported by Mark Kettenis.
3286
4e259f09
MK
32872003-03-16 Mark Kettenis <kettenis@gnu.org>
3288
3289 * i386-tdep.c (i386_register_type): Renamed from
3290 i386_register_virtual_type. Adjust function signature.
3291 (i386_gdbarch_init): Set register_type instead of
3292 deprecated_max_register_raw_size,
3293 deprecated_max_register_virtual_size and register_virtual_type.
3294
055bb976
AC
32952003-03-14 Andrew Cagney <cagney@redhat.com>
3296
3297 * frame.c (get_prev_frame): When a legacy frame, always call
3298 legacy_get_prev_frame. Simplify unwind code using assumption that
3299 the unwinder is new.
3300 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
3301 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
3302 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
3303
ac2adee5
AC
33042003-03-14 Andrew Cagney <cagney@redhat.com>
3305
3306 * frame.c (get_saved_register): Delete function.
3307 * frame.h (get_saved_register): Delete declaration.
3308 * xstormy16-tdep.c: Update comment.
3309 * regcache.h: Update comments.
3310 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
3311 get_saved_register and extract_address, use
3312 frame_read_unsigned_register.
3313 (sparc_frame_saved_pc): Ditto.
3314 (sparc_get_saved_register): Instead of get_saved_register, use
3315 frame_register.
3316 (sparc_pop_frame): Ditto.
3317 * findvar.c: Update comments.
3318 (value_of_register): Call frame_register instead of
3319 get_saved_register.
3320 (value_from_register): Ditto.
3321 * config/sparc/tm-sparc.h: Update comment.
3322 * breakpoint.c: Update comment.
3323
129c1cd6
AC
33242003-03-14 Andrew Cagney <cagney@redhat.com>
3325
3326 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
3327 GET_SAVED_REGISTER.
3328 * gdbarch.h, gdbarch.c: Re-generate.
3329 * frame.h: Update comments.
3330 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3331 * x86-64-tdep.c (x86_64_init_abi): Update.
3332 * sparc-tdep.c (sparc_gdbarch_init): Update.
3333 * sh-tdep.c (sh_gdbarch_init): Update.
3334 * mips-tdep.c (mips_gdbarch_init): Update.
3335 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3336 * cris-tdep.c (cris_gdbarch_init): Update.
3337 * ia64-tdep.c (ia64_gdbarch_init): Update.
3338 * frame.c (frame_register): Update.
3339 (get_saved_register): Update.
3340 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
3341
749b82f6
AC
33422003-03-13 Andrew Cagney <cagney@redhat.com>
3343
3344 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
3345 * gdbarch.h, gdbarch.c: Regenerate.
3346 * valops.c (hand_function_call): Update comment.
3347 * stack.c (return_command): Update comment.
3348 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
3349 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
3350 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3351 * x86-64-tdep.c (x86_64_init_abi): Update.
3352 * vax-tdep.c (vax_gdbarch_init): Update.
3353 * v850-tdep.c (v850_gdbarch_init): Update.
3354 * sparc-tdep.c (sparc_gdbarch_init): Update.
3355 * sh-tdep.c (sh_gdbarch_init): Update.
3356 * s390-tdep.c (s390_gdbarch_init): Update.
3357 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3358 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3359 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3360 * mips-tdep.c (mips_gdbarch_init): Update.
3361 * mcore-tdep.c (mcore_gdbarch_init): Update.
3362 * m68k-tdep.c (m68k_gdbarch_init): Update.
3363 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3364 * ia64-tdep.c (ia64_gdbarch_init): Update.
3365 * i386-tdep.c (i386_gdbarch_init): Update.
3366 * hppa-tdep.c (hppa_gdbarch_init): Update.
3367 * h8300-tdep.c (h8300_gdbarch_init): Update.
3368 * frv-tdep.c (frv_gdbarch_init): Update.
3369 * cris-tdep.c (cris_gdbarch_init): Update.
3370 * avr-tdep.c (avr_gdbarch_init): Update.
3371 * arm-tdep.c (arm_gdbarch_init): Update.
3372 * alpha-tdep.c (alpha_gdbarch_init): Update.
3373
1594fa56
AC
33742003-03-13 Andrew Cagney <cagney@redhat.com>
3375
3376 * frame.c (legacy_frame_p): New function.
3377 (get_prev_frame): Use legacy_frame_p.
3378 * frame.h (legacy_frame_p): Declare.
3379
7717fda3
V
33802003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
3381
fbe586ae 3382 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
3383 listing corrected.
3384
0c67cbe9
V
33852003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
3386
fbe586ae 3387 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 3388
03febf99
AC
33892003-03-12 Andrew Cagney <cagney@redhat.com>
3390
3391 * frame.c (get_prev_frame): Rename the frame parameter to
3392 "this_frame".
3393 (get_next_frame, legacy_get_prev_frame): Ditto.
3394
0a1e1ca1
AC
33952003-03-12 Andrew Cagney <cagney@redhat.com>
3396
3397 * frame.c (get_current_frame): Check target_has_registers before
3398 checking target_has_stack.
3399 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
3400 instead of deprecated_selected_frame.
3401 * findvar.c (value_of_register): Pass "frame", not
3402 deprecated_selected_frame, to value_of_builtin_reg.
3403
a66a9c23
AC
34042003-03-12 Andrew Cagney <cagney@redhat.com>
3405
3406 * regcache.c (regcache_cooked_write_signed): New function.
3407 (regcache_cooked_write_unsigned): New function.
3408 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
3409 (regcache_cooked_read_signed): Fix regnum in range assertion.
3410 * regcache.h (regcache_cooked_write_signed): Declare.
3411 (regcache_cooked_write_unsigned): Declare.
3412
8bedc050
AC
34132003-03-12 Andrew Cagney <cagney@redhat.com>
3414
3415 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
3416 * gdbarch.h, gdbarch.c: Re-generate.
3417 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3418 * x86-64-tdep.h: Update.
3419 * x86-64-tdep.c (x86_64_init_abi): Update.
3420 * v850-tdep.c (v850_gdbarch_init): Update.
3421 * sparc-tdep.c (sparc_gdbarch_init): Update.
3422 * sh-tdep.c (sh_gdbarch_init): Update.
3423 * s390-tdep.c (s390_gdbarch_init): Update.
3424 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3425 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
3426 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3427 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3428 * mips-tdep.c (mips_gdbarch_init): Update.
3429 * mcore-tdep.c (mcore_gdbarch_init): Update.
3430 * m68k-tdep.c (m68k_gdbarch_init): Update.
3431 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3432 * ia64-tdep.c (ia64_gdbarch_init): Update.
3433 * i386-tdep.c (i386_gdbarch_init): Update.
3434 * i386-interix-tdep.c (i386_interix_init_abi): Update.
3435 * hppa-tdep.c (hppa_gdbarch_init): Update.
3436 * h8300-tdep.c (h8300_gdbarch_init): Update.
3437 * frv-tdep.c (frv_gdbarch_init): Update.
3438 * cris-tdep.c (cris_gdbarch_init): Update.
3439 * avr-tdep.c (avr_gdbarch_init): Update.
3440 * arm-tdep.c (arm_gdbarch_init): Update.
3441 * alpha-tdep.c (alpha_gdbarch_init): Update.
3442 * sh-tdep.c (sh_init_extra_frame_info): Update.
3443 (sh64_init_extra_frame_info): Update.
3444 * ns32knbsd-nat.c (frame_num_args): Update.
3445 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
3446 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
3447 (xstormy16_frame_chain_valid): Update.
3448 * vax-tdep.c (vax_saved_pc_after_call): Update.
3449 * v850-tdep.c (v850_frame_chain): Update.
3450 (v850_pop_frame): Update.
3451 (v850_init_extra_frame_info): Update.
3452 * sparc-tdep.c (setup_arbitrary_frame): Update.
3453 * ns32k-tdep.c (umax_frame_num_args): Update.
3454 * s390-tdep.c (s390_pop_frame_regular): Update.
3455 * mn10300-tdep.c (mn10300_frame_chain): Update.
3456 (mn10300_pop_frame_regular): Update.
3457 (mn10300_init_extra_frame_info): Update.
3458 * mips-tdep.c (mips_init_frame_pc_first): Update.
3459 (mips_frame_chain): Update.
3460 (mips_pop_frame): Update.
3461 * mcore-tdep.c (mcore_frame_chain): Update.
3462 (mcore_pop_frame): Update.
3463 (mcore_init_extra_frame_info): Update.
3464 * arch-utils.c (init_frame_pc_default): Update.
3465 * m68k-tdep.c (isi_frame_num_args): Update.
3466 (delta68_frame_num_args): Update.
3467 (news_frame_num_args): Update.
3468 * ia64-tdep.c (ia64_pop_frame_regular): Update.
3469 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
3470 (alpha_frame_chain): Update.
3471 (alpha_pop_frame): Update.
3472 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
3473 (hppa_init_extra_frame_info): Update.
3474 (hppa_frame_chain): Update.
3475 (hppa_frame_chain_valid): Update.
3476 * cris-tdep.c (cris_init_extra_frame_info): Update.
3477 * avr-tdep.c (avr_init_extra_frame_info): Update.
3478 * arm-tdep.c (arm_frame_chain_valid): Update.
3479 (arm_init_extra_frame_info): Update.
3480 (arm_pop_frame): Update.
3481 * frame.c (frame_pc_unwind): Update.
3482 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
3483 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3484 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3485 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
3486 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
3487 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
3488
7a25a7c1
AC
34892003-03-12 Andrew Cagney <cagney@redhat.com>
3490
3491 Eliminate the need for POP_FRAME.
3492 * frame.c (do_frame_unwind_register): New function.
3493 (frame_pop): When no POP_FRAME, pop the frame using register
3494 unwind and a scratch regcache.
3495 (frame_saved_regs_pop): Delete function.
3496 (trad_frame_unwinder): Update.
3497 * d10v-tdep.c (d10v_frame_pop): Delete function.
3498 (d10v_frame_unwind): Update.
3499 * sentinel-frame.c (sentinel_frame_pop): Delete function.
3500 (sentinel_frame_unwinder): Update.
3501 * dummy-frame.c (dummy_frame_pop): Delete function.
3502 (dummy_frame_unwind): Update.
3503 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
3504 (struct frame_unwind): Update.
3505
2f38ef89
KB
35062003-03-11 Kevin Buettner <kevinb@redhat.com>
3507
3508 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
3509 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
3510 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
3511 Do range checks on register number obtained from debugging info.
3512 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
3513 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
3514 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
3515 mapping function.
3516 (do_fp_register_row): Fix typo which caused double type to be
3517 used when attempting to unpack a float.
3518
552f4abf
JB
35192003-03-11 J. Brobecker <brobecker@gnat.com>
3520
3521 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
3522
e0d2ae16
AC
35232003-03-11 Andrew Cagney <cagney@redhat.com>
3524
3525 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
3526 frame. Problem found by Corinna Vinschen.
3527
ddbfdd06
PM
35282003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
3529
3530 * doublest.c (floatformat_from_length): Accept also
3531 the real size of 'long double' type.
3532
088b2ddc 35332003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 3534
088b2ddc 3535 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
3536 * breakpoint.c (bpstat_copy): Copy the command lines as well
3537 as the old value, to match what is freed in bpstat_clear.
3538
f56f77c1
DC
35392003-03-10 David Carlton <carlton@math.stanford.edu>
3540
3541 * minsyms.c (add_minsym_to_hash_table): Replace
3542 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3543 (compare_minimal_symbols, compact_minimal_symbols)
3544 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
3545 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
3546 of DEPRECATED_SYMBOL_MATCHES_NAME.
3547 (lookup_minimal_symbol_solib_trampoline): Ditto.
3548
5602984a
AC
35492003-03-10 Andrew Cagney <cagney@redhat.com>
3550
3551 * regcache.h (regcache_cooked_read_ftype): Define.
3552 (regcache_save, regcache_restore): Add a cooked_read parameter.
3553 * regcache.c (regcache_save, regcache_restore): Update.
3554 (do_cooked_read): New function.
3555 (regcache_cpy): Pass do_cooked_read to regcache_save and
3556 regcache_restore.
3557
8bedc050
AC
35582003-03-10 Andrew Cagney <cagney@redhat.com>
3559
3560 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
3561 * gdbarch.h, gdbarch.c: Re-generate.
3562 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3563 * x86-64-tdep.h: Update.
3564 * x86-64-tdep.c (x86_64_init_abi): Update.
3565 * v850-tdep.c (v850_gdbarch_init): Update.
3566 * sparc-tdep.c (sparc_gdbarch_init): Update.
3567 * sh-tdep.c (sh_gdbarch_init): Update.
3568 * s390-tdep.c (s390_gdbarch_init): Update.
3569 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3570 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
3571 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3572 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3573 * mips-tdep.c (mips_gdbarch_init): Update.
3574 * mcore-tdep.c (mcore_gdbarch_init): Update.
3575 * m68k-tdep.c (m68k_gdbarch_init): Update.
3576 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3577 * ia64-tdep.c (ia64_gdbarch_init): Update.
3578 * i386-tdep.c (i386_gdbarch_init): Update.
3579 * i386-interix-tdep.c (i386_interix_init_abi): Update.
3580 * hppa-tdep.c (hppa_gdbarch_init): Update.
3581 * h8300-tdep.c (h8300_gdbarch_init): Update.
3582 * frv-tdep.c (frv_gdbarch_init): Update.
3583 * cris-tdep.c (cris_gdbarch_init): Update.
3584 * avr-tdep.c (avr_gdbarch_init): Update.
3585 * arm-tdep.c (arm_gdbarch_init): Update.
3586 * alpha-tdep.c (alpha_gdbarch_init): Update.
3587 * sh-tdep.c (sh_init_extra_frame_info): Update.
3588 (sh64_init_extra_frame_info): Update.
3589 * ns32knbsd-nat.c (frame_num_args): Update.
3590 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
3591 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
3592 (xstormy16_frame_chain_valid): Update.
3593 * vax-tdep.c (vax_saved_pc_after_call): Update.
3594 * v850-tdep.c (v850_frame_chain): Update.
3595 (v850_pop_frame): Update.
3596 (v850_init_extra_frame_info): Update.
3597 * sparc-tdep.c (setup_arbitrary_frame): Update.
3598 * ns32k-tdep.c (umax_frame_num_args): Update.
3599 * s390-tdep.c (s390_pop_frame_regular): Update.
3600 * mn10300-tdep.c (mn10300_frame_chain): Update.
3601 (mn10300_pop_frame_regular): Update.
3602 (mn10300_init_extra_frame_info): Update.
3603 * mips-tdep.c (mips_init_frame_pc_first): Update.
3604 (mips_frame_chain): Update.
3605 (mips_pop_frame): Update.
3606 * mcore-tdep.c (mcore_frame_chain): Update.
3607 (mcore_pop_frame): Update.
3608 (mcore_init_extra_frame_info): Update.
3609 * arch-utils.c (init_frame_pc_default): Update.
3610 * m68k-tdep.c (isi_frame_num_args): Update.
3611 (delta68_frame_num_args): Update.
3612 (news_frame_num_args): Update.
3613 * ia64-tdep.c (ia64_pop_frame_regular): Update.
3614 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
3615 (alpha_frame_chain): Update.
3616 (alpha_pop_frame): Update.
3617 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
3618 (hppa_init_extra_frame_info): Update.
3619 (hppa_frame_chain): Update.
3620 (hppa_frame_chain_valid): Update.
3621 * cris-tdep.c (cris_init_extra_frame_info): Update.
3622 * avr-tdep.c (avr_init_extra_frame_info): Update.
3623 * arm-tdep.c (arm_frame_chain_valid): Update.
3624 (arm_init_extra_frame_info): Update.
3625 (arm_pop_frame): Update.
3626 * frame.c (frame_pc_unwind): Update.
3627 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
3628 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3629 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3630 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
3631 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
3632 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
3633
12cc2063
AC
36342003-03-10 Andrew Cagney <cagney@redhat.com>
3635
3636 * gdbarch.sh (gdbarch_unwind_pc): New method.
3637 * gdbarch.h, gdbarch.c: Regenerate.
3638 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
3639 but use read_pc and FRAME_SAVED_PC as fall backs.
3640 (frame_saved_regs_pc_unwind): Delete function.
3641 (trad_frame_unwinder): Update.
3642 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
3643 (struct frame_unwind): Update.
3644 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
3645 (dummy_frame_unwind): Update.
3646 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
3647 (sentinel_frame_unwinder): Update.
3648 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
3649 (d10v_frame_unwind): Update.
3650 (d10v_unwind_pc): New function.
3651 (d10v_gdbarch_init): Set unwind_pc.
3652
ef840a37
AC
36532003-03-10 Andrew Cagney <cagney@redhat.com>
3654
a2ce2e56
AC
3655 * gdbarch.h: Re-generate.
3656
ef840a37
AC
3657 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
3658 PC.
3659 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
3660 the PC register.
3661
08f3424b
MK
36622003-03-08 Mark Kettenis <kettenis@gnu.org>
3663
3664 * gdbarch.sh (save_dummy_frame_tos): Add comment.
3665
1248ede2
AC
36662003-03-08 Andrew Cagney <cagney@redhat.com>
3667
3668 * cli-out.c: Update copyright.
3669 (cli_out_data): Define typedef. Use instead of ui_out_data.
3670
f49bacc8
AC
36712003-03-08 Andrew Cagney <cagney@redhat.com>
3672
3673 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
3674 the result.
3675
9b05f993
AC
36762003-03-07 Andrew Cagney <cagney@redhat.com>
3677
3678 * gdbarch.sh: Don't generate two macro definitions when an
3679 undefined macro taking no arguments.
3680 * gdbarch.h: Regenerate.
3681
166f4c7b
ML
36822002-03-07 Michal Ludvig <mludvig@suse.cz>
3683
3684 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
3685 (x86_64_unwind_dummy_id): New functions.
3686 (x86_64_init_abi): Register these two new functions.
3687
6d686a84
ML
36882003-03-07 Michal Ludvig <mludvig@suse.cz>
3689
3690 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
3691 (x86_64_skip_prologue): Move prologue detection to
3692 separate function.
3693 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
3694
6314f104
AC
36952003-03-05 Andrew Cagney <cagney@redhat.com>
3696
3697 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
3698 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
3699 * frame.c (get_prev_frame): Restructure the frame ID unwind code
3700 to use unwind_dummy_id when a dummy frame.
3701 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
3702 predicate.
3703 * gdbarch.h, gdbarch.c: Regneerate.
3704
ceea5145
AC
37052003-03-05 Andrew Cagney <cagney@redhat.com>
3706
3707 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
3708 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
3709 Do not use d10v_read_sp or d10v_read_fp when obtaining register
3710 values.
3711
0d843116
AC
37122003-03-05 Andrew Cagney <cagney@redhat.com>
3713
3714 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
3715 (struct d10v_unwind_cache): Delete field "frameless". Replace
3716 "next_addr" with "sp_offset". Add "r11_offset".
3717 (d10v_frame_unwind_cache): Update.
3718 (prologue_find_regs): Update. When "mv r11, sp", save the
3719 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
3720 RN was saved in r11_offset.
3721
b2579786
AC
37222003-03-05 Andrew Cagney <cagney@redhat.com>
3723
3724 * frame.c (deprecated_update_frame_pc_hack): Also update the the
3725 cached PC value in the next frame.
3726
218e5956
AC
37272003-03-05 Andrew Cagney <cagney@redhat.com>
3728
3729 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
3730 "id_unwind_cache" with "id".
3731 (frame_id_unwind): Delete declaration.
3732 * frame.c (frame_id_unwind): Delete function.
3733 (get_prev_frame): Call the frame id unwind method directly. Store
3734 the returned next frame's ID value in NEXT_FRAME. Note that there
3735 is a problem with the wrong unwind ID being called with the wrong
3736 unwind cache.
3737
ed363b1b
DJ
37382003-03-05 Daniel Jacobowitz <drow@mvista.com>
3739
3740 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
3741
fe1f4a5e
DJ
37422003-03-05 James Ingham <jingham@apple.com>
3743 Daniel Jacobowitz <drow@mvista.com>
3744
3745 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
3746 (auto_cp_abi): New variable.
3747 (current_cp_abi, num_cp_abis): Make static.
3748 (CP_ABI_MAX): Define.
3749 (cp_abis): Turn into an array.
3750 (value_virtual_fn_field): Fix formatting.
3751 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
3752 takes a pointer.
3753 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
3754 (list_cp_abis, _initialize_cp_abi): New functions.
3755 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
3756 declarations for cp_abis, num_cp_abis, current_cp_abi, and
3757 switch_to_cp_abi. Update prototype for register_cp_abi.
3758 * Makefile.in (cp-abi.o): Update dependencies.
3759 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
3760 instead of switch_to_cp_abi.
3761 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
3762 register_cp_abi.
3763 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
3764 register_cp_abi.
3765 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
3766
e4adbba9
DJ
37672003-03-05 Daniel Jacobowitz <drow@mvista.com>
3768
3769 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
3770 * dwarf2loc.c: Include "regcache.h".
3771 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
3772 register_size.
3773 * Makefile.in (dwarf2loc.o): Update dependencies.
3774
91ccbfc1
TR
37752003-03-04 Theodore A. Roth <troth@openavr.org>
3776
3777 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
3778 number of io registers reported by remote target is not a multiple of
3779 step.
3780
3d4e8fd2
DC
37812003-03-04 David Carlton <carlton@math.stanford.edu>
3782
3783 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
3784 (lookup_symbol_aux_psymtabs): Update call to
3785 lookup_partial_symbol.
3786 (lookup_transparent_type, find_main_psymtab)
3787 (make_symbol_overload_list): Ditto.
3788
ed42d87b
KH
37892003-03-04 Kazu Hirata <kazu@cs.umass.edu>
3790
3791 * MAINTAINERS (Write after approval): Update my email address.
3792
a0ed5532
AC
37932003-03-03 Andrew Cagney <cagney@redhat.com>
3794
3795 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
3796 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
3797 predicate. Replace MAX_REGISTER_RAW_SIZE.
3798 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
3799 MAX_REGISTER_VIRTUAL_SIZE.
3800 * regcache.c (legacy_max_register_raw_size): New function.
3801 (legacy_max_register_virtual_size): New function.
3802 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
3803 (MAX_REGISTER_RAW_SIZE): Define.
3804 (legacy_max_register_raw_size): Declare.
3805 (legacy_max_register_virtual_size): Declare.
3806 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3807 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
3808 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3809 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
3810 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3811 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
3812 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
3813 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
3814 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
3815 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3816 * vax-tdep.c (vax_gdbarch_init): Update.
3817 * v850-tdep.c (v850_gdbarch_init): Update.
3818 * sparc-tdep.c (sparc_gdbarch_init): Update.
3819 * sh-tdep.c (sh_gdbarch_init): Update.
3820 * s390-tdep.c (s390_gdbarch_init): Update.
3821 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3822 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3823 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3824 * mips-tdep.c (mips_gdbarch_init): Update.
3825 * mcore-tdep.c (mcore_gdbarch_init): Update.
3826 * m68k-tdep.c (m68k_gdbarch_init): Update.
3827 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3828 * ia64-tdep.c (ia64_gdbarch_init): Update.
3829 * i386-tdep.c (i386_gdbarch_init): Update.
3830 * hppa-tdep.c (hppa_gdbarch_init): Update.
3831 * h8300-tdep.c (h8300_gdbarch_init): Update.
3832 * frv-tdep.c (frv_gdbarch_init): Update.
3833 * cris-tdep.c (cris_gdbarch_init): Update.
3834 * avr-tdep.c (avr_gdbarch_init): Update.
3835 * arm-tdep.c (arm_gdbarch_init): Update.
3836 * alpha-tdep.c (alpha_gdbarch_init): Update.
3837 * d10v-tdep.c (d10v_gdbarch_init): Do not set
3838 max_register_raw_size or max_register_virtual_size.
3839
8e437497
DC
38402003-03-03 David Carlton <carlton@math.stanford.edu>
3841
3842 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
3843 SYMBOL_MATCHES_NAME, add comment.
3844 (SYMBOL_MATCHES_NATURAL_NAME): New.
3845 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
3846 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
3847 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
3848 * symtab.c (lookup_partial_symbol): Use
3849 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
3850 unhelpful comment.
3851 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
3852 SYMBOL_MATCHES_NAME.
3853 Fix for PR c++/33.
3854
25120b0d
DC
38552003-03-03 David Carlton <carlton@math.stanford.edu>
3856
3857 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
3858 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
3859 by regexp matching against SYMBOL_NATURAL_NAME.
3860
78a11fb4
DC
38612003-03-03 David Carlton <carlton@math.stanford.edu>
3862
3863 * linespec.c (find_method): Extract code into collect_methods.
3864 (collect_methods): New.
3865
645dd519
MK
38662003-03-02 Mark Kettenis <kettenis@gnu.org>
3867
b4700d91
MK
3868 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
3869 get_frame_base.
3870
645dd519
MK
3871 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
3872 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3873
0aa7e1aa
SC
38742003-03-02 Stephane Carrez <stcarrez@nerim.fr>
3875
3876 * arch-utils.c (generic_register_byte): Fix to use the loop index
3877 and not regnum when summing the size of all registers up to regnum.
3878
f30ee0bc
AC
38792003-03-01 Andrew Cagney <cagney@redhat.com>
3880
3881 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
3882 FRAME_INIT_SAVED_REGS.
3883 * gdbarch.h, gdbarch.c: Regenerate.
3884 * stack.c (frame_info): Update.
3885 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
3886 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
3887 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
3888 * ns32k-tdep.c (ns32k_pop_frame): Update.
3889 * mips-tdep.c (mips_pop_frame): Update.
3890 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
3891 * ia64-tdep.c (ia64_frame_chain): Update.
3892 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
3893 (ia64_frameless_function_invocation): Update.
3894 (ia64_init_extra_frame_info): Update.
3895 (ia64_pop_frame_regular): Update.
3896 * frame.h (struct frame_info): Update comment.
3897 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
3898 * frame.c (frame_saved_regs_register_unwind): Update.
3899 (frame_saved_regs_register_unwind): Update.
3900 (deprecated_generic_get_saved_register): Update.
3901 * cris-tdep.c: Update comment.
3902 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
3903 Rename macro.
3904 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3905 * x86-64-tdep.c (x86_64_init_abi): Update.
3906 * vax-tdep.c (vax_gdbarch_init): Update.
3907 * v850-tdep.c (v850_gdbarch_init): Update.
3908 * sparc-tdep.c (sparc_gdbarch_init): Update.
3909 * sh-tdep.c (sh_gdbarch_init): Update.
3910 * s390-tdep.c (s390_gdbarch_init): Update.
3911 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3912 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
3913 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3914 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3915 * mips-tdep.c (mips_gdbarch_init): Update.
3916 * mcore-tdep.c (mcore_gdbarch_init): Update.
3917 * m68k-tdep.c (m68k_gdbarch_init): Update.
3918 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3919 * ia64-tdep.c (ia64_gdbarch_init): Update.
3920 * i386-tdep.c (i386_gdbarch_init): Update.
3921 * frv-tdep.c (frv_gdbarch_init): Update.
3922 * avr-tdep.c (avr_gdbarch_init): Update.
3923 * arm-tdep.c (arm_gdbarch_init): Update.
3924 * alpha-tdep.c (alpha_gdbarch_init): Update.
3925
42fa7c0f
AC
39262003-03-01 Andrew Cagney <cagney@redhat.com>
3927
3928 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
3929 option enum and switch. When no windows, set the interpreter to
3930 INTERP_CONSOLE.
3931
49c7e338
AC
39322003-03-01 Andrew Cagney <cagney@redhat.com>
3933
3934 * main.c (captured_main): Replace magic option characters with an
3935 enum.
3936
e9582e71
AC
39372003-03-01 Andrew Cagney <cagney@redhat.com>
3938
3939 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
3940 INIT_EXTRA_FRAME_INFO.
3941 * gdbarch.h, gdbarch.c: Regenerate.
3942 * arm-tdep.c: Update comments.
3943 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
3944 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
3945 * frame.h, avr-tdep.c: Ditto.
3946 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
3947 (create_new_frame, legacy_get_prev_frame): Ditto.
3948 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
3949 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
3950 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
3951 deprecated_init_extra_frame_info instead of init_extra_frame_info.
3952 * x86-64-tdep.c (x86_64_init_abi): Ditto.
3953 * v850-tdep.c (v850_gdbarch_init): Ditto.
3954 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3955 * sh-tdep.c (sh_gdbarch_init): Ditto.
3956 * s390-tdep.c (s390_gdbarch_init): Ditto.
3957 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
3958 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3959 * mips-tdep.c (mips_gdbarch_init): Ditto.
3960 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3961 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3962 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3963 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
3964 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3965 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3966 * frv-tdep.c (frv_gdbarch_init): Ditto.
3967 * cris-tdep.c (cris_gdbarch_init): Ditto.
3968 * avr-tdep.c (avr_gdbarch_init): Ditto.
3969 * arm-tdep.c (arm_gdbarch_init): Ditto.
3970 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3971 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3972
35cac7cf
AC
39732003-03-01 Andrew Cagney <cagney@redhat.com>
3974
3975 * gdbarch.sh (register_type): New function with predicate.
3976 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
3977 * gdbarch.h, gdbarch.c: Re-generate.
3978 * arch-utils.c (generic_register_byte): Use generic_register_size.
3979 (generic_register_size): When available, use
3980 gdbarch_register_type.
3981 * regcache.c (init_regcache_descr): When available, initialize the
3982 register type array using gdbarch_register_type. If the
3983 architecture supplies gdbarch_register_type, do not use the legacy
3984 regcache layout.
3985 * d10v-tdep.c (d10v_register_type): Replace
3986 d10v_register_virtual_type.
3987 (d10v_gdbarch_init): Set register_type instead of
3988 register_virtual_type.
3989
7b83296f
AC
39902003-03-01 Andrew Cagney <cagney@redhat.com>
3991
3992 * Makefile.in (ax-gdb.o): Update dependencies.
3993 * ax-gdb.c: Include "regcache.h".
3994 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
3995 * findvar.c (value_of_register): Ditto.
3996 * infcmd.c (default_print_registers_info): Ditto.
3997
eadc1c87
MK
39982003-03-01 Mark Kettenis <kettenis@gnu.org>
3999
4000 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
4001 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4002
14143612
MK
40032003-03-01 Mark Kettenis <kettenis@gnu.org>
4004
4005 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
4006 of STREQ.
4007
a55cc764
DJ
40082003-02-28 Daniel Jacobowitz <drow@mvista.com>
4009
4010 * Makefile.in (dwarf2loc.o): Update dependencies.
4011 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
4012 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
4013 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
4014 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
4015 (locexpr_tracepoint_var_ref): New function.
4016 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
4017
08a617da
AC
40182003-02-28 Andrew Cagney <cagney@redhat.com>
4019
4020 * regcache.c (register_size): New function.
4021 * regcache.h (register_size): Declare
4022 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
4023 max_register_size instead of MAX_REGISTER_RAW_SIZE.
4024
4224873a
DC
40252003-02-28 David Carlton <carlton@math.stanford.edu>
4026
4027 * linespec.c (decode_compound): Extract code into find_method.
4028 (find_method): New.
4029
ccdc5d7f
JB
40302003-02-28 J. Brobecker <brobecker@gnat.com>
4031
4032 * Makefile.in: Add rules to build and link in observer.o.
4033
974e8ced
JB
40342003-02-27 J. Brobecker <brobecker@gnat.com>
4035
4036 * observer.c: Minor comments edits.
4037
7a28f973
JB
40382003-02-27 J. Brobecker <brobecker@gnat.com>
4039
4040 * observer.h, observer.c: New file.
4041
27cddce2
AC
40422003-02-27 Andrew Cagney <cagney@redhat.com>
4043
4044 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
4045
b94a41a1
SC
40462003-02-27 Stephane Carrez <stcarrez@nerim.fr>
4047
4048 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
4049 (M6812_OP_STS_EXT): Likewise.
4050 (m6811_prologue): Use the above to recognize prologue.
4051 (m6812_prologue): Likewise.
4052
c8be8951
DC
40532003-02-27 David Carlton <carlton@math.stanford.edu>
4054
4055 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
4056 SYMBOL_PRINT_NAME.
4057 (compare_psymbols): Ditto.
4058 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
4059
d05bb1fc
MS
40602003-02-27 Michael Snyder <msnyder@redhat.com>
4061
4e845cd3
MS
4062 * f-lang.c (build_fortran_types): New function.
4063 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
4064 * doublest.c (extract_floating): Fix warning text.
4065
f3824013
AC
40662003-02-27 Andrew Cagney <cagney@redhat.com>
4067
4068 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
4069 predicate. Replaces PUSH_DUMMY_FRAME.
4070 * gdbarch.h, gdbarch.c: Regnerate.
4071 * valops.c (hand_function_call): Update. Call
4072 generic_push_dummy_frame directly.
4073 * vax-tdep.c (vax_gdbarch_init): Update.
4074 * sparc-tdep.c (sparc_gdbarch_init): Update.
4075 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4076 * m68k-tdep.c (m68k_gdbarch_init): Update.
4077 * hppa-tdep.c (hppa_gdbarch_init): Update.
4078 * alpha-tdep.c (alpha_gdbarch_init): Update.
4079 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
4080 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
4081 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
4082 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
4083 push_dummy_frame to generic_push_dummy_frame.
4084 * v850-tdep.c (v850_gdbarch_init): Ditto.
4085 * sh-tdep.c (sh_gdbarch_init): Ditto.
4086 * s390-tdep.c (s390_gdbarch_init): Ditto.
4087 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4088 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4089 * mips-tdep.c (mips_gdbarch_init): Ditto.
4090 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4091 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4092 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4093 * i386-tdep.c (i386_gdbarch_init): Ditto.
4094 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4095 * frv-tdep.c (frv_gdbarch_init): Ditto.
4096 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4097 * cris-tdep.c (cris_gdbarch_init): Ditto.
4098 * avr-tdep.c (avr_gdbarch_init): Ditto.
4099 * arm-tdep.c (arm_gdbarch_init): Ditto.
4100
ad188201
KB
41012003-02-26 Kevin Buettner <kevinb@redhat.com>
4102
4103 * mips-tdep.c (show_mips_abi): New function.
4104 (_initialize_mips_tdep): Use show_mips_abi() to implement the
4105 command ``show mips abi''.
4106
6b37567a
JJ
41072003-02-26 Jeff Johnston <jjohnstn@redhat.com>
4108
4109 From Elena Zannoni <ezannoni@redhat.com>
4110 * dbxread.c (process_one_symbol): Only record line 0 if one or
4111 more sline entries have been seen for the function.
4112
d3e0a5bf
MC
41132003-02-26 Michael Chastain <mec@shout.net>
4114
4115 * configure: Regenerate with autoconf 000227.
4116
18972eea
MC
41172003-02-26 Michael Chastain <mec@shout.net>
4118
4119 Close PR build/660.
4120 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
4121 for old libc5/glibc.
4122 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
4123
0bbde931
KW
41242003-02-26 Kris Warkentin <kewarken@qnx.com>
4125
4126 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
4127 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
4128
27ca5dad
MC
41292003-02-26 Michael Chastain <mec@shout.net>
4130
4131 * configure.in: New variable HAVE_UINTPTR_T.
4132 * configure, config.in: Regenerated.
4133
6f88d630
DJ
41342003-02-26 Daniel Jacobowitz <drow@mvista.com>
4135
4136 Fix PR build/1097.
4137 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
4138
b14185ce
AC
41392003-02-25 Andrew Cagney <cagney@redhat.com>
4140
4141 * frame.c (get_prev_frame): Add comment on check for
4142 inside_entry_func. Only check for inside_entry_file when not a
4143 dummy and not a sentinel. Check that the new frame is not inner
4144 to the old frame.
4145
ac2bd0a9
AC
41462003-02-25 Andrew Cagney <cagney@redhat.com>
4147
4148 * frame.c (frame_debug): New variable.
4149 (_initialize_frame): Add "set/show debug frame" command.
4150 (get_prev_frame): When frame_debug, print reason why unwind
4151 failed.
4152
b18a0fd2
MC
41532003-02-25 Michael Chastain <mec@shout.net>
4154
4155 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
4156 to avoid uintptr_t definition problems.
4157
22abf04a
DC
41582003-02-25 David Carlton <carlton@math.stanford.edu>
4159
4160 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
4161 (SYMBOL_LINKAGE_NAME): Ditto.
4162 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
4163 SYMBOL_LINKAGE_NAME.
4164 (struct general_symbol_info): Expand comment.
4165 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
4166 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
4167 (SYMBOL_MATCHES_REGEXP): Ditto.
4168 * symtab.c (symbol_natural_name): New function.
4169 * objfiles.h: Replace all uses of SYMBOL_NAME by
4170 DEPRECATED_SYMBOL_NAME.
4171 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
4172 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
4173 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
4174 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
4175 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
4176 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
4177 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
4178 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
4179 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
4180 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
4181 * ada-exp.y: Ditto.
4182 * ada-exp.y: Update copyright.
4183 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
4184 * cp-valprint.c: Ditto.
4185
1a5848f6
JJ
41862003-02-25 Jeff Johnston <jjohnstn@redhat.com>
4187
4188 * infptrace.c (detach): Do not flag error if ptrace detach fails
4189 and errno is set to ESRCH.
4190
7343d46a
AC
41912003-02-24 Andrew Cagney <cagney@redhat.com>
4192
4193 * infptrace.c (udot_info): Change type of udot_off to long. Use
4194 paddr when printing udot_off's value.
4195
49fa1dc2
DC
41962003-02-24 David Carlton <carlton@math.stanford.edu>
4197
4198 * symtab.c (make_symbol_overload_list): Only read in partial
4199 symtabs containing a matching partial symbol.
4200
0fe19209
DC
42012003-02-24 David Carlton <carlton@math.stanford.edu>
4202
4203 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
4204 do the comparison, not strcmp.
4205 * symfile.c (compare_psymbols): Ditto.
4206 * defs.h: Declare strcmp_iw_ordered.
4207 * utils.c (strcmp_iw_ordered): New function.
4208
8e3ee7b5
JB
42092003-02-24 Jim Blandy <jimb@redhat.com>
4210
4211 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
4212 support, shared libs): Remove my name from here, to better reflect
4213 reality.
4214
7df1a324
KW
42152003-02-24 Kris Warkentin <kewarken@qnx.com>
4216
4217 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
4218 (target_ops): Add to_have_continuable_watchpoint.
4219 * target.c (update_current_target): Add INHERIT line for
4220 to_have_continuable_watchpoint.
4221 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
4222 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
4223 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
4224 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
4225
d1c76907
EZ
42262003-02-24 Elena Zannoni <ezannoni@redhat.com>
4227
4228 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
4229 maintainership.
4230
2610b0bf
KW
42312003-02-24 Kris Warkentin <kewarken@qnx.com>
4232
f46169db
KW
4233 * solib.c (solib_open): Call target defined search function after
4234 failing with solib-search-path.
4235 * solist.h (target_so_ops): Add find_and_open_solib function hook and
4236 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 4237
9a3c34fe
KW
42382003-02-24 Kris Warkentin <kewarken@qnx.com>
4239
f46169db 4240 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 4241
2417dd25
SC
42422003-02-23 Stephane Carrez <stcarrez@nerim.fr>
4243
4244 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
4245
b631436b
SC
42462003-02-22 Stephane Carrez <stcarrez@nerim.fr>
4247
4248 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
4249 (m68hc11_add_reggroups): New function.
4250 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
4251 (m68hc11_gdbarch_init): Install the reggroups.
4252 (_initialize_m68hc11_tdep): Initialize them.
4253
0aa8c1e4
JW
42542003-02-21 James E Wilson <wilson@tuliptree.org>
4255
4256 * MAINTAINERS: Update my email address.
4257
50ceaba5
DC
42582003-02-21 David Carlton <carlton@math.stanford.edu>
4259
4260 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
4261
4c2df51b
DJ
42622003-02-21 Daniel Jacobowitz <drow@mvista.com>
4263
4264 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
4265 * symtab.h: Add opaque declarations of struct axs_value and
4266 struct agent_expr.
4267 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
4268 (struct location_funcs): New type.
4269 (struct symbol): Add "loc" to aux_value.
4270 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
4271 * dwarf2read.c: Include "dwarf2expr.h".
4272 (dwarf2_symbol_mark_computed): New function.
4273 (read_func_scope): Use it.
4274 (var_decode_location): New function.
4275 (new_symbol): Use it.
4276 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
4277
4278 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
4279 (dwarf2expr_h, dwarf2loc_h): New variables.
4280 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
4281 (dwarf2expr.o, dwarf2loc.o): New rules.
4282 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
4283 * buildsym.c (finish_block): Handle LOC_COMPUTED and
4284 LOC_COMPUTED_ARG.
4285 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
4286 * m2-exp.y (yylex): Likewise.
4287 * printcmd.c (address_info, print_frame_args): Likewise.
4288 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
4289 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
4290 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
4291 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
4292 * symtab.c (lookup_block_symbol): Likewise.
4293
5784d15e
AF
42942003-02-20 Adam Fedor <fedor@gnu.org>
4295
4296 * symtab.h: Remove objc_specific struct
4297 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
4298 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
4299 Have language_objc use cplus_specific struct.
4300
d4cad8db
TT
43012003-02-20 Tom Tromey <tromey@redhat.com>
4302
4303 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
4304 TYPE_NAME, when printing a String value. PR java/1075.
4305
2f9a90b4
AF
43062003-02-20 Adam Fedor <fedor@gnu.org>
4307
d38074a8 4308 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 4309 * objc-lang.c (find_methods): Make static.
2f9a90b4 4310
6f17862b
CF
43112003-02-20 Christopher Faylor <cgf@redhat.com>
4312
4313 * win32-nat.c (get_image_name): Check return value from
4314 ReadProcessMemory.
4315 (child_xfer_memory): Ditto.
4316
715d1656
AO
43172003-02-20 Alexandre Oliva <aoliva@redhat.com>
4318
4319 * configure.in (TARGET_SYSTEM_ROOT): Set default to
4320 ${exec_prefix}/${target_alias}/sys-root. Match explicit
4321 '${exec_prefix}' (in addition to the expansion thereof) as
4322 relocatable.
4323 * configure: Rebuilt.
4324
b1262a02
DC
43252003-02-20 David Carlton <carlton@math.stanford.edu>
4326
4327 * symtab.c (search_symbols): Revert the search_symbols part of my
4328 2002-12-23 patch. Add comment.
4329
7134143f
DJ
43302002-02-20 Daniel Jacobowitz <drow@mvista.com>
4331
4332 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
4333 * dbxread.c (elfstab_build_psymtabs): Don't call
4334 install_minimal_symbols.
4335 (stabsect_build_psymtabs): Likewise.
4336 * elfread.c (elf_symfile_read): Call install_minimal_symbols
4337 earlier.
4338 * somread.c (som_symfile_read): Call install_minimal_symbols
4339 and do_cleanups earlier.
4340 * nlmread.c (nlm_symfile_read): Likewise.
4341 * mdebugread.c (elfmdebug_build_psymtabs): Call
4342 install_minimal_symbols and make appropriate cleanups.
4343
cf466558
KB
43442003-02-20 Kevin Buettner <kevinb@redhat.com>
4345
4346 * solib.c (reload_shared_libraries): New function.
4347 (_initialize_solib): Add callbacks for ``set solib-search-path''
4348 and ``set solib-absolute-prefix''.
4349
de5ad195
DC
43502003-02-20 David Carlton <carlton@math.stanford.edu>
4351
4352 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
4353 expand comment.
4354 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
4355 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
4356 * ada-typeprint.c (ada_typedef_print): Ditto.
4357 * ax-gdb.c (gen_var_ref): Ditto.
4358 * breakpoint.c (print_one_breakpoint): Ditto.
4359 * buildsym.c (finish_block): Ditto.
4360 * c-valprint.c (c_val_print): Ditto.
4361 * expprint.c (print_subexp): Ditto.
4362 * findvar.c (locate_var_value): Ditto.
4363 * infcmd.c (jump_command): Ditto.
4364 * linespec.c (decode_line_2, decode_compound): Ditto.
4365 * maint.c (maintenance_translate_address): Ditto.
4366 * objc-lang.c (compare_selectors, compare_classes): Ditto.
4367 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
4368 Ditto.
4369 * p-valprint.c (pascal_val_print): Ditto.
4370 * stabsread.c (define_symbol): Ditto.
4371 * stack.c (print_frame, frame_info, print_block_frame_locals)
4372 (print_frame_arg_vars, return_command): Ditto.
4373 * symfile.c (compare_symbols, compare_psymbols): Ditto.
4374 * symmisc.c (print_symbol): Ditto.
4375 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
4376 (compare_search_syms, print_symbol_info, print_msymbol_info)
4377 (rbreak_command): Ditto.
4378 * tracepoint.c (tracepoints_info): Ditto.
4379 * typeprint.c (typedef_print): Ditto.
4380 * valops.c (value_of_variable, hand_function_call): Ditto.
4381 * cli/cli-cmds.c (edit_command, list_command): Ditto.
4382 * ada-typeprint.c: Update Copyright.
4383 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
4384 * tracepoint.c, cli/cli-cmds.c: Ditto.
4385
f796e4be
KB
43862003-02-20 Kevin Buettner <kevinb@redhat.com>
4387
4388 * frame.c (generic_unwind_get_saved_register): Make non-static.
4389 * frame.h (generic_unwind_get_saved_register): Declare.
4390 * mips-tdep.c (read_next_frame_reg): Fetch register from
4391 current regcache when frame is NULL.
4392 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
4393 that must be NULL.
4394 (mips_get_saved_register): Call generic_unwind_get_saved_register()
4395 instead of frame_register_unwind().
4396
836cc9f4
AC
43972003-02-20 Andrew Cagney <ac131313@redhat.com>
4398
4399 * remote-sim.c (gdbsim_insert_breakpoint)
4400 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
4401 code.
4402
501eef12
AC
44032003-02-20 Andrew Cagney <ac131313@redhat.com>
4404
4405 * remote.c (_initialize_remote): Add commands "set/show remote
4406 hardware-watchpoint-limit" and "set/show remote
4407 hardware-breakpoint-limit".
4408 (remote_hw_watchpoint_limit): Initialize to -1.
4409 (remote_hw_breakpoint_limit): Ditto.
4410 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
4411
1b6bc7e0
CF
44122003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
4413
4414 * coff-pe-read.c: New file - support reading of minimal symbols from a
4415 portable executable using the export table.
4416 * coff-pe-read.h: New file.
4417 * coffread.c: Include coff-pe-read.h.
4418 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
4419 debugging symbols found.
4420 * Makefile.in (SFILES): Add coff-pe-read.o.
4421 (coff_pe_read_h): Define.
4422 (COMMON_OBS): Add coff-pe-read.o.
4423 (coffread.o): Add coff_pe_read_h dependency.
4424 (coff-pe-read.o): New target.
4425
fe898f56
DC
44262003-02-19 David Carlton <carlton@math.stanford.edu>
4427
4428 * Makefile.in (SFILES): Add block.c.
4429 (block_h): New.
4430 (COMMON_OBS): Add block.o.
4431 (block.o): New.
4432 (x86-64-tdep.o): Add $(block_h).
4433 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
4434 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
4435 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
4436 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
4437 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
4438 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
4439 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
4440 * value.h: Add opaque declaration for struct block.
4441 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
4442 * ada-lang.h: Ditto.
4443 * x86-64-tdep.c: #include "block.h"
4444 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
4445 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
4446 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
4447 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
4448 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
4449 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
4450 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
4451 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
4452 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
4453 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
4454 * symtab.c (block_function): Ditto.
4455 (contained_in): Ditto.
4456 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
4457 block.h. Add opaque declaration for struct block.
4458 * symtab.h: Move block_function and contained_in declarations to
4459 block.h. Add opaque declarations for struct block, struct
4460 blockvector.
4461 (struct block): Move to block.h.
4462 (struct blockvector): Ditto.
4463 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
4464 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
4465 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
4466 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
4467 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
4468 Ditto.
4469 * block.c: New file.
4470 * block.h: New file.
4471
173345b5
TR
44722003-02-19 Theodore A. Roth <troth@openavr.org>
4473
4474 * avr-tdep.c (avr_extract_return_value): Remove function.
4475 (avr_store_return_value): Remove function.
4476 (avr_extract_struct_value_address): Remove function.
4477 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
4478
338ef23d
AC
44792003-02-19 Andrew Cagney <ac131313@redhat.com>
4480
4481 * rs6000-tdep.c: Include "gdb_assert.h".
4482 (registers_e500): Add "acc" and "spefscr".
4483 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
4484 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
4485 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
4486 really is "r0".
4487 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
4488
5412f5f3
KS
44892003-02-18 Keith Seitz <keiths@redhat.com>
4490
4491 * Makefile.in: Add gdbtk-interps.c.
4492
881324eb
KB
44932003-02-18 Kevin Buettner <kevinb@redhat.com>
4494
4495 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
4496 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
4497
6a2f5abf
AC
44982003-02-18 Andrew Cagney <cagney@redhat.com>
4499
4500 * symtab.h (struct objfile): Add opaque declaration.
4501
54c7009d
EZ
45022003-02-18 Elena Zannoni <ezannoni@redhat.com>
4503
4504 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
4505 * dbxread.c (process_one_symbol): Use last_function_start rather
4506 than function_start_offset to find the real beginning of the
4507 current function. The latter is just the text section offset on
4508 some systems, the former is always the real function start.
54c7009d 4509
7ee6d7eb
AC
45102003-02-17 Andrew Cagney <cagney@redhat.com>
4511
4512 * configure.in: Revert ${target} != ${host}.
4513
2846da9b
AC
45142003-02-17 Andrew Cagney <ac131313@redhat.com>
4515
4516 * configure.in (Makefile): Use the test ${target} != ${host},
4517 instead of the absence of the "nm.h" file, to determine of the
4518 configuration non-native.
4519 * configure: Regenerate.
4520
3b27aeea
EZ
45212003-02-14 Elena Zannoni <ezannoni@redhat.com>
4522
fbe586ae 4523 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
4524
4525 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
4526 conditionalize tui_active test.
4527 (lookup_cmd_1): Ditto.
4528
b0b1c2c0
MK
45292003-02-14 Mark Kettenis <kettenis@gnu.org>
4530
4531 * configure.in: Add check for _etext.
4532 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
4533 available.
4534 * config.in, configure: regenerated.
4535
8f05cde5
DJ
45362003-02-14 Daniel Jacobowitz <drow@mvista.com>
4537
4538 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
4539
021e7609
AC
45402003-02-14 Andrew Cagney <ac131313@redhat.com>
4541
4542 * main.c (tui_version): Delete variable.
4543 (captured_main): When --tui, set interpreter_p to "tui" instead of
4544 enabling tui_version.
4545 * printcmd.c (display_command) [TUI]: Test tui_active instead of
4546 tui_version.
4547 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
4548 * cli/cli-cmds.c (disassemble_command): Ditto.
4549 * defs.h (tui_version): Delete declaration.
4550 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
4551 (tui-interp.o): Add rules.
4552 (SUBDIR_TUI_OBS): Add "tui-interp.o".
4553
e325dcec
CF
45542003-02-14 Christopher Faylor <cgf@redhat.com>
4555
36ffb041 4556 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
4557 just-loaded dll.
4558
c4f90d87
JM
45592003-02-12 Jason Molenda (jmolenda@apple.com)
4560
fbe586ae
RH
4561 * symmisc.c (print_objfile_statistics): Include information about
4562 the number of psymtabs and symtabs in each object file.
c4f90d87 4563
e46e5ccd
KS
45642003-02-13 Keith R Seitz <keiths@redhat.com>
4565
4566 * main.h (struct captured_main_args): Add interpreter_p.
4567 * main.c (captured_main): Initialize interpreter_p from context.
4568 * gdb.c (main): Set interpreter_p argument.
4569 * Makefile.in (gdb.o): Add dependency for interps.h.
4570
fe97fe9c
AC
45712003-02-12 Andrew Cagney <ac131313@redhat.com>
4572
4573 * event-top.c (cli_command_loop): Delete declaration.
4574 (_initialize_event_loop): Delete function setting event_loop_hook.
4575 * event-top.h (cli_command_loop): Declare. Update copyright.
4576 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
4577 * interps.c (current_interp_command_loop): When event_loop_p, call
4578 cli_command_loop.
4579
1cdac4ef
AC
45802003-02-12 Andrew Cagney <ac131313@redhat.com>
4581
4582 * interps.h (interp_command_loop_ftype): Change return type to
4583 void.
4584
48037ead
ML
45852003-02-12 Michal Ludvig <mludvig@suse.cz>
4586
4587 * x86-64-tdep.c (x86_64_extract_return_value)
4588 (x86_64_store_return_value): Use regcache instead of regbuf.
4589 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
4590 * x86-64-linux-nat.c (fill_gregset): Use regcache.
4591
033afc63
AC
45922003-02-11 Andrew Cagney <ac131313@redhat.com>
4593
4594 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
4595 * aclocal.m4: Regenerate.
4596 * configure: Regenerate.
4597
4598 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
4599 TCL_LD_SEARCH_FLAGS.
4600
40d02bca
ML
46012003-02-10 Michal Ludvig <mludvig@suse.cz>
4602
4603 * dwarf2cfi.c: Reindented.
4604
11308a41
AC
46052003-02-09 Andrew Cagney <ac131313@redhat.com>
4606
4607 * interps.c (clear_interpreter_hooks): Convert function definition
4608 to ISO C.
4609
e1c1c0f6
DC
46102003-02-07 David Carlton <carlton@math.stanford.edu>
4611
4612 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
4613
ab5d3da6
KB
46142003-02-07 Kevin Buettner <kevinb@redhat.com>
4615
4616 * gdbtypes.h (struct main_type): Move ``length'' field from here...
4617 (struct type): ...to here.
4618 (TYPE_LENGTH): Adjust to reflect different location of ``length''
4619 field.
4620 * gdbtypes.c (make_qualified_type): Set length on newly created type.
4621 (replace_type): Set length on all type variants for a given type.
4622
b8a92b82
AC
46232003-02-07 Andrew Cagney <ac131313@redhat.com>
4624
4625 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
4626 <sys/stat.h>.
4627 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
4628
5cb316ef
AC
46292003-02-06 Andrew Cagney <ac131313@redhat.com>
4630
2555fe1a
AC
4631 * Makefile.in (symm-nat.o): Update dependencies.
4632 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
4633 (lynx-nat.o, ia64-linux-nat.): Ditto.
4634 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
4635 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
4636 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
4637
44270758
AC
4638 * Makefile.in (inflow_h): Define.
4639 (procfs.o, inflow.o, procfs.o): Update dependencies.
4640 * inftarg.c (child_stop): Delete extern declaration of
4641 inferior_process_group. Include "inflow.h".
4642 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
4643 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
4644 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
4645 (our_process_group, inferior_process_group): Extern declarations.
4646
df8f7274
AC
4647 * procfs.c: Include "gdb_assert.h".
4648
5cb316ef
AC
4649 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
4650 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
4651 * jv-typeprint.c (java_type_print_base): Ditto.
4652 * typeprint.c (typedef_print): Eliminate STREQ.
4653 * cli/cli-script.c (define_command, define_command): Ditto.
4654 * main.c (captured_main): Ditto.
4655 * values.c (lookup_internalvar): Ditto.
4656 * utils.c (safe_strerror, parse_escape): Eliminate assignment
4657 within `if' conditional.
4658 * linespec.c (decode_line_2): Ditto.
4659 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
4660 (bfd_openw_with_cleanup): Ditto.
4661
2a28ccea
MK
46622003-02-07 Mark Kettenis <kettenis@gnu.org>
4663
4664 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
4665 legacy_extract_return_value and store_return_value to
4666 legacy_return_value.
4667
786b8124
CF
46682003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
4669
4670 * win32-nat.c (get_relocated_section_addrs): New function. Find
4671 section load addresses for symbol handling in relocated DLLs.
4672 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
4673
b871e4ec
FF
46742003-02-05 Fred Fish <fnf@intrinsity.com>
4675
4676 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
4677 '=' and '!='.
4678 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
4679 with '&' and '=='.
4680 (angel_RDI_info): Ditto.
4681 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
4682 with '&' and '!='.
4683 (threads_continue_all_with_signals): Ditto.
4684
4389a95a 46852003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
4686 Keith Seitz <keiths@redhat.com>
4687 Elena Zannoni <ezannoni@redhat.com>
4688 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
4689
4690 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
4691 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
4692 (SUBDIR_MI_OBS): Add "mi-interp.o".
4693 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
4694 (SFILES): Add "interps.c".
4695 (COMMON_OBS): Add "interps.o".
4696 (interps_h, mi_main_h): Define.
4697 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
4698 (mi-main.o, main.o, event-top.o): Update dependencies.
4699 * cli/cli-interp.c: New file.
4700 * interps.h, interps.c: New files.
4701 * top.c: (gdb_init): Don't install the default interpreter, handed
4702 by captured_main.
4703 * main.c: Include "interps.h".
4704 (interpreter_p): Note that it should malloc'ed.
4705 (captured_command_loop): Call current_interp_command_loop.
4706 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
4707 xfree and xstrdup when updating interpreter_p. Install the
4708 default interpreter. Add hack to stop mi1's copyright notice
4709 being encoded.
4710 * event-top.h (gdb_setup_readline): Declare.
4711 (gdb_disable_readline): Declare.
4712 * event-top.c: Include "interps.h".
4713 (display_gdb_prompt): Call current_interp_display_prompt_p.
4714 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
4715 gdb_stdlog, and gdb_stdtarg.
4716 (_initialize_event_loop): Don't call gdb_setup_readline.
4717 * cli-out.c (cli_out_set_stream): New function.
4718 * cli-out.h (cli_out_set_stream): Declare.
4719
ff3b5810
MK
47202003-02-06 Mark Kettenis <kettenis@gnu.org>
4721
4722 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
4723 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
4724 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
4725 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
4726 config/i386/i386v42mp.mt: Removed.
4727
5b729aa5
MK
47282003-02-05 Mark Kettenis <kettenis@gnu.org>
4729
4730 * configure.tgt (*-*-solaris*): Set gdb_osabi to
4731 GDB_OSABI_SOLARIS.
4732
8cc15142
MC
47332003-02-05 Michael Chastain <mec@shout.net>
4734
4735 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
4736 2.12.1 and earlier versions.
4737
5aa5d4b9
AC
47382003-02-05 Andrew Cagney <ac131313@redhat.com>
4739
4740 Remove orphaned hosts, targets and files.
4741 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
4742 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
4743 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
4744 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
4745 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
4746 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
4747 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
4748 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
4749 * config/sparc/tm-sp64sim.h: Delete.
4750 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
4751 hosts.
4752 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
4753 mips*-dec-mach3* targets.
4754
b68767c1
MC
47552003-02-04 Michael Chastain <mec@shout.net>
4756
4757 * NEWS: Fix typo: sepcifying -> specifying.
4758
5ae7ca1d
MC
47592003-02-04 Michael Chastain <mec@shout.net>
4760
4761 * dwarfread.c: Add documentation on the state of dwarf-1,
4762 looking towards obsoletion.
4763
d08a4280
MC
47642003-02-03 Michael Chastain <mec@shout.net>
4765
4766 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
4767 gdb/testsuite/gdb.c++/pr-1023.exp.
4768
e9be73e4
AC
47692003-02-04 Andrew Cagney <ac131313@redhat.com>
4770
4771 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
4772 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
4773
4774 * utils.c (init_page_info): Delete reference to MPW in comments.
4775 * main.c (captured_main): Delete #ifdef MPW.
4776
05d57f6f
AC
47772003-02-04 Andrew Cagney <ac131313@redhat.com>
4778
4779 * NEWS: Note that the m32r-*-elf* is obsolete.
4780 * monitor.c (monitor_expect): Obsolete reference to m32r.
4781 * configure.tgt: Mark m32r-*-elf* as obsolete.
4782 * MAINTAINERS: Mark m32k as obsolete.
4783 * m32r-rom.c: Obsolete file.
4784 * config/m32r/m32r.mt: Obsolete file.
4785 * config/m32r/tm-m32r.h: Obsolete file.
4786 * m32r-stub.c: Obsolete file.
4787 * m32r-tdep.c: Obsolete file.
4788
8b0e5691
AC
47892003-02-04 Andrew Cagney <ac131313@redhat.com>
4790
4791 * NEWS: Mention that the z8k-zilog-none is obsolete.
4792 * MAINTAINERS: Mark z8k as obsolete.
4793 * configure.tgt: Obsolete the z8k-*-coff* target.
4794 * config/z8k/z8k.mt: Obsolete file.
4795 * config/z8k/tm-z8k.h: Obsolete file.
4796 * z8k-tdep.c: Obsolete file.
4797
67f16606
AC
47982003-02-04 Andrew Cagney <ac131313@redhat.com>
4799
4800 * NEWS: Mention that the mn10200-elf is obsolete.
4801 * configure.tgt: Obsolete mn10200-*-* target.
4802 * breakpoint.c (update_breakpoints_after_exec): Update comment to
4803 mention that the mn10200 is obsolete.
4804 * breakpoint.h: Ditto.
4805 * MAINTAINERS: Mark the mn10200-elf as obsolete.
4806 * config/mn10200/mn10200.mt: Obsolete file.
4807 * config/mn10200/tm-mn10200.h: Obsolete file.
4808 * mn10200-tdep.c: Obsolete file.
4809
fd2299bd
AC
48102003-02-04 Andrew Cagney <ac131313@redhat.com>
4811
4812 * MAINTAINERS: Mark h8500 as obsolete.
4813 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
4814 * findvar.c (value_from_register): Ditto.
4815 * h8500-tdep.c: Mark file as obsolete.
4816 * config/h8500/h8500.mt: Ditto.
4817 * config/h8500/tm-h8500.h: Ditto.
4818 * NEWS: Mention that h8500 is obsolete.
4819
eb9a305d
DC
48202003-02-04 David Carlton <carlton@math.stanford.edu>
4821
4822 * objfiles.c (allocate_objfile): Always set name. Add comment at
4823 start of function.
4824 * jv-lang.c (get_dynamics_objfile): Add comment.
4825
406fc7fb
DC
48262003-02-04 David Carlton <carlton@math.stanford.edu>
4827
4828 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
4829 * printcmd.c (build_address_symbolic): Replace uses of
4830 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
4831 SYMBOL_NAME, and asm_demangle.
4832 Update copyright.
4833
93d91629
DC
48342003-02-04 David Carlton <carlton@math.stanford.edu>
4835
4836 * linespec.c (decode_compound): Extract code into
4837 lookup_prefix_sym.
4838 (lookup_prefix_sym): New function.
4839
1c5cb38e
DC
48402003-02-04 David Carlton <carlton@math.stanford.edu>
4841
4842 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
4843 FLOAT_COERCION_BADNESS.
4844 * gdbtypes.c (rank_one_type): Replace all uses of
4845 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
4846
0cf824c9
JB
48472003-02-04 Jim Blandy <jimb@redhat.com>
4848
4849 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
4850 section, let dwarf_macinfo_section point to it, not
4851 dwarf_loc_section.
4852
a2d356b0
DJ
48532003-02-04 Daniel Jacobowitz <drow@mvista.com>
4854
4855 Pointed out by Anton Blanchard <anton@samba.org>.
4856 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
4857 (ppc_linux_at_sigtramp_return_path): Use it.
4858
2de7ced7
DJ
48592003-02-04 Daniel Jacobowitz <drow@mvista.com>
4860
4861 * defs.h (streq): Add prototype.
4862 * utils.c (streq): New function.
4863
4864 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
4865 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
4866 * mdebugread.c (new_symbol): Likewise.
4867 * stabsread.c (define_symbol): Likewise.
4868 * coffread.c (process_coff_symbol): Likewise.
4869 * dwarfread.c (new_symbol): Likewise.
4870
4871 * minsyms.c (prim_record_minimal_symbol_and_info): Use
4872 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
4873 here.
4874 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
4875 SYMBOL_INIT_DEMANGLED_NAME.
4876 * objfiles.c: Include "hashtab.h".
4877 (allocate_objfile): Call htab_set_functions_ex for the
4878 demangled_names_hash.
4879 (free_objfile): Call htab_delete for the demangled_names_hash.
4880 * objfiles.h (struct htab): Add declaration.
4881 (struct objfile): Add demangled_names_hash.
4882 * symfile.c: Include "hashtab.h".
4883 (reread_symbols): Call htab_delete for the demangled_names_hash.
4884 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
4885 SYMBOL_NAME in the bcache.
4886 * symtab.c: Include "hashtab.h". Update comments.
4887 (create_demangled_names_hash, symbol_set_names): New functions.
4888 (symbol_find_demangled_name): New function, broken out from
4889 symbol_init_demangled_names.
4890 (symbol_init_demangled_names): Use it.
4891 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
4892 (SYMBOL_SET_NAMES): New macro.
4893 (symbol_set_names): Add prototype.
4894
15831452
JB
48952003-02-03 Jim Blandy <jimb@redhat.com>
4896
4897 Use a single, consistent representation for an empty minimal
4898 symbol table in an objfile.
4899 * objfiles.c (terminate_minimal_symbol_table): New function.
4900 (allocate_objfile): Call it.
4901 * objfiles.h (terminate_minimal_symbol_table): New declaration.
4902 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
4903 non-NULL.
4904 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
4905 objfile has minimal symbols, compare minimal_symbol_count to zero,
4906 instead of comparing msymbols with NULL.
4907 * objfiles.c (have_minimal_symbols): Same.
4908 * solib-sunos.c (solib_add_common_symbols): Call
4909 terminate_minimal_symbol_table.
4910 * symfile.c (reread_symbols): Same.
4911
ffc65945
KB
49122003-02-03 Kevin Buettner <kevinb@redhat.com>
4913
4914 * s390-tdep.c (s390_address_class_type_flags)
4915 (s390_address_class_type_flags_to_name)
4916 (s390_address_class_name_to_type_flags): New functions.
4917 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
4918 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
4919
f211c6d4
MS
49202003-02-03 Michael Snyder <msnyder@redhat.com>
4921
4922 * arm-tdep.c: Fix spell-o in comment.
4923
659b0389
ML
49242003-02-03 Michal Ludvig <mludvig@suse.cz>
4925
4926 * dwarf2cfi.c (pointer_encoding): Added new parameter.
4927 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
4928 error messages to contain BFD filename.
4929
3b31d625
EZ
49302003-02-02 Elena Zannoni <ezannoni@redhat.com>
4931
997b089a 4932 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
4933 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
4934 (do_mixed_source_and_assembly): Use
4935 make_cleanup_ui_out_tuple_begin_end and
4936 make_cleanup_ui_out_tuple_begin_end.
4937 (do_mixed_source_and_assembly): Ditto.
4938 * thread.c (do_captured_list_thread_ids): Ditto.
4939 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
4940 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
4941 ui_out_tuple_end): Delete prototypes.
4942 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
4943 ui_out_list_end, ui_out_tuple_end): Delete.
4944
4945 From Kevin Buettner <kevinb@redhat.com>:
4946 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
4947 * ui-out.c (make_cleanup_ui_out_table_begin_end)
4948 (do_cleanup_table_end): New functions.
4949 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
4950 Use cleanups to invoke_ui_out_tuple_end().
4951 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
4952 * cli/cli-setshow.c (cmd_show_list): Use
4953 make_cleanup_ui_out_tuple_begin_end.
4954
5b181d62
AC
49552003-02-02 Andrew Cagney <ac131313@redhat.com>
4956
4957 * frame.c (frame_unwind_register): New function.
4958 (frame_unwind_unsigned_register): Use.
4959 (frame_unwind_signed_register): Use.
4960 (frame_read_register): New function.
4961 * frame.h (frame_unwind_register): Declare.
4962 (frame_read_register): Declare.
4963
4964 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
4965 and frame_unwind_register instead of read_memory, write_register
4966 and deprecated_write_register_bytes.
4967
5f601589
AC
49682003-02-02 Andrew Cagney <ac131313@redhat.com>
4969
4970 * frame.h: Note that namelen can be negative.
4971 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
4972 NAME's length.
4973
4974 * NEWS: Mention that the d10v's `regs' command is deprecated.
4975 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
4976 (d10v_print_registers_info): New function.
4977 (show_regs): Call d10v_print_registers_info.
4978 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
4979
6a3fe0a4
MK
49802003-02-02 Mark Kettenis <kettenis@gnu.org>
4981
4982 * stack.c (print_frame_info): Restore call to annotate_frame_begin
4983 lost in the previous patch.
4984
075559bc
AC
49852003-02-01 Andrew Cagney <ac131313@redhat.com>
4986
4987 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
4988 * stack.c (print_frame_info_base): Output complete FRAME tuple
4989 for synthesized frames.
075559bc 4990
6789195b
AC
49912003-02-02 Andrew Cagney <ac131313@redhat.com>
4992
4993 * mips-nat.c (zerobuf): Delete.
4994 (fetch_inferior_registers): Alloc local zerobuf.
4995 (fetch_core_registers): Alloc local zerobuf.
4996 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
4997 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
4998 * thread-db.c (thread_db_store_registers): Ditto.
4999 * sh-tdep.c (sh_do_register): Ditto.
5000 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
5001 * remote-sim.c (gdbsim_store_register): Ditto.
5002 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5003 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5004 * monitor.c (monitor_supply_register): Ditto.
5005 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
5006 * mips-nat.c (fetch_inferior_registers): Ditto.
5007 * m68klinux-nat.c (fetch_register): Ditto.
5008 * lynx-nat.c (fetch_inferior_registers): Ditto.
5009 (fetch_inferior_registers): Ditto.
5010 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
5011 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5012 (hpux_thread_store_registers): Ditto.
5013 * hppah-nat.c (fetch_register): Ditto.
5014 * hppab-nat.c (fetch_register): Ditto.
5015 * hppa-tdep.c (pa_register_look_aside): Ditto.
5016 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
5017 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
5018
e669114a
AC
50192003-02-01 Andrew Cagney <ac131313@redhat.com>
5020
5021 * gdbarch.sh: Explictly specify all method levels. When a
5022 variable with an empty level, provide a non-multi-arch default.
5023 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
5024 * gdbarch.h: Re-generate.
5025 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
5026 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
5027
9a043c1d
AC
50282003-02-01 Andrew Cagney <ac131313@redhat.com>
5029
5030 * defs.h (host_pointer_to_address): Delete declaration.
5031 (address_to_host_pointer): Delete declaration.
5032 * utils.c (host_pointer_to_address): Delete function.
5033 (address_to_host_pointer): Delete function.
5034 * procfs.c (procfs_address_to_host_pointer): New function.
5035 * procfs.c (proc_set_watchpoint): Use.
5036 (procfs_can_use_hw_breakpoint): Update comments.
5037 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
5038 (som_solib_add): Use.
5039 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
5040 * hppa-tdep.c (unwind_command): Use.
5041
7ca9f392
AC
50422003-02-01 Andrew Cagney <ac131313@redhat.com>
5043
94bbfd30
AC
5044 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
5045 strlen d_name.
5046
7ca9f392
AC
5047 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
5048 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
5049 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
5050 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
5051 (define_symbol): Update.
5052 * symfile.c (generic_load): Remove references to nindy.
5053 * symtab.c: Remove references to nindy.
5054
31a85ea2
AC
50552003-02-01 Andrew Cagney <ac131313@redhat.com>
5056
5057 * infcmd.c (print_float_info): Delete code conditional on
5058 FLOAT_INFO.
5059 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
5060 * config/m68k/nm-apollo68b.h: Ditto.
5061 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
5062 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
5063 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
5064
f6e85fc8
MK
50652003-02-01 Mark Kettenis <kettenis@gnu.org>
5066
6015b6a0
MK
5067 * config/i386/tm-i386os9k.h: Removed.
5068
f7a30bdf
MK
5069 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
5070 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
5071 they're identical to i[3456]86-*-sysv* now.
5072 * config/i386/i386v32.mh: Removed.
5073 * config/i386/xm-i386v32.h: Removed.
5074 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
5075
28d52111
MK
5076 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
5077
4d3f6bce
MK
5078 * config/i386/i386dgux.mh: Removed.
5079 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
5080
f6e85fc8
MK
5081 * configure.in: Fix typo.
5082 * configure: Regenerated.
5083
53955967
DC
50842003-01-31 David Carlton <carlton@math.stanford.edu>
5085
5086 * dwarf2read.c (dwarf2_locate_sections): Set
5087 dwarf_ranges_section.
5088
b1364885
AC
50892003-01-31 Andrew Cagney <ac131313@redhat.com>
5090
8dbb1c65
AC
5091 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
5092 * utils.c: Update comments documenting legitimate uses of PTR.
5093
8731e58e
AC
5094 * utils.c: Re-indent.
5095
b1364885
AC
5096 * config/djgpp/fnchange.lst: Delete nindy files.
5097 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
5098 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
5099 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
5100 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
5101 * nindy-share/README, nindy-share/Onindy.c: Delete files.
5102 * nindy-tdep.c, nindy-share/Makefile: Delete files.
5103 * Makefile.in (init.c): Remove nindy references.
5104 (saber_gdb): Delete rule.
5105 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
5106 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
5107 and a68v-nat.c.
5108 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
5109 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
5110 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
5111 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
5112 nindy-share/stop.h.
5113 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
5114 * saber.suppress: Delete file.
5115
086df311
DJ
51162003-01-31 Daniel Jacobowitz <drow@mvista.com>
5117
5118 * dbxread.c (stabs_data): New static variable.
5119 (fill_symbuf): Support an in-memory buffer for stabs data.
5120 (stabs_seek): New function.
5121 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
5122 (read_ofile_symtab): Use stabs_seek.
5123 (elfstab_build_psymtabs): Take an asection* instead of
5124 an offset and size. Relocate the stabs data if necessary.
5125 Save the section* for dbx_psymtab_to_symtab.
5126 * dwarf2read.c: Add section variables for each debug section.
5127 (dwarf2_locate_sections): Fill them in.
5128 (dwarf2_read_section): Take an asection* argument.
5129 Relocate the section contents if necessary.
5130 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
5131 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
5132 it to dwarf2_read_section.
5133 (dwarf2_build_frame_info): Update callers.
5134 * elfread.c (elf_symfile_read): Update call to
5135 elfstab_build_psymtabs.
5136 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
5137 (DBX_STAB_SECTION): New macro.
5138 * stabsread.h (elfstab_build_psymtabs): Update prototype.
5139 * symfile.c (symfile_dummy_outputs): New function.
5140 (symfile_relocate_debug_section): New function.
5141 * symfile.h (symfile_relocate_debug_section): Add prototype.
5142
87d1b352
RH
51432003-01-31 Richard Henderson <rth@redhat.com>
5144
5145 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
5146 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
5147 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
5148 * alpha-tdep.c (alpha_register_name): Add "unique".
5149 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
5150 (ALPHA_UNIQUE_REGNUM): New.
5151 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
5152
c48861fb
AC
51532003-01-31 Andrew Cagney <ac131313@redhat.com>
5154
5155 * README: Remove reference to Ericsson 1800 monitor.
5156 * Makefile.in (remote-es.o): Delete rule.
5157 (ALLDEPFILES): Delete remote-es.c.
5158 * remote-es.c: Delete file.
5159 * config/m68k/es1800.mt: Delete file.
5160 * config/djgpp/fnchange.lst: Update.
5161 * configure.tgt: Delete m68*-ericsson-* target.
5162
d764a824
AF
51632003-01-31 Adam Fedor <fedor@gnu.org>
5164
5165 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
5166 Remove duplicate/shadowing variable of same name.
5167
fe36c4f4
JB
51682003-01-30 Jim Blandy <jimb@redhat.com>
5169
5170 * symfile.c (find_separate_debug_file): Assert that the objfile's
5171 directory name we compute ends with a slash, and then assume that
5172 that's so everywhere we use it.
5173
cb741690
DJ
51742003-01-30 Daniel Jacobowitz <drow@mvista.com>
5175
5176 * valops.c (value_assign): Flush frame cache after stores to memory
5177 also.
5178
96ee5227
AC
51792003-01-30 Andrew Cagney <ac131313@redhat.com>
5180
5181 * Makefile.in (mon960-rom.o): Delete rule.
5182 * mon960-rom.c: Delete file.
5183
7f6104a9
AC
51842003-01-30 Andrew Cagney <ac131313@redhat.com>
5185
5186 * d10v-tdep.c: Include "frame-unwind.h".
5187 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
5188 list.
5189 (next_addr, uses_frame): Delete.
5190 (struct d10v_unwind_cache): Define.
5191 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
5192 Use info instead of next_addr and uses_frame globals.
5193 (d10v_frame_init_saved_regs): Delete function.
5194 (d10v_init_extra_frame_info): Delete function.
5195 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
5196 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
5197 init_frame_pc or frame_saved_pc.
5198 (d10v_pop_frame): Delete function.
5199 (do_d10v_pop_frame): Delete function.
5200 (d10v_frame_chain): Delete function.
5201 (d10v_frame_chain_valid): Delete function.
5202 (d10v_frame_pc_unwind): New function.
5203 (d10v_frame_id_unwind): New function.
5204 (saved_regs_unwinder): New function.
5205 (d10v_frame_register_unwind): New function.
5206 (d10v_frame_pop): New function.
5207 (d10v_frame_unwind): New variable.
5208 (d10v_frame_p): New function.
5209 (d10v_frame_saved_pc): Delete function.
5210 * Makefile.in (d10v-tdep.o): Update dependencies.
5211
cad2e848
JB
52122003-01-30 J. Brobecker <brobecker@gnat.com>
5213
5214 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
5215 causing some regressions due to a change in the default value
5216 for this macro.
5217
af34e669
DJ
52182003-01-29 Richard Henderson <rth@redhat.com>
5219 Elena Zannoni <ezannoni@redhat.com>
5220 Daniel Jacobowitz <drow@mvista.com>
5221
5222 Fix PR gdb/961.
5223 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
5224 variables.
5225 (RANGES_SECTION): New.
5226 (dwarf_ranges_buffer): New variable.
5227 (struct comp_unit_head): Add member "die".
5228 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
5229 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
5230 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
5231 (dwarf2_locate_sections): Likewise.
5232 (dwarf2_build_psymtabs): Read .debug_ranges.
5233 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
5234 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
5235 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
5236 Look for DW_AT_ranges and return the bounding box.
5237
baa93fa6
CF
52382003-01-29 Brian Ford <ford@vss.fsi.com>
5239
5240 * win32-nat.c (cygwin_pid): Removed as unused.
5241 (child_attach): Try fall back to Cygwin pid.
5242
c63f977f
JB
52432003-01-29 Jim Blandy <jimb@redhat.com>
5244
5245 * objfiles.h (struct objfile): Doc fix.
5246
d62d1979
AC
52472003-01-29 Andrew Cagney <ac131313@redhat.com>
5248
5249 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
5250 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
5251 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
5252 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
5253 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
5254 (FRAME_SAVED_PC): Change to a function with predicate.
5255 * gdbarch.h, gdbarch.c: Re-generate.
5256
1ae18a04
AC
52572003-01-28 Andrew Cagney <ac131313@redhat.com>
5258
52287340
AC
5259 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
5260
1ae18a04
AC
5261 * complaints.c (complain): Delete function.
5262 * complaints.h (struct deprecated_complaint): Delete definition.
5263 (complain): Delete declaration.
5264
f2c16bd6
KB
52652003-01-28 Kevin Buettner <kevinb@redhat.com>
5266
5267 * mips-tdep.c (mips_init_extra_frame_info): Return early for
5268 dummy frames.
5269
a94dd1fd
AC
52702003-01-27 Andrew Cagney <ac131313@redhat.com>
5271
5272 * sentinel-frame.h, sentinel-frame.c: New files.
5273 * Makefile.in (frame.o): Update dependencies.
5274 (SFILES): Add sentinel-frame.c.
5275 (sentinel_frame_h): Define.
5276 (COMMON_OBS): Add sentinel-frame.o.
5277 (sentinel-frame.o): Specify dependencies.
5278 * frame.c: Include "sentinel-frame.h".
5279 (frame_register_unwind): Rewrite assuming that there is always a a
5280 ->next frame.
5281 (frame_register, generic_unwind_get_saved_register): Ditto.
5282 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
5283 (create_sentinel_frame, unwind_to_current_frame): New functions.
5284 (get_current_frame): Rewrite using create_sentinel_frame and
5285 unwind_to_current_frame. When possible, always create a frame.
5286 (create_new_frame): Set next to the sentinel frame.
5287 (get_next_frame): Rewrite. Don't go below the level 0 frame.
5288 (deprecated_update_frame_pc_hack): Update the next frame's PC and
5289 ID cache when necessary.
5290 (frame_saved_regs_id_unwind): Use frame_relative_level.
5291 (deprecated_generic_get_saved_register): Use frame_relative_level,
5292 get_frame_saved_regs, get_frame_pc, get_frame_base and
5293 get_next_frame.
5294 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
5295 frame_register.
5296
5378adc4
DJ
52972003-01-27 Daniel Jacobowitz <drow@mvista.com>
5298
5299 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
5300
51ee2ddc
DJ
53012003-01-27 Daniel Jacobowitz <drow@mvista.com>
5302
5303 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
5304 (maintenance_set_profile_cmd): Use error () instead of warning ().
5305
d9feb4e7
DJ
53062003-01-27 Daniel Jacobowitz <drow@mvista.com>
5307
5308 * configure.in: Check that -pg works if using --enable-profiling.
5309 Check for monstartup and _mcleanup regardless of --enable-profiling.
5310 * maint.c: Check for monstartup and _mcleanup before using them.
5311 * config.in: Regenerated.
5312 * configure: Regenerated.
5313
2d188dd3
NC
53142003-01-24 Nick Clifton <nickc@redhat.com>
5315
5316 * Add sh2e support:
5317
5318 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
5319
5320 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
5321 (sh2e_show_regs): New.
5322 (sh_gdbarch_init): Handle bfd_mach_sh2e.
5323 * config/sh/tm-sh.h: Added sh2e to comments.
5324
cb3c37b2
JB
53252003-01-23 Jim Blandy <jimb@redhat.com>
5326
5327 * symfile.c (syms_from_objfile): Don't print the "(no debugging
5328 symbols found)" message here; we haven't checked for a separate
5329 debug info file yet, so we don't know yet.
5330 (symbol_file_add_with_addrs_or_offsets): Print it here, after
5331 we've looked everywhere. Also, there's no need to print a special
5332 message when we're loading the separate debug info file: the one
5333 symbol_file_add prints is fine.
5334
5b5d99cf
JB
53352003-01-23 Alexander Larsson <alexl@redhat.com>
5336 Jim Blandy <jimb@redhat.com>
5337
5338 Add support for executables whose debug info has been separated
5339 out into a separate file, leaving only a link behind.
5340 * objfiles.h (struct objfile): New fields: separate_debug_objfile
5341 and separate_debug_objfile_backlink.
5342 (put_objfile_before): New declaration.
5343 * symfile.c: #include "filenames.h".
5344 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
5345 debug info in a separate file, read that, too. Save the addrs
5346 argument, so we can use it again to read the separated debug info;
5347 syms_from_objfile modifies the table we pass it.
5348 (reread_symbols): After re-reading an objfile, call
5349 reread_separate_symbols to refresh its separate debug info
5350 objfile, if it has one.
5351 (reread_separate_symbols, find_separate_debug_file,
5352 get_debug_link_info, separate_debug_file_exists): New functions.
5353 (debug_file_directory): New global var.
5354 (_initialize_symfile): Initialize debug_file_directory, and
5355 provide the new `set debug-file-directory' command to let the user
5356 change it.
5357 * objfiles.c (free_objfile): If this objfile has its debug info in
5358 a separate objfile, free that one too. If this is itself a
5359 separate debug info objfile, clear our parent's backlink.
5360 (put_objfile_before): New function.
5361 * utils.c (gnu_debuglink_crc32): New function.
5362 * defs.h (gnu_debuglink_crc32): New declaration.
5363 * Makefile.in (symfile.o): Note dependency on "filenames.h".
5364 * configure.in: Handle --with-separate-debug-dir config option.
5365 * acinclude.m4 (AC_DEFINE_DIR): New macro.
5366 * acconfig.h (DEBUGDIR): New macro.
5367 * configure, aclocal.m4, config.in: Regenerated.
5368
7e8580c1
JB
53692003-01-22 Jim Blandy <jimb@redhat.com>
5370
7904e09f
JB
5371 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
5372 like the old symbol_file_add, but taking new arguments: you can
5373 now pass in either a `struct section_addr_info' list to say where
5374 each section is loaded, or a `struct section_offsets' table. Pass
5375 these new arguments through to syms_from_objfile as appropriate.
5376 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
5377 with the appropriate quiescent values for the new arguments.
5378
7e8580c1
JB
5379 * symfile.c: #include "gdb_assert.h".
5380 (syms_from_objfile): Add the ability to pass in a section offset
5381 table directly, as an alternative to the section_addr_info table.
5382 Document arguments better.
5383 (symbol_file_add): Pass extra arguments to syms_from_objfile.
5384 * symfile.h (syms_from_objfile): Update declaration.
5385 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
5386 syms_from_objfile.
5387 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
5388
d28f9cdf
DJ
53892003-01-22 Daniel Jacobowitz <drow@mvista.com>
5390
5391 Original patch by Tom Tromey <tromey@cygnus.com> and
5392 Jason Molenda <jmolenda@apple.com>.
5393 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
5394 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
5395 * NEWS: Mention profiling.
5396 * configure.in (--enable-gdbtk): Fix typo.
5397 (--enable-profiling): New. Set PROFILE_CFLAGS.
5398 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
5399 Fill in function.
5400 (profiling_state): New variable.
5401 (mcleanup_wrapper): New function.
5402 (_initialize_maint): Remove NOTYET, fix call to
5403 add_setshow_boolean_cmd for "maint set profile".
5404 * configure: Regenerated.
5405
df21e465
MH
54062003-01-21 Martin M. Hunt <hunt@redhat.com>
5407
5408 * Makefile.in (install-gdbtk): Install PNG images too.
5409
73c1f219
AC
54102003-01-21 Andrew Cagney <ac131313@redhat.com>
5411
5412 * exec.c (text_start): Delete global variable.
5413 (exec_file_attach): Make text_start local to the function.
5414 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
5415 * valops.c (hand_function_call): Delete code that handles
5416 BEFORE_TEXT_END and AFTER_TEXT_END.
5417 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
5418 of CALL_DUMMY_LOCATION.
5419 * gdbarch.c: Regenerate.
5420 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
5421 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
5422 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
5423 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
5424 (text_end): Delete extern declaration.
5425
eb4f72c5
AC
54262003-01-21 Andrew Cagney <ac131313@redhat.com>
5427
5428 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
5429 * blockframe.c (backtrace_below_main): Move to "frame.c".
5430 (frame_chain_valid): Delete check for backtrace_below_main.
5431 (_initialize_blockframe): Delete initialization, move ``set
5432 backtrace-below-main'' command to "frame.c".
5433 (do_flush_frames_sfunc): Delete function.
5434 * frame.c: Include "command.h" and "gdbcmd.h".
5435 (frame_type_from_pc): New function.
5436 (create_new_frame): Use frame_type_from_pc.
5437 (legacy_get_prev_frame): New function.
5438 (get_prev_frame): Rewrite. When an old style frame, call
5439 legacy_get_prev_frame. Otherwize, unwind the PC first.
5440 (_initialize_frame): Add ``set backtrace-below-main'' command.
5441 * Makefile.in (frame.o): Update dependencies.
5442
778ce8cc
AC
54432003-01-19 Andrew Cagney <ac131313@redhat.com>
5444
5445 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
5446 DEPRECATED_REGISTERS_INFO.
5447
01c193c8
AC
54482003-01-19 Andrew Cagney <ac131313@redhat.com>
5449
5450 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
5451 Maintainers'. Update `Various Maintainers'.
5452
dedc2a2b
AC
54532003-01-19 Andrew Cagney <ac131313@redhat.com>
5454
5455 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
5456 * gdbarch.sh (POP_FRAME): Change to function with predicate.
5457 Suppress actual parameters when `-'.
5458 * gdbarch.h, gdbarch.c: Regenerate.
5459
b7261c70
AC
54602003-01-19 Andrew Cagney <ac131313@redhat.com>
5461
5462 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
5463 code handling dummy frames.
5464
dbe9fe58
AC
54652003-01-19 Andrew Cagney <ac131313@redhat.com>
5466
5467 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
5468 (struct frame_unwind): Add field pop.
5469 * frame.h (frame_pop): Declare.
5470 * frame.c (frame_saved_regs_pop): New function.
5471 (trad_frame_unwinder): Add frame_saved_regs_pop.
5472 (frame_pop): New function.
5473 * dummy-frame.c (dummy_frame_pop): New function.
5474 (discard_innermost_dummy): New function.
5475 (generic_pop_dummy_frame): Use discard_innermost_dummy.
5476 (dummy_frame_unwind): Add dummy_frame_pop.
5477 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
5478 * valops.c (hand_function_call): Ditto.
5479 * stack.c (return_command): Ditto.
5480
570b8f7c
AC
54812003-01-18 Andrew Cagney <ac131313@redhat.com>
5482
5483 * cris-tdep.c: Fix function declaration indentation.
5484 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
5485 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
5486 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
5487 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
5488 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
5489 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
5490
54912003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
5492
5493 * README (Unpacking and Installation -- quick overview):
5494 Warn against ".../gdb-5.3/gdb/configure".
5495
494cca16
AC
54962003-01-18 Andrew Cagney <ac131313@redhat.com>
5497
5498 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
5499 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
5500 (struct frame_unwind): Declare opaque.
5501 (dummy_frame_p): Declare function.
5502 * dummy-frame.c (dummy_frame_id_unwind): Make static.
5503 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
5504 * dummy-frame.c: Include "frame-unwind.h".
5505 (dummy_frame_p): New function.
5506 (dummy_frame_unwind): New variable.
5507 * frame.c: Include "frame-unwind.h".
5508 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
5509 to use the new unwind field.
5510 (set_unwind_by_pc): Delete function.
5511 (create_new_frame, get_prev_frame): Set unwind field using
5512 frame_unwind_find_by_pc.
5513 (trad_frame_unwind, trad_frame_unwinder): New variables.
5514 * frame.h (trad_frame_unwind): Declare variable.
5515 (frame_id_unwind_ftype): Delete declaration.
5516 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
5517 (struct frame_unwind): Declare opaque.
5518 (struct frame_info): Replace the fields id_unwind, pc_unwind and
5519 register_unwind with a single unwind pointer.
5520 * frame-unwind.h, frame-unwind.c: New files.
5521 * Makefile.in (SFILES): Add frame-unwind.c.
5522 (frame_unwind_h): Define.
5523 (COMMON_OBS): Add frame-unwind.o.
5524 (frame-unwind.o): Specify dependencies.
5525 (frame.o, dummy-frame.o): Update dependencies.
5526
4efb68b1
AC
55272003-01-18 Andrew Cagney <ac131313@redhat.com>
5528
5529 * ada-valprint.c: Eliminate PTR.
5530 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
5531 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
5532 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
5533 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
5534 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
5535 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
5536 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
5537
a84d24ee
AC
55382003-01-17 Andrew Cagney <ac131313@redhat.com>
5539
762f08a3
AC
5540 * main.c (captured_main): Don't use PTR.
5541 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
5542 * gdbtypes.c (lookup_primitive_typename): Ditto.
5543 (lookup_struct_elt_type): Ditto.
5544 * f-valprint.c (info_common_command): Ditto.
5545 (list_all_visible_commons): Ditto.
5546 * jv-typeprint.c (java_type_print_base): Ditto.
5547
a84d24ee
AC
5548 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
5549 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
5550 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
5551 i386-interix-nat.c and i386-interix-tdep.c. Rename
5552 m68klinux-nat.c and m68klinux-tdep.c. Rename
5553 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
5554 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
5555 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
5556 * main.c (captured_main): Use xfree, not free.
5557
c170fb60
AC
55582003-01-16 Andrew Cagney <ac131313@redhat.com>
5559
5560 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
5561 ID back using a parameter.
5562 * frame.c (frame_id_unwind): Update call.
5563 (frame_saved_regs_id_unwind): Update.
5564 * dummy-frame.c (dummy_frame_id_unwind): Update function.
5565 * dummy-frame.h (struct frame_id): Add opaque declaration.
5566 (dummy_frame_id_unwind): Update declaration.
5567
867f3898
AC
55682003-01-15 Andrew Cagney <ac131313@redhat.com>
5569
5570 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
5571
40622be8 55722003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 5573
40622be8 5574 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 5575
ae66c1fc
EZ
55762003-01-14 Elena Zannoni <ezannoni@redhat.com>
5577
997b089a 5578 Fix PR gdb/898
ae66c1fc
EZ
5579 * breakpoint.c (until_break_command): Add new argument. Use it to
5580 decide whether to stop only at the current frame or not.
5581 * breakpoint.h (until_break_command): Update prototype.
5582 * infcmd.c (until_command): Add new argument to until_break_command
5583 call.
5584 (advance_command): New function.
5585 (_initialize_infcmd): Update help string for 'until' command.
5586 Add new 'advance' command.
5587
a04257e6
DC
55882003-01-14 David Carlton <carlton@math.stanford.edu>
5589
5590 * linespec.c (decode_line_1): Normalize comments.
5591 (set_flags): Ditto.
5592 (locate_first_half): Ditto.
5593 (decode_compound): Ditto.
5594 (symtab_from_filename): Ditto.
5595 (decode_all_digits): Ditto.
5596 (decode_dollar): Ditto.
5597 (find_methods): Ditto.
5598 (find_toplevel_char): Ditto.
5599
1bac305b
AC
56002003-01-13 Andrew Cagney <ac131313@redhat.com>
5601
5602 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
5603 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
5604 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
5605 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
5606 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
5607 * language.c, language.h, m32r-tdep.c: Update copyright.
5608 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
5609 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
5610 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
5611 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
5612 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
5613 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
5614
25caa7a8
EZ
56152003-01-13 Elena Zannoni <ezannoni@redhat.com>
5616
5617 * stabsread.h (process_later, resolve_cfront_continuation):
5618 Obsolete.
5619 Update copyright years.
5620 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
5621 Update copyright year.
5622 * dbxread.c(struct cont_elem): Obsolete.
5623 (process_later, process_now): Obsolete functions.
5624 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
5625 Update copyright year.
5626 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
5627 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
5628 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
5629 (parse_partial_symbols): Obsolete cfront support.
5630 * stabsread.c
5631 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
5632 macros.
5633 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
5634 read_cfront_baseclasses, read_cfront_member_functions,
5635 resolve_cfront_continuation,read_cfront_static_fields,
5636 copy_cfront_struct_fields): Obsolete functions.
5637 (define_symbol, read_one_struct_field): Obsolete cfront support.
5638 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
5639 Update Copyright year.
5640
7789c6f5
EZ
56412003-01-13 Elena Zannoni <ezannoni@redhat.com>
5642
5643 * stack.c (print_frame_info, print_stack_frame_base_stub,
5644 print_stack_frame_base, show_and_print_stack_frame_stub,
5645 show_and_print_stack_frame, print_only_stack_frame_stub,
5646 print_only_stack_frame): Delete functions.
5647 (print_stack_frame_stub): Call print_frame_info instead of
5648 print_frame_info_base.
5649 (print_frame_info_base): Rename to print_frame_info.
5650 (backtrace_command_1): Call print_frame_info, instead of
5651 print_frame_info_base.
5652 (current_frame_command): Call print_stack_frame, instead of
5653 print_only_stack_frame.
5654 (frame_command): Call print_stack_frame, instead of
5655 show_and_print_stack_frame.
5656 (up_command): Ditto.
5657 (down_command): Ditto.
5658 * frame.h (print_only_stack_frame): Delete prototype.
5659 * infrun.c (normal_stop): Call print_stack_frame, instead of
5660 show_and_print_stack_frame.
5661 * thread.c (info_threads_command): Call print_stack_frame, instead
5662 of print_only_stack_frame.
5663
3f5a3016
AC
56642003-01-13 Andrew Cagney <ac131313@redhat.com>
5665
d99ba314
AC
5666 * README (Graphical interface to GDB): Update URL. Point at
5667 gdb/links/.
5668
3f5a3016
AC
5669 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
5670 version match.
5671
083ae935
DJ
56722003-01-13 Daniel Jacobowitz <drow@mvista.com>
5673
5674 * symtab.c (find_pc_sect_line): Don't consider end-of-function
5675 lines.
5676
5365276c
DJ
56772003-01-13 Daniel Jacobowitz <drow@mvista.com>
5678
5679 * thread-db.c (attach_thread): Prototype.
5680 (struct private_thread_info): Remove lwpid. Add thread handle (th),
5681 thread information (ti), and valid flags (th_valid, ti_valid).
5682 (attach_thread): Move target_pid_to_str call to after the thread
5683 is added to GDB's list. Initialize the cache.
5684 (thread_get_info_callback, thread_db_map_id2thr)
5685 (thread_db_get_info): New functions.
5686 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
5687 (thread_db_store_registers, thread_db_thread_alive)
5688 (thread_db_get_thread_local_address): Use them.
5689 (thread_db_pid_to_str): Likewise. Return "Missing" instead
5690 of calling error() for threads in unknown state.
5691
5692 (clear_lwpid_callback): New function.
5693 (thread_db_resume): Use it to clear the cache.
5694
9fc30b6b
DJ
56952003-01-13 Daniel Jacobowitz <drow@mvista.com>
5696
5697 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
5698 (resume_callback): Remove dead code.
5699
8f871025
AC
57002003-01-13 Andrew Cagney <ac131313@redhat.com>
5701
5702 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
5703 predicate.
5704 * gdbarch.h, gdbarch.c: Regenerate.
5705 * stack.c (frame_info): Only initialize the saved registers when
5706 FRAME_INIT_SAVED_REGS_P.
5707 * frame.c (frame_saved_regs_register_unwind): Assert
5708 FRAME_INIT_SAVED_REGS_P.
5709 (deprecated_generic_get_saved_register): Ditto.
5710
3f565f1e
DJ
57112003-01-13 Daniel Jacobowitz <drow@mvista.com>
5712
5713 * source.c (openp): Squelch warning about "filename".
5714
072b1022
DJ
57152003-01-13 Daniel Jacobowitz <drow@mvista.com>
5716
5717 * source.c (openp): If the file does not exist don't necessarily
5718 search the path.
5719
973ccf8b
DJ
57202003-01-13 Daniel Jacobowitz <drow@mvista.com>
5721
5722 Fix PR gdb/872.
5723 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
5724 (integer_types_same_name_p): New function.
5725 (rank_one_type): Use it.
5726 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
5727
030292b7
DJ
57282003-01-13 Daniel Jacobowitz <drow@mvista.com>
5729
5730 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
5731 variables.
5732 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
5733 * configure.in: Add --with-sysroot.
5734 * configure: Regenerated.
5735 * main.c (gdb_sysroot): New variable.
5736 (captured_main): Initialize gdb_sysroot.
5737 * defs.h (gdb_sysroot): New extern declaration.
5738 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
5739
afb5d334
MC
57402003-01-12 Michael Chastain <mec@shout.net>
5741
5742 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
5743
751ceeb4
MC
57442003-01-12 Michael Chastain <mec@shout.net>
5745
5746 * top.c (print_gdb_version): Bump copyright year to 2003.
5747
94cd26f8
DC
57482003-01-12 David Carlton <carlton@bactrian.org>
5749
5750 * linespec.c (symtab_from_filename): Rename variable 's' to
5751 'file_symtab'.
5752
1ce79225
AC
57532003-01-12 Andrew Cagney <ac131313@redhat.com>
5754
5755 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
5756 dummy frame.
5757 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
5758
fa1fd571
AC
57592003-01-12 Andrew Cagney <ac131313@redhat.com>
5760
5761 * d10v-tdep.c: Include "gdb_assert.h".
5762 (d10v_store_return_value): Rewrite to match current interface.
5763 (d10v_extract_struct_value_address): Ditto.
5764 (d10v_extract_return_value): Ditto.
5765 (d10v_gdbarch_init): Set store_restore_value,
5766 extract_struct_value_address and extract_return_value.
5767
68b8d23e
JB
57682003-01-12 J. Brobecker <brobecker@gnat.com>
5769
5770 * hpread.c (set_namestring): New procedure replacing the
5771 SET_NAMESTRING macro.
5772 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
5773 by calls to set_namestring.
5774
57752003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
5776
5777 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
5778 a compilation warning.
5779 (hpread_process_one_debug_symbol): Likewise.
5780
88d262ca
DC
57812003-01-10 David Carlton <carlton@math.stanford.edu>
5782
5783 * linespec.c (decode_line_1): Rename variable 's' to
5784 'file_symtab'.
5785 (decode_all_digits): Rename argument 's' to 'file_symtab'.
5786 (decode_dollar): Ditto.
5787 (decode_variable): Ditto.
5788 (symbol_found): Ditto.
5789
86669319
MC
57902003-01-09 Michael Chastain <mec@shout.net>
5791
5792 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
5793
616a9dc4
CV
57942003-01-07 Corinna Vinschen <vinschen@redhat.com>
5795
5796 * win32-nat.c (set_process_privilege): New function.
5797 (child_attach): Call set_process_privilege() to enable the
5798 SE_DEBUG_NAME user privilege if available in process token.
5799
3269bcfa
JB
58002003-01-10 J. Brobecker <brobecker@gnat.com>
5801
5802 * hpread.c (hpread_process_one_debug_symbol): Fix a small
5803 compilation error in the previous revision.
5804
2b0ee454
DC
58052003-01-09 David Carlton <carlton@math.stanford.edu>
5806
5807 * linespec.c: Update copyright.
5808
b3ba1b44
DJ
58092003-01-09 Daniel Jacobowitz <drow@mvista.com>
5810
5811 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
5812 than inferior_ptid.
5813 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
5814
4ef3f3be
AC
58152003-01-09 Andrew Cagney <ac131313@redhat.com>
5816
479ab5a0
AC
5817 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
5818 Update comments.
5819 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
5820 (frame_saved_regs_zalloc): Update.
5821 (frame_saved_regs_register_unwind): Update.
5822 (create_new_frame): Update.
5823 (get_prev_frame): Update.
5824 (frame_extra_info_zalloc): Update.
5825 (deprecated_get_frame_saved_regs): Update.
5826 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
5827 * cris-tdep.c: Update comment.
5828
bde58177
AC
5829 * somsolib.h: Fix function indentation.
5830 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
5831 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
5832 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
5833 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
5834 * somsolib.c, inftarg.c: Remove assignment in if conditional.
5835
4ef3f3be
AC
5836 * infrun.c (follow_fork): Use ISO C definition.
5837 * expprint.c (print_subexp): Use xfree instead of free.
5838 * charset.c: Include "gdb_string.h" instead of <string.h>.
5839 (register_iconv_charsets): Use ISO C definition.
5840 (host_charset, target_charset): Ditto.
5841 * Makefile.in (charset.o): Update dependencies.
5842 (mi-cmd-env.o): Update dependencies.
5843
1c615f7a
AC
58442003-01-08 Andrew Cagney <cagney@redhat.com>
5845
5846 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
5847 get_frame_base.
5848
c9a1dc08
AC
58492003-01-08 Andrew Cagney <ac131313@redhat.com>
5850
5851 * gdb_mbuild.sh: Add --keep option. When specified, keep the
5852 build directories. Save edited gdb output in Mbuild.log. If a
5853 build fails, remove any final GDB executable.
5854
dbad9d94
AC
58552003-01-08 Andrew Cagney <ac131313@redhat.com>
5856
5857 * gdb_mbuild.sh: Edit the output of `maint print architecture'
5858 replacing hex constants with function names and stripping leading
5859 file name directory prefixes.
5860
8d357cca
AC
58612003-01-08 Andrew Cagney <cagney@redhat.com>
5862
5863 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
5864 get_frame_base.
5865
bca02a8a
DC
58662003-01-08 David Carlton <carlton@math.stanford.edu>
5867
5868 * linespec.c (decode_line_1): Move code into decode_variable.
5869 (decode_variable): New function.
5870
7f8ab3a0
AC
58712003-01-08 Andrew Cagney <ac131313@redhat.com>
5872
5873 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
5874
7b5849cc
AC
58752003-01-08 Andrew Cagney <cagney@redhat.com>
5876
5877 * cris-tdep.c (cris_frame_init_saved_regs): Use
5878 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
5879 saved_regs buffer.
5880 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
5881 (sh64_nofp_frame_init_saved_regs): Ditto.
5882 (sh_fp_frame_init_saved_regs): Ditto.
5883 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
5884 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
5885 * mcore-tdep.c (analyze_dummy_frame): Ditto.
5886 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
5887
72a5efb3
DJ
58882003-01-08 Daniel Jacobowitz <drow@mvista.com>
5889
5890 * minsyms.c (lookup_minimal_symbol): Update comment.
5891 (lookup_minimal_symbol_text): Update comment. Use the hash table.
5892 (lookup_minimal_symbol_solib_trampoline): Likewise.
5893
11c02a10
AC
58942003-01-08 Andrew Cagney <cagney@redhat.com>
5895
aab3ea25
AC
5896 * d10v-tdep.c (d10v_init_extra_frame_info): Use
5897 frame_relative_level.
5898
da50a4b7
AC
5899 * alpha-tdep.c: Use get_frame_extra_info.
5900 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5901 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
5902 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
5903 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
5904
11c02a10
AC
5905 * alpha-tdep.c: Use get_next_frame.
5906 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5907 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
5908 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
5909 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
5910 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
5911 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
5912 * xstormy16-tdep.c: Ditto.
5913
1e2330ba
AC
59142003-01-07 Andrew Cagney <cagney@redhat.com>
5915
5916 * alpha-tdep.c: Use get_frame_base.
5917 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5918 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
5919 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
5920 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
5921 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
5922 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
5923 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
5924 * config/sparc/tm-sparc.h: Ditto.
5925
2d75187b
AC
59262003-01-07 Andrew Cagney <cagney@redhat.com>
5927
5928 * frame.c (deprecated_get_frame_context): New function.
5929 (deprecated_set_frame_context): New function.
5930 * frame.h (deprecated_get_frame_context): Declare.
5931 (deprecated_set_frame_context): Declare.
5932 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
5933 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
5934
483d36b2
AC
59352003-01-07 Andrew Cagney <cagney@redhat.com>
5936
5937 * frame.c (deprecated_set_frame_next_hack): New function.
5938 (deprecated_set_frame_prev_hack): New function.
5939 * frame.h (deprecated_set_frame_next_hack): Declare.
5940 (deprecated_set_frame_prev_hack): Declare.
5941 * mcore-tdep.c (analyze_dummy_frame): Use
5942 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
5943 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
5944
14e91ac5
DC
59452003-01-07 David Carlton <carlton@math.stanford.edu>
5946
5947 * linespec.c (decode_line_1): Move code into decode_dollar.
5948 (decode_dollar): New function.
5949
b0c6b05c
AC
59502003-01-07 Andrew Cagney <cagney@redhat.com>
5951
5952 * arm-tdep.c (arm_init_extra_frame_info): Use
5953 deprecated_update_frame_base_hack.
5954 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
5955 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
5956 (fix_frame_pointer): Ditto.
5957 (mn10300_analyze_prologue): Ditto.
5958
a00a19e9
AC
59592003-01-07 Andrew Cagney <cagney@redhat.com>
5960
5961 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
5962 extra_info using frame_extra_info_zalloc.
5963 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5964 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
5965 (sh64_init_extra_frame_info): Ditto.
5966 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
5967 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
5968 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
5969 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
5970 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
5971 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
5972 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
5973 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
5974 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
5975 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
5976 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5977 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
5978
5979 * mn10300-tdep.c (analyze_dummy_frame): Use
5980 deprecated_set_frame_extra_info_hack.
5981 * mcore-tdep.c (analyze_dummy_frame): Ditto.
5982
1fb4c65b
JB
59832003-01-07 J. Brobecker <brobecker@gnat.com>
5984
5985 * mdebugread.c (parse_symbol): Skip stProc entries which storage
5986 class is not scText. These do not define "real" procedures.
5987 (parse_partial_symbols): Likewise.
5988
9fe7d6bf
MS
59892003-01-06 Michael Snyder <msnyder@redhat.com>
5990
5991 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
5992
f6c609c4
AC
59932003-01-06 Andrew Cagney <ac131313@redhat.com>
5994
5995 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
5996 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
5997 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
5998 deprecated_frame_xmalloc_with_cleanup.
5999 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
6000 deprecated_frame_xmalloc.
6001 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
6002 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
6003
d995ff4b
AC
60042003-01-06 Andrew Cagney <cagney@redhat.com>
6005
84dc46cb
AC
6006 * x86-64-linux-tdep.c: Include "osabi.h".
6007 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
6008
d995ff4b
AC
6009 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
6010
66140c26
AC
60112003-01-06 Andrew Cagney <cagney@redhat.com>
6012
6013 * MAINTAINERS (Target Instruction Set Architectures): Update
6014 arm-elf. Can be built with -Werror, has been multiarched.
6015
6016 * value.h (unpack_long): Make buffer parameter constant.
6017 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
6018 * scm-lang.h (scm_parse): Ditto.
6019 * defs.h (extract_typed_address, extract_address): Ditto.
6020 (extract_long_unsigned_integer): Ditto.
6021 * inferior.h (unsigned_pointer_to_address): Ditto.
6022 (signed_pointer_to_address): Ditto.
6023 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
6024 * gdbarch.h, gdbarch.c: Regenerate.
6025 * findvar.c (extract_long_unsigned_integer): Update.
6026 (extract_address): Update.
6027 (extract_typed_address): Update.
6028 (unsigned_pointer_to_address): Update.
6029 * values.c (unpack_long): Update.
6030 (unpack_double): Update.
6031 (unpack_pointer): Update.
6032 (unpack_field_as_long): Update.
6033 * d10v-tdep.c (d10v_pointer_to_address): Update.
6034 * avr-tdep.c (avr_pointer_to_address): Update.
6035 * scm-lang.c (scm_unpack): Update.
6036 * findvar.c (signed_pointer_to_address): Update.
6037
b089b3da
ML
60382003-01-06 Michal Ludvig <mludvig@suse.cz>
6039
6040 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
6041 since it is in i386-tdep.c.
6042
aff87235
JB
60432003-01-06 J. Brobecker <brobecker@gnat.com>
6044
6045 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
6046 failure introduced in the previous change.
6047
34f5e845
MC
60482003-01-05 Michael Chastain <mec@shout.net>
6049
6050 * README: Remove references to deleted remote-*.c files:
6051 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
6052 remote-nrom.c, remote-os9k.c, remote-udi.c.
6053
28bcfd30
MK
60542003-01-05 Mark Kettenis <kettenis@gnu.org>
6055
6056 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
6057 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
6058 i386_get_longjmp_target.
6059
15a5b3ee
AC
60602003-01-05 Andrew Cagney <ac131313@redhat.com>
6061
6062 * arm-tdep.c (prologue_cache): Change to a pointer.
6063 (_initialize_arm_tdep): Allocate prologue_cache.
6064 (check_prologue_cache): Update.
6065 (save_prologue_cache): Update.
6066 (arm_gdbarch_init): Update.
6067
c263362b
DJ
60682003-01-04 Daniel Jacobowitz <drow@mvista.com>
6069
6070 * stabsread.c (update_method_name_from_physname): Call complaint()
6071 instead of error.
6072
51603483
DJ
60732003-01-04 Daniel Jacobowitz <drow@mvista.com>
6074
6075 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
6076 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
6077 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
6078
6079 * blockframe.c: Include "gdbcmd.h" and "command.h".
6080 (backtrace_below_main): New variable.
6081 (file_frame_chain_valid, func_frame_chain_valid)
6082 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
6083 (generic_func_frame_chain_valid): Remove functions.
6084 (frame_chain_valid, do_flush_frames_sfunc): New functions.
6085 (_initialize_blockframe): New function.
6086 * Makefile.in (blockframe.o): Update dependencies.
6087 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
6088 comment. Call frame_chain_valid ().
6089 * frame.h: Remove old prototypes. Add prototype for
6090 frame_chain_valid and update comments to match.
6091 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
6092 Remove old comment.
6093 * gdbarch.h: Regenerated.
6094 * gdbarch.c: Regenerated.
6095
6096 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6097 set_gdbarch_frame_chain_valid.
6098 * avr-tdep.c (avr_gdbarch_init): Likewise.
6099 * cris-tdep.c (cris_gdbarch_init): Likewise.
6100 * frv-tdep.c (frv_gdbarch_init): Likewise.
6101 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
6102 * i386-tdep.c (i386_svr4_init_abi): Likewise.
6103 (i386_nw_init_abi): Likewise.
6104 (i386_gdbarch_init): Likewise.
6105 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
6106 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
6107 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6108 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
6109 * mips-tdep.c (mips_gdbarch_init): Likewise.
6110 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6111 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
6112 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6113 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6114 * s390-tdep.c (s390_gdbarch_init): Likewise.
6115 * sh-tdep.c (sh_gdbarch_init): Likewise.
6116 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
6117 * v850-tdep.c (v850_gdbarch_init): Likewise.
6118 * vax-tdep.c (vax_gdbarch_init): Likewise.
6119 * x86-64-tdep.c (x86_64_init_abi): Likewise.
6120
6121 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
6122 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
6123 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
6124 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
6125 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
6126 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
6127 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
6128 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
6129
b00a8037
DJ
61302002-01-04 Daniel Jacobowitz <drow@mvista.com>
6131
6132 * Makefile.in (acconfig_h): Remove incorrect macro.
6133 (config_h): Define.
6134 (osabi.o): Update dependencies.
6135 * configure.tgt: Set gdb_osabi based on target triplet.
6136 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
6137 * configure: Regenerated.
6138 * config.in: Regenerated.
6139 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
6140 (GDB_OSABI_DEFAULT): Define if not already defined.
6141 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
6142 (set_osabi_string): New variables.
6143 (gdbarch_register_osabi): Add new OS ABI to
6144 gdb_osabi_available_names.
6145 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
6146 (set_osabi, show_osabi): New functions.
6147 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
6148
4be87837
DJ
61492003-01-04 Daniel Jacobowitz <drow@mvista.com>
6150
6151 * arch-utils.c (gdbarch_info_init): Set osabi to
6152 GDB_OSABI_UNINITIALIZED.
6153 * gdbarch.sh: Add osabi to struct gdbarch and to struct
6154 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
6155 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
6156 * gdbarch.c: Regenerated.
6157 * gdbarch.h: Regenerated.
6158 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
6159 there's no BFD.
6160 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
6161 * osabi.h (enum gdb_osabi): Move to defs.h.
6162 (gdbarch_init_osabi): Update prototype.
6163 * defs.h (enum gdb_osabi): Moved here.
6164 * Makefile.in: Update dependencies.
6165
6166 * alpha-tdep.h: Don't include "osabi.h".
6167 (struct gdbarch_tdep): Remove osabi member.
6168 * alpha-tdep.c: Include "osabi.h".
6169 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6170 iterate over arches. Update call to gdbarch_init_osabi.
6171 (alpha_dump_tdep): Don't dump osabi.
6172 * alpha-linux-tdep.c: Include "osabi.h".
6173 * alpha-osf1-tdep.c: Include "osabi.h".
6174 * alphafbsd-tdep.c: Include "osabi.h".
6175 * alphanbsd-tdep.c: Include "osabi.h".
6176
6177 * arm-tdep.h: Don't include "osabi.h".
6178 (struct gdbarch_tdep): Remove osabi member.
6179 * arm-tdep.c: Include "osabi.h".
6180 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6181 iterate over arches. Update call to gdbarch_init_osabi.
6182 (arm_dump_tdep): Don't dump osabi.
6183 * arm-linux-tdep.c: Include "osabi.h".
6184 * armnbsd-tdep.c: Include "osabi.h".
6185
6186 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
6187 Update call to gdbarch_init_osabi.
6188
6189 * i386-tdep.h: Don't include "osabi.h".
6190 (struct gdbarch_tdep): Remove osabi member.
6191 * i386-tdep.c: Include "osabi.h".
6192 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6193 iterate over arches. Update call to gdbarch_init_osabi.
6194 (i386_dump_tdep): Don't dump osabi.
6195 * i386-linux-tdep.c: Include "osabi.h".
6196 * i386-sol2-tdep.c: Include "osabi.h".
6197 * i386bsd-tdep.c: Include "osabi.h".
6198 * i386gnu-tdep.c: Include "osabi.h".
6199 * i386ly-tdep.c: Include "osabi.h".
6200 * i386nbsd-tdep.c: Include "osabi.h".
6201 * i386obsd-tdep.c: Include "osabi.h".
6202
6203 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
6204 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6205 check osabi when iterating over arches. Update call to
6206 gdbarch_init_osabi.
6207 (mips_dump_tdep): Don't dump osabi.
6208
6209 * ns32k-tdep.h: Don't include "osabi.h".
6210 (struct gdbarch_tdep): Remove.
6211 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
6212 gdbarch_lookup_osabi. Don't iterate over arches. Don't
6213 allocate tdep. Update call to gdbarch_init_osabi.
6214 (ns32k_dump_tdep): Remove.
6215 (_initialize_ns32k_tdep): Update call to gdbarch_register.
6216 * ns32knbsd-tdep.c: Include "osabi.h".
6217
6218 * ppc-tdep.h: Don't include "osabi.h".
6219 (struct gdbarch_tdep): Remove osabi member.
6220 * rs6000-tdep.c: Include "osabi.h".
6221 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
6222 osabi when iterating over arches. Update call to
6223 gdbarch_init_osabi.
6224 (rs6000_dump_tdep): Don't dump osabi.
6225 * ppc-linux-tdep.c: Include "osabi.h".
6226 * ppcnbsd-tdep.c: Include "osabi.h".
6227
6228 * sh-tdep.h: Don't include "osabi.h".
6229 (struct gdbarch_tdep): Remove osabi member.
6230 * sh-tdep.c: Include "osabi.h".
6231 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6232 iterate over arches. Update call to gdbarch_init_osabi.
6233 (sh_dump_tdep): Don't dump osabi.
6234 * shnbsd-tdep.c: Include "osabi.h".
6235
6236 * sparc-tdep.c: Include "osabi.h".
6237 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6238 iterate over arches. Update call to gdbarch_init_osabi.
6239 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
6240 tdep structure.
6241
6242 * vax-tdep.h: Don't include "osabi.h".
6243 (struct gdbarch_tdep): Remove.
6244 * vax-tdep.c: Include "osabi.h".
6245 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6246 iterate over arches. Don't allocate tdep. Update call
6247 to gdbarch_init_osabi.
6248 (vax_dump_tdep): Remove.
6249 (_initialize_vax_tdep): Update call to gdbarch_register.
6250
a881cf8e
DJ
62512003-01-04 Daniel Jacobowitz <drow@mvista.com>
6252
6253 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
6254 entirely.
6255 (breakpoint_re_set_one): Don't fetch the value for a disabled
6256 watchpoint.
6257
1e698235
DJ
62582003-01-04 Daniel Jacobowitz <drow@mvista.com>
6259
6260 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
6261 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
6262 (COERCE_FLOAT_TO_DOUBLE): Remove.
6263 * gdbarch.c: Regenerate.
6264 * gdbarch.h: Regenerate.
6265 * Makefile.in: Remove value_h from gdbarch_h.
6266 * valops.c (coerce_float_to_double): New variable.
6267 (default_coerce_float_to_double): Remove.
6268 (standard_coerce_float_to_double): Remove.
6269 (value_arg_coerce): Use coerce_float_to_double.
6270 (_initialize_valops): Add "set coerce-float-to-double".
6271 * value.h (default_coerce_float_to_double): Remove prototype.
6272 (standard_coerce_float_to_double): Remove prototype.
6273
6274 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
6275 prototyped.
6276 * mdebugread.c (parse_symbol): Likewise.
6277 * stabsread.c (define_symbol): Mark all functions as prototyped.
6278
6279 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
6280 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
6281 set_gdbarch_coerce_float_to_double.
6282 * arm-tdep.c (arm_gdbarch_init): Likewise.
6283 * frv-tdep.c (frv_gdbarch_init): Likewise.
6284 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
6285 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
6286 * mips-tdep.c (mips_gdbarch_init): Likewise.
6287 (mips_coerce_float_to_double): Remove.
6288 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6289 (rs6000_coerce_float_to_double): Remove.
6290 * s390-tdep.c (s390_gdbarch_init): Likewise.
6291 * sh-tdep.c (sh_gdbarch_init): Likewise.
6292 (sh_coerce_float_to_double): Remove.
6293 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
6294 (sparc_coerce_float_to_double): Remove.
6295 * v850-tdep.c (v850_gdbarch_init): Likewise.
6296 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6297 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6298 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
6299 (hppa_coerce_float_to_double): Remove prototype.
6300 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6301
f436a26a
DJ
63022003-01-04 Daniel Jacobowitz <drow@mvista.com>
6303
6304 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
6305
248f8055
DJ
63062003-01-04 Daniel Jacobowitz <drow@mvista.com>
6307
6308 Suggested by Stewart Brown <sb24@avaya.com>:
6309 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
6310 in recursive calls. Handle TYPE_CODE_TYPEDEF.
6311 (c_type_print_varspec_suffix): Likewise.
6312
72cfdc76
MK
63132003-01-04 Mark Kettenis <kettenis@gnu.org>
6314
bfd260bb
MK
6315 * configure.in: Don't set and AC_SUBST SUBDIRS.
6316 * configure: Regenerated.
6317
72cfdc76
MK
6318 * configure.in: Remove code dealing with shared libraries.
6319 * Makefile.in: Remove HLDFLAGS and HLDENV.
6320 * configure: Regenerated.
6321
c8b8a898
AC
63222003-01-04 Andrew Cagney <ac131313@redhat.com>
6323
6324 * frame.c (deprecated_frame_xmalloc): New function.
6325 (deprecated_set_frame_saved_regs_hack): New function.
6326 (deprecated_set_frame_extra_info_hack): New function.
6327 * frame.h (deprecated_frame_xmalloc): Declare.
6328 (deprecated_set_frame_saved_regs_hack): Declare.
6329 (deprecated_set_frame_extra_info_hack): Declare.
6330
14abd0fb
MK
63312003-01-04 Mark Kettenis <kettenis@gnu.org>
6332
8ee53726
MK
6333 * configure.in: Move code that provides the --enable-gdbtk option
6334 right after the code that handles the --enable-tui option, and
6335 polish it somewhat.
6336 * configure: Regenerated.
6337
14abd0fb
MK
6338 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
6339 AC_CHECK_FUNCS and remove the old check for pread64.
6340 * acinclude.m4 (AC_GNU_SOURCE): New macro.
6341 * acconfig.h (_GNU_SOURCE): Add.
6342 (HAVE_PREAD64): Remove.
6343 * configure, aclocal.m4, config.in: Regenerated.
6344
b2fb4676
AC
63452003-01-03 Andrew Cagney <ac131313@redhat.com>
6346
6347 * alpha-tdep.c: Use get_frame_saved_regs.
6348 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6349 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
6350 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
6351 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
6352 * vax-tdep.c, xstormy16-tdep.c: Ditto.
6353
8dcde887
MK
63542003-01-03 Mark Kettenis <kettenis@gnu.org>
6355
6356 * configure.in: Remove all use of the SUBDIRS variable; add
6357 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
6358 code providing the --enable-multi-ice option, and move it right in
6359 front of the code that checks whether gdbserver is supported.
6360 Polish that too.
6361 * configure: Regenerated.
6362 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
6363 @SUBDIRS@.
6364
8ccd593b
AC
63652003-01-03 Andrew Cagney <cagney@redhat.com>
6366
6367 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
6368 * avr-tdep.c, cris-tdep.c: Ditto.
6369 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
6370 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
6371
91151a06
MK
63722003-01-03 Mark Kettenis <kettenis@gnu.org>
6373
6374 * configure.in: Remove --enable-netrom option.
6375 * configure: Regenerated.
6376
8fe84d01
MK
63772003-01-03 Mark Kettenis <kettenis@gnu.org>
6378
6379 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
6380 declaration for `struct re_pattern_buffer' instead.
6381 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
6382
f0394be6
JB
63832003-01-03 J. Brobecker <brobecker@gnat.com>
6384
6385 * mdebugread.c (parse_symbol): Count until the stEnd matching
6386 the structure name.
6387
27e9bf90
MK
63882003-01-02 Mark Kettenis <kettenis@gnu.org>
6389
93d331ba
MK
6390 * configure.in: Remove --with-cpu option.
6391 subscripts. Remove evil changequotes here.
6392 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
6393 * config.in, configure: Regenerated.
6394
27e9bf90
MK
6395 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
6396 * configure.in: Cleanup section that sources GDB and BFD configure
6397 subscripts. Remove evil changequotes here.
6398 * config.in, configure: Regenerated.
6399
50abf9e5
AC
64002003-01-02 Andrew Cagney <ac131313@redhat.com>
6401
6402 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
6403 frame accessor methods.
6404 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6405 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
6406 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
6407 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
6408 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
6409 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
6410 * z8k-tdep.c: Ditto.
6411
287c1a40
MK
64122003-01-02 Mark Kettenis <kettenis@gnu.org>
6413
f5dbc56d
MK
6414 * configure.in: Remove UI_OUT configuration code.
6415 * ada-lang.c: Update assuming UI_OUT is always true.
6416 * Makefile.in (UIOUT_CFLAGS): Remove.
6417 * configure: Regenerated.
6418 * TODO: Remove blurb about elimination of -DUI_OUT.
6419
627af7ea
MK
6420 * configure.in: Move code that provides the --enable-gdbcli,
6421 --enable-gdbmi options right before the code that handles the
6422 --enable-tui option. Polish a bit.
6423 * configure: Regenerated.
6424
06825bd1
MK
6425 * configure.in: Rewrite check for GNU regex and the
6426 --without-included regex option, and move it into the "Checks for
6427 library functions" section. This makes us use the system regex
6428 again by default on systems with version 2 of the GNU C library.
6429 This was apparently broken.
6430 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
6431 * acconfig.h (USE_INCLUDED_REGEX): Remove.
6432 * config.in, configure: Regenerated.
6433
287c1a40
MK
6434 * configure.in: Move code that provides the --enable-tui option
6435 before the "Checks for libraries" section. Polish the code
6436 somewhat and set need_curses to yes if we build the TUI. Rewrite
6437 code that looks for a library providing termcap functionality to
6438 match more closely what's done in the Readline library, and move
6439 it into to the "Checks for libraries" section.
6440 * configure: Regenerated.
6441 * Makefile.in (TERMCAP): Remove variable.
6442 * config/i386/go32.mh (TERMCAP): Remove variable.
6443
684e56bf
AC
64442003-01-02 Andrew Cagney <ac131313@redhat.com>
6445
6446 * MAINTAINERS: Mention gdb_mbuild.sh.
6447 * gdb_mbuild.sh: Rewrite.
6448
e1ea1d75
MK
64492003-01-02 Mark Kettenis <kettenis@gnu.org>
6450
6451 * configure.in: Fix typo in last change.
6452 * config.in, configure: Regenerated.
6453
1b831c93
AC
64542003-01-02 Andrew Cagney <ac131313@redhat.com>
6455
6456 * valarith.c (value_binop): Delete obsolete code and comments.
6457 * configure.host: Ditto.
6458 * buildsym.h (make_blockvector): Ditto.
6459 * buildsym.c (make_blockvector): Ditto.
6460 * defs.h (enum language): Ditto.
6461 (chill_demangle): Ditto.
6462 * elfread.c (elf_symtab_read): Ditto.
6463 * dwarfread.c (CHILL_PRODUCER): Ditto.
6464 (set_cu_language): Ditto.
6465 (handle_producer): Ditto.
6466 * expprint.c (print_subexp): Ditto.
6467 * gdbtypes.c (chill_varying_type): Ditto.
6468 * gdbtypes.h (builtin_type_chill_bool): Ditto.
6469 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
6470 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
6471 (chill_varying_type): Ditto.
6472 * language.h (_LANG_chill): Ditto.
6473 * language.c (binop_result_type, integral_type): Ditto.
6474 (character_type, string_type, structured_type): Ditto.
6475 (lang_bool_type, binop_type_check): Ditto.
6476 * stabsread.h (os9k_stabs): Ditto.
6477 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
6478 (define_symbol, read_type, read_struct_fields): Ditto.
6479 (read_array_type, read_enum_type, read_huge_number): Ditto.
6480 (read_range_type, start_stabs): Ditto.
6481 * symfile.c (init_filename_language_table): Ditto.
6482 (add_psymbol_with_dem_name_to_list): Ditto.
6483 * symtab.c (symbol_init_language_specific): Ditto.
6484 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
6485 * symtab.h (struct general_symbol_info): Ditto.
6486 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6487 * typeprint.c (typedef_print): Ditto.
6488 * utils.c (fprintf_symbol_filtered): Ditto.
6489 * valops.c (value_cast, search_struct_field, value_slice): Delete
6490 obsolete code.
6491 (varying_to_slice): Delete function.
6492 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
6493 (varying_to_slice): Delete declaration.
6494 * MAINTAINERS: Update.
6495
8bb2c122
MK
64962003-01-02 Mark Kettenis <kettenis@gnu.org>
6497
97bf5e38
MK
6498 * configure.in: Reorganize "Checks for library functions section"
6499 a bit. Remove check for `btowc' and `isascii' functions.
6500 * configure: Regenerated.
6501
5ee754fc
MK
6502 * acconfig.h (_MSE_INT_H): Remove.
6503 * configure.in: Create "Checks for header files" section, and move
6504 appropriate tests there. Don't check for objlist.h, wchar.h,
6505 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
6506 misdetection fix. Also add "Checks for types", "Checks for
6507 compiler characteristics" and "Checks for library functions"
6508 sections.
6509 * config.in, configure: Regenerated.
6510
8bb2c122
MK
6511 * configure.in: Create "Checks for programs" section, and move
6512 appropriate tests there.
6513
9a156167
MK
65142003-01-01 Mark Kettenis <kettenis@gnu.org>
6515
6516 * configure.in: Create "Checks for libraries" section, and move
6517 appropriate tests there. Cleanup check for wctype in libw. Use
6518 AC_SEARCH_LIBS to see whether we need libsocket.
6519 * configure: Regenerated.
6520
a80e2bcb 6521For older changes see ChangeLog-2002
c906108c
SS
6522\f
6523Local Variables:
6524mode: change-log
6525left-margin: 8
6526fill-column: 74
6527version-control: never
6528End:
This page took 0.720313 seconds and 4 git commands to generate.