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