2003-03-29 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
65e82032
AC
12003-03-29 Andrew Cagney <cagney@redhat.com>
2
3 * infttrace.h: New file.
4 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
5 (hpread_get_textlow): Detect an uninitialized dn_bufp.
6 (hpread_read_doc_function_type): Detect an initialized type1.
7 (hpread_quick_traverse): Initialize mod_name_string.
8 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9 (som_solib_get_solib_by_pc): Declare.
10 (so_lib_thread_start_addr): Declare.
11 (no_shared_libraries): Declare.
12 * somread.c (init_import_symbols): Make static. Add forward
13 declaration.
14 * config/pa/nm-hppah.h: Include "infttrace.h" for
15 parent_attach_all.
16 (hppa_insert_hw_watchpoint): Declare.
17 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
18 * hppah-nat.c: Include "gdb_string.h".
19 (parent_attach_all): Delete extern declaration, moved to
20 "infttrace.h".
21 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
22 int.
23 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
24 * Makefile.in (infttrace_h): Define.
25 (hpread.o): Update dependencies.
26 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
27 * hppa-hpux-tdep.c: Include "gdb_string.h".
28 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
29 * infrun.c (handle_inferior_event): Always initialize
30 stepped_after_stopped_by_watchpoint. Add default and remove
31 fallthrough in switch statement.
32 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
33 parameter to int.
34 (hppa_remove_hw_watchpoint): Ditto.
35
2c3bbe77
AC
362003-03-29 Andrew Cagney <cagney@redhat.com>
37
38 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
39 offset.
40
2dd604e7
RE
412003-03-29 Richard Earnshaw <rearnsha@arm.com>
42
43 * arm-tdep.c (arm_push_arguments): Delete.
44 (struct stack_item): New type.
45 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
46 (arm_store_struct_return): Delte.
47 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
48 arm_push_arguments or arm_store_struct_return.
49
e8933a55
AC
502003-03-28 Andrew Cagney <cagney@redhat.com>
51
52 * Makefile.in (d10v-tdep.o): Update dependencies.
53 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
54 * d10v-tdep.c: Include "remote.h".
55 (target_resume_hook): Delete extern declaration.
56 (target_wait_loop_hook): Ditto.
57 (tdisassemble_command): Eliminate assignment in "if" conditional.
58 (d10v_ts2_register_sim_regno): Eliminate call to
59 legacy_register_sim_regno.
60 (d10v_ts3_register_sim_regno): Ditto.
61
6949171e
JJ
622003-03-28 Jeff Johnston <jjohnstn@redhat.com>
63
64 * thread.c: Reindented.
65 * lin-lwp.c: Ditto.
66 * linux-proc.c: Ditto.
67
98c7071f
BR
682003-03-28 Bob Rossi <bob_rossi@cox.net>
69
70 * MAINTAINERS (write after approval): Add myself.
71
5edc9ca6
TR
722003-03-27 Theodore A. Roth <troth@openavr.org>
73
74 * objc-exp.y: Add missing semi-colons.
75
378bfd1b
AC
762003-03-27 Andrew Cagney <cagney@redhat.com>
77
78 * regcache.c (write_sp): Delete function and references.
79 * inferior.h (write_sp): Delete declaration.
80 * valops.c (hand_function_call): Replace write_sp with
81 TARGET_WRITE_SP.
82 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
83 (sparc_pop_frame): Ditto.
84
56056df7
AC
852003-03-27 Andrew Cagney <cagney@redhat.com>
86
87 * NEWS: Mention removal of support for hppa*-*-bsd* and
88 hppa*-*-osf* natives, and hppa*-*-pro* target.
89 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
90 * config/pa/xm-pa.h: Obsolete file.
91 * config/pa/xm-hppab.h: Obsolete file.
92 * config/pa/nm-hppab.h: Obsolete file.
93 * config/pa/tm-hppab.h: Obsolete file.
94 * config/pa/tm-hppao.h: Obsolete file.
95 * config/pa/nm-hppao.h: Obsolete file.
96 * config/pa/tm-pro.h: Obsolete file.
97 * config/pa/hppaosf.mt: Obsolete file.
98 * config/pa/hppaosf.mh: Obsolete file.
99 * config/pa/hppapro.mt: Obsolete file.
100 * config/pa/hppabsd.mt: Obsolete file.
101 * config/pa/hppabsd.mh: Obsolete file.
102 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
103 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
104 hppa*-*-osf*.
105
5873a88d
AC
1062003-03-27 Andrew Cagney <cagney@redhat.com>
107
108 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
109 push_arguments. Don't set push_return_address or write_sp.
110 (d10v_push_dummy_call): Replace d10v_push_arguments.
111 (d10v_push_return_address, d10v_write_sp): Delete function,
112 handled by push_dummy_call.
113
b81774d8
AC
1142003-03-26 Andrew Cagney <cagney@redhat.com>
115
116 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
117 (push_dummy_call): New pure multi-arch replacement with gdbarch,
118 regcache and dummy_addr parameters.
119 * gdbarch.h, gdbarch.c: Re-generate.
120 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
121 available; assume it will handle stack alignment and return
122 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
123 legacy_push_arguments.
124 (legacy_push_arguments): Rename default_push_arguments.
125 * value.h (legacy_push_arguments): Rename default_push_arguments.
126 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
127 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
128 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
129 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
130 * config/i386/tm-symmetry.h: Update.
131 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
132 * x86-64-tdep.c (x86_64_init_abi): Update.
133 * v850-tdep.c (v850_gdbarch_init): Update.
134 * sparc-tdep.c (sparc_gdbarch_init): Update.
135 * sh-tdep.c (sh_gdbarch_init): Update.
136 * s390-tdep.c (s390_gdbarch_init): Update.
137 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
138 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
139 * mips-tdep.c (mips_gdbarch_init): Update.
140 * mcore-tdep.c (mcore_gdbarch_init): Update.
141 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
142 * ia64-tdep.c (ia64_gdbarch_init): Update.
143 * i386-tdep.c (i386_gdbarch_init): Update.
144 * hppa-tdep.c (hppa_gdbarch_init): Update.
145 * h8300-tdep.c (h8300_gdbarch_init): Update.
146 * frv-tdep.c (frv_gdbarch_init): Update.
147 * d10v-tdep.c (d10v_gdbarch_init): Update.
148 * cris-tdep.c (cris_gdbarch_init): Update.
149 * avr-tdep.c (avr_gdbarch_init): Update.
150 * arm-tdep.c (arm_gdbarch_init): Update.
151 * arm-linux-tdep.c (arm_linux_init_abi): Update.
152 * alpha-tdep.c (alpha_gdbarch_init): Update.
153
f541410f
DJ
1542003-03-26 Daniel Jacobowitz <drow@mvista.com>
155
156 * signals/signals.c (do_target_signal_to_host): Correct realtime
157 signal range test.
158
69f567ae
DJ
1592003-03-26 Daniel Jacobowitz <drow@mvista.com>
160
161 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
162 (struct sal_chain, map_catch_names): Remove.
163 (catch_exception_command_1): Don't call
164 handle_gnu_4_16_catch_command.
165
d5d14a5a
DJ
1662003-03-26 Daniel Jacobowitz <drow@mvista.com>
167
168 From Mark Dettinger <dettinge@de.ibm.com>:
169 * dwarf2cfi.c (read_2u): Increment pointer by two.
170
bdd73e22
DJ
1712003-03-26 Daniel Jacobowitz <drow@mvista.com>
172
173 * signals/signals.c: Fix typos in last change.
174
960cb555
DJ
1752003-03-26 Daniel Jacobowitz <drow@mvista.com>
176
177 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
178 not already defined. Use __SIGRTMIN if available.
179 (target_signal_from_host): Remove SIGRTMIN block.
180 (do_target_signal_to_host): Remove SIGRTMIN block; check that
181 the signal is within the realtime range.
182
f636b87d
AF
1832003-03-25 Adam Fedor <fedor@gnu.org>
184
185 * Makefile.in (infrun.o): Add $(language_h)
186 * infrun.c (handle_inferior_event): Use skip_language_trampoline
187 for language specific trampolines.
188 * language.h (struct language_defn): Add skip_trampoline.
189 (skip_language_trampoline): Declare.
190 * language.c (unk_lang_trampoline, skip_language_trampoline):
191 New functions.
192 (unknown_language_defn, auto_language_defn, local_language_defn):
193 Add ukn_lang_trampoline.
194 * ada-lang.c (ada_language_defn): Add NULL for language
195 specific skip_trampoline.
196 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
197 scm-lang.c: Likewise.
198 * objc-lang.c (objc_skip_trampoline): New function.
199 (objc_language_defn): Add objc_skip_trampoline.
200
201I2003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
202
203 * frame.c (get_prev_frame): Delay validating a frame's ID -
204 non-NULL, didn't go backwards - until an attempt to unwind it to
205 the previous frame.
206
f933a9c5
AC
2072003-03-25 Andrew Cagney <cagney@redhat.com>
208
209 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
210 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
211 * gdbarch.h, gdbarch.c: Re-generate.
212 * config/sparc/tm-sparc.h
213 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
214 * sparc-tdep.c (sparc_gdbarch_init): Set
215 deprecated_extra_stack_alignment_needed.
216 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
217 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
218 extra_stack_alignment_needed.
219 * v850-tdep.c (v850_gdbarch_init): Ditto.
220 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
221 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
222 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
223 * cris-tdep.c (cris_gdbarch_init): Ditto.
224 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
225 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
226
4183d812
AC
2272003-03-25 Andrew Cagney <cagney@redhat.com>
228
229 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
230 STORE_STRUCT_RETURN.
231 * gdbarch.h, gdbarch.c: Regenerate.
232 * d10v-tdep.c (d10v_store_struct_return): Delete function.
233 (d10v_push_arguments): Set the struct return register.
234 (d10v_gdbarch_init): Update.
235 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
236 * x86-64-tdep.c (x86_64_init_abi): Update.
237 * vax-tdep.c (vax_gdbarch_init): Update.
238 * v850-tdep.c (v850_gdbarch_init): Update.
239 * sparc-tdep.c (sparc_gdbarch_init): Update.
240 * sh-tdep.c (sh_gdbarch_init): Update.
241 * s390-tdep.c (s390_gdbarch_init): Update.
242 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
243 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
244 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
245 * mips-tdep.c (mips_gdbarch_init): Update.
246 * mcore-tdep.c (mcore_gdbarch_init): Update.
247 * m68k-tdep.c (m68k_gdbarch_init): Update.
248 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
249 * ia64-tdep.c (ia64_gdbarch_init): Update.
250 * i386-tdep.c (i386_gdbarch_init): Update.
251 * hppa-tdep.c (hppa_gdbarch_init): Update.
252 * h8300-tdep.c (h8300_gdbarch_init): Update.
253 * frv-tdep.c (frv_gdbarch_init): Update.
254 * cris-tdep.c (cris_gdbarch_init): Update.
255 * avr-tdep.c (avr_gdbarch_init): Update.
256 * arm-tdep.c (arm_gdbarch_init): Update.
257 * alpha-tdep.c (alpha_gdbarch_init): Update.
258
1bf6d5cc
AC
2592003-03-25 Andrew Cagney <cagney@redhat.com>
260
261 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
262 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
263 CALL_DUMMY_STACK_ADJUST with a predicate variable.
264 * gdbarch.h, gdbarch.c: Regenerate.
265 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
266 call_dummy_stack_adjust_p.
267 * vax-tdep.c (vax_gdbarch_init): Ditto.
268 * v850-tdep.c (v850_gdbarch_init): Ditto.
269 * sh-tdep.c (sh_gdbarch_init): Ditto.
270 * s390-tdep.c (s390_gdbarch_init): Ditto.
271 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
272 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
273 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
274 * mips-tdep.c (mips_gdbarch_init): Ditto.
275 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
276 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
277 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
278 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
279 * i386-tdep.c (i386_gdbarch_init): Ditto.
280 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
281 * frv-tdep.c (frv_gdbarch_init): Ditto.
282 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
283 * cris-tdep.c (cris_gdbarch_init): Ditto.
284 * avr-tdep.c (avr_gdbarch_init): Ditto.
285 * arm-tdep.c (arm_gdbarch_init): Ditto.
286 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
287 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
288 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
289 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
290 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
291 call_dummy_stack_adjust_p.
292 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
293 (CALL_DUMMY_STACK_ADJUST): Delete macro.
294 * sparc-tdep.c (sparc32_push_arguments): Update.
295 * valops.c (hand_function_call): Update.
296
71c08af0
CV
2972003-03-25 Corinna Vinschen <vinschen@redhat.com>
298
299 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
300 set_gdbarch_char_signed.
301
30757f90
RE
3022003-03-25 Richard Earnshaw <rearnsha@arm.com>
303
304 PR cli/548
305 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
306
03d48a7d
RE
3072003-03-25 Richard Earnshaw <rearnsha@arm.com>
308
309 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
310 (_initialize_arm_tdep): Don't set tm_print_insn.
311
2cf6873c
AF
3122003-03-24 Adam Fedor <fedor@gnu.org>
313
314 * Makefile.in (YYOBJ): Add objc-exp.tab.o
315 * objc-lang.h: Add multiple inclusion protection.
316 (start_msglist, add_msglist, end_msglist): Additional declarations.
317
17c0759e
RE
3182003-03-24 Richard Earnshaw <rearnsha@arm.com>
319
320 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
321 value was renamed to ARM_FLOAT_SOFT_FPA.
322
618ce49f
AC
3232003-03-23 Andrew Cagney <cagney@redhat.com>
324
325 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
326 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
327 * gdbarch.h, gdbarch.c: Regenerate.
328 * valops.c (hand_function_call): Update.
329 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
330 * frame.c (legacy_saved_regs_this_id): Update.
331 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
332 * dummy-frame.h: Update.
333 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
334 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
335 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
336 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
337 * config/m68k/tm-sun3.h: Update.
338 * blockframe.c (inside_main_func, frame_chain_valid): Update.
339 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
340 * x86-64-tdep.c (x86_64_init_abi): Update.
341 * vax-tdep.c (vax_gdbarch_init): Update.
342 * v850-tdep.c (v850_gdbarch_init): Update.
343 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
344 * sh-tdep.c (sh_gdbarch_init): Update.
345 * s390-tdep.c (s390_gdbarch_init): Update.
346 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
347 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
348 (frame_get_saved_regs): Update.
349 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
350 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
351 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
352 * mips-tdep.c (mips_gdbarch_init): Update.
353 * mcore-tdep.c (mcore_gdbarch_init): Update.
354 * m68k-tdep.c (m68k_gdbarch_init): Update.
355 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
356 * ia64-tdep.c (ia64_gdbarch_init): Update.
357 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
358 * i386-interix-tdep.c (i386_interix_init_abi): Update.
359 (i386_interix_back_one_frame): Update.
360 * hppa-tdep.c (hppa_gdbarch_init): Update.
361 (hppa_init_extra_frame_info): Update.
362 * h8300-tdep.c (h8300_gdbarch_init): Update.
363 * frv-tdep.c (frv_gdbarch_init): Update.
364 * cris-tdep.c (cris_gdbarch_init): Update.
365 * avr-tdep.c (avr_gdbarch_init): Update.
366 * arm-tdep.c (arm_gdbarch_init): Update.
367 * alpha-tdep.c (alpha_gdbarch_init): Update.
368
fd50bc42
RE
3692003-03-22 Richard Earnshaw <rearnsha@arm.com>
370
371 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
372 (arm_get_fp_model): Declare.
373 * arm-tdep.c (fp_model_strings): New string array.
374 (arm_fp_model, current_fp_model): New variables.
375 (arm_get_fp_model): New function.
376 (arm_set_fp): New function.
377 (set_fp_model_sfunc): New function.
378 (show_fp_model): New function.
379 (_initialize_arm_tdep): Add new command to set/show the FPU.
380 (arm_extract_return_value): Use arm_get_fp_model.
381 (arm_store_return_value): Likewise.
382 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
383 to initialize the floating-point data types.
384 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
385 model is FPA.
386
26304000
RE
3872003-03-22 Richard Earnshaw <rearnsha@arm.com>
388
389 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
390 the current setting of each value.
391 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
392 new_set and new_show. Use add_setshow_cmd_full and
393 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
394 commands and add new version as subcommands of "set/show arm".
395
afd7eef0
RE
3962003-03-22 Richard Earnshaw <rearnsha@arm.com>
397
398 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
399 (set_arm_command, show_arm_command): New functions.
400 (_initialize_arm_tdep): Add them.
401 (num_disassembly_options): Renamed from num_flavor_options.
402 (valid_disassembly_styles): Renamed from valid_flavors.
403 (disassembly_style): Renamed from disassembly_flavor.
404 (set_disassembly_style_sfunc): Renamed from
405 set_disassembly_flavor_sfunc.
406 (set_disassembly_style): Renamed from set_disassembly_flavor.
407 (arm_othernames): Updated.
408 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
409 command. Add "set/show arm disassembly" commands. Deprecate
410 "othernames" command.
411
299a7944
RE
4122003-03-22 Richard Earnshaw <rearnsha@arm.com>
413
414 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
415 (arm-tdep.o): Depend on elf_arm_h.
416
c1dac9e6
RE
4172003-03-22 Richard Earnshaw <rearnsha@arm.com>
418
419 * Makefile.in (coff_internal_h): Define.
420 (arm-tdep.o): Update dependencies.
421
2702d96c
RE
4222003-03-22 Richard Earnshaw <rearnsha@arm.com>
423
424 * arm-tdep.c (prologue_cache): Delete.
425 (check_prologue_cache, save_prologue_cache): Delete.
426 (arm_scan_prologue): Don't check or update the prologue_cache.
427 (arm_gdb_arch_init): Don't initialize it.
428 (_initialize_arm_tdep): Likewise.
429
27d5d74b
SC
4302003-03-21 Stephane Carrez <stcarrez@nerim.fr>
431
432 * MAINTAINERS (tui): Maintainer of tui code.
433
1762d96d
CV
4342003-03-21 Corinna Vinschen <vinschen@redhat.com>
435
436 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
437 (i386-cygwin-tdep.o): Add dependencies.
438 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
439 * i386-cygwin-tdep.c: New file.
440 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
441 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
442
4c2e2391
AC
4432003-03-20 Andrew Cagney <cagney@redhat.com>
444
f20d38b7
AC
445 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
446 (handle_inferior_event): Remove code calling
447 DYNAMIC_TRAMPOLINE_NEXTPC.
448
0022b738
AC
449 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
450 already has a full path.
451
864dbc90
AC
452 * main.c (gdb_main): Return 1.
453 (captured_main): Call error to report an invalid interpreter.
454
4c2e2391
AC
455 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
456 * alpha-osf1-tdep.c: Include "gdb_string.h".
457
5ef7553b
JB
4582003-03-19 J. Brobecker <brobecker@gnat.com>
459
460 Continuing work to convert the hppa targets to multiarch partial.
461
462 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
463 method, now that hppa_push_dummy_frame has a conformant prototype.
464 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
465 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
466 for the switch to multiarch partial.
467
7bde8967
KB
4682003-03-19 Kevin Buettner <kevinb@redhat.com>
469
470 * mdebugread.c (parse_symbol): For stEnd, we're done counting
471 when iss is issNull.
472
b006a9e9
KB
4732003-03-18 Kevin Buettner <kevinb@redhat.com>
474
475 * mips-tdep.c (mips_register_name): Fix fencepost error involving
476 NUM_REGS bounds check.
477
5e2e9765
KB
4782003-03-18 Kevin Buettner <kevinb@redhat.com>
479
480 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
481 * mips-tdep.c (gdb_assert.h): Include.
482 (mips_generic_reg_names, mips_processor_reg_names): Make static.
483 (mips_register_name): Handle integer registers explicitly. Add
484 bounds checking.
485 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
486 (mips_lsi33k_reg_names): Don't list integer registers; they're
487 handled by mips_register_name() now.
488 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
489 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
490 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
491 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
492 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
493
a2867626
AC
4942003-03-18 Andrew Cagney <cagney@redhat.com>
495
496 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
497 a void pointer.
498 * gdbtypes.h (print_scalar_formatted): Update declaration.
499 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
500
06600e06
JB
5012003-03-18 J. Brobecker <brobecker@gnat.com>
502
503 * infrun.c (observer.h): Add #include.
504 (normal_stop): Add call to observer_notify_normal_stop.
505 * Makefile.in (infrun.o): Add dependency on observer.h.
506
7daf4f5b
JB
5072003-03-18 J. Brobecker <brobecker@gnat.com>
508
509 Continuing work to convert the hppa targets to multiarch partial.
510 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
511 parameter. Reformat comment.
512 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
513 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
514 to match new profile.
515
3371ccc0
JB
5162003-03-18 J. Brobecker <brobecker@gnat.com>
517
518 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
519 appear to be working in any case.
520
4fbe891e
JB
5212003-03-18 J. Brobecker <brobecker@gnat.com>
522
523 * observer.c (observer_test_first_observer): New static variable.
524 (observer_test_second_observer): Likewise.
525 (observer_test_third_observer): Likewise.
526 (observer_test_first_notification_function): New static function.
527 (observer_test_second_notification_function): Likewise.
528 (observer_test_third_notification_function): Likewise.
529
a7ff40e7
JB
5302003-03-17 J. Brobecker <brobecker@gnat.com>
531
532 * hppa-tdep.c (gdb_assert.h): Add missing #include.
533 * somsolib.c (gdb_assert.h): Likewise.
534 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
535 (somsolib.o): Likewise.
536
26ca4152
AC
5372003-03-17 Andrew Cagney <cagney@redhat.com>
538
539 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
540 BFD. Simplify setting of di.endian.
541
0a613259
AC
5422003-03-17 Andrew Cagney <cagney@redhat.com>
543
544 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
545 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
546
547 From Elena Zannoni <ezannoni@redhat.com>
548 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
549 vector and floating-point parameters.
550 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
551 convention.
552 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
553
1132738f
FN
5542003-03-17 Fernando Nasser <fnasser@redhat.com>
555
556 * MAINTAINERS: Remove my name from several maintainership roles.
557
6dc42492
AC
5582003-03-17 Andrew Cagney <cagney@redhat.com>
559
560 Fix frame off-by-one bug.
561 * frame-unwind.h (frame_this_id_ftype): Replace
562 frame_unwind_id_ftype.
563 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
564 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
565 with "prev_register".
566 * frame-unwind.c (frame_unwind_find_by_pc): Return
567 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
568 comment.
569 * dummy-frame.c (cached_find_dummy_frame): Delete function.
570 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
571 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
572 (dummy_frame_unwind): Update.
573 * sentinel-frame.c (sentinel_frame_prev_register): Replace
574 sentinel_frame_register_unwind.
575 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
576 (sentinel_frame_unwinder): Update.
577 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
578 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
579 * frame.c (create_sentinel_frame): Update. Initialize
580 "prologue_cache" instead of "unwind_cache".
581 (frame_register_unwind): Call this frame's prev_register with the
582 next frame and this frame's prologue cache.
583 (get_prev_frame): Simplify. Always call prev frame's this_id with
584 this frame and prev frame's prologue cache. Document that this
585 call is shifted one to the left when compared to the
586 frame_register_unwind call.
587 (legacy_saved_regs_prev_register): Replace
588 frame_saved_regs_register_unwind.
589 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
590 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
591 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
592 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
593 (d10v_frame_unwind): Update.
594 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
595 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
596 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
597 "saved_regs" with "this_saved_regs".
598
efd710d6
AC
5992003-03-16 Andrew Cagney <cagney@redhat.com>
600
601 * frame.c (frame_pop): Don't call target_store_registers. Fix
602 problem reported by Mark Kettenis.
603
4e259f09
MK
6042003-03-16 Mark Kettenis <kettenis@gnu.org>
605
606 * i386-tdep.c (i386_register_type): Renamed from
607 i386_register_virtual_type. Adjust function signature.
608 (i386_gdbarch_init): Set register_type instead of
609 deprecated_max_register_raw_size,
610 deprecated_max_register_virtual_size and register_virtual_type.
611
055bb976
AC
6122003-03-14 Andrew Cagney <cagney@redhat.com>
613
614 * frame.c (get_prev_frame): When a legacy frame, always call
615 legacy_get_prev_frame. Simplify unwind code using assumption that
616 the unwinder is new.
617 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
618 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
619 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
620
ac2adee5
AC
6212003-03-14 Andrew Cagney <cagney@redhat.com>
622
623 * frame.c (get_saved_register): Delete function.
624 * frame.h (get_saved_register): Delete declaration.
625 * xstormy16-tdep.c: Update comment.
626 * regcache.h: Update comments.
627 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
628 get_saved_register and extract_address, use
629 frame_read_unsigned_register.
630 (sparc_frame_saved_pc): Ditto.
631 (sparc_get_saved_register): Instead of get_saved_register, use
632 frame_register.
633 (sparc_pop_frame): Ditto.
634 * findvar.c: Update comments.
635 (value_of_register): Call frame_register instead of
636 get_saved_register.
637 (value_from_register): Ditto.
638 * config/sparc/tm-sparc.h: Update comment.
639 * breakpoint.c: Update comment.
640
129c1cd6
AC
6412003-03-14 Andrew Cagney <cagney@redhat.com>
642
643 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
644 GET_SAVED_REGISTER.
645 * gdbarch.h, gdbarch.c: Re-generate.
646 * frame.h: Update comments.
647 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
648 * x86-64-tdep.c (x86_64_init_abi): Update.
649 * sparc-tdep.c (sparc_gdbarch_init): Update.
650 * sh-tdep.c (sh_gdbarch_init): Update.
651 * mips-tdep.c (mips_gdbarch_init): Update.
652 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
653 * cris-tdep.c (cris_gdbarch_init): Update.
654 * ia64-tdep.c (ia64_gdbarch_init): Update.
655 * frame.c (frame_register): Update.
656 (get_saved_register): Update.
657 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
658
749b82f6
AC
6592003-03-13 Andrew Cagney <cagney@redhat.com>
660
661 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
662 * gdbarch.h, gdbarch.c: Regenerate.
663 * valops.c (hand_function_call): Update comment.
664 * stack.c (return_command): Update comment.
665 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
666 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
667 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
668 * x86-64-tdep.c (x86_64_init_abi): Update.
669 * vax-tdep.c (vax_gdbarch_init): Update.
670 * v850-tdep.c (v850_gdbarch_init): Update.
671 * sparc-tdep.c (sparc_gdbarch_init): Update.
672 * sh-tdep.c (sh_gdbarch_init): Update.
673 * s390-tdep.c (s390_gdbarch_init): Update.
674 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
675 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
676 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
677 * mips-tdep.c (mips_gdbarch_init): Update.
678 * mcore-tdep.c (mcore_gdbarch_init): Update.
679 * m68k-tdep.c (m68k_gdbarch_init): Update.
680 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
681 * ia64-tdep.c (ia64_gdbarch_init): Update.
682 * i386-tdep.c (i386_gdbarch_init): Update.
683 * hppa-tdep.c (hppa_gdbarch_init): Update.
684 * h8300-tdep.c (h8300_gdbarch_init): Update.
685 * frv-tdep.c (frv_gdbarch_init): Update.
686 * cris-tdep.c (cris_gdbarch_init): Update.
687 * avr-tdep.c (avr_gdbarch_init): Update.
688 * arm-tdep.c (arm_gdbarch_init): Update.
689 * alpha-tdep.c (alpha_gdbarch_init): Update.
690
1594fa56
AC
6912003-03-13 Andrew Cagney <cagney@redhat.com>
692
693 * frame.c (legacy_frame_p): New function.
694 (get_prev_frame): Use legacy_frame_p.
695 * frame.h (legacy_frame_p): Declare.
696
7717fda3
V
6972003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
698
699 * MAINTAINERS (write after approval): Alphabetically
700 listing corrected.
701
0c67cbe9
V
7022003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
703
704 * MAINTAINERS (write after approval): Add myself.
705
03febf99
AC
7062003-03-12 Andrew Cagney <cagney@redhat.com>
707
708 * frame.c (get_prev_frame): Rename the frame parameter to
709 "this_frame".
710 (get_next_frame, legacy_get_prev_frame): Ditto.
711
0a1e1ca1
AC
7122003-03-12 Andrew Cagney <cagney@redhat.com>
713
714 * frame.c (get_current_frame): Check target_has_registers before
715 checking target_has_stack.
716 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
717 instead of deprecated_selected_frame.
718 * findvar.c (value_of_register): Pass "frame", not
719 deprecated_selected_frame, to value_of_builtin_reg.
720
a66a9c23
AC
7212003-03-12 Andrew Cagney <cagney@redhat.com>
722
723 * regcache.c (regcache_cooked_write_signed): New function.
724 (regcache_cooked_write_unsigned): New function.
725 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
726 (regcache_cooked_read_signed): Fix regnum in range assertion.
727 * regcache.h (regcache_cooked_write_signed): Declare.
728 (regcache_cooked_write_unsigned): Declare.
729
8bedc050
AC
7302003-03-12 Andrew Cagney <cagney@redhat.com>
731
732 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
733 * gdbarch.h, gdbarch.c: Re-generate.
734 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
735 * x86-64-tdep.h: Update.
736 * x86-64-tdep.c (x86_64_init_abi): Update.
737 * v850-tdep.c (v850_gdbarch_init): Update.
738 * sparc-tdep.c (sparc_gdbarch_init): Update.
739 * sh-tdep.c (sh_gdbarch_init): Update.
740 * s390-tdep.c (s390_gdbarch_init): Update.
741 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
742 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
743 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
744 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
745 * mips-tdep.c (mips_gdbarch_init): Update.
746 * mcore-tdep.c (mcore_gdbarch_init): Update.
747 * m68k-tdep.c (m68k_gdbarch_init): Update.
748 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
749 * ia64-tdep.c (ia64_gdbarch_init): Update.
750 * i386-tdep.c (i386_gdbarch_init): Update.
751 * i386-interix-tdep.c (i386_interix_init_abi): Update.
752 * hppa-tdep.c (hppa_gdbarch_init): Update.
753 * h8300-tdep.c (h8300_gdbarch_init): Update.
754 * frv-tdep.c (frv_gdbarch_init): Update.
755 * cris-tdep.c (cris_gdbarch_init): Update.
756 * avr-tdep.c (avr_gdbarch_init): Update.
757 * arm-tdep.c (arm_gdbarch_init): Update.
758 * alpha-tdep.c (alpha_gdbarch_init): Update.
759 * sh-tdep.c (sh_init_extra_frame_info): Update.
760 (sh64_init_extra_frame_info): Update.
761 * ns32knbsd-nat.c (frame_num_args): Update.
762 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
763 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
764 (xstormy16_frame_chain_valid): Update.
765 * vax-tdep.c (vax_saved_pc_after_call): Update.
766 * v850-tdep.c (v850_frame_chain): Update.
767 (v850_pop_frame): Update.
768 (v850_init_extra_frame_info): Update.
769 * sparc-tdep.c (setup_arbitrary_frame): Update.
770 * ns32k-tdep.c (umax_frame_num_args): Update.
771 * s390-tdep.c (s390_pop_frame_regular): Update.
772 * mn10300-tdep.c (mn10300_frame_chain): Update.
773 (mn10300_pop_frame_regular): Update.
774 (mn10300_init_extra_frame_info): Update.
775 * mips-tdep.c (mips_init_frame_pc_first): Update.
776 (mips_frame_chain): Update.
777 (mips_pop_frame): Update.
778 * mcore-tdep.c (mcore_frame_chain): Update.
779 (mcore_pop_frame): Update.
780 (mcore_init_extra_frame_info): Update.
781 * arch-utils.c (init_frame_pc_default): Update.
782 * m68k-tdep.c (isi_frame_num_args): Update.
783 (delta68_frame_num_args): Update.
784 (news_frame_num_args): Update.
785 * ia64-tdep.c (ia64_pop_frame_regular): Update.
786 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
787 (alpha_frame_chain): Update.
788 (alpha_pop_frame): Update.
789 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
790 (hppa_init_extra_frame_info): Update.
791 (hppa_frame_chain): Update.
792 (hppa_frame_chain_valid): Update.
793 * cris-tdep.c (cris_init_extra_frame_info): Update.
794 * avr-tdep.c (avr_init_extra_frame_info): Update.
795 * arm-tdep.c (arm_frame_chain_valid): Update.
796 (arm_init_extra_frame_info): Update.
797 (arm_pop_frame): Update.
798 * frame.c (frame_pc_unwind): Update.
799 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
800 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
801 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
802 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
803 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
804 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
805
7a25a7c1
AC
8062003-03-12 Andrew Cagney <cagney@redhat.com>
807
808 Eliminate the need for POP_FRAME.
809 * frame.c (do_frame_unwind_register): New function.
810 (frame_pop): When no POP_FRAME, pop the frame using register
811 unwind and a scratch regcache.
812 (frame_saved_regs_pop): Delete function.
813 (trad_frame_unwinder): Update.
814 * d10v-tdep.c (d10v_frame_pop): Delete function.
815 (d10v_frame_unwind): Update.
816 * sentinel-frame.c (sentinel_frame_pop): Delete function.
817 (sentinel_frame_unwinder): Update.
818 * dummy-frame.c (dummy_frame_pop): Delete function.
819 (dummy_frame_unwind): Update.
820 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
821 (struct frame_unwind): Update.
822
2f38ef89
KB
8232003-03-11 Kevin Buettner <kevinb@redhat.com>
824
825 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
826 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
827 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
828 Do range checks on register number obtained from debugging info.
829 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
830 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
831 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
832 mapping function.
833 (do_fp_register_row): Fix typo which caused double type to be
834 used when attempting to unpack a float.
835
552f4abf
JB
8362003-03-11 J. Brobecker <brobecker@gnat.com>
837
838 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
839
e0d2ae16
AC
8402003-03-11 Andrew Cagney <cagney@redhat.com>
841
842 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
843 frame. Problem found by Corinna Vinschen.
844
ddbfdd06
PM
8452003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
846
847 * doublest.c (floatformat_from_length): Accept also
848 the real size of 'long double' type.
849
088b2ddc 8502003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 851
088b2ddc 852 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
853 * breakpoint.c (bpstat_copy): Copy the command lines as well
854 as the old value, to match what is freed in bpstat_clear.
855
f56f77c1
DC
8562003-03-10 David Carlton <carlton@math.stanford.edu>
857
858 * minsyms.c (add_minsym_to_hash_table): Replace
859 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
860 (compare_minimal_symbols, compact_minimal_symbols)
861 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
862 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
863 of DEPRECATED_SYMBOL_MATCHES_NAME.
864 (lookup_minimal_symbol_solib_trampoline): Ditto.
865
5602984a
AC
8662003-03-10 Andrew Cagney <cagney@redhat.com>
867
868 * regcache.h (regcache_cooked_read_ftype): Define.
869 (regcache_save, regcache_restore): Add a cooked_read parameter.
870 * regcache.c (regcache_save, regcache_restore): Update.
871 (do_cooked_read): New function.
872 (regcache_cpy): Pass do_cooked_read to regcache_save and
873 regcache_restore.
874
8bedc050
AC
8752003-03-10 Andrew Cagney <cagney@redhat.com>
876
877 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
878 * gdbarch.h, gdbarch.c: Re-generate.
879 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
880 * x86-64-tdep.h: Update.
881 * x86-64-tdep.c (x86_64_init_abi): Update.
882 * v850-tdep.c (v850_gdbarch_init): Update.
883 * sparc-tdep.c (sparc_gdbarch_init): Update.
884 * sh-tdep.c (sh_gdbarch_init): Update.
885 * s390-tdep.c (s390_gdbarch_init): Update.
886 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
887 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
888 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
889 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
890 * mips-tdep.c (mips_gdbarch_init): Update.
891 * mcore-tdep.c (mcore_gdbarch_init): Update.
892 * m68k-tdep.c (m68k_gdbarch_init): Update.
893 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
894 * ia64-tdep.c (ia64_gdbarch_init): Update.
895 * i386-tdep.c (i386_gdbarch_init): Update.
896 * i386-interix-tdep.c (i386_interix_init_abi): Update.
897 * hppa-tdep.c (hppa_gdbarch_init): Update.
898 * h8300-tdep.c (h8300_gdbarch_init): Update.
899 * frv-tdep.c (frv_gdbarch_init): Update.
900 * cris-tdep.c (cris_gdbarch_init): Update.
901 * avr-tdep.c (avr_gdbarch_init): Update.
902 * arm-tdep.c (arm_gdbarch_init): Update.
903 * alpha-tdep.c (alpha_gdbarch_init): Update.
904 * sh-tdep.c (sh_init_extra_frame_info): Update.
905 (sh64_init_extra_frame_info): Update.
906 * ns32knbsd-nat.c (frame_num_args): Update.
907 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
908 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
909 (xstormy16_frame_chain_valid): Update.
910 * vax-tdep.c (vax_saved_pc_after_call): Update.
911 * v850-tdep.c (v850_frame_chain): Update.
912 (v850_pop_frame): Update.
913 (v850_init_extra_frame_info): Update.
914 * sparc-tdep.c (setup_arbitrary_frame): Update.
915 * ns32k-tdep.c (umax_frame_num_args): Update.
916 * s390-tdep.c (s390_pop_frame_regular): Update.
917 * mn10300-tdep.c (mn10300_frame_chain): Update.
918 (mn10300_pop_frame_regular): Update.
919 (mn10300_init_extra_frame_info): Update.
920 * mips-tdep.c (mips_init_frame_pc_first): Update.
921 (mips_frame_chain): Update.
922 (mips_pop_frame): Update.
923 * mcore-tdep.c (mcore_frame_chain): Update.
924 (mcore_pop_frame): Update.
925 (mcore_init_extra_frame_info): Update.
926 * arch-utils.c (init_frame_pc_default): Update.
927 * m68k-tdep.c (isi_frame_num_args): Update.
928 (delta68_frame_num_args): Update.
929 (news_frame_num_args): Update.
930 * ia64-tdep.c (ia64_pop_frame_regular): Update.
931 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
932 (alpha_frame_chain): Update.
933 (alpha_pop_frame): Update.
934 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
935 (hppa_init_extra_frame_info): Update.
936 (hppa_frame_chain): Update.
937 (hppa_frame_chain_valid): Update.
938 * cris-tdep.c (cris_init_extra_frame_info): Update.
939 * avr-tdep.c (avr_init_extra_frame_info): Update.
940 * arm-tdep.c (arm_frame_chain_valid): Update.
941 (arm_init_extra_frame_info): Update.
942 (arm_pop_frame): Update.
943 * frame.c (frame_pc_unwind): Update.
944 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
945 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
946 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
947 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
948 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
949 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
950
12cc2063
AC
9512003-03-10 Andrew Cagney <cagney@redhat.com>
952
953 * gdbarch.sh (gdbarch_unwind_pc): New method.
954 * gdbarch.h, gdbarch.c: Regenerate.
955 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
956 but use read_pc and FRAME_SAVED_PC as fall backs.
957 (frame_saved_regs_pc_unwind): Delete function.
958 (trad_frame_unwinder): Update.
959 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
960 (struct frame_unwind): Update.
961 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
962 (dummy_frame_unwind): Update.
963 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
964 (sentinel_frame_unwinder): Update.
965 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
966 (d10v_frame_unwind): Update.
967 (d10v_unwind_pc): New function.
968 (d10v_gdbarch_init): Set unwind_pc.
969
ef840a37
AC
9702003-03-10 Andrew Cagney <cagney@redhat.com>
971
a2ce2e56
AC
972 * gdbarch.h: Re-generate.
973
ef840a37
AC
974 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
975 PC.
976 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
977 the PC register.
978
08f3424b
MK
9792003-03-08 Mark Kettenis <kettenis@gnu.org>
980
981 * gdbarch.sh (save_dummy_frame_tos): Add comment.
982
1248ede2
AC
9832003-03-08 Andrew Cagney <cagney@redhat.com>
984
985 * cli-out.c: Update copyright.
986 (cli_out_data): Define typedef. Use instead of ui_out_data.
987
f49bacc8
AC
9882003-03-08 Andrew Cagney <cagney@redhat.com>
989
990 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
991 the result.
992
9b05f993
AC
9932003-03-07 Andrew Cagney <cagney@redhat.com>
994
995 * gdbarch.sh: Don't generate two macro definitions when an
996 undefined macro taking no arguments.
997 * gdbarch.h: Regenerate.
998
166f4c7b
ML
9992002-03-07 Michal Ludvig <mludvig@suse.cz>
1000
1001 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
1002 (x86_64_unwind_dummy_id): New functions.
1003 (x86_64_init_abi): Register these two new functions.
1004
6d686a84
ML
10052003-03-07 Michal Ludvig <mludvig@suse.cz>
1006
1007 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
1008 (x86_64_skip_prologue): Move prologue detection to
1009 separate function.
1010 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
1011
6314f104
AC
10122003-03-05 Andrew Cagney <cagney@redhat.com>
1013
1014 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
1015 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
1016 * frame.c (get_prev_frame): Restructure the frame ID unwind code
1017 to use unwind_dummy_id when a dummy frame.
1018 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
1019 predicate.
1020 * gdbarch.h, gdbarch.c: Regneerate.
1021
ceea5145
AC
10222003-03-05 Andrew Cagney <cagney@redhat.com>
1023
1024 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
1025 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
1026 Do not use d10v_read_sp or d10v_read_fp when obtaining register
1027 values.
1028
0d843116
AC
10292003-03-05 Andrew Cagney <cagney@redhat.com>
1030
1031 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
1032 (struct d10v_unwind_cache): Delete field "frameless". Replace
1033 "next_addr" with "sp_offset". Add "r11_offset".
1034 (d10v_frame_unwind_cache): Update.
1035 (prologue_find_regs): Update. When "mv r11, sp", save the
1036 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
1037 RN was saved in r11_offset.
1038
b2579786
AC
10392003-03-05 Andrew Cagney <cagney@redhat.com>
1040
1041 * frame.c (deprecated_update_frame_pc_hack): Also update the the
1042 cached PC value in the next frame.
1043
218e5956
AC
10442003-03-05 Andrew Cagney <cagney@redhat.com>
1045
1046 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
1047 "id_unwind_cache" with "id".
1048 (frame_id_unwind): Delete declaration.
1049 * frame.c (frame_id_unwind): Delete function.
1050 (get_prev_frame): Call the frame id unwind method directly. Store
1051 the returned next frame's ID value in NEXT_FRAME. Note that there
1052 is a problem with the wrong unwind ID being called with the wrong
1053 unwind cache.
1054
ed363b1b
DJ
10552003-03-05 Daniel Jacobowitz <drow@mvista.com>
1056
1057 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
1058
fe1f4a5e
DJ
10592003-03-05 James Ingham <jingham@apple.com>
1060 Daniel Jacobowitz <drow@mvista.com>
1061
1062 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
1063 (auto_cp_abi): New variable.
1064 (current_cp_abi, num_cp_abis): Make static.
1065 (CP_ABI_MAX): Define.
1066 (cp_abis): Turn into an array.
1067 (value_virtual_fn_field): Fix formatting.
1068 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
1069 takes a pointer.
1070 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
1071 (list_cp_abis, _initialize_cp_abi): New functions.
1072 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
1073 declarations for cp_abis, num_cp_abis, current_cp_abi, and
1074 switch_to_cp_abi. Update prototype for register_cp_abi.
1075 * Makefile.in (cp-abi.o): Update dependencies.
1076 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
1077 instead of switch_to_cp_abi.
1078 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
1079 register_cp_abi.
1080 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
1081 register_cp_abi.
1082 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
1083
e4adbba9
DJ
10842003-03-05 Daniel Jacobowitz <drow@mvista.com>
1085
1086 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
1087 * dwarf2loc.c: Include "regcache.h".
1088 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
1089 register_size.
1090 * Makefile.in (dwarf2loc.o): Update dependencies.
1091
91ccbfc1
TR
10922003-03-04 Theodore A. Roth <troth@openavr.org>
1093
1094 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
1095 number of io registers reported by remote target is not a multiple of
1096 step.
1097
3d4e8fd2
DC
10982003-03-04 David Carlton <carlton@math.stanford.edu>
1099
1100 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
1101 (lookup_symbol_aux_psymtabs): Update call to
1102 lookup_partial_symbol.
1103 (lookup_transparent_type, find_main_psymtab)
1104 (make_symbol_overload_list): Ditto.
1105
ed42d87b
KH
11062003-03-04 Kazu Hirata <kazu@cs.umass.edu>
1107
1108 * MAINTAINERS (Write after approval): Update my email address.
1109
a0ed5532
AC
11102003-03-03 Andrew Cagney <cagney@redhat.com>
1111
1112 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
1113 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
1114 predicate. Replace MAX_REGISTER_RAW_SIZE.
1115 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
1116 MAX_REGISTER_VIRTUAL_SIZE.
1117 * regcache.c (legacy_max_register_raw_size): New function.
1118 (legacy_max_register_virtual_size): New function.
1119 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
1120 (MAX_REGISTER_RAW_SIZE): Define.
1121 (legacy_max_register_raw_size): Declare.
1122 (legacy_max_register_virtual_size): Declare.
1123 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1124 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
1125 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1126 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
1127 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1128 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
1129 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1130 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1131 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1132 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1133 * vax-tdep.c (vax_gdbarch_init): Update.
1134 * v850-tdep.c (v850_gdbarch_init): Update.
1135 * sparc-tdep.c (sparc_gdbarch_init): Update.
1136 * sh-tdep.c (sh_gdbarch_init): Update.
1137 * s390-tdep.c (s390_gdbarch_init): Update.
1138 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1139 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1140 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1141 * mips-tdep.c (mips_gdbarch_init): Update.
1142 * mcore-tdep.c (mcore_gdbarch_init): Update.
1143 * m68k-tdep.c (m68k_gdbarch_init): Update.
1144 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1145 * ia64-tdep.c (ia64_gdbarch_init): Update.
1146 * i386-tdep.c (i386_gdbarch_init): Update.
1147 * hppa-tdep.c (hppa_gdbarch_init): Update.
1148 * h8300-tdep.c (h8300_gdbarch_init): Update.
1149 * frv-tdep.c (frv_gdbarch_init): Update.
1150 * cris-tdep.c (cris_gdbarch_init): Update.
1151 * avr-tdep.c (avr_gdbarch_init): Update.
1152 * arm-tdep.c (arm_gdbarch_init): Update.
1153 * alpha-tdep.c (alpha_gdbarch_init): Update.
1154 * d10v-tdep.c (d10v_gdbarch_init): Do not set
1155 max_register_raw_size or max_register_virtual_size.
1156
8e437497
DC
11572003-03-03 David Carlton <carlton@math.stanford.edu>
1158
1159 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
1160 SYMBOL_MATCHES_NAME, add comment.
1161 (SYMBOL_MATCHES_NATURAL_NAME): New.
1162 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
1163 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
1164 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
1165 * symtab.c (lookup_partial_symbol): Use
1166 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
1167 unhelpful comment.
1168 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
1169 SYMBOL_MATCHES_NAME.
1170 Fix for PR c++/33.
1171
25120b0d
DC
11722003-03-03 David Carlton <carlton@math.stanford.edu>
1173
1174 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
1175 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
1176 by regexp matching against SYMBOL_NATURAL_NAME.
1177
78a11fb4
DC
11782003-03-03 David Carlton <carlton@math.stanford.edu>
1179
1180 * linespec.c (find_method): Extract code into collect_methods.
1181 (collect_methods): New.
1182
645dd519
MK
11832003-03-02 Mark Kettenis <kettenis@gnu.org>
1184
b4700d91
MK
1185 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
1186 get_frame_base.
1187
645dd519
MK
1188 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
1189 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
1190
0aa7e1aa
SC
11912003-03-02 Stephane Carrez <stcarrez@nerim.fr>
1192
1193 * arch-utils.c (generic_register_byte): Fix to use the loop index
1194 and not regnum when summing the size of all registers up to regnum.
1195
f30ee0bc
AC
11962003-03-01 Andrew Cagney <cagney@redhat.com>
1197
1198 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
1199 FRAME_INIT_SAVED_REGS.
1200 * gdbarch.h, gdbarch.c: Regenerate.
1201 * stack.c (frame_info): Update.
1202 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
1203 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
1204 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
1205 * ns32k-tdep.c (ns32k_pop_frame): Update.
1206 * mips-tdep.c (mips_pop_frame): Update.
1207 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
1208 * ia64-tdep.c (ia64_frame_chain): Update.
1209 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
1210 (ia64_frameless_function_invocation): Update.
1211 (ia64_init_extra_frame_info): Update.
1212 (ia64_pop_frame_regular): Update.
1213 * frame.h (struct frame_info): Update comment.
1214 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
1215 * frame.c (frame_saved_regs_register_unwind): Update.
1216 (frame_saved_regs_register_unwind): Update.
1217 (deprecated_generic_get_saved_register): Update.
1218 * cris-tdep.c: Update comment.
1219 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
1220 Rename macro.
1221 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1222 * x86-64-tdep.c (x86_64_init_abi): Update.
1223 * vax-tdep.c (vax_gdbarch_init): Update.
1224 * v850-tdep.c (v850_gdbarch_init): Update.
1225 * sparc-tdep.c (sparc_gdbarch_init): Update.
1226 * sh-tdep.c (sh_gdbarch_init): Update.
1227 * s390-tdep.c (s390_gdbarch_init): Update.
1228 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1229 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1230 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1231 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1232 * mips-tdep.c (mips_gdbarch_init): Update.
1233 * mcore-tdep.c (mcore_gdbarch_init): Update.
1234 * m68k-tdep.c (m68k_gdbarch_init): Update.
1235 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1236 * ia64-tdep.c (ia64_gdbarch_init): Update.
1237 * i386-tdep.c (i386_gdbarch_init): Update.
1238 * frv-tdep.c (frv_gdbarch_init): Update.
1239 * avr-tdep.c (avr_gdbarch_init): Update.
1240 * arm-tdep.c (arm_gdbarch_init): Update.
1241 * alpha-tdep.c (alpha_gdbarch_init): Update.
1242
42fa7c0f
AC
12432003-03-01 Andrew Cagney <cagney@redhat.com>
1244
1245 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
1246 option enum and switch. When no windows, set the interpreter to
1247 INTERP_CONSOLE.
1248
49c7e338
AC
12492003-03-01 Andrew Cagney <cagney@redhat.com>
1250
1251 * main.c (captured_main): Replace magic option characters with an
1252 enum.
1253
e9582e71
AC
12542003-03-01 Andrew Cagney <cagney@redhat.com>
1255
1256 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
1257 INIT_EXTRA_FRAME_INFO.
1258 * gdbarch.h, gdbarch.c: Regenerate.
1259 * arm-tdep.c: Update comments.
1260 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
1261 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
1262 * frame.h, avr-tdep.c: Ditto.
1263 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
1264 (create_new_frame, legacy_get_prev_frame): Ditto.
1265 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
1266 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
1267 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
1268 deprecated_init_extra_frame_info instead of init_extra_frame_info.
1269 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1270 * v850-tdep.c (v850_gdbarch_init): Ditto.
1271 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1272 * sh-tdep.c (sh_gdbarch_init): Ditto.
1273 * s390-tdep.c (s390_gdbarch_init): Ditto.
1274 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1275 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1276 * mips-tdep.c (mips_gdbarch_init): Ditto.
1277 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1278 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1279 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1280 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1281 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1282 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1283 * frv-tdep.c (frv_gdbarch_init): Ditto.
1284 * cris-tdep.c (cris_gdbarch_init): Ditto.
1285 * avr-tdep.c (avr_gdbarch_init): Ditto.
1286 * arm-tdep.c (arm_gdbarch_init): Ditto.
1287 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1288 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1289
35cac7cf
AC
12902003-03-01 Andrew Cagney <cagney@redhat.com>
1291
1292 * gdbarch.sh (register_type): New function with predicate.
1293 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
1294 * gdbarch.h, gdbarch.c: Re-generate.
1295 * arch-utils.c (generic_register_byte): Use generic_register_size.
1296 (generic_register_size): When available, use
1297 gdbarch_register_type.
1298 * regcache.c (init_regcache_descr): When available, initialize the
1299 register type array using gdbarch_register_type. If the
1300 architecture supplies gdbarch_register_type, do not use the legacy
1301 regcache layout.
1302 * d10v-tdep.c (d10v_register_type): Replace
1303 d10v_register_virtual_type.
1304 (d10v_gdbarch_init): Set register_type instead of
1305 register_virtual_type.
1306
7b83296f
AC
13072003-03-01 Andrew Cagney <cagney@redhat.com>
1308
1309 * Makefile.in (ax-gdb.o): Update dependencies.
1310 * ax-gdb.c: Include "regcache.h".
1311 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
1312 * findvar.c (value_of_register): Ditto.
1313 * infcmd.c (default_print_registers_info): Ditto.
1314
eadc1c87
MK
13152003-03-01 Mark Kettenis <kettenis@gnu.org>
1316
1317 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
1318 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
1319
14143612
MK
13202003-03-01 Mark Kettenis <kettenis@gnu.org>
1321
1322 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
1323 of STREQ.
1324
a55cc764
DJ
13252003-02-28 Daniel Jacobowitz <drow@mvista.com>
1326
1327 * Makefile.in (dwarf2loc.o): Update dependencies.
1328 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
1329 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
1330 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
1331 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
1332 (locexpr_tracepoint_var_ref): New function.
1333 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
1334
08a617da
AC
13352003-02-28 Andrew Cagney <cagney@redhat.com>
1336
1337 * regcache.c (register_size): New function.
1338 * regcache.h (register_size): Declare
1339 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
1340 max_register_size instead of MAX_REGISTER_RAW_SIZE.
1341
4224873a
DC
13422003-02-28 David Carlton <carlton@math.stanford.edu>
1343
1344 * linespec.c (decode_compound): Extract code into find_method.
1345 (find_method): New.
1346
ccdc5d7f
JB
13472003-02-28 J. Brobecker <brobecker@gnat.com>
1348
1349 * Makefile.in: Add rules to build and link in observer.o.
1350
974e8ced
JB
13512003-02-27 J. Brobecker <brobecker@gnat.com>
1352
1353 * observer.c: Minor comments edits.
1354
7a28f973
JB
13552003-02-27 J. Brobecker <brobecker@gnat.com>
1356
1357 * observer.h, observer.c: New file.
1358
27cddce2
AC
13592003-02-27 Andrew Cagney <cagney@redhat.com>
1360
1361 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
1362
b94a41a1
SC
13632003-02-27 Stephane Carrez <stcarrez@nerim.fr>
1364
1365 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
1366 (M6812_OP_STS_EXT): Likewise.
1367 (m6811_prologue): Use the above to recognize prologue.
1368 (m6812_prologue): Likewise.
1369
c8be8951
DC
13702003-02-27 David Carlton <carlton@math.stanford.edu>
1371
1372 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
1373 SYMBOL_PRINT_NAME.
1374 (compare_psymbols): Ditto.
1375 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
1376
d05bb1fc
MS
13772003-02-27 Michael Snyder <msnyder@redhat.com>
1378
4e845cd3
MS
1379 * f-lang.c (build_fortran_types): New function.
1380 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
1381 * doublest.c (extract_floating): Fix warning text.
1382
f3824013
AC
13832003-02-27 Andrew Cagney <cagney@redhat.com>
1384
1385 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
1386 predicate. Replaces PUSH_DUMMY_FRAME.
1387 * gdbarch.h, gdbarch.c: Regnerate.
1388 * valops.c (hand_function_call): Update. Call
1389 generic_push_dummy_frame directly.
1390 * vax-tdep.c (vax_gdbarch_init): Update.
1391 * sparc-tdep.c (sparc_gdbarch_init): Update.
1392 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1393 * m68k-tdep.c (m68k_gdbarch_init): Update.
1394 * hppa-tdep.c (hppa_gdbarch_init): Update.
1395 * alpha-tdep.c (alpha_gdbarch_init): Update.
1396 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
1397 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
1398 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
1399 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
1400 push_dummy_frame to generic_push_dummy_frame.
1401 * v850-tdep.c (v850_gdbarch_init): Ditto.
1402 * sh-tdep.c (sh_gdbarch_init): Ditto.
1403 * s390-tdep.c (s390_gdbarch_init): Ditto.
1404 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1405 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1406 * mips-tdep.c (mips_gdbarch_init): Ditto.
1407 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1408 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1409 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1410 * i386-tdep.c (i386_gdbarch_init): Ditto.
1411 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1412 * frv-tdep.c (frv_gdbarch_init): Ditto.
1413 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1414 * cris-tdep.c (cris_gdbarch_init): Ditto.
1415 * avr-tdep.c (avr_gdbarch_init): Ditto.
1416 * arm-tdep.c (arm_gdbarch_init): Ditto.
1417
ad188201
KB
14182003-02-26 Kevin Buettner <kevinb@redhat.com>
1419
1420 * mips-tdep.c (show_mips_abi): New function.
1421 (_initialize_mips_tdep): Use show_mips_abi() to implement the
1422 command ``show mips abi''.
1423
6b37567a
JJ
14242003-02-26 Jeff Johnston <jjohnstn@redhat.com>
1425
1426 From Elena Zannoni <ezannoni@redhat.com>
1427 * dbxread.c (process_one_symbol): Only record line 0 if one or
1428 more sline entries have been seen for the function.
1429
d3e0a5bf
MC
14302003-02-26 Michael Chastain <mec@shout.net>
1431
1432 * configure: Regenerate with autoconf 000227.
1433
18972eea
MC
14342003-02-26 Michael Chastain <mec@shout.net>
1435
1436 Close PR build/660.
1437 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
1438 for old libc5/glibc.
1439 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
1440
0bbde931
KW
14412003-02-26 Kris Warkentin <kewarken@qnx.com>
1442
1443 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
1444 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
1445
27ca5dad
MC
14462003-02-26 Michael Chastain <mec@shout.net>
1447
1448 * configure.in: New variable HAVE_UINTPTR_T.
1449 * configure, config.in: Regenerated.
1450
6f88d630
DJ
14512003-02-26 Daniel Jacobowitz <drow@mvista.com>
1452
1453 Fix PR build/1097.
1454 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
1455
b14185ce
AC
14562003-02-25 Andrew Cagney <cagney@redhat.com>
1457
1458 * frame.c (get_prev_frame): Add comment on check for
1459 inside_entry_func. Only check for inside_entry_file when not a
1460 dummy and not a sentinel. Check that the new frame is not inner
1461 to the old frame.
1462
ac2bd0a9
AC
14632003-02-25 Andrew Cagney <cagney@redhat.com>
1464
1465 * frame.c (frame_debug): New variable.
1466 (_initialize_frame): Add "set/show debug frame" command.
1467 (get_prev_frame): When frame_debug, print reason why unwind
1468 failed.
1469
b18a0fd2
MC
14702003-02-25 Michael Chastain <mec@shout.net>
1471
1472 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
1473 to avoid uintptr_t definition problems.
1474
22abf04a
DC
14752003-02-25 David Carlton <carlton@math.stanford.edu>
1476
1477 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
1478 (SYMBOL_LINKAGE_NAME): Ditto.
1479 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
1480 SYMBOL_LINKAGE_NAME.
1481 (struct general_symbol_info): Expand comment.
1482 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
1483 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
1484 (SYMBOL_MATCHES_REGEXP): Ditto.
1485 * symtab.c (symbol_natural_name): New function.
1486 * objfiles.h: Replace all uses of SYMBOL_NAME by
1487 DEPRECATED_SYMBOL_NAME.
1488 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
1489 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
1490 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
1491 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
1492 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
1493 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
1494 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
1495 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
1496 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
1497 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
1498 * ada-exp.y: Ditto.
1499 * ada-exp.y: Update copyright.
1500 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
1501 * cp-valprint.c: Ditto.
1502
1a5848f6
JJ
15032003-02-25 Jeff Johnston <jjohnstn@redhat.com>
1504
1505 * infptrace.c (detach): Do not flag error if ptrace detach fails
1506 and errno is set to ESRCH.
1507
7343d46a
AC
15082003-02-24 Andrew Cagney <cagney@redhat.com>
1509
1510 * infptrace.c (udot_info): Change type of udot_off to long. Use
1511 paddr when printing udot_off's value.
1512
49fa1dc2
DC
15132003-02-24 David Carlton <carlton@math.stanford.edu>
1514
1515 * symtab.c (make_symbol_overload_list): Only read in partial
1516 symtabs containing a matching partial symbol.
1517
0fe19209
DC
15182003-02-24 David Carlton <carlton@math.stanford.edu>
1519
1520 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
1521 do the comparison, not strcmp.
1522 * symfile.c (compare_psymbols): Ditto.
1523 * defs.h: Declare strcmp_iw_ordered.
1524 * utils.c (strcmp_iw_ordered): New function.
1525
8e3ee7b5
JB
15262003-02-24 Jim Blandy <jimb@redhat.com>
1527
1528 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
1529 support, shared libs): Remove my name from here, to better reflect
1530 reality.
1531
7df1a324
KW
15322003-02-24 Kris Warkentin <kewarken@qnx.com>
1533
1534 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
1535 (target_ops): Add to_have_continuable_watchpoint.
1536 * target.c (update_current_target): Add INHERIT line for
1537 to_have_continuable_watchpoint.
1538 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
1539 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
1540 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
1541 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
1542
d1c76907
EZ
15432003-02-24 Elena Zannoni <ezannoni@redhat.com>
1544
1545 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
1546 maintainership.
1547
2610b0bf
KW
15482003-02-24 Kris Warkentin <kewarken@qnx.com>
1549
f46169db
KW
1550 * solib.c (solib_open): Call target defined search function after
1551 failing with solib-search-path.
1552 * solist.h (target_so_ops): Add find_and_open_solib function hook and
1553 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 1554
9a3c34fe
KW
15552003-02-24 Kris Warkentin <kewarken@qnx.com>
1556
f46169db 1557 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 1558
2417dd25
SC
15592003-02-23 Stephane Carrez <stcarrez@nerim.fr>
1560
1561 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
1562
b631436b
SC
15632003-02-22 Stephane Carrez <stcarrez@nerim.fr>
1564
1565 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
1566 (m68hc11_add_reggroups): New function.
1567 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
1568 (m68hc11_gdbarch_init): Install the reggroups.
1569 (_initialize_m68hc11_tdep): Initialize them.
1570
0aa8c1e4
JW
15712003-02-21 James E Wilson <wilson@tuliptree.org>
1572
1573 * MAINTAINERS: Update my email address.
1574
50ceaba5
DC
15752003-02-21 David Carlton <carlton@math.stanford.edu>
1576
1577 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
1578
4c2df51b
DJ
15792003-02-21 Daniel Jacobowitz <drow@mvista.com>
1580
1581 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
1582 * symtab.h: Add opaque declarations of struct axs_value and
1583 struct agent_expr.
1584 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
1585 (struct location_funcs): New type.
1586 (struct symbol): Add "loc" to aux_value.
1587 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
1588 * dwarf2read.c: Include "dwarf2expr.h".
1589 (dwarf2_symbol_mark_computed): New function.
1590 (read_func_scope): Use it.
1591 (var_decode_location): New function.
1592 (new_symbol): Use it.
1593 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
1594
1595 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
1596 (dwarf2expr_h, dwarf2loc_h): New variables.
1597 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
1598 (dwarf2expr.o, dwarf2loc.o): New rules.
1599 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
1600 * buildsym.c (finish_block): Handle LOC_COMPUTED and
1601 LOC_COMPUTED_ARG.
1602 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
1603 * m2-exp.y (yylex): Likewise.
1604 * printcmd.c (address_info, print_frame_args): Likewise.
1605 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
1606 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
1607 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
1608 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
1609 * symtab.c (lookup_block_symbol): Likewise.
1610
5784d15e
AF
16112003-02-20 Adam Fedor <fedor@gnu.org>
1612
1613 * symtab.h: Remove objc_specific struct
1614 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
1615 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
1616 Have language_objc use cplus_specific struct.
1617
d4cad8db
TT
16182003-02-20 Tom Tromey <tromey@redhat.com>
1619
1620 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
1621 TYPE_NAME, when printing a String value. PR java/1075.
1622
2f9a90b4
AF
16232003-02-20 Adam Fedor <fedor@gnu.org>
1624
d38074a8 1625 * objc-lang.h (find_methods): Remove declaration.
2f9a90b4
AF
1626 * objc-lang.c (find_methods): Make static.
1627
6f17862b
CF
16282003-02-20 Christopher Faylor <cgf@redhat.com>
1629
1630 * win32-nat.c (get_image_name): Check return value from
1631 ReadProcessMemory.
1632 (child_xfer_memory): Ditto.
1633
715d1656
AO
16342003-02-20 Alexandre Oliva <aoliva@redhat.com>
1635
1636 * configure.in (TARGET_SYSTEM_ROOT): Set default to
1637 ${exec_prefix}/${target_alias}/sys-root. Match explicit
1638 '${exec_prefix}' (in addition to the expansion thereof) as
1639 relocatable.
1640 * configure: Rebuilt.
1641
b1262a02
DC
16422003-02-20 David Carlton <carlton@math.stanford.edu>
1643
1644 * symtab.c (search_symbols): Revert the search_symbols part of my
1645 2002-12-23 patch. Add comment.
1646
7134143f
DJ
16472002-02-20 Daniel Jacobowitz <drow@mvista.com>
1648
1649 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
1650 * dbxread.c (elfstab_build_psymtabs): Don't call
1651 install_minimal_symbols.
1652 (stabsect_build_psymtabs): Likewise.
1653 * elfread.c (elf_symfile_read): Call install_minimal_symbols
1654 earlier.
1655 * somread.c (som_symfile_read): Call install_minimal_symbols
1656 and do_cleanups earlier.
1657 * nlmread.c (nlm_symfile_read): Likewise.
1658 * mdebugread.c (elfmdebug_build_psymtabs): Call
1659 install_minimal_symbols and make appropriate cleanups.
1660
cf466558
KB
16612003-02-20 Kevin Buettner <kevinb@redhat.com>
1662
1663 * solib.c (reload_shared_libraries): New function.
1664 (_initialize_solib): Add callbacks for ``set solib-search-path''
1665 and ``set solib-absolute-prefix''.
1666
de5ad195
DC
16672003-02-20 David Carlton <carlton@math.stanford.edu>
1668
1669 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
1670 expand comment.
1671 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
1672 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
1673 * ada-typeprint.c (ada_typedef_print): Ditto.
1674 * ax-gdb.c (gen_var_ref): Ditto.
1675 * breakpoint.c (print_one_breakpoint): Ditto.
1676 * buildsym.c (finish_block): Ditto.
1677 * c-valprint.c (c_val_print): Ditto.
1678 * expprint.c (print_subexp): Ditto.
1679 * findvar.c (locate_var_value): Ditto.
1680 * infcmd.c (jump_command): Ditto.
1681 * linespec.c (decode_line_2, decode_compound): Ditto.
1682 * maint.c (maintenance_translate_address): Ditto.
1683 * objc-lang.c (compare_selectors, compare_classes): Ditto.
1684 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
1685 Ditto.
1686 * p-valprint.c (pascal_val_print): Ditto.
1687 * stabsread.c (define_symbol): Ditto.
1688 * stack.c (print_frame, frame_info, print_block_frame_locals)
1689 (print_frame_arg_vars, return_command): Ditto.
1690 * symfile.c (compare_symbols, compare_psymbols): Ditto.
1691 * symmisc.c (print_symbol): Ditto.
1692 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
1693 (compare_search_syms, print_symbol_info, print_msymbol_info)
1694 (rbreak_command): Ditto.
1695 * tracepoint.c (tracepoints_info): Ditto.
1696 * typeprint.c (typedef_print): Ditto.
1697 * valops.c (value_of_variable, hand_function_call): Ditto.
1698 * cli/cli-cmds.c (edit_command, list_command): Ditto.
1699 * ada-typeprint.c: Update Copyright.
1700 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
1701 * tracepoint.c, cli/cli-cmds.c: Ditto.
1702
f796e4be
KB
17032003-02-20 Kevin Buettner <kevinb@redhat.com>
1704
1705 * frame.c (generic_unwind_get_saved_register): Make non-static.
1706 * frame.h (generic_unwind_get_saved_register): Declare.
1707 * mips-tdep.c (read_next_frame_reg): Fetch register from
1708 current regcache when frame is NULL.
1709 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
1710 that must be NULL.
1711 (mips_get_saved_register): Call generic_unwind_get_saved_register()
1712 instead of frame_register_unwind().
1713
836cc9f4
AC
17142003-02-20 Andrew Cagney <ac131313@redhat.com>
1715
1716 * remote-sim.c (gdbsim_insert_breakpoint)
1717 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
1718 code.
1719
501eef12
AC
17202003-02-20 Andrew Cagney <ac131313@redhat.com>
1721
1722 * remote.c (_initialize_remote): Add commands "set/show remote
1723 hardware-watchpoint-limit" and "set/show remote
1724 hardware-breakpoint-limit".
1725 (remote_hw_watchpoint_limit): Initialize to -1.
1726 (remote_hw_breakpoint_limit): Ditto.
1727 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
1728
1b6bc7e0
CF
17292003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
1730
1731 * coff-pe-read.c: New file - support reading of minimal symbols from a
1732 portable executable using the export table.
1733 * coff-pe-read.h: New file.
1734 * coffread.c: Include coff-pe-read.h.
1735 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
1736 debugging symbols found.
1737 * Makefile.in (SFILES): Add coff-pe-read.o.
1738 (coff_pe_read_h): Define.
1739 (COMMON_OBS): Add coff-pe-read.o.
1740 (coffread.o): Add coff_pe_read_h dependency.
1741 (coff-pe-read.o): New target.
1742
fe898f56
DC
17432003-02-19 David Carlton <carlton@math.stanford.edu>
1744
1745 * Makefile.in (SFILES): Add block.c.
1746 (block_h): New.
1747 (COMMON_OBS): Add block.o.
1748 (block.o): New.
1749 (x86-64-tdep.o): Add $(block_h).
1750 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
1751 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
1752 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
1753 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
1754 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
1755 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
1756 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
1757 * value.h: Add opaque declaration for struct block.
1758 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
1759 * ada-lang.h: Ditto.
1760 * x86-64-tdep.c: #include "block.h"
1761 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
1762 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
1763 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
1764 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
1765 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
1766 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
1767 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
1768 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
1769 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
1770 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
1771 * symtab.c (block_function): Ditto.
1772 (contained_in): Ditto.
1773 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
1774 block.h. Add opaque declaration for struct block.
1775 * symtab.h: Move block_function and contained_in declarations to
1776 block.h. Add opaque declarations for struct block, struct
1777 blockvector.
1778 (struct block): Move to block.h.
1779 (struct blockvector): Ditto.
1780 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
1781 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
1782 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
1783 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
1784 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
1785 Ditto.
1786 * block.c: New file.
1787 * block.h: New file.
1788
173345b5
TR
17892003-02-19 Theodore A. Roth <troth@openavr.org>
1790
1791 * avr-tdep.c (avr_extract_return_value): Remove function.
1792 (avr_store_return_value): Remove function.
1793 (avr_extract_struct_value_address): Remove function.
1794 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
1795
338ef23d
AC
17962003-02-19 Andrew Cagney <ac131313@redhat.com>
1797
1798 * rs6000-tdep.c: Include "gdb_assert.h".
1799 (registers_e500): Add "acc" and "spefscr".
1800 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
1801 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
1802 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
1803 really is "r0".
1804 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
1805
5412f5f3
KS
18062003-02-18 Keith Seitz <keiths@redhat.com>
1807
1808 * Makefile.in: Add gdbtk-interps.c.
1809
881324eb
KB
18102003-02-18 Kevin Buettner <kevinb@redhat.com>
1811
1812 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
1813 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
1814
6a2f5abf
AC
18152003-02-18 Andrew Cagney <cagney@redhat.com>
1816
1817 * symtab.h (struct objfile): Add opaque declaration.
1818
54c7009d
EZ
18192003-02-18 Elena Zannoni <ezannoni@redhat.com>
1820
1821 From Jim Ingham <jingham@apple.com>:
1822 * dbxread.c (process_one_symbol): Use last_function_start rather
1823 than function_start_offset to find the real beginning of the
1824 current function. The latter is just the text section offset on
1825 some systems, the former is always the real function start.
1826
7ee6d7eb
AC
18272003-02-17 Andrew Cagney <cagney@redhat.com>
1828
1829 * configure.in: Revert ${target} != ${host}.
1830
2846da9b
AC
18312003-02-17 Andrew Cagney <ac131313@redhat.com>
1832
1833 * configure.in (Makefile): Use the test ${target} != ${host},
1834 instead of the absence of the "nm.h" file, to determine of the
1835 configuration non-native.
1836 * configure: Regenerate.
1837
3b27aeea
EZ
18382003-02-14 Elena Zannoni <ezannoni@redhat.com>
1839
1840 From Brian Ford <ford@vss.fsi.com>
1841
1842 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
1843 conditionalize tui_active test.
1844 (lookup_cmd_1): Ditto.
1845
b0b1c2c0
MK
18462003-02-14 Mark Kettenis <kettenis@gnu.org>
1847
1848 * configure.in: Add check for _etext.
1849 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
1850 available.
1851 * config.in, configure: regenerated.
1852
8f05cde5
DJ
18532003-02-14 Daniel Jacobowitz <drow@mvista.com>
1854
1855 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
1856
021e7609
AC
18572003-02-14 Andrew Cagney <ac131313@redhat.com>
1858
1859 * main.c (tui_version): Delete variable.
1860 (captured_main): When --tui, set interpreter_p to "tui" instead of
1861 enabling tui_version.
1862 * printcmd.c (display_command) [TUI]: Test tui_active instead of
1863 tui_version.
1864 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
1865 * cli/cli-cmds.c (disassemble_command): Ditto.
1866 * defs.h (tui_version): Delete declaration.
1867 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
1868 (tui-interp.o): Add rules.
1869 (SUBDIR_TUI_OBS): Add "tui-interp.o".
1870
e325dcec
CF
18712003-02-14 Christopher Faylor <cgf@redhat.com>
1872
36ffb041 1873 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
1874 just-loaded dll.
1875
c4f90d87
JM
18762003-02-12 Jason Molenda (jmolenda@apple.com)
1877
1878 * symmisc.c (print_objfile_statistics): Include information about
1879 the number of psymtabs and symtabs in each object file.
1880
e46e5ccd
KS
18812003-02-13 Keith R Seitz <keiths@redhat.com>
1882
1883 * main.h (struct captured_main_args): Add interpreter_p.
1884 * main.c (captured_main): Initialize interpreter_p from context.
1885 * gdb.c (main): Set interpreter_p argument.
1886 * Makefile.in (gdb.o): Add dependency for interps.h.
1887
fe97fe9c
AC
18882003-02-12 Andrew Cagney <ac131313@redhat.com>
1889
1890 * event-top.c (cli_command_loop): Delete declaration.
1891 (_initialize_event_loop): Delete function setting event_loop_hook.
1892 * event-top.h (cli_command_loop): Declare. Update copyright.
1893 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
1894 * interps.c (current_interp_command_loop): When event_loop_p, call
1895 cli_command_loop.
1896
1cdac4ef
AC
18972003-02-12 Andrew Cagney <ac131313@redhat.com>
1898
1899 * interps.h (interp_command_loop_ftype): Change return type to
1900 void.
1901
48037ead
ML
19022003-02-12 Michal Ludvig <mludvig@suse.cz>
1903
1904 * x86-64-tdep.c (x86_64_extract_return_value)
1905 (x86_64_store_return_value): Use regcache instead of regbuf.
1906 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
1907 * x86-64-linux-nat.c (fill_gregset): Use regcache.
1908
033afc63
AC
19092003-02-11 Andrew Cagney <ac131313@redhat.com>
1910
1911 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
1912 * aclocal.m4: Regenerate.
1913 * configure: Regenerate.
1914
1915 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
1916 TCL_LD_SEARCH_FLAGS.
1917
40d02bca
ML
19182003-02-10 Michal Ludvig <mludvig@suse.cz>
1919
1920 * dwarf2cfi.c: Reindented.
1921
11308a41
AC
19222003-02-09 Andrew Cagney <ac131313@redhat.com>
1923
1924 * interps.c (clear_interpreter_hooks): Convert function definition
1925 to ISO C.
1926
e1c1c0f6
DC
19272003-02-07 David Carlton <carlton@math.stanford.edu>
1928
1929 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
1930
ab5d3da6
KB
19312003-02-07 Kevin Buettner <kevinb@redhat.com>
1932
1933 * gdbtypes.h (struct main_type): Move ``length'' field from here...
1934 (struct type): ...to here.
1935 (TYPE_LENGTH): Adjust to reflect different location of ``length''
1936 field.
1937 * gdbtypes.c (make_qualified_type): Set length on newly created type.
1938 (replace_type): Set length on all type variants for a given type.
1939
b8a92b82
AC
19402003-02-07 Andrew Cagney <ac131313@redhat.com>
1941
1942 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
1943 <sys/stat.h>.
1944 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
1945
5cb316ef
AC
19462003-02-06 Andrew Cagney <ac131313@redhat.com>
1947
2555fe1a
AC
1948 * Makefile.in (symm-nat.o): Update dependencies.
1949 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
1950 (lynx-nat.o, ia64-linux-nat.): Ditto.
1951 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
1952 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
1953 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
1954
44270758
AC
1955 * Makefile.in (inflow_h): Define.
1956 (procfs.o, inflow.o, procfs.o): Update dependencies.
1957 * inftarg.c (child_stop): Delete extern declaration of
1958 inferior_process_group. Include "inflow.h".
1959 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
1960 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
1961 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
1962 (our_process_group, inferior_process_group): Extern declarations.
1963
df8f7274
AC
1964 * procfs.c: Include "gdb_assert.h".
1965
5cb316ef
AC
1966 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
1967 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
1968 * jv-typeprint.c (java_type_print_base): Ditto.
1969 * typeprint.c (typedef_print): Eliminate STREQ.
1970 * cli/cli-script.c (define_command, define_command): Ditto.
1971 * main.c (captured_main): Ditto.
1972 * values.c (lookup_internalvar): Ditto.
1973 * utils.c (safe_strerror, parse_escape): Eliminate assignment
1974 within `if' conditional.
1975 * linespec.c (decode_line_2): Ditto.
1976 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
1977 (bfd_openw_with_cleanup): Ditto.
1978
2a28ccea
MK
19792003-02-07 Mark Kettenis <kettenis@gnu.org>
1980
1981 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
1982 legacy_extract_return_value and store_return_value to
1983 legacy_return_value.
1984
786b8124
CF
19852003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
1986
1987 * win32-nat.c (get_relocated_section_addrs): New function. Find
1988 section load addresses for symbol handling in relocated DLLs.
1989 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
1990
b871e4ec
FF
19912003-02-05 Fred Fish <fnf@intrinsity.com>
1992
1993 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
1994 '=' and '!='.
1995 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
1996 with '&' and '=='.
1997 (angel_RDI_info): Ditto.
1998 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
1999 with '&' and '!='.
2000 (threads_continue_all_with_signals): Ditto.
2001
4389a95a
AC
20022003-02-05 Jim Ingham <jingham@apple.com>
2003 Keith Seitz <keiths@redhat.com>
2004 Elena Zannoni <ezannoni@redhat.com>
2005 Andrew Cagney <ac131313@redhat.com>
2006
2007 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
2008 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
2009 (SUBDIR_MI_OBS): Add "mi-interp.o".
2010 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
2011 (SFILES): Add "interps.c".
2012 (COMMON_OBS): Add "interps.o".
2013 (interps_h, mi_main_h): Define.
2014 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
2015 (mi-main.o, main.o, event-top.o): Update dependencies.
2016 * cli/cli-interp.c: New file.
2017 * interps.h, interps.c: New files.
2018 * top.c: (gdb_init): Don't install the default interpreter, handed
2019 by captured_main.
2020 * main.c: Include "interps.h".
2021 (interpreter_p): Note that it should malloc'ed.
2022 (captured_command_loop): Call current_interp_command_loop.
2023 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
2024 xfree and xstrdup when updating interpreter_p. Install the
2025 default interpreter. Add hack to stop mi1's copyright notice
2026 being encoded.
2027 * event-top.h (gdb_setup_readline): Declare.
2028 (gdb_disable_readline): Declare.
2029 * event-top.c: Include "interps.h".
2030 (display_gdb_prompt): Call current_interp_display_prompt_p.
2031 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
2032 gdb_stdlog, and gdb_stdtarg.
2033 (_initialize_event_loop): Don't call gdb_setup_readline.
2034 * cli-out.c (cli_out_set_stream): New function.
2035 * cli-out.h (cli_out_set_stream): Declare.
2036
ff3b5810
MK
20372003-02-06 Mark Kettenis <kettenis@gnu.org>
2038
2039 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
2040 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
2041 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
2042 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
2043 config/i386/i386v42mp.mt: Removed.
2044
5b729aa5
MK
20452003-02-05 Mark Kettenis <kettenis@gnu.org>
2046
2047 * configure.tgt (*-*-solaris*): Set gdb_osabi to
2048 GDB_OSABI_SOLARIS.
2049
8cc15142
MC
20502003-02-05 Michael Chastain <mec@shout.net>
2051
2052 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
2053 2.12.1 and earlier versions.
2054
5aa5d4b9
AC
20552003-02-05 Andrew Cagney <ac131313@redhat.com>
2056
2057 Remove orphaned hosts, targets and files.
2058 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
2059 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
2060 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
2061 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
2062 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
2063 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
2064 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
2065 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
2066 * config/sparc/tm-sp64sim.h: Delete.
2067 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
2068 hosts.
2069 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
2070 mips*-dec-mach3* targets.
2071
b68767c1
MC
20722003-02-04 Michael Chastain <mec@shout.net>
2073
2074 * NEWS: Fix typo: sepcifying -> specifying.
2075
5ae7ca1d
MC
20762003-02-04 Michael Chastain <mec@shout.net>
2077
2078 * dwarfread.c: Add documentation on the state of dwarf-1,
2079 looking towards obsoletion.
2080
d08a4280
MC
20812003-02-03 Michael Chastain <mec@shout.net>
2082
2083 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
2084 gdb/testsuite/gdb.c++/pr-1023.exp.
2085
e9be73e4
AC
20862003-02-04 Andrew Cagney <ac131313@redhat.com>
2087
2088 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
2089 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
2090
2091 * utils.c (init_page_info): Delete reference to MPW in comments.
2092 * main.c (captured_main): Delete #ifdef MPW.
2093
05d57f6f
AC
20942003-02-04 Andrew Cagney <ac131313@redhat.com>
2095
2096 * NEWS: Note that the m32r-*-elf* is obsolete.
2097 * monitor.c (monitor_expect): Obsolete reference to m32r.
2098 * configure.tgt: Mark m32r-*-elf* as obsolete.
2099 * MAINTAINERS: Mark m32k as obsolete.
2100 * m32r-rom.c: Obsolete file.
2101 * config/m32r/m32r.mt: Obsolete file.
2102 * config/m32r/tm-m32r.h: Obsolete file.
2103 * m32r-stub.c: Obsolete file.
2104 * m32r-tdep.c: Obsolete file.
2105
8b0e5691
AC
21062003-02-04 Andrew Cagney <ac131313@redhat.com>
2107
2108 * NEWS: Mention that the z8k-zilog-none is obsolete.
2109 * MAINTAINERS: Mark z8k as obsolete.
2110 * configure.tgt: Obsolete the z8k-*-coff* target.
2111 * config/z8k/z8k.mt: Obsolete file.
2112 * config/z8k/tm-z8k.h: Obsolete file.
2113 * z8k-tdep.c: Obsolete file.
2114
67f16606
AC
21152003-02-04 Andrew Cagney <ac131313@redhat.com>
2116
2117 * NEWS: Mention that the mn10200-elf is obsolete.
2118 * configure.tgt: Obsolete mn10200-*-* target.
2119 * breakpoint.c (update_breakpoints_after_exec): Update comment to
2120 mention that the mn10200 is obsolete.
2121 * breakpoint.h: Ditto.
2122 * MAINTAINERS: Mark the mn10200-elf as obsolete.
2123 * config/mn10200/mn10200.mt: Obsolete file.
2124 * config/mn10200/tm-mn10200.h: Obsolete file.
2125 * mn10200-tdep.c: Obsolete file.
2126
fd2299bd
AC
21272003-02-04 Andrew Cagney <ac131313@redhat.com>
2128
2129 * MAINTAINERS: Mark h8500 as obsolete.
2130 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
2131 * findvar.c (value_from_register): Ditto.
2132 * h8500-tdep.c: Mark file as obsolete.
2133 * config/h8500/h8500.mt: Ditto.
2134 * config/h8500/tm-h8500.h: Ditto.
2135 * NEWS: Mention that h8500 is obsolete.
2136
eb9a305d
DC
21372003-02-04 David Carlton <carlton@math.stanford.edu>
2138
2139 * objfiles.c (allocate_objfile): Always set name. Add comment at
2140 start of function.
2141 * jv-lang.c (get_dynamics_objfile): Add comment.
2142
406fc7fb
DC
21432003-02-04 David Carlton <carlton@math.stanford.edu>
2144
2145 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
2146 * printcmd.c (build_address_symbolic): Replace uses of
2147 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
2148 SYMBOL_NAME, and asm_demangle.
2149 Update copyright.
2150
93d91629
DC
21512003-02-04 David Carlton <carlton@math.stanford.edu>
2152
2153 * linespec.c (decode_compound): Extract code into
2154 lookup_prefix_sym.
2155 (lookup_prefix_sym): New function.
2156
1c5cb38e
DC
21572003-02-04 David Carlton <carlton@math.stanford.edu>
2158
2159 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
2160 FLOAT_COERCION_BADNESS.
2161 * gdbtypes.c (rank_one_type): Replace all uses of
2162 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
2163
0cf824c9
JB
21642003-02-04 Jim Blandy <jimb@redhat.com>
2165
2166 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
2167 section, let dwarf_macinfo_section point to it, not
2168 dwarf_loc_section.
2169
a2d356b0
DJ
21702003-02-04 Daniel Jacobowitz <drow@mvista.com>
2171
2172 Pointed out by Anton Blanchard <anton@samba.org>.
2173 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
2174 (ppc_linux_at_sigtramp_return_path): Use it.
2175
2de7ced7
DJ
21762003-02-04 Daniel Jacobowitz <drow@mvista.com>
2177
2178 * defs.h (streq): Add prototype.
2179 * utils.c (streq): New function.
2180
2181 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
2182 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
2183 * mdebugread.c (new_symbol): Likewise.
2184 * stabsread.c (define_symbol): Likewise.
2185 * coffread.c (process_coff_symbol): Likewise.
2186 * dwarfread.c (new_symbol): Likewise.
2187
2188 * minsyms.c (prim_record_minimal_symbol_and_info): Use
2189 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
2190 here.
2191 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
2192 SYMBOL_INIT_DEMANGLED_NAME.
2193 * objfiles.c: Include "hashtab.h".
2194 (allocate_objfile): Call htab_set_functions_ex for the
2195 demangled_names_hash.
2196 (free_objfile): Call htab_delete for the demangled_names_hash.
2197 * objfiles.h (struct htab): Add declaration.
2198 (struct objfile): Add demangled_names_hash.
2199 * symfile.c: Include "hashtab.h".
2200 (reread_symbols): Call htab_delete for the demangled_names_hash.
2201 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
2202 SYMBOL_NAME in the bcache.
2203 * symtab.c: Include "hashtab.h". Update comments.
2204 (create_demangled_names_hash, symbol_set_names): New functions.
2205 (symbol_find_demangled_name): New function, broken out from
2206 symbol_init_demangled_names.
2207 (symbol_init_demangled_names): Use it.
2208 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
2209 (SYMBOL_SET_NAMES): New macro.
2210 (symbol_set_names): Add prototype.
2211
15831452
JB
22122003-02-03 Jim Blandy <jimb@redhat.com>
2213
2214 Use a single, consistent representation for an empty minimal
2215 symbol table in an objfile.
2216 * objfiles.c (terminate_minimal_symbol_table): New function.
2217 (allocate_objfile): Call it.
2218 * objfiles.h (terminate_minimal_symbol_table): New declaration.
2219 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
2220 non-NULL.
2221 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
2222 objfile has minimal symbols, compare minimal_symbol_count to zero,
2223 instead of comparing msymbols with NULL.
2224 * objfiles.c (have_minimal_symbols): Same.
2225 * solib-sunos.c (solib_add_common_symbols): Call
2226 terminate_minimal_symbol_table.
2227 * symfile.c (reread_symbols): Same.
2228
ffc65945
KB
22292003-02-03 Kevin Buettner <kevinb@redhat.com>
2230
2231 * s390-tdep.c (s390_address_class_type_flags)
2232 (s390_address_class_type_flags_to_name)
2233 (s390_address_class_name_to_type_flags): New functions.
2234 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
2235 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
2236
f211c6d4
MS
22372003-02-03 Michael Snyder <msnyder@redhat.com>
2238
2239 * arm-tdep.c: Fix spell-o in comment.
2240
659b0389
ML
22412003-02-03 Michal Ludvig <mludvig@suse.cz>
2242
2243 * dwarf2cfi.c (pointer_encoding): Added new parameter.
2244 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
2245 error messages to contain BFD filename.
2246
3b31d625
EZ
22472003-02-02 Elena Zannoni <ezannoni@redhat.com>
2248
997b089a 2249 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
2250 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
2251 (do_mixed_source_and_assembly): Use
2252 make_cleanup_ui_out_tuple_begin_end and
2253 make_cleanup_ui_out_tuple_begin_end.
2254 (do_mixed_source_and_assembly): Ditto.
2255 * thread.c (do_captured_list_thread_ids): Ditto.
2256 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
2257 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
2258 ui_out_tuple_end): Delete prototypes.
2259 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
2260 ui_out_list_end, ui_out_tuple_end): Delete.
2261
2262 From Kevin Buettner <kevinb@redhat.com>:
2263 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
2264 * ui-out.c (make_cleanup_ui_out_table_begin_end)
2265 (do_cleanup_table_end): New functions.
2266 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
2267 Use cleanups to invoke_ui_out_tuple_end().
2268 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
2269 * cli/cli-setshow.c (cmd_show_list): Use
2270 make_cleanup_ui_out_tuple_begin_end.
2271
5b181d62
AC
22722003-02-02 Andrew Cagney <ac131313@redhat.com>
2273
2274 * frame.c (frame_unwind_register): New function.
2275 (frame_unwind_unsigned_register): Use.
2276 (frame_unwind_signed_register): Use.
2277 (frame_read_register): New function.
2278 * frame.h (frame_unwind_register): Declare.
2279 (frame_read_register): Declare.
2280
2281 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
2282 and frame_unwind_register instead of read_memory, write_register
2283 and deprecated_write_register_bytes.
2284
5f601589
AC
22852003-02-02 Andrew Cagney <ac131313@redhat.com>
2286
2287 * frame.h: Note that namelen can be negative.
2288 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
2289 NAME's length.
2290
2291 * NEWS: Mention that the d10v's `regs' command is deprecated.
2292 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
2293 (d10v_print_registers_info): New function.
2294 (show_regs): Call d10v_print_registers_info.
2295 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
2296
6a3fe0a4
MK
22972003-02-02 Mark Kettenis <kettenis@gnu.org>
2298
2299 * stack.c (print_frame_info): Restore call to annotate_frame_begin
2300 lost in the previous patch.
2301
075559bc
AC
23022003-02-01 Andrew Cagney <ac131313@redhat.com>
2303
2304 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
2305 * stack.c (print_frame_info_base): Output complete FRAME tuple
2306 for synthesized frames.
2307
6789195b
AC
23082003-02-02 Andrew Cagney <ac131313@redhat.com>
2309
2310 * mips-nat.c (zerobuf): Delete.
2311 (fetch_inferior_registers): Alloc local zerobuf.
2312 (fetch_core_registers): Alloc local zerobuf.
2313 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
2314 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
2315 * thread-db.c (thread_db_store_registers): Ditto.
2316 * sh-tdep.c (sh_do_register): Ditto.
2317 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2318 * remote-sim.c (gdbsim_store_register): Ditto.
2319 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2320 * remote-e7000.c (fetch_regs_from_dump): Ditto.
2321 * monitor.c (monitor_supply_register): Ditto.
2322 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
2323 * mips-nat.c (fetch_inferior_registers): Ditto.
2324 * m68klinux-nat.c (fetch_register): Ditto.
2325 * lynx-nat.c (fetch_inferior_registers): Ditto.
2326 (fetch_inferior_registers): Ditto.
2327 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
2328 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
2329 (hpux_thread_store_registers): Ditto.
2330 * hppah-nat.c (fetch_register): Ditto.
2331 * hppab-nat.c (fetch_register): Ditto.
2332 * hppa-tdep.c (pa_register_look_aside): Ditto.
2333 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
2334 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
2335
e669114a
AC
23362003-02-01 Andrew Cagney <ac131313@redhat.com>
2337
2338 * gdbarch.sh: Explictly specify all method levels. When a
2339 variable with an empty level, provide a non-multi-arch default.
2340 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
2341 * gdbarch.h: Re-generate.
2342 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
2343 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
2344
9a043c1d
AC
23452003-02-01 Andrew Cagney <ac131313@redhat.com>
2346
2347 * defs.h (host_pointer_to_address): Delete declaration.
2348 (address_to_host_pointer): Delete declaration.
2349 * utils.c (host_pointer_to_address): Delete function.
2350 (address_to_host_pointer): Delete function.
2351 * procfs.c (procfs_address_to_host_pointer): New function.
2352 * procfs.c (proc_set_watchpoint): Use.
2353 (procfs_can_use_hw_breakpoint): Update comments.
2354 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
2355 (som_solib_add): Use.
2356 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
2357 * hppa-tdep.c (unwind_command): Use.
2358
7ca9f392
AC
23592003-02-01 Andrew Cagney <ac131313@redhat.com>
2360
94bbfd30
AC
2361 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
2362 strlen d_name.
2363
7ca9f392
AC
2364 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
2365 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
2366 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
2367 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
2368 (define_symbol): Update.
2369 * symfile.c (generic_load): Remove references to nindy.
2370 * symtab.c: Remove references to nindy.
2371
31a85ea2
AC
23722003-02-01 Andrew Cagney <ac131313@redhat.com>
2373
2374 * infcmd.c (print_float_info): Delete code conditional on
2375 FLOAT_INFO.
2376 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
2377 * config/m68k/nm-apollo68b.h: Ditto.
2378 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
2379 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
2380 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
2381
f6e85fc8
MK
23822003-02-01 Mark Kettenis <kettenis@gnu.org>
2383
6015b6a0
MK
2384 * config/i386/tm-i386os9k.h: Removed.
2385
f7a30bdf
MK
2386 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
2387 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
2388 they're identical to i[3456]86-*-sysv* now.
2389 * config/i386/i386v32.mh: Removed.
2390 * config/i386/xm-i386v32.h: Removed.
2391 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
2392
28d52111
MK
2393 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
2394
4d3f6bce
MK
2395 * config/i386/i386dgux.mh: Removed.
2396 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
2397
f6e85fc8
MK
2398 * configure.in: Fix typo.
2399 * configure: Regenerated.
2400
53955967
DC
24012003-01-31 David Carlton <carlton@math.stanford.edu>
2402
2403 * dwarf2read.c (dwarf2_locate_sections): Set
2404 dwarf_ranges_section.
2405
b1364885
AC
24062003-01-31 Andrew Cagney <ac131313@redhat.com>
2407
8dbb1c65
AC
2408 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
2409 * utils.c: Update comments documenting legitimate uses of PTR.
2410
8731e58e
AC
2411 * utils.c: Re-indent.
2412
b1364885
AC
2413 * config/djgpp/fnchange.lst: Delete nindy files.
2414 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
2415 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
2416 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
2417 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
2418 * nindy-share/README, nindy-share/Onindy.c: Delete files.
2419 * nindy-tdep.c, nindy-share/Makefile: Delete files.
2420 * Makefile.in (init.c): Remove nindy references.
2421 (saber_gdb): Delete rule.
2422 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
2423 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
2424 and a68v-nat.c.
2425 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
2426 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
2427 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
2428 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
2429 nindy-share/stop.h.
2430 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
2431 * saber.suppress: Delete file.
2432
086df311
DJ
24332003-01-31 Daniel Jacobowitz <drow@mvista.com>
2434
2435 * dbxread.c (stabs_data): New static variable.
2436 (fill_symbuf): Support an in-memory buffer for stabs data.
2437 (stabs_seek): New function.
2438 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
2439 (read_ofile_symtab): Use stabs_seek.
2440 (elfstab_build_psymtabs): Take an asection* instead of
2441 an offset and size. Relocate the stabs data if necessary.
2442 Save the section* for dbx_psymtab_to_symtab.
2443 * dwarf2read.c: Add section variables for each debug section.
2444 (dwarf2_locate_sections): Fill them in.
2445 (dwarf2_read_section): Take an asection* argument.
2446 Relocate the section contents if necessary.
2447 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
2448 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
2449 it to dwarf2_read_section.
2450 (dwarf2_build_frame_info): Update callers.
2451 * elfread.c (elf_symfile_read): Update call to
2452 elfstab_build_psymtabs.
2453 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
2454 (DBX_STAB_SECTION): New macro.
2455 * stabsread.h (elfstab_build_psymtabs): Update prototype.
2456 * symfile.c (symfile_dummy_outputs): New function.
2457 (symfile_relocate_debug_section): New function.
2458 * symfile.h (symfile_relocate_debug_section): Add prototype.
2459
87d1b352
RH
24602003-01-31 Richard Henderson <rth@redhat.com>
2461
2462 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
2463 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
2464 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
2465 * alpha-tdep.c (alpha_register_name): Add "unique".
2466 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
2467 (ALPHA_UNIQUE_REGNUM): New.
2468 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
2469
c48861fb
AC
24702003-01-31 Andrew Cagney <ac131313@redhat.com>
2471
2472 * README: Remove reference to Ericsson 1800 monitor.
2473 * Makefile.in (remote-es.o): Delete rule.
2474 (ALLDEPFILES): Delete remote-es.c.
2475 * remote-es.c: Delete file.
2476 * config/m68k/es1800.mt: Delete file.
2477 * config/djgpp/fnchange.lst: Update.
2478 * configure.tgt: Delete m68*-ericsson-* target.
2479
d764a824
AF
24802003-01-31 Adam Fedor <fedor@gnu.org>
2481
2482 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
2483 Remove duplicate/shadowing variable of same name.
2484
fe36c4f4
JB
24852003-01-30 Jim Blandy <jimb@redhat.com>
2486
2487 * symfile.c (find_separate_debug_file): Assert that the objfile's
2488 directory name we compute ends with a slash, and then assume that
2489 that's so everywhere we use it.
2490
cb741690
DJ
24912003-01-30 Daniel Jacobowitz <drow@mvista.com>
2492
2493 * valops.c (value_assign): Flush frame cache after stores to memory
2494 also.
2495
96ee5227
AC
24962003-01-30 Andrew Cagney <ac131313@redhat.com>
2497
2498 * Makefile.in (mon960-rom.o): Delete rule.
2499 * mon960-rom.c: Delete file.
2500
7f6104a9
AC
25012003-01-30 Andrew Cagney <ac131313@redhat.com>
2502
2503 * d10v-tdep.c: Include "frame-unwind.h".
2504 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
2505 list.
2506 (next_addr, uses_frame): Delete.
2507 (struct d10v_unwind_cache): Define.
2508 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
2509 Use info instead of next_addr and uses_frame globals.
2510 (d10v_frame_init_saved_regs): Delete function.
2511 (d10v_init_extra_frame_info): Delete function.
2512 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
2513 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
2514 init_frame_pc or frame_saved_pc.
2515 (d10v_pop_frame): Delete function.
2516 (do_d10v_pop_frame): Delete function.
2517 (d10v_frame_chain): Delete function.
2518 (d10v_frame_chain_valid): Delete function.
2519 (d10v_frame_pc_unwind): New function.
2520 (d10v_frame_id_unwind): New function.
2521 (saved_regs_unwinder): New function.
2522 (d10v_frame_register_unwind): New function.
2523 (d10v_frame_pop): New function.
2524 (d10v_frame_unwind): New variable.
2525 (d10v_frame_p): New function.
2526 (d10v_frame_saved_pc): Delete function.
2527 * Makefile.in (d10v-tdep.o): Update dependencies.
2528
cad2e848
JB
25292003-01-30 J. Brobecker <brobecker@gnat.com>
2530
2531 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
2532 causing some regressions due to a change in the default value
2533 for this macro.
2534
af34e669
DJ
25352003-01-29 Richard Henderson <rth@redhat.com>
2536 Elena Zannoni <ezannoni@redhat.com>
2537 Daniel Jacobowitz <drow@mvista.com>
2538
2539 Fix PR gdb/961.
2540 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
2541 variables.
2542 (RANGES_SECTION): New.
2543 (dwarf_ranges_buffer): New variable.
2544 (struct comp_unit_head): Add member "die".
2545 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
2546 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
2547 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
2548 (dwarf2_locate_sections): Likewise.
2549 (dwarf2_build_psymtabs): Read .debug_ranges.
2550 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
2551 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
2552 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
2553 Look for DW_AT_ranges and return the bounding box.
2554
baa93fa6
CF
25552003-01-29 Brian Ford <ford@vss.fsi.com>
2556
2557 * win32-nat.c (cygwin_pid): Removed as unused.
2558 (child_attach): Try fall back to Cygwin pid.
2559
c63f977f
JB
25602003-01-29 Jim Blandy <jimb@redhat.com>
2561
2562 * objfiles.h (struct objfile): Doc fix.
2563
d62d1979
AC
25642003-01-29 Andrew Cagney <ac131313@redhat.com>
2565
2566 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
2567 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
2568 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
2569 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
2570 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
2571 (FRAME_SAVED_PC): Change to a function with predicate.
2572 * gdbarch.h, gdbarch.c: Re-generate.
2573
1ae18a04
AC
25742003-01-28 Andrew Cagney <ac131313@redhat.com>
2575
52287340
AC
2576 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
2577
1ae18a04
AC
2578 * complaints.c (complain): Delete function.
2579 * complaints.h (struct deprecated_complaint): Delete definition.
2580 (complain): Delete declaration.
2581
f2c16bd6
KB
25822003-01-28 Kevin Buettner <kevinb@redhat.com>
2583
2584 * mips-tdep.c (mips_init_extra_frame_info): Return early for
2585 dummy frames.
2586
a94dd1fd
AC
25872003-01-27 Andrew Cagney <ac131313@redhat.com>
2588
2589 * sentinel-frame.h, sentinel-frame.c: New files.
2590 * Makefile.in (frame.o): Update dependencies.
2591 (SFILES): Add sentinel-frame.c.
2592 (sentinel_frame_h): Define.
2593 (COMMON_OBS): Add sentinel-frame.o.
2594 (sentinel-frame.o): Specify dependencies.
2595 * frame.c: Include "sentinel-frame.h".
2596 (frame_register_unwind): Rewrite assuming that there is always a a
2597 ->next frame.
2598 (frame_register, generic_unwind_get_saved_register): Ditto.
2599 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
2600 (create_sentinel_frame, unwind_to_current_frame): New functions.
2601 (get_current_frame): Rewrite using create_sentinel_frame and
2602 unwind_to_current_frame. When possible, always create a frame.
2603 (create_new_frame): Set next to the sentinel frame.
2604 (get_next_frame): Rewrite. Don't go below the level 0 frame.
2605 (deprecated_update_frame_pc_hack): Update the next frame's PC and
2606 ID cache when necessary.
2607 (frame_saved_regs_id_unwind): Use frame_relative_level.
2608 (deprecated_generic_get_saved_register): Use frame_relative_level,
2609 get_frame_saved_regs, get_frame_pc, get_frame_base and
2610 get_next_frame.
2611 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
2612 frame_register.
2613
5378adc4
DJ
26142003-01-27 Daniel Jacobowitz <drow@mvista.com>
2615
2616 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
2617
51ee2ddc
DJ
26182003-01-27 Daniel Jacobowitz <drow@mvista.com>
2619
2620 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
2621 (maintenance_set_profile_cmd): Use error () instead of warning ().
2622
d9feb4e7
DJ
26232003-01-27 Daniel Jacobowitz <drow@mvista.com>
2624
2625 * configure.in: Check that -pg works if using --enable-profiling.
2626 Check for monstartup and _mcleanup regardless of --enable-profiling.
2627 * maint.c: Check for monstartup and _mcleanup before using them.
2628 * config.in: Regenerated.
2629 * configure: Regenerated.
2630
2d188dd3
NC
26312003-01-24 Nick Clifton <nickc@redhat.com>
2632
2633 * Add sh2e support:
2634
2635 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
2636
2637 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
2638 (sh2e_show_regs): New.
2639 (sh_gdbarch_init): Handle bfd_mach_sh2e.
2640 * config/sh/tm-sh.h: Added sh2e to comments.
2641
cb3c37b2
JB
26422003-01-23 Jim Blandy <jimb@redhat.com>
2643
2644 * symfile.c (syms_from_objfile): Don't print the "(no debugging
2645 symbols found)" message here; we haven't checked for a separate
2646 debug info file yet, so we don't know yet.
2647 (symbol_file_add_with_addrs_or_offsets): Print it here, after
2648 we've looked everywhere. Also, there's no need to print a special
2649 message when we're loading the separate debug info file: the one
2650 symbol_file_add prints is fine.
2651
5b5d99cf
JB
26522003-01-23 Alexander Larsson <alexl@redhat.com>
2653 Jim Blandy <jimb@redhat.com>
2654
2655 Add support for executables whose debug info has been separated
2656 out into a separate file, leaving only a link behind.
2657 * objfiles.h (struct objfile): New fields: separate_debug_objfile
2658 and separate_debug_objfile_backlink.
2659 (put_objfile_before): New declaration.
2660 * symfile.c: #include "filenames.h".
2661 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
2662 debug info in a separate file, read that, too. Save the addrs
2663 argument, so we can use it again to read the separated debug info;
2664 syms_from_objfile modifies the table we pass it.
2665 (reread_symbols): After re-reading an objfile, call
2666 reread_separate_symbols to refresh its separate debug info
2667 objfile, if it has one.
2668 (reread_separate_symbols, find_separate_debug_file,
2669 get_debug_link_info, separate_debug_file_exists): New functions.
2670 (debug_file_directory): New global var.
2671 (_initialize_symfile): Initialize debug_file_directory, and
2672 provide the new `set debug-file-directory' command to let the user
2673 change it.
2674 * objfiles.c (free_objfile): If this objfile has its debug info in
2675 a separate objfile, free that one too. If this is itself a
2676 separate debug info objfile, clear our parent's backlink.
2677 (put_objfile_before): New function.
2678 * utils.c (gnu_debuglink_crc32): New function.
2679 * defs.h (gnu_debuglink_crc32): New declaration.
2680 * Makefile.in (symfile.o): Note dependency on "filenames.h".
2681 * configure.in: Handle --with-separate-debug-dir config option.
2682 * acinclude.m4 (AC_DEFINE_DIR): New macro.
2683 * acconfig.h (DEBUGDIR): New macro.
2684 * configure, aclocal.m4, config.in: Regenerated.
2685
7e8580c1
JB
26862003-01-22 Jim Blandy <jimb@redhat.com>
2687
7904e09f
JB
2688 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
2689 like the old symbol_file_add, but taking new arguments: you can
2690 now pass in either a `struct section_addr_info' list to say where
2691 each section is loaded, or a `struct section_offsets' table. Pass
2692 these new arguments through to syms_from_objfile as appropriate.
2693 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
2694 with the appropriate quiescent values for the new arguments.
2695
7e8580c1
JB
2696 * symfile.c: #include "gdb_assert.h".
2697 (syms_from_objfile): Add the ability to pass in a section offset
2698 table directly, as an alternative to the section_addr_info table.
2699 Document arguments better.
2700 (symbol_file_add): Pass extra arguments to syms_from_objfile.
2701 * symfile.h (syms_from_objfile): Update declaration.
2702 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
2703 syms_from_objfile.
2704 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
2705
d28f9cdf
DJ
27062003-01-22 Daniel Jacobowitz <drow@mvista.com>
2707
2708 Original patch by Tom Tromey <tromey@cygnus.com> and
2709 Jason Molenda <jmolenda@apple.com>.
2710 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
2711 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
2712 * NEWS: Mention profiling.
2713 * configure.in (--enable-gdbtk): Fix typo.
2714 (--enable-profiling): New. Set PROFILE_CFLAGS.
2715 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
2716 Fill in function.
2717 (profiling_state): New variable.
2718 (mcleanup_wrapper): New function.
2719 (_initialize_maint): Remove NOTYET, fix call to
2720 add_setshow_boolean_cmd for "maint set profile".
2721 * configure: Regenerated.
2722
df21e465
MH
27232003-01-21 Martin M. Hunt <hunt@redhat.com>
2724
2725 * Makefile.in (install-gdbtk): Install PNG images too.
2726
73c1f219
AC
27272003-01-21 Andrew Cagney <ac131313@redhat.com>
2728
2729 * exec.c (text_start): Delete global variable.
2730 (exec_file_attach): Make text_start local to the function.
2731 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
2732 * valops.c (hand_function_call): Delete code that handles
2733 BEFORE_TEXT_END and AFTER_TEXT_END.
2734 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
2735 of CALL_DUMMY_LOCATION.
2736 * gdbarch.c: Regenerate.
2737 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
2738 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
2739 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2740 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
2741 (text_end): Delete extern declaration.
2742
eb4f72c5
AC
27432003-01-21 Andrew Cagney <ac131313@redhat.com>
2744
2745 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
2746 * blockframe.c (backtrace_below_main): Move to "frame.c".
2747 (frame_chain_valid): Delete check for backtrace_below_main.
2748 (_initialize_blockframe): Delete initialization, move ``set
2749 backtrace-below-main'' command to "frame.c".
2750 (do_flush_frames_sfunc): Delete function.
2751 * frame.c: Include "command.h" and "gdbcmd.h".
2752 (frame_type_from_pc): New function.
2753 (create_new_frame): Use frame_type_from_pc.
2754 (legacy_get_prev_frame): New function.
2755 (get_prev_frame): Rewrite. When an old style frame, call
2756 legacy_get_prev_frame. Otherwize, unwind the PC first.
2757 (_initialize_frame): Add ``set backtrace-below-main'' command.
2758 * Makefile.in (frame.o): Update dependencies.
2759
778ce8cc
AC
27602003-01-19 Andrew Cagney <ac131313@redhat.com>
2761
2762 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
2763 DEPRECATED_REGISTERS_INFO.
2764
01c193c8
AC
27652003-01-19 Andrew Cagney <ac131313@redhat.com>
2766
2767 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
2768 Maintainers'. Update `Various Maintainers'.
2769
dedc2a2b
AC
27702003-01-19 Andrew Cagney <ac131313@redhat.com>
2771
2772 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
2773 * gdbarch.sh (POP_FRAME): Change to function with predicate.
2774 Suppress actual parameters when `-'.
2775 * gdbarch.h, gdbarch.c: Regenerate.
2776
b7261c70
AC
27772003-01-19 Andrew Cagney <ac131313@redhat.com>
2778
2779 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
2780 code handling dummy frames.
2781
dbe9fe58
AC
27822003-01-19 Andrew Cagney <ac131313@redhat.com>
2783
2784 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
2785 (struct frame_unwind): Add field pop.
2786 * frame.h (frame_pop): Declare.
2787 * frame.c (frame_saved_regs_pop): New function.
2788 (trad_frame_unwinder): Add frame_saved_regs_pop.
2789 (frame_pop): New function.
2790 * dummy-frame.c (dummy_frame_pop): New function.
2791 (discard_innermost_dummy): New function.
2792 (generic_pop_dummy_frame): Use discard_innermost_dummy.
2793 (dummy_frame_unwind): Add dummy_frame_pop.
2794 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
2795 * valops.c (hand_function_call): Ditto.
2796 * stack.c (return_command): Ditto.
2797
570b8f7c
AC
27982003-01-18 Andrew Cagney <ac131313@redhat.com>
2799
2800 * cris-tdep.c: Fix function declaration indentation.
2801 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
2802 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
2803 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
2804 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
2805 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
2806 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
2807
28082003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
2809
2810 * README (Unpacking and Installation -- quick overview):
2811 Warn against ".../gdb-5.3/gdb/configure".
2812
494cca16
AC
28132003-01-18 Andrew Cagney <ac131313@redhat.com>
2814
2815 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
2816 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
2817 (struct frame_unwind): Declare opaque.
2818 (dummy_frame_p): Declare function.
2819 * dummy-frame.c (dummy_frame_id_unwind): Make static.
2820 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
2821 * dummy-frame.c: Include "frame-unwind.h".
2822 (dummy_frame_p): New function.
2823 (dummy_frame_unwind): New variable.
2824 * frame.c: Include "frame-unwind.h".
2825 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
2826 to use the new unwind field.
2827 (set_unwind_by_pc): Delete function.
2828 (create_new_frame, get_prev_frame): Set unwind field using
2829 frame_unwind_find_by_pc.
2830 (trad_frame_unwind, trad_frame_unwinder): New variables.
2831 * frame.h (trad_frame_unwind): Declare variable.
2832 (frame_id_unwind_ftype): Delete declaration.
2833 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
2834 (struct frame_unwind): Declare opaque.
2835 (struct frame_info): Replace the fields id_unwind, pc_unwind and
2836 register_unwind with a single unwind pointer.
2837 * frame-unwind.h, frame-unwind.c: New files.
2838 * Makefile.in (SFILES): Add frame-unwind.c.
2839 (frame_unwind_h): Define.
2840 (COMMON_OBS): Add frame-unwind.o.
2841 (frame-unwind.o): Specify dependencies.
2842 (frame.o, dummy-frame.o): Update dependencies.
2843
4efb68b1
AC
28442003-01-18 Andrew Cagney <ac131313@redhat.com>
2845
2846 * ada-valprint.c: Eliminate PTR.
2847 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
2848 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
2849 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
2850 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
2851 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
2852 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
2853 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
2854
a84d24ee
AC
28552003-01-17 Andrew Cagney <ac131313@redhat.com>
2856
762f08a3
AC
2857 * main.c (captured_main): Don't use PTR.
2858 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
2859 * gdbtypes.c (lookup_primitive_typename): Ditto.
2860 (lookup_struct_elt_type): Ditto.
2861 * f-valprint.c (info_common_command): Ditto.
2862 (list_all_visible_commons): Ditto.
2863 * jv-typeprint.c (java_type_print_base): Ditto.
2864
a84d24ee
AC
2865 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
2866 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
2867 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
2868 i386-interix-nat.c and i386-interix-tdep.c. Rename
2869 m68klinux-nat.c and m68klinux-tdep.c. Rename
2870 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
2871 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
2872 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
2873 * main.c (captured_main): Use xfree, not free.
2874
c170fb60
AC
28752003-01-16 Andrew Cagney <ac131313@redhat.com>
2876
2877 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
2878 ID back using a parameter.
2879 * frame.c (frame_id_unwind): Update call.
2880 (frame_saved_regs_id_unwind): Update.
2881 * dummy-frame.c (dummy_frame_id_unwind): Update function.
2882 * dummy-frame.h (struct frame_id): Add opaque declaration.
2883 (dummy_frame_id_unwind): Update declaration.
2884
867f3898
AC
28852003-01-15 Andrew Cagney <ac131313@redhat.com>
2886
2887 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
2888
40622be8 28892003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 2890
40622be8 2891 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 2892
ae66c1fc
EZ
28932003-01-14 Elena Zannoni <ezannoni@redhat.com>
2894
997b089a 2895 Fix PR gdb/898
ae66c1fc
EZ
2896 * breakpoint.c (until_break_command): Add new argument. Use it to
2897 decide whether to stop only at the current frame or not.
2898 * breakpoint.h (until_break_command): Update prototype.
2899 * infcmd.c (until_command): Add new argument to until_break_command
2900 call.
2901 (advance_command): New function.
2902 (_initialize_infcmd): Update help string for 'until' command.
2903 Add new 'advance' command.
2904
a04257e6
DC
29052003-01-14 David Carlton <carlton@math.stanford.edu>
2906
2907 * linespec.c (decode_line_1): Normalize comments.
2908 (set_flags): Ditto.
2909 (locate_first_half): Ditto.
2910 (decode_compound): Ditto.
2911 (symtab_from_filename): Ditto.
2912 (decode_all_digits): Ditto.
2913 (decode_dollar): Ditto.
2914 (find_methods): Ditto.
2915 (find_toplevel_char): Ditto.
2916
1bac305b
AC
29172003-01-13 Andrew Cagney <ac131313@redhat.com>
2918
2919 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
2920 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
2921 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
2922 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
2923 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
2924 * language.c, language.h, m32r-tdep.c: Update copyright.
2925 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
2926 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
2927 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
2928 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
2929 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
2930 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
2931
25caa7a8
EZ
29322003-01-13 Elena Zannoni <ezannoni@redhat.com>
2933
2934 * stabsread.h (process_later, resolve_cfront_continuation):
2935 Obsolete.
2936 Update copyright years.
2937 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
2938 Update copyright year.
2939 * dbxread.c(struct cont_elem): Obsolete.
2940 (process_later, process_now): Obsolete functions.
2941 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
2942 Update copyright year.
2943 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
2944 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
2945 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
2946 (parse_partial_symbols): Obsolete cfront support.
2947 * stabsread.c
2948 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
2949 macros.
2950 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
2951 read_cfront_baseclasses, read_cfront_member_functions,
2952 resolve_cfront_continuation,read_cfront_static_fields,
2953 copy_cfront_struct_fields): Obsolete functions.
2954 (define_symbol, read_one_struct_field): Obsolete cfront support.
2955 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
2956 Update Copyright year.
2957
7789c6f5
EZ
29582003-01-13 Elena Zannoni <ezannoni@redhat.com>
2959
2960 * stack.c (print_frame_info, print_stack_frame_base_stub,
2961 print_stack_frame_base, show_and_print_stack_frame_stub,
2962 show_and_print_stack_frame, print_only_stack_frame_stub,
2963 print_only_stack_frame): Delete functions.
2964 (print_stack_frame_stub): Call print_frame_info instead of
2965 print_frame_info_base.
2966 (print_frame_info_base): Rename to print_frame_info.
2967 (backtrace_command_1): Call print_frame_info, instead of
2968 print_frame_info_base.
2969 (current_frame_command): Call print_stack_frame, instead of
2970 print_only_stack_frame.
2971 (frame_command): Call print_stack_frame, instead of
2972 show_and_print_stack_frame.
2973 (up_command): Ditto.
2974 (down_command): Ditto.
2975 * frame.h (print_only_stack_frame): Delete prototype.
2976 * infrun.c (normal_stop): Call print_stack_frame, instead of
2977 show_and_print_stack_frame.
2978 * thread.c (info_threads_command): Call print_stack_frame, instead
2979 of print_only_stack_frame.
2980
3f5a3016
AC
29812003-01-13 Andrew Cagney <ac131313@redhat.com>
2982
d99ba314
AC
2983 * README (Graphical interface to GDB): Update URL. Point at
2984 gdb/links/.
2985
3f5a3016
AC
2986 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
2987 version match.
2988
083ae935
DJ
29892003-01-13 Daniel Jacobowitz <drow@mvista.com>
2990
2991 * symtab.c (find_pc_sect_line): Don't consider end-of-function
2992 lines.
2993
5365276c
DJ
29942003-01-13 Daniel Jacobowitz <drow@mvista.com>
2995
2996 * thread-db.c (attach_thread): Prototype.
2997 (struct private_thread_info): Remove lwpid. Add thread handle (th),
2998 thread information (ti), and valid flags (th_valid, ti_valid).
2999 (attach_thread): Move target_pid_to_str call to after the thread
3000 is added to GDB's list. Initialize the cache.
3001 (thread_get_info_callback, thread_db_map_id2thr)
3002 (thread_db_get_info): New functions.
3003 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
3004 (thread_db_store_registers, thread_db_thread_alive)
3005 (thread_db_get_thread_local_address): Use them.
3006 (thread_db_pid_to_str): Likewise. Return "Missing" instead
3007 of calling error() for threads in unknown state.
3008
3009 (clear_lwpid_callback): New function.
3010 (thread_db_resume): Use it to clear the cache.
3011
9fc30b6b
DJ
30122003-01-13 Daniel Jacobowitz <drow@mvista.com>
3013
3014 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
3015 (resume_callback): Remove dead code.
3016
8f871025
AC
30172003-01-13 Andrew Cagney <ac131313@redhat.com>
3018
3019 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
3020 predicate.
3021 * gdbarch.h, gdbarch.c: Regenerate.
3022 * stack.c (frame_info): Only initialize the saved registers when
3023 FRAME_INIT_SAVED_REGS_P.
3024 * frame.c (frame_saved_regs_register_unwind): Assert
3025 FRAME_INIT_SAVED_REGS_P.
3026 (deprecated_generic_get_saved_register): Ditto.
3027
3f565f1e
DJ
30282003-01-13 Daniel Jacobowitz <drow@mvista.com>
3029
3030 * source.c (openp): Squelch warning about "filename".
3031
072b1022
DJ
30322003-01-13 Daniel Jacobowitz <drow@mvista.com>
3033
3034 * source.c (openp): If the file does not exist don't necessarily
3035 search the path.
3036
973ccf8b
DJ
30372003-01-13 Daniel Jacobowitz <drow@mvista.com>
3038
3039 Fix PR gdb/872.
3040 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
3041 (integer_types_same_name_p): New function.
3042 (rank_one_type): Use it.
3043 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
3044
030292b7
DJ
30452003-01-13 Daniel Jacobowitz <drow@mvista.com>
3046
3047 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
3048 variables.
3049 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
3050 * configure.in: Add --with-sysroot.
3051 * configure: Regenerated.
3052 * main.c (gdb_sysroot): New variable.
3053 (captured_main): Initialize gdb_sysroot.
3054 * defs.h (gdb_sysroot): New extern declaration.
3055 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
3056
afb5d334
MC
30572003-01-12 Michael Chastain <mec@shout.net>
3058
3059 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
3060
751ceeb4
MC
30612003-01-12 Michael Chastain <mec@shout.net>
3062
3063 * top.c (print_gdb_version): Bump copyright year to 2003.
3064
94cd26f8
DC
30652003-01-12 David Carlton <carlton@bactrian.org>
3066
3067 * linespec.c (symtab_from_filename): Rename variable 's' to
3068 'file_symtab'.
3069
1ce79225
AC
30702003-01-12 Andrew Cagney <ac131313@redhat.com>
3071
3072 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
3073 dummy frame.
3074 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
3075
fa1fd571
AC
30762003-01-12 Andrew Cagney <ac131313@redhat.com>
3077
3078 * d10v-tdep.c: Include "gdb_assert.h".
3079 (d10v_store_return_value): Rewrite to match current interface.
3080 (d10v_extract_struct_value_address): Ditto.
3081 (d10v_extract_return_value): Ditto.
3082 (d10v_gdbarch_init): Set store_restore_value,
3083 extract_struct_value_address and extract_return_value.
3084
68b8d23e
JB
30852003-01-12 J. Brobecker <brobecker@gnat.com>
3086
3087 * hpread.c (set_namestring): New procedure replacing the
3088 SET_NAMESTRING macro.
3089 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
3090 by calls to set_namestring.
3091
30922003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
3093
3094 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
3095 a compilation warning.
3096 (hpread_process_one_debug_symbol): Likewise.
3097
88d262ca
DC
30982003-01-10 David Carlton <carlton@math.stanford.edu>
3099
3100 * linespec.c (decode_line_1): Rename variable 's' to
3101 'file_symtab'.
3102 (decode_all_digits): Rename argument 's' to 'file_symtab'.
3103 (decode_dollar): Ditto.
3104 (decode_variable): Ditto.
3105 (symbol_found): Ditto.
3106
86669319
MC
31072003-01-09 Michael Chastain <mec@shout.net>
3108
3109 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
3110
616a9dc4
CV
31112003-01-07 Corinna Vinschen <vinschen@redhat.com>
3112
3113 * win32-nat.c (set_process_privilege): New function.
3114 (child_attach): Call set_process_privilege() to enable the
3115 SE_DEBUG_NAME user privilege if available in process token.
3116
3269bcfa
JB
31172003-01-10 J. Brobecker <brobecker@gnat.com>
3118
3119 * hpread.c (hpread_process_one_debug_symbol): Fix a small
3120 compilation error in the previous revision.
3121
2b0ee454
DC
31222003-01-09 David Carlton <carlton@math.stanford.edu>
3123
3124 * linespec.c: Update copyright.
3125
b3ba1b44
DJ
31262003-01-09 Daniel Jacobowitz <drow@mvista.com>
3127
3128 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
3129 than inferior_ptid.
3130 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
3131
4ef3f3be
AC
31322003-01-09 Andrew Cagney <ac131313@redhat.com>
3133
479ab5a0
AC
3134 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
3135 Update comments.
3136 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
3137 (frame_saved_regs_zalloc): Update.
3138 (frame_saved_regs_register_unwind): Update.
3139 (create_new_frame): Update.
3140 (get_prev_frame): Update.
3141 (frame_extra_info_zalloc): Update.
3142 (deprecated_get_frame_saved_regs): Update.
3143 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
3144 * cris-tdep.c: Update comment.
3145
bde58177
AC
3146 * somsolib.h: Fix function indentation.
3147 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
3148 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
3149 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
3150 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
3151 * somsolib.c, inftarg.c: Remove assignment in if conditional.
3152
4ef3f3be
AC
3153 * infrun.c (follow_fork): Use ISO C definition.
3154 * expprint.c (print_subexp): Use xfree instead of free.
3155 * charset.c: Include "gdb_string.h" instead of <string.h>.
3156 (register_iconv_charsets): Use ISO C definition.
3157 (host_charset, target_charset): Ditto.
3158 * Makefile.in (charset.o): Update dependencies.
3159 (mi-cmd-env.o): Update dependencies.
3160
1c615f7a
AC
31612003-01-08 Andrew Cagney <cagney@redhat.com>
3162
3163 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
3164 get_frame_base.
3165
c9a1dc08
AC
31662003-01-08 Andrew Cagney <ac131313@redhat.com>
3167
3168 * gdb_mbuild.sh: Add --keep option. When specified, keep the
3169 build directories. Save edited gdb output in Mbuild.log. If a
3170 build fails, remove any final GDB executable.
3171
dbad9d94
AC
31722003-01-08 Andrew Cagney <ac131313@redhat.com>
3173
3174 * gdb_mbuild.sh: Edit the output of `maint print architecture'
3175 replacing hex constants with function names and stripping leading
3176 file name directory prefixes.
3177
8d357cca
AC
31782003-01-08 Andrew Cagney <cagney@redhat.com>
3179
3180 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
3181 get_frame_base.
3182
bca02a8a
DC
31832003-01-08 David Carlton <carlton@math.stanford.edu>
3184
3185 * linespec.c (decode_line_1): Move code into decode_variable.
3186 (decode_variable): New function.
3187
7f8ab3a0
AC
31882003-01-08 Andrew Cagney <ac131313@redhat.com>
3189
3190 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
3191
7b5849cc
AC
31922003-01-08 Andrew Cagney <cagney@redhat.com>
3193
3194 * cris-tdep.c (cris_frame_init_saved_regs): Use
3195 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
3196 saved_regs buffer.
3197 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
3198 (sh64_nofp_frame_init_saved_regs): Ditto.
3199 (sh_fp_frame_init_saved_regs): Ditto.
3200 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
3201 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
3202 * mcore-tdep.c (analyze_dummy_frame): Ditto.
3203 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3204
72a5efb3
DJ
32052003-01-08 Daniel Jacobowitz <drow@mvista.com>
3206
3207 * minsyms.c (lookup_minimal_symbol): Update comment.
3208 (lookup_minimal_symbol_text): Update comment. Use the hash table.
3209 (lookup_minimal_symbol_solib_trampoline): Likewise.
3210
11c02a10
AC
32112003-01-08 Andrew Cagney <cagney@redhat.com>
3212
aab3ea25
AC
3213 * d10v-tdep.c (d10v_init_extra_frame_info): Use
3214 frame_relative_level.
3215
da50a4b7
AC
3216 * alpha-tdep.c: Use get_frame_extra_info.
3217 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3218 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
3219 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
3220 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
3221
11c02a10
AC
3222 * alpha-tdep.c: Use get_next_frame.
3223 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3224 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
3225 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
3226 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
3227 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
3228 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
3229 * xstormy16-tdep.c: Ditto.
3230
1e2330ba
AC
32312003-01-07 Andrew Cagney <cagney@redhat.com>
3232
3233 * alpha-tdep.c: Use get_frame_base.
3234 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3235 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
3236 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
3237 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
3238 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
3239 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
3240 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
3241 * config/sparc/tm-sparc.h: Ditto.
3242
2d75187b
AC
32432003-01-07 Andrew Cagney <cagney@redhat.com>
3244
3245 * frame.c (deprecated_get_frame_context): New function.
3246 (deprecated_set_frame_context): New function.
3247 * frame.h (deprecated_get_frame_context): Declare.
3248 (deprecated_set_frame_context): Declare.
3249 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
3250 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
3251
483d36b2
AC
32522003-01-07 Andrew Cagney <cagney@redhat.com>
3253
3254 * frame.c (deprecated_set_frame_next_hack): New function.
3255 (deprecated_set_frame_prev_hack): New function.
3256 * frame.h (deprecated_set_frame_next_hack): Declare.
3257 (deprecated_set_frame_prev_hack): Declare.
3258 * mcore-tdep.c (analyze_dummy_frame): Use
3259 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
3260 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3261
14e91ac5
DC
32622003-01-07 David Carlton <carlton@math.stanford.edu>
3263
3264 * linespec.c (decode_line_1): Move code into decode_dollar.
3265 (decode_dollar): New function.
3266
b0c6b05c
AC
32672003-01-07 Andrew Cagney <cagney@redhat.com>
3268
3269 * arm-tdep.c (arm_init_extra_frame_info): Use
3270 deprecated_update_frame_base_hack.
3271 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
3272 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3273 (fix_frame_pointer): Ditto.
3274 (mn10300_analyze_prologue): Ditto.
3275
a00a19e9
AC
32762003-01-07 Andrew Cagney <cagney@redhat.com>
3277
3278 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
3279 extra_info using frame_extra_info_zalloc.
3280 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
3281 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
3282 (sh64_init_extra_frame_info): Ditto.
3283 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
3284 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
3285 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
3286 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
3287 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
3288 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
3289 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
3290 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
3291 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
3292 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
3293 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
3294 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
3295
3296 * mn10300-tdep.c (analyze_dummy_frame): Use
3297 deprecated_set_frame_extra_info_hack.
3298 * mcore-tdep.c (analyze_dummy_frame): Ditto.
3299
1fb4c65b
JB
33002003-01-07 J. Brobecker <brobecker@gnat.com>
3301
3302 * mdebugread.c (parse_symbol): Skip stProc entries which storage
3303 class is not scText. These do not define "real" procedures.
3304 (parse_partial_symbols): Likewise.
3305
9fe7d6bf
MS
33062003-01-06 Michael Snyder <msnyder@redhat.com>
3307
3308 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
3309
f6c609c4
AC
33102003-01-06 Andrew Cagney <ac131313@redhat.com>
3311
3312 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
3313 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
3314 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
3315 deprecated_frame_xmalloc_with_cleanup.
3316 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
3317 deprecated_frame_xmalloc.
3318 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
3319 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
3320
d995ff4b
AC
33212003-01-06 Andrew Cagney <cagney@redhat.com>
3322
84dc46cb
AC
3323 * x86-64-linux-tdep.c: Include "osabi.h".
3324 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
3325
d995ff4b
AC
3326 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
3327
66140c26
AC
33282003-01-06 Andrew Cagney <cagney@redhat.com>
3329
3330 * MAINTAINERS (Target Instruction Set Architectures): Update
3331 arm-elf. Can be built with -Werror, has been multiarched.
3332
3333 * value.h (unpack_long): Make buffer parameter constant.
3334 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
3335 * scm-lang.h (scm_parse): Ditto.
3336 * defs.h (extract_typed_address, extract_address): Ditto.
3337 (extract_long_unsigned_integer): Ditto.
3338 * inferior.h (unsigned_pointer_to_address): Ditto.
3339 (signed_pointer_to_address): Ditto.
3340 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
3341 * gdbarch.h, gdbarch.c: Regenerate.
3342 * findvar.c (extract_long_unsigned_integer): Update.
3343 (extract_address): Update.
3344 (extract_typed_address): Update.
3345 (unsigned_pointer_to_address): Update.
3346 * values.c (unpack_long): Update.
3347 (unpack_double): Update.
3348 (unpack_pointer): Update.
3349 (unpack_field_as_long): Update.
3350 * d10v-tdep.c (d10v_pointer_to_address): Update.
3351 * avr-tdep.c (avr_pointer_to_address): Update.
3352 * scm-lang.c (scm_unpack): Update.
3353 * findvar.c (signed_pointer_to_address): Update.
3354
b089b3da
ML
33552003-01-06 Michal Ludvig <mludvig@suse.cz>
3356
3357 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
3358 since it is in i386-tdep.c.
3359
aff87235
JB
33602003-01-06 J. Brobecker <brobecker@gnat.com>
3361
3362 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
3363 failure introduced in the previous change.
3364
34f5e845
MC
33652003-01-05 Michael Chastain <mec@shout.net>
3366
3367 * README: Remove references to deleted remote-*.c files:
3368 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
3369 remote-nrom.c, remote-os9k.c, remote-udi.c.
3370
28bcfd30
MK
33712003-01-05 Mark Kettenis <kettenis@gnu.org>
3372
3373 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
3374 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
3375 i386_get_longjmp_target.
3376
15a5b3ee
AC
33772003-01-05 Andrew Cagney <ac131313@redhat.com>
3378
3379 * arm-tdep.c (prologue_cache): Change to a pointer.
3380 (_initialize_arm_tdep): Allocate prologue_cache.
3381 (check_prologue_cache): Update.
3382 (save_prologue_cache): Update.
3383 (arm_gdbarch_init): Update.
3384
c263362b
DJ
33852003-01-04 Daniel Jacobowitz <drow@mvista.com>
3386
3387 * stabsread.c (update_method_name_from_physname): Call complaint()
3388 instead of error.
3389
51603483
DJ
33902003-01-04 Daniel Jacobowitz <drow@mvista.com>
3391
3392 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
3393 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
3394 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
3395
3396 * blockframe.c: Include "gdbcmd.h" and "command.h".
3397 (backtrace_below_main): New variable.
3398 (file_frame_chain_valid, func_frame_chain_valid)
3399 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
3400 (generic_func_frame_chain_valid): Remove functions.
3401 (frame_chain_valid, do_flush_frames_sfunc): New functions.
3402 (_initialize_blockframe): New function.
3403 * Makefile.in (blockframe.o): Update dependencies.
3404 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
3405 comment. Call frame_chain_valid ().
3406 * frame.h: Remove old prototypes. Add prototype for
3407 frame_chain_valid and update comments to match.
3408 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
3409 Remove old comment.
3410 * gdbarch.h: Regenerated.
3411 * gdbarch.c: Regenerated.
3412
3413 * alpha-tdep.c (alpha_gdbarch_init): Don't call
3414 set_gdbarch_frame_chain_valid.
3415 * avr-tdep.c (avr_gdbarch_init): Likewise.
3416 * cris-tdep.c (cris_gdbarch_init): Likewise.
3417 * frv-tdep.c (frv_gdbarch_init): Likewise.
3418 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3419 * i386-tdep.c (i386_svr4_init_abi): Likewise.
3420 (i386_nw_init_abi): Likewise.
3421 (i386_gdbarch_init): Likewise.
3422 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3423 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3424 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3425 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
3426 * mips-tdep.c (mips_gdbarch_init): Likewise.
3427 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3428 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
3429 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
3430 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3431 * s390-tdep.c (s390_gdbarch_init): Likewise.
3432 * sh-tdep.c (sh_gdbarch_init): Likewise.
3433 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3434 * v850-tdep.c (v850_gdbarch_init): Likewise.
3435 * vax-tdep.c (vax_gdbarch_init): Likewise.
3436 * x86-64-tdep.c (x86_64_init_abi): Likewise.
3437
3438 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
3439 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
3440 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
3441 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
3442 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
3443 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
3444 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
3445 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
3446
b00a8037
DJ
34472002-01-04 Daniel Jacobowitz <drow@mvista.com>
3448
3449 * Makefile.in (acconfig_h): Remove incorrect macro.
3450 (config_h): Define.
3451 (osabi.o): Update dependencies.
3452 * configure.tgt: Set gdb_osabi based on target triplet.
3453 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
3454 * configure: Regenerated.
3455 * config.in: Regenerated.
3456 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
3457 (GDB_OSABI_DEFAULT): Define if not already defined.
3458 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
3459 (set_osabi_string): New variables.
3460 (gdbarch_register_osabi): Add new OS ABI to
3461 gdb_osabi_available_names.
3462 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
3463 (set_osabi, show_osabi): New functions.
3464 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
3465
4be87837
DJ
34662003-01-04 Daniel Jacobowitz <drow@mvista.com>
3467
3468 * arch-utils.c (gdbarch_info_init): Set osabi to
3469 GDB_OSABI_UNINITIALIZED.
3470 * gdbarch.sh: Add osabi to struct gdbarch and to struct
3471 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
3472 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
3473 * gdbarch.c: Regenerated.
3474 * gdbarch.h: Regenerated.
3475 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
3476 there's no BFD.
3477 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
3478 * osabi.h (enum gdb_osabi): Move to defs.h.
3479 (gdbarch_init_osabi): Update prototype.
3480 * defs.h (enum gdb_osabi): Moved here.
3481 * Makefile.in: Update dependencies.
3482
3483 * alpha-tdep.h: Don't include "osabi.h".
3484 (struct gdbarch_tdep): Remove osabi member.
3485 * alpha-tdep.c: Include "osabi.h".
3486 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3487 iterate over arches. Update call to gdbarch_init_osabi.
3488 (alpha_dump_tdep): Don't dump osabi.
3489 * alpha-linux-tdep.c: Include "osabi.h".
3490 * alpha-osf1-tdep.c: Include "osabi.h".
3491 * alphafbsd-tdep.c: Include "osabi.h".
3492 * alphanbsd-tdep.c: Include "osabi.h".
3493
3494 * arm-tdep.h: Don't include "osabi.h".
3495 (struct gdbarch_tdep): Remove osabi member.
3496 * arm-tdep.c: Include "osabi.h".
3497 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3498 iterate over arches. Update call to gdbarch_init_osabi.
3499 (arm_dump_tdep): Don't dump osabi.
3500 * arm-linux-tdep.c: Include "osabi.h".
3501 * armnbsd-tdep.c: Include "osabi.h".
3502
3503 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
3504 Update call to gdbarch_init_osabi.
3505
3506 * i386-tdep.h: Don't include "osabi.h".
3507 (struct gdbarch_tdep): Remove osabi member.
3508 * i386-tdep.c: Include "osabi.h".
3509 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3510 iterate over arches. Update call to gdbarch_init_osabi.
3511 (i386_dump_tdep): Don't dump osabi.
3512 * i386-linux-tdep.c: Include "osabi.h".
3513 * i386-sol2-tdep.c: Include "osabi.h".
3514 * i386bsd-tdep.c: Include "osabi.h".
3515 * i386gnu-tdep.c: Include "osabi.h".
3516 * i386ly-tdep.c: Include "osabi.h".
3517 * i386nbsd-tdep.c: Include "osabi.h".
3518 * i386obsd-tdep.c: Include "osabi.h".
3519
3520 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
3521 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3522 check osabi when iterating over arches. Update call to
3523 gdbarch_init_osabi.
3524 (mips_dump_tdep): Don't dump osabi.
3525
3526 * ns32k-tdep.h: Don't include "osabi.h".
3527 (struct gdbarch_tdep): Remove.
3528 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
3529 gdbarch_lookup_osabi. Don't iterate over arches. Don't
3530 allocate tdep. Update call to gdbarch_init_osabi.
3531 (ns32k_dump_tdep): Remove.
3532 (_initialize_ns32k_tdep): Update call to gdbarch_register.
3533 * ns32knbsd-tdep.c: Include "osabi.h".
3534
3535 * ppc-tdep.h: Don't include "osabi.h".
3536 (struct gdbarch_tdep): Remove osabi member.
3537 * rs6000-tdep.c: Include "osabi.h".
3538 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
3539 osabi when iterating over arches. Update call to
3540 gdbarch_init_osabi.
3541 (rs6000_dump_tdep): Don't dump osabi.
3542 * ppc-linux-tdep.c: Include "osabi.h".
3543 * ppcnbsd-tdep.c: Include "osabi.h".
3544
3545 * sh-tdep.h: Don't include "osabi.h".
3546 (struct gdbarch_tdep): Remove osabi member.
3547 * sh-tdep.c: Include "osabi.h".
3548 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3549 iterate over arches. Update call to gdbarch_init_osabi.
3550 (sh_dump_tdep): Don't dump osabi.
3551 * shnbsd-tdep.c: Include "osabi.h".
3552
3553 * sparc-tdep.c: Include "osabi.h".
3554 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3555 iterate over arches. Update call to gdbarch_init_osabi.
3556 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
3557 tdep structure.
3558
3559 * vax-tdep.h: Don't include "osabi.h".
3560 (struct gdbarch_tdep): Remove.
3561 * vax-tdep.c: Include "osabi.h".
3562 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3563 iterate over arches. Don't allocate tdep. Update call
3564 to gdbarch_init_osabi.
3565 (vax_dump_tdep): Remove.
3566 (_initialize_vax_tdep): Update call to gdbarch_register.
3567
a881cf8e
DJ
35682003-01-04 Daniel Jacobowitz <drow@mvista.com>
3569
3570 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
3571 entirely.
3572 (breakpoint_re_set_one): Don't fetch the value for a disabled
3573 watchpoint.
3574
1e698235
DJ
35752003-01-04 Daniel Jacobowitz <drow@mvista.com>
3576
3577 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
3578 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
3579 (COERCE_FLOAT_TO_DOUBLE): Remove.
3580 * gdbarch.c: Regenerate.
3581 * gdbarch.h: Regenerate.
3582 * Makefile.in: Remove value_h from gdbarch_h.
3583 * valops.c (coerce_float_to_double): New variable.
3584 (default_coerce_float_to_double): Remove.
3585 (standard_coerce_float_to_double): Remove.
3586 (value_arg_coerce): Use coerce_float_to_double.
3587 (_initialize_valops): Add "set coerce-float-to-double".
3588 * value.h (default_coerce_float_to_double): Remove prototype.
3589 (standard_coerce_float_to_double): Remove prototype.
3590
3591 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
3592 prototyped.
3593 * mdebugread.c (parse_symbol): Likewise.
3594 * stabsread.c (define_symbol): Mark all functions as prototyped.
3595
3596 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
3597 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
3598 set_gdbarch_coerce_float_to_double.
3599 * arm-tdep.c (arm_gdbarch_init): Likewise.
3600 * frv-tdep.c (frv_gdbarch_init): Likewise.
3601 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
3602 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
3603 * mips-tdep.c (mips_gdbarch_init): Likewise.
3604 (mips_coerce_float_to_double): Remove.
3605 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3606 (rs6000_coerce_float_to_double): Remove.
3607 * s390-tdep.c (s390_gdbarch_init): Likewise.
3608 * sh-tdep.c (sh_gdbarch_init): Likewise.
3609 (sh_coerce_float_to_double): Remove.
3610 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3611 (sparc_coerce_float_to_double): Remove.
3612 * v850-tdep.c (v850_gdbarch_init): Likewise.
3613 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
3614 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3615 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
3616 (hppa_coerce_float_to_double): Remove prototype.
3617 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3618
f436a26a
DJ
36192003-01-04 Daniel Jacobowitz <drow@mvista.com>
3620
3621 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
3622
248f8055
DJ
36232003-01-04 Daniel Jacobowitz <drow@mvista.com>
3624
3625 Suggested by Stewart Brown <sb24@avaya.com>:
3626 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
3627 in recursive calls. Handle TYPE_CODE_TYPEDEF.
3628 (c_type_print_varspec_suffix): Likewise.
3629
72cfdc76
MK
36302003-01-04 Mark Kettenis <kettenis@gnu.org>
3631
bfd260bb
MK
3632 * configure.in: Don't set and AC_SUBST SUBDIRS.
3633 * configure: Regenerated.
3634
72cfdc76
MK
3635 * configure.in: Remove code dealing with shared libraries.
3636 * Makefile.in: Remove HLDFLAGS and HLDENV.
3637 * configure: Regenerated.
3638
c8b8a898
AC
36392003-01-04 Andrew Cagney <ac131313@redhat.com>
3640
3641 * frame.c (deprecated_frame_xmalloc): New function.
3642 (deprecated_set_frame_saved_regs_hack): New function.
3643 (deprecated_set_frame_extra_info_hack): New function.
3644 * frame.h (deprecated_frame_xmalloc): Declare.
3645 (deprecated_set_frame_saved_regs_hack): Declare.
3646 (deprecated_set_frame_extra_info_hack): Declare.
3647
14abd0fb
MK
36482003-01-04 Mark Kettenis <kettenis@gnu.org>
3649
8ee53726
MK
3650 * configure.in: Move code that provides the --enable-gdbtk option
3651 right after the code that handles the --enable-tui option, and
3652 polish it somewhat.
3653 * configure: Regenerated.
3654
14abd0fb
MK
3655 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
3656 AC_CHECK_FUNCS and remove the old check for pread64.
3657 * acinclude.m4 (AC_GNU_SOURCE): New macro.
3658 * acconfig.h (_GNU_SOURCE): Add.
3659 (HAVE_PREAD64): Remove.
3660 * configure, aclocal.m4, config.in: Regenerated.
3661
b2fb4676
AC
36622003-01-03 Andrew Cagney <ac131313@redhat.com>
3663
3664 * alpha-tdep.c: Use get_frame_saved_regs.
3665 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3666 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
3667 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
3668 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
3669 * vax-tdep.c, xstormy16-tdep.c: Ditto.
3670
8dcde887
MK
36712003-01-03 Mark Kettenis <kettenis@gnu.org>
3672
3673 * configure.in: Remove all use of the SUBDIRS variable; add
3674 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
3675 code providing the --enable-multi-ice option, and move it right in
3676 front of the code that checks whether gdbserver is supported.
3677 Polish that too.
3678 * configure: Regenerated.
3679 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
3680 @SUBDIRS@.
3681
8ccd593b
AC
36822003-01-03 Andrew Cagney <cagney@redhat.com>
3683
3684 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
3685 * avr-tdep.c, cris-tdep.c: Ditto.
3686 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
3687 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
3688
91151a06
MK
36892003-01-03 Mark Kettenis <kettenis@gnu.org>
3690
3691 * configure.in: Remove --enable-netrom option.
3692 * configure: Regenerated.
3693
8fe84d01
MK
36942003-01-03 Mark Kettenis <kettenis@gnu.org>
3695
3696 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
3697 declaration for `struct re_pattern_buffer' instead.
3698 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
3699
f0394be6
JB
37002003-01-03 J. Brobecker <brobecker@gnat.com>
3701
3702 * mdebugread.c (parse_symbol): Count until the stEnd matching
3703 the structure name.
3704
27e9bf90
MK
37052003-01-02 Mark Kettenis <kettenis@gnu.org>
3706
93d331ba
MK
3707 * configure.in: Remove --with-cpu option.
3708 subscripts. Remove evil changequotes here.
3709 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
3710 * config.in, configure: Regenerated.
3711
27e9bf90
MK
3712 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
3713 * configure.in: Cleanup section that sources GDB and BFD configure
3714 subscripts. Remove evil changequotes here.
3715 * config.in, configure: Regenerated.
3716
50abf9e5
AC
37172003-01-02 Andrew Cagney <ac131313@redhat.com>
3718
3719 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
3720 frame accessor methods.
3721 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3722 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
3723 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
3724 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
3725 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
3726 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
3727 * z8k-tdep.c: Ditto.
3728
287c1a40
MK
37292003-01-02 Mark Kettenis <kettenis@gnu.org>
3730
f5dbc56d
MK
3731 * configure.in: Remove UI_OUT configuration code.
3732 * ada-lang.c: Update assuming UI_OUT is always true.
3733 * Makefile.in (UIOUT_CFLAGS): Remove.
3734 * configure: Regenerated.
3735 * TODO: Remove blurb about elimination of -DUI_OUT.
3736
627af7ea
MK
3737 * configure.in: Move code that provides the --enable-gdbcli,
3738 --enable-gdbmi options right before the code that handles the
3739 --enable-tui option. Polish a bit.
3740 * configure: Regenerated.
3741
06825bd1
MK
3742 * configure.in: Rewrite check for GNU regex and the
3743 --without-included regex option, and move it into the "Checks for
3744 library functions" section. This makes us use the system regex
3745 again by default on systems with version 2 of the GNU C library.
3746 This was apparently broken.
3747 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
3748 * acconfig.h (USE_INCLUDED_REGEX): Remove.
3749 * config.in, configure: Regenerated.
3750
287c1a40
MK
3751 * configure.in: Move code that provides the --enable-tui option
3752 before the "Checks for libraries" section. Polish the code
3753 somewhat and set need_curses to yes if we build the TUI. Rewrite
3754 code that looks for a library providing termcap functionality to
3755 match more closely what's done in the Readline library, and move
3756 it into to the "Checks for libraries" section.
3757 * configure: Regenerated.
3758 * Makefile.in (TERMCAP): Remove variable.
3759 * config/i386/go32.mh (TERMCAP): Remove variable.
3760
684e56bf
AC
37612003-01-02 Andrew Cagney <ac131313@redhat.com>
3762
3763 * MAINTAINERS: Mention gdb_mbuild.sh.
3764 * gdb_mbuild.sh: Rewrite.
3765
e1ea1d75
MK
37662003-01-02 Mark Kettenis <kettenis@gnu.org>
3767
3768 * configure.in: Fix typo in last change.
3769 * config.in, configure: Regenerated.
3770
1b831c93
AC
37712003-01-02 Andrew Cagney <ac131313@redhat.com>
3772
3773 * valarith.c (value_binop): Delete obsolete code and comments.
3774 * configure.host: Ditto.
3775 * buildsym.h (make_blockvector): Ditto.
3776 * buildsym.c (make_blockvector): Ditto.
3777 * defs.h (enum language): Ditto.
3778 (chill_demangle): Ditto.
3779 * elfread.c (elf_symtab_read): Ditto.
3780 * dwarfread.c (CHILL_PRODUCER): Ditto.
3781 (set_cu_language): Ditto.
3782 (handle_producer): Ditto.
3783 * expprint.c (print_subexp): Ditto.
3784 * gdbtypes.c (chill_varying_type): Ditto.
3785 * gdbtypes.h (builtin_type_chill_bool): Ditto.
3786 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
3787 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
3788 (chill_varying_type): Ditto.
3789 * language.h (_LANG_chill): Ditto.
3790 * language.c (binop_result_type, integral_type): Ditto.
3791 (character_type, string_type, structured_type): Ditto.
3792 (lang_bool_type, binop_type_check): Ditto.
3793 * stabsread.h (os9k_stabs): Ditto.
3794 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
3795 (define_symbol, read_type, read_struct_fields): Ditto.
3796 (read_array_type, read_enum_type, read_huge_number): Ditto.
3797 (read_range_type, start_stabs): Ditto.
3798 * symfile.c (init_filename_language_table): Ditto.
3799 (add_psymbol_with_dem_name_to_list): Ditto.
3800 * symtab.c (symbol_init_language_specific): Ditto.
3801 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
3802 * symtab.h (struct general_symbol_info): Ditto.
3803 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3804 * typeprint.c (typedef_print): Ditto.
3805 * utils.c (fprintf_symbol_filtered): Ditto.
3806 * valops.c (value_cast, search_struct_field, value_slice): Delete
3807 obsolete code.
3808 (varying_to_slice): Delete function.
3809 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
3810 (varying_to_slice): Delete declaration.
3811 * MAINTAINERS: Update.
3812
8bb2c122
MK
38132003-01-02 Mark Kettenis <kettenis@gnu.org>
3814
97bf5e38
MK
3815 * configure.in: Reorganize "Checks for library functions section"
3816 a bit. Remove check for `btowc' and `isascii' functions.
3817 * configure: Regenerated.
3818
5ee754fc
MK
3819 * acconfig.h (_MSE_INT_H): Remove.
3820 * configure.in: Create "Checks for header files" section, and move
3821 appropriate tests there. Don't check for objlist.h, wchar.h,
3822 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
3823 misdetection fix. Also add "Checks for types", "Checks for
3824 compiler characteristics" and "Checks for library functions"
3825 sections.
3826 * config.in, configure: Regenerated.
3827
8bb2c122
MK
3828 * configure.in: Create "Checks for programs" section, and move
3829 appropriate tests there.
3830
9a156167
MK
38312003-01-01 Mark Kettenis <kettenis@gnu.org>
3832
3833 * configure.in: Create "Checks for libraries" section, and move
3834 appropriate tests there. Cleanup check for wctype in libw. Use
3835 AC_SEARCH_LIBS to see whether we need libsocket.
3836 * configure: Regenerated.
3837
a80e2bcb 3838For older changes see ChangeLog-2002
c906108c
SS
3839\f
3840Local Variables:
3841mode: change-log
3842left-margin: 8
3843fill-column: 74
3844version-control: never
3845End:
This page took 0.548337 seconds and 4 git commands to generate.