2003-03-20 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4c2e2391
AC
12003-03-20 Andrew Cagney <cagney@redhat.com>
2
0022b738
AC
3 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
4 already has a full path.
5
864dbc90
AC
6 * main.c (gdb_main): Return 1.
7 (captured_main): Call error to report an invalid interpreter.
8
4c2e2391
AC
9 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
10 * alpha-osf1-tdep.c: Include "gdb_string.h".
11
5ef7553b
JB
122003-03-19 J. Brobecker <brobecker@gnat.com>
13
14 Continuing work to convert the hppa targets to multiarch partial.
15
16 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
17 method, now that hppa_push_dummy_frame has a conformant prototype.
18 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
19 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
20 for the switch to multiarch partial.
21
7bde8967
KB
222003-03-19 Kevin Buettner <kevinb@redhat.com>
23
24 * mdebugread.c (parse_symbol): For stEnd, we're done counting
25 when iss is issNull.
26
b006a9e9
KB
272003-03-18 Kevin Buettner <kevinb@redhat.com>
28
29 * mips-tdep.c (mips_register_name): Fix fencepost error involving
30 NUM_REGS bounds check.
31
5e2e9765
KB
322003-03-18 Kevin Buettner <kevinb@redhat.com>
33
34 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
35 * mips-tdep.c (gdb_assert.h): Include.
36 (mips_generic_reg_names, mips_processor_reg_names): Make static.
37 (mips_register_name): Handle integer registers explicitly. Add
38 bounds checking.
39 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
40 (mips_lsi33k_reg_names): Don't list integer registers; they're
41 handled by mips_register_name() now.
42 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
43 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
44 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
45 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
46 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
47
a2867626
AC
482003-03-18 Andrew Cagney <cagney@redhat.com>
49
50 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
51 a void pointer.
52 * gdbtypes.h (print_scalar_formatted): Update declaration.
53 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
54
06600e06
JB
552003-03-18 J. Brobecker <brobecker@gnat.com>
56
57 * infrun.c (observer.h): Add #include.
58 (normal_stop): Add call to observer_notify_normal_stop.
59 * Makefile.in (infrun.o): Add dependency on observer.h.
60
7daf4f5b
JB
612003-03-18 J. Brobecker <brobecker@gnat.com>
62
63 Continuing work to convert the hppa targets to multiarch partial.
64 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
65 parameter. Reformat comment.
66 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
67 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
68 to match new profile.
69
3371ccc0
JB
702003-03-18 J. Brobecker <brobecker@gnat.com>
71
72 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
73 appear to be working in any case.
74
4fbe891e
JB
752003-03-18 J. Brobecker <brobecker@gnat.com>
76
77 * observer.c (observer_test_first_observer): New static variable.
78 (observer_test_second_observer): Likewise.
79 (observer_test_third_observer): Likewise.
80 (observer_test_first_notification_function): New static function.
81 (observer_test_second_notification_function): Likewise.
82 (observer_test_third_notification_function): Likewise.
83
a7ff40e7
JB
842003-03-17 J. Brobecker <brobecker@gnat.com>
85
86 * hppa-tdep.c (gdb_assert.h): Add missing #include.
87 * somsolib.c (gdb_assert.h): Likewise.
88 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
89 (somsolib.o): Likewise.
90
26ca4152
AC
912003-03-17 Andrew Cagney <cagney@redhat.com>
92
93 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
94 BFD. Simplify setting of di.endian.
95
0a613259
AC
962003-03-17 Andrew Cagney <cagney@redhat.com>
97
98 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
99 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
100
101 From Elena Zannoni <ezannoni@redhat.com>
102 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
103 vector and floating-point parameters.
104 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
105 convention.
106 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
107
1132738f
FN
1082003-03-17 Fernando Nasser <fnasser@redhat.com>
109
110 * MAINTAINERS: Remove my name from several maintainership roles.
111
6dc42492
AC
1122003-03-17 Andrew Cagney <cagney@redhat.com>
113
114 Fix frame off-by-one bug.
115 * frame-unwind.h (frame_this_id_ftype): Replace
116 frame_unwind_id_ftype.
117 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
118 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
119 with "prev_register".
120 * frame-unwind.c (frame_unwind_find_by_pc): Return
121 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
122 comment.
123 * dummy-frame.c (cached_find_dummy_frame): Delete function.
124 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
125 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
126 (dummy_frame_unwind): Update.
127 * sentinel-frame.c (sentinel_frame_prev_register): Replace
128 sentinel_frame_register_unwind.
129 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
130 (sentinel_frame_unwinder): Update.
131 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
132 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
133 * frame.c (create_sentinel_frame): Update. Initialize
134 "prologue_cache" instead of "unwind_cache".
135 (frame_register_unwind): Call this frame's prev_register with the
136 next frame and this frame's prologue cache.
137 (get_prev_frame): Simplify. Always call prev frame's this_id with
138 this frame and prev frame's prologue cache. Document that this
139 call is shifted one to the left when compared to the
140 frame_register_unwind call.
141 (legacy_saved_regs_prev_register): Replace
142 frame_saved_regs_register_unwind.
143 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
144 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
145 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
146 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
147 (d10v_frame_unwind): Update.
148 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
149 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
150 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
151 "saved_regs" with "this_saved_regs".
152
efd710d6
AC
1532003-03-16 Andrew Cagney <cagney@redhat.com>
154
155 * frame.c (frame_pop): Don't call target_store_registers. Fix
156 problem reported by Mark Kettenis.
157
4e259f09
MK
1582003-03-16 Mark Kettenis <kettenis@gnu.org>
159
160 * i386-tdep.c (i386_register_type): Renamed from
161 i386_register_virtual_type. Adjust function signature.
162 (i386_gdbarch_init): Set register_type instead of
163 deprecated_max_register_raw_size,
164 deprecated_max_register_virtual_size and register_virtual_type.
165
055bb976
AC
1662003-03-14 Andrew Cagney <cagney@redhat.com>
167
168 * frame.c (get_prev_frame): When a legacy frame, always call
169 legacy_get_prev_frame. Simplify unwind code using assumption that
170 the unwinder is new.
171 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
172 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
173 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
174
ac2adee5
AC
1752003-03-14 Andrew Cagney <cagney@redhat.com>
176
177 * frame.c (get_saved_register): Delete function.
178 * frame.h (get_saved_register): Delete declaration.
179 * xstormy16-tdep.c: Update comment.
180 * regcache.h: Update comments.
181 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
182 get_saved_register and extract_address, use
183 frame_read_unsigned_register.
184 (sparc_frame_saved_pc): Ditto.
185 (sparc_get_saved_register): Instead of get_saved_register, use
186 frame_register.
187 (sparc_pop_frame): Ditto.
188 * findvar.c: Update comments.
189 (value_of_register): Call frame_register instead of
190 get_saved_register.
191 (value_from_register): Ditto.
192 * config/sparc/tm-sparc.h: Update comment.
193 * breakpoint.c: Update comment.
194
129c1cd6
AC
1952003-03-14 Andrew Cagney <cagney@redhat.com>
196
197 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
198 GET_SAVED_REGISTER.
199 * gdbarch.h, gdbarch.c: Re-generate.
200 * frame.h: Update comments.
201 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
202 * x86-64-tdep.c (x86_64_init_abi): Update.
203 * sparc-tdep.c (sparc_gdbarch_init): Update.
204 * sh-tdep.c (sh_gdbarch_init): Update.
205 * mips-tdep.c (mips_gdbarch_init): Update.
206 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
207 * cris-tdep.c (cris_gdbarch_init): Update.
208 * ia64-tdep.c (ia64_gdbarch_init): Update.
209 * frame.c (frame_register): Update.
210 (get_saved_register): Update.
211 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
212
749b82f6
AC
2132003-03-13 Andrew Cagney <cagney@redhat.com>
214
215 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
216 * gdbarch.h, gdbarch.c: Regenerate.
217 * valops.c (hand_function_call): Update comment.
218 * stack.c (return_command): Update comment.
219 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
220 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
221 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
222 * x86-64-tdep.c (x86_64_init_abi): Update.
223 * vax-tdep.c (vax_gdbarch_init): Update.
224 * v850-tdep.c (v850_gdbarch_init): Update.
225 * sparc-tdep.c (sparc_gdbarch_init): Update.
226 * sh-tdep.c (sh_gdbarch_init): Update.
227 * s390-tdep.c (s390_gdbarch_init): Update.
228 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
229 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
230 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
231 * mips-tdep.c (mips_gdbarch_init): Update.
232 * mcore-tdep.c (mcore_gdbarch_init): Update.
233 * m68k-tdep.c (m68k_gdbarch_init): Update.
234 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
235 * ia64-tdep.c (ia64_gdbarch_init): Update.
236 * i386-tdep.c (i386_gdbarch_init): Update.
237 * hppa-tdep.c (hppa_gdbarch_init): Update.
238 * h8300-tdep.c (h8300_gdbarch_init): Update.
239 * frv-tdep.c (frv_gdbarch_init): Update.
240 * cris-tdep.c (cris_gdbarch_init): Update.
241 * avr-tdep.c (avr_gdbarch_init): Update.
242 * arm-tdep.c (arm_gdbarch_init): Update.
243 * alpha-tdep.c (alpha_gdbarch_init): Update.
244
1594fa56
AC
2452003-03-13 Andrew Cagney <cagney@redhat.com>
246
247 * frame.c (legacy_frame_p): New function.
248 (get_prev_frame): Use legacy_frame_p.
249 * frame.h (legacy_frame_p): Declare.
250
7717fda3
V
2512003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
252
253 * MAINTAINERS (write after approval): Alphabetically
254 listing corrected.
255
0c67cbe9
V
2562003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
257
258 * MAINTAINERS (write after approval): Add myself.
259
03febf99
AC
2602003-03-12 Andrew Cagney <cagney@redhat.com>
261
262 * frame.c (get_prev_frame): Rename the frame parameter to
263 "this_frame".
264 (get_next_frame, legacy_get_prev_frame): Ditto.
265
0a1e1ca1
AC
2662003-03-12 Andrew Cagney <cagney@redhat.com>
267
268 * frame.c (get_current_frame): Check target_has_registers before
269 checking target_has_stack.
270 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
271 instead of deprecated_selected_frame.
272 * findvar.c (value_of_register): Pass "frame", not
273 deprecated_selected_frame, to value_of_builtin_reg.
274
a66a9c23
AC
2752003-03-12 Andrew Cagney <cagney@redhat.com>
276
277 * regcache.c (regcache_cooked_write_signed): New function.
278 (regcache_cooked_write_unsigned): New function.
279 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
280 (regcache_cooked_read_signed): Fix regnum in range assertion.
281 * regcache.h (regcache_cooked_write_signed): Declare.
282 (regcache_cooked_write_unsigned): Declare.
283
8bedc050
AC
2842003-03-12 Andrew Cagney <cagney@redhat.com>
285
286 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
287 * gdbarch.h, gdbarch.c: Re-generate.
288 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
289 * x86-64-tdep.h: Update.
290 * x86-64-tdep.c (x86_64_init_abi): Update.
291 * v850-tdep.c (v850_gdbarch_init): Update.
292 * sparc-tdep.c (sparc_gdbarch_init): Update.
293 * sh-tdep.c (sh_gdbarch_init): Update.
294 * s390-tdep.c (s390_gdbarch_init): Update.
295 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
296 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
297 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
298 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
299 * mips-tdep.c (mips_gdbarch_init): Update.
300 * mcore-tdep.c (mcore_gdbarch_init): Update.
301 * m68k-tdep.c (m68k_gdbarch_init): Update.
302 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
303 * ia64-tdep.c (ia64_gdbarch_init): Update.
304 * i386-tdep.c (i386_gdbarch_init): Update.
305 * i386-interix-tdep.c (i386_interix_init_abi): Update.
306 * hppa-tdep.c (hppa_gdbarch_init): Update.
307 * h8300-tdep.c (h8300_gdbarch_init): Update.
308 * frv-tdep.c (frv_gdbarch_init): Update.
309 * cris-tdep.c (cris_gdbarch_init): Update.
310 * avr-tdep.c (avr_gdbarch_init): Update.
311 * arm-tdep.c (arm_gdbarch_init): Update.
312 * alpha-tdep.c (alpha_gdbarch_init): Update.
313 * sh-tdep.c (sh_init_extra_frame_info): Update.
314 (sh64_init_extra_frame_info): Update.
315 * ns32knbsd-nat.c (frame_num_args): Update.
316 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
317 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
318 (xstormy16_frame_chain_valid): Update.
319 * vax-tdep.c (vax_saved_pc_after_call): Update.
320 * v850-tdep.c (v850_frame_chain): Update.
321 (v850_pop_frame): Update.
322 (v850_init_extra_frame_info): Update.
323 * sparc-tdep.c (setup_arbitrary_frame): Update.
324 * ns32k-tdep.c (umax_frame_num_args): Update.
325 * s390-tdep.c (s390_pop_frame_regular): Update.
326 * mn10300-tdep.c (mn10300_frame_chain): Update.
327 (mn10300_pop_frame_regular): Update.
328 (mn10300_init_extra_frame_info): Update.
329 * mips-tdep.c (mips_init_frame_pc_first): Update.
330 (mips_frame_chain): Update.
331 (mips_pop_frame): Update.
332 * mcore-tdep.c (mcore_frame_chain): Update.
333 (mcore_pop_frame): Update.
334 (mcore_init_extra_frame_info): Update.
335 * arch-utils.c (init_frame_pc_default): Update.
336 * m68k-tdep.c (isi_frame_num_args): Update.
337 (delta68_frame_num_args): Update.
338 (news_frame_num_args): Update.
339 * ia64-tdep.c (ia64_pop_frame_regular): Update.
340 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
341 (alpha_frame_chain): Update.
342 (alpha_pop_frame): Update.
343 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
344 (hppa_init_extra_frame_info): Update.
345 (hppa_frame_chain): Update.
346 (hppa_frame_chain_valid): Update.
347 * cris-tdep.c (cris_init_extra_frame_info): Update.
348 * avr-tdep.c (avr_init_extra_frame_info): Update.
349 * arm-tdep.c (arm_frame_chain_valid): Update.
350 (arm_init_extra_frame_info): Update.
351 (arm_pop_frame): Update.
352 * frame.c (frame_pc_unwind): Update.
353 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
354 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
355 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
356 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
357 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
358 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
359
7a25a7c1
AC
3602003-03-12 Andrew Cagney <cagney@redhat.com>
361
362 Eliminate the need for POP_FRAME.
363 * frame.c (do_frame_unwind_register): New function.
364 (frame_pop): When no POP_FRAME, pop the frame using register
365 unwind and a scratch regcache.
366 (frame_saved_regs_pop): Delete function.
367 (trad_frame_unwinder): Update.
368 * d10v-tdep.c (d10v_frame_pop): Delete function.
369 (d10v_frame_unwind): Update.
370 * sentinel-frame.c (sentinel_frame_pop): Delete function.
371 (sentinel_frame_unwinder): Update.
372 * dummy-frame.c (dummy_frame_pop): Delete function.
373 (dummy_frame_unwind): Update.
374 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
375 (struct frame_unwind): Update.
376
2f38ef89
KB
3772003-03-11 Kevin Buettner <kevinb@redhat.com>
378
379 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
380 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
381 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
382 Do range checks on register number obtained from debugging info.
383 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
384 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
385 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
386 mapping function.
387 (do_fp_register_row): Fix typo which caused double type to be
388 used when attempting to unpack a float.
389
552f4abf
JB
3902003-03-11 J. Brobecker <brobecker@gnat.com>
391
392 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
393
e0d2ae16
AC
3942003-03-11 Andrew Cagney <cagney@redhat.com>
395
396 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
397 frame. Problem found by Corinna Vinschen.
398
ddbfdd06
PM
3992003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
400
401 * doublest.c (floatformat_from_length): Accept also
402 the real size of 'long double' type.
403
088b2ddc 4042003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 405
088b2ddc 406 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
407 * breakpoint.c (bpstat_copy): Copy the command lines as well
408 as the old value, to match what is freed in bpstat_clear.
409
f56f77c1
DC
4102003-03-10 David Carlton <carlton@math.stanford.edu>
411
412 * minsyms.c (add_minsym_to_hash_table): Replace
413 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
414 (compare_minimal_symbols, compact_minimal_symbols)
415 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
416 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
417 of DEPRECATED_SYMBOL_MATCHES_NAME.
418 (lookup_minimal_symbol_solib_trampoline): Ditto.
419
5602984a
AC
4202003-03-10 Andrew Cagney <cagney@redhat.com>
421
422 * regcache.h (regcache_cooked_read_ftype): Define.
423 (regcache_save, regcache_restore): Add a cooked_read parameter.
424 * regcache.c (regcache_save, regcache_restore): Update.
425 (do_cooked_read): New function.
426 (regcache_cpy): Pass do_cooked_read to regcache_save and
427 regcache_restore.
428
8bedc050
AC
4292003-03-10 Andrew Cagney <cagney@redhat.com>
430
431 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
432 * gdbarch.h, gdbarch.c: Re-generate.
433 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
434 * x86-64-tdep.h: Update.
435 * x86-64-tdep.c (x86_64_init_abi): Update.
436 * v850-tdep.c (v850_gdbarch_init): Update.
437 * sparc-tdep.c (sparc_gdbarch_init): Update.
438 * sh-tdep.c (sh_gdbarch_init): Update.
439 * s390-tdep.c (s390_gdbarch_init): Update.
440 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
441 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
442 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
443 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
444 * mips-tdep.c (mips_gdbarch_init): Update.
445 * mcore-tdep.c (mcore_gdbarch_init): Update.
446 * m68k-tdep.c (m68k_gdbarch_init): Update.
447 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
448 * ia64-tdep.c (ia64_gdbarch_init): Update.
449 * i386-tdep.c (i386_gdbarch_init): Update.
450 * i386-interix-tdep.c (i386_interix_init_abi): Update.
451 * hppa-tdep.c (hppa_gdbarch_init): Update.
452 * h8300-tdep.c (h8300_gdbarch_init): Update.
453 * frv-tdep.c (frv_gdbarch_init): Update.
454 * cris-tdep.c (cris_gdbarch_init): Update.
455 * avr-tdep.c (avr_gdbarch_init): Update.
456 * arm-tdep.c (arm_gdbarch_init): Update.
457 * alpha-tdep.c (alpha_gdbarch_init): Update.
458 * sh-tdep.c (sh_init_extra_frame_info): Update.
459 (sh64_init_extra_frame_info): Update.
460 * ns32knbsd-nat.c (frame_num_args): Update.
461 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
462 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
463 (xstormy16_frame_chain_valid): Update.
464 * vax-tdep.c (vax_saved_pc_after_call): Update.
465 * v850-tdep.c (v850_frame_chain): Update.
466 (v850_pop_frame): Update.
467 (v850_init_extra_frame_info): Update.
468 * sparc-tdep.c (setup_arbitrary_frame): Update.
469 * ns32k-tdep.c (umax_frame_num_args): Update.
470 * s390-tdep.c (s390_pop_frame_regular): Update.
471 * mn10300-tdep.c (mn10300_frame_chain): Update.
472 (mn10300_pop_frame_regular): Update.
473 (mn10300_init_extra_frame_info): Update.
474 * mips-tdep.c (mips_init_frame_pc_first): Update.
475 (mips_frame_chain): Update.
476 (mips_pop_frame): Update.
477 * mcore-tdep.c (mcore_frame_chain): Update.
478 (mcore_pop_frame): Update.
479 (mcore_init_extra_frame_info): Update.
480 * arch-utils.c (init_frame_pc_default): Update.
481 * m68k-tdep.c (isi_frame_num_args): Update.
482 (delta68_frame_num_args): Update.
483 (news_frame_num_args): Update.
484 * ia64-tdep.c (ia64_pop_frame_regular): Update.
485 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
486 (alpha_frame_chain): Update.
487 (alpha_pop_frame): Update.
488 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
489 (hppa_init_extra_frame_info): Update.
490 (hppa_frame_chain): Update.
491 (hppa_frame_chain_valid): Update.
492 * cris-tdep.c (cris_init_extra_frame_info): Update.
493 * avr-tdep.c (avr_init_extra_frame_info): Update.
494 * arm-tdep.c (arm_frame_chain_valid): Update.
495 (arm_init_extra_frame_info): Update.
496 (arm_pop_frame): Update.
497 * frame.c (frame_pc_unwind): Update.
498 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
499 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
500 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
501 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
502 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
503 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
504
12cc2063
AC
5052003-03-10 Andrew Cagney <cagney@redhat.com>
506
507 * gdbarch.sh (gdbarch_unwind_pc): New method.
508 * gdbarch.h, gdbarch.c: Regenerate.
509 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
510 but use read_pc and FRAME_SAVED_PC as fall backs.
511 (frame_saved_regs_pc_unwind): Delete function.
512 (trad_frame_unwinder): Update.
513 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
514 (struct frame_unwind): Update.
515 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
516 (dummy_frame_unwind): Update.
517 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
518 (sentinel_frame_unwinder): Update.
519 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
520 (d10v_frame_unwind): Update.
521 (d10v_unwind_pc): New function.
522 (d10v_gdbarch_init): Set unwind_pc.
523
ef840a37
AC
5242003-03-10 Andrew Cagney <cagney@redhat.com>
525
a2ce2e56
AC
526 * gdbarch.h: Re-generate.
527
ef840a37
AC
528 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
529 PC.
530 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
531 the PC register.
532
08f3424b
MK
5332003-03-08 Mark Kettenis <kettenis@gnu.org>
534
535 * gdbarch.sh (save_dummy_frame_tos): Add comment.
536
1248ede2
AC
5372003-03-08 Andrew Cagney <cagney@redhat.com>
538
539 * cli-out.c: Update copyright.
540 (cli_out_data): Define typedef. Use instead of ui_out_data.
541
f49bacc8
AC
5422003-03-08 Andrew Cagney <cagney@redhat.com>
543
544 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
545 the result.
546
9b05f993
AC
5472003-03-07 Andrew Cagney <cagney@redhat.com>
548
549 * gdbarch.sh: Don't generate two macro definitions when an
550 undefined macro taking no arguments.
551 * gdbarch.h: Regenerate.
552
166f4c7b
ML
5532002-03-07 Michal Ludvig <mludvig@suse.cz>
554
555 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
556 (x86_64_unwind_dummy_id): New functions.
557 (x86_64_init_abi): Register these two new functions.
558
6d686a84
ML
5592003-03-07 Michal Ludvig <mludvig@suse.cz>
560
561 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
562 (x86_64_skip_prologue): Move prologue detection to
563 separate function.
564 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
565
6314f104
AC
5662003-03-05 Andrew Cagney <cagney@redhat.com>
567
568 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
569 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
570 * frame.c (get_prev_frame): Restructure the frame ID unwind code
571 to use unwind_dummy_id when a dummy frame.
572 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
573 predicate.
574 * gdbarch.h, gdbarch.c: Regneerate.
575
ceea5145
AC
5762003-03-05 Andrew Cagney <cagney@redhat.com>
577
578 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
579 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
580 Do not use d10v_read_sp or d10v_read_fp when obtaining register
581 values.
582
0d843116
AC
5832003-03-05 Andrew Cagney <cagney@redhat.com>
584
585 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
586 (struct d10v_unwind_cache): Delete field "frameless". Replace
587 "next_addr" with "sp_offset". Add "r11_offset".
588 (d10v_frame_unwind_cache): Update.
589 (prologue_find_regs): Update. When "mv r11, sp", save the
590 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
591 RN was saved in r11_offset.
592
b2579786
AC
5932003-03-05 Andrew Cagney <cagney@redhat.com>
594
595 * frame.c (deprecated_update_frame_pc_hack): Also update the the
596 cached PC value in the next frame.
597
218e5956
AC
5982003-03-05 Andrew Cagney <cagney@redhat.com>
599
600 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
601 "id_unwind_cache" with "id".
602 (frame_id_unwind): Delete declaration.
603 * frame.c (frame_id_unwind): Delete function.
604 (get_prev_frame): Call the frame id unwind method directly. Store
605 the returned next frame's ID value in NEXT_FRAME. Note that there
606 is a problem with the wrong unwind ID being called with the wrong
607 unwind cache.
608
ed363b1b
DJ
6092003-03-05 Daniel Jacobowitz <drow@mvista.com>
610
611 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
612
fe1f4a5e
DJ
6132003-03-05 James Ingham <jingham@apple.com>
614 Daniel Jacobowitz <drow@mvista.com>
615
616 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
617 (auto_cp_abi): New variable.
618 (current_cp_abi, num_cp_abis): Make static.
619 (CP_ABI_MAX): Define.
620 (cp_abis): Turn into an array.
621 (value_virtual_fn_field): Fix formatting.
622 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
623 takes a pointer.
624 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
625 (list_cp_abis, _initialize_cp_abi): New functions.
626 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
627 declarations for cp_abis, num_cp_abis, current_cp_abi, and
628 switch_to_cp_abi. Update prototype for register_cp_abi.
629 * Makefile.in (cp-abi.o): Update dependencies.
630 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
631 instead of switch_to_cp_abi.
632 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
633 register_cp_abi.
634 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
635 register_cp_abi.
636 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
637
e4adbba9
DJ
6382003-03-05 Daniel Jacobowitz <drow@mvista.com>
639
640 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
641 * dwarf2loc.c: Include "regcache.h".
642 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
643 register_size.
644 * Makefile.in (dwarf2loc.o): Update dependencies.
645
91ccbfc1
TR
6462003-03-04 Theodore A. Roth <troth@openavr.org>
647
648 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
649 number of io registers reported by remote target is not a multiple of
650 step.
651
3d4e8fd2
DC
6522003-03-04 David Carlton <carlton@math.stanford.edu>
653
654 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
655 (lookup_symbol_aux_psymtabs): Update call to
656 lookup_partial_symbol.
657 (lookup_transparent_type, find_main_psymtab)
658 (make_symbol_overload_list): Ditto.
659
ed42d87b
KH
6602003-03-04 Kazu Hirata <kazu@cs.umass.edu>
661
662 * MAINTAINERS (Write after approval): Update my email address.
663
a0ed5532
AC
6642003-03-03 Andrew Cagney <cagney@redhat.com>
665
666 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
667 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
668 predicate. Replace MAX_REGISTER_RAW_SIZE.
669 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
670 MAX_REGISTER_VIRTUAL_SIZE.
671 * regcache.c (legacy_max_register_raw_size): New function.
672 (legacy_max_register_virtual_size): New function.
673 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
674 (MAX_REGISTER_RAW_SIZE): Define.
675 (legacy_max_register_raw_size): Declare.
676 (legacy_max_register_virtual_size): Declare.
677 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
678 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
679 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
680 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
681 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
682 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
683 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
684 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
685 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
686 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
687 * vax-tdep.c (vax_gdbarch_init): 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 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
694 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
695 * mips-tdep.c (mips_gdbarch_init): Update.
696 * mcore-tdep.c (mcore_gdbarch_init): Update.
697 * m68k-tdep.c (m68k_gdbarch_init): Update.
698 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
699 * ia64-tdep.c (ia64_gdbarch_init): Update.
700 * i386-tdep.c (i386_gdbarch_init): Update.
701 * hppa-tdep.c (hppa_gdbarch_init): Update.
702 * h8300-tdep.c (h8300_gdbarch_init): Update.
703 * frv-tdep.c (frv_gdbarch_init): Update.
704 * cris-tdep.c (cris_gdbarch_init): Update.
705 * avr-tdep.c (avr_gdbarch_init): Update.
706 * arm-tdep.c (arm_gdbarch_init): Update.
707 * alpha-tdep.c (alpha_gdbarch_init): Update.
708 * d10v-tdep.c (d10v_gdbarch_init): Do not set
709 max_register_raw_size or max_register_virtual_size.
710
8e437497
DC
7112003-03-03 David Carlton <carlton@math.stanford.edu>
712
713 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
714 SYMBOL_MATCHES_NAME, add comment.
715 (SYMBOL_MATCHES_NATURAL_NAME): New.
716 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
717 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
718 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
719 * symtab.c (lookup_partial_symbol): Use
720 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
721 unhelpful comment.
722 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
723 SYMBOL_MATCHES_NAME.
724 Fix for PR c++/33.
725
25120b0d
DC
7262003-03-03 David Carlton <carlton@math.stanford.edu>
727
728 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
729 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
730 by regexp matching against SYMBOL_NATURAL_NAME.
731
78a11fb4
DC
7322003-03-03 David Carlton <carlton@math.stanford.edu>
733
734 * linespec.c (find_method): Extract code into collect_methods.
735 (collect_methods): New.
736
645dd519
MK
7372003-03-02 Mark Kettenis <kettenis@gnu.org>
738
b4700d91
MK
739 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
740 get_frame_base.
741
645dd519
MK
742 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
743 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
744
0aa7e1aa
SC
7452003-03-02 Stephane Carrez <stcarrez@nerim.fr>
746
747 * arch-utils.c (generic_register_byte): Fix to use the loop index
748 and not regnum when summing the size of all registers up to regnum.
749
f30ee0bc
AC
7502003-03-01 Andrew Cagney <cagney@redhat.com>
751
752 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
753 FRAME_INIT_SAVED_REGS.
754 * gdbarch.h, gdbarch.c: Regenerate.
755 * stack.c (frame_info): Update.
756 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
757 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
758 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
759 * ns32k-tdep.c (ns32k_pop_frame): Update.
760 * mips-tdep.c (mips_pop_frame): Update.
761 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
762 * ia64-tdep.c (ia64_frame_chain): Update.
763 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
764 (ia64_frameless_function_invocation): Update.
765 (ia64_init_extra_frame_info): Update.
766 (ia64_pop_frame_regular): Update.
767 * frame.h (struct frame_info): Update comment.
768 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
769 * frame.c (frame_saved_regs_register_unwind): Update.
770 (frame_saved_regs_register_unwind): Update.
771 (deprecated_generic_get_saved_register): Update.
772 * cris-tdep.c: Update comment.
773 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
774 Rename macro.
775 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
776 * x86-64-tdep.c (x86_64_init_abi): Update.
777 * vax-tdep.c (vax_gdbarch_init): Update.
778 * v850-tdep.c (v850_gdbarch_init): Update.
779 * sparc-tdep.c (sparc_gdbarch_init): Update.
780 * sh-tdep.c (sh_gdbarch_init): Update.
781 * s390-tdep.c (s390_gdbarch_init): Update.
782 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
783 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
784 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
785 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
786 * mips-tdep.c (mips_gdbarch_init): Update.
787 * mcore-tdep.c (mcore_gdbarch_init): Update.
788 * m68k-tdep.c (m68k_gdbarch_init): Update.
789 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
790 * ia64-tdep.c (ia64_gdbarch_init): Update.
791 * i386-tdep.c (i386_gdbarch_init): Update.
792 * frv-tdep.c (frv_gdbarch_init): Update.
793 * avr-tdep.c (avr_gdbarch_init): Update.
794 * arm-tdep.c (arm_gdbarch_init): Update.
795 * alpha-tdep.c (alpha_gdbarch_init): Update.
796
42fa7c0f
AC
7972003-03-01 Andrew Cagney <cagney@redhat.com>
798
799 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
800 option enum and switch. When no windows, set the interpreter to
801 INTERP_CONSOLE.
802
49c7e338
AC
8032003-03-01 Andrew Cagney <cagney@redhat.com>
804
805 * main.c (captured_main): Replace magic option characters with an
806 enum.
807
e9582e71
AC
8082003-03-01 Andrew Cagney <cagney@redhat.com>
809
810 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
811 INIT_EXTRA_FRAME_INFO.
812 * gdbarch.h, gdbarch.c: Regenerate.
813 * arm-tdep.c: Update comments.
814 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
815 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
816 * frame.h, avr-tdep.c: Ditto.
817 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
818 (create_new_frame, legacy_get_prev_frame): Ditto.
819 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
820 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
821 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
822 deprecated_init_extra_frame_info instead of init_extra_frame_info.
823 * x86-64-tdep.c (x86_64_init_abi): Ditto.
824 * v850-tdep.c (v850_gdbarch_init): Ditto.
825 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
826 * sh-tdep.c (sh_gdbarch_init): Ditto.
827 * s390-tdep.c (s390_gdbarch_init): Ditto.
828 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
829 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
830 * mips-tdep.c (mips_gdbarch_init): Ditto.
831 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
832 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
833 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
834 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
835 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
836 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
837 * frv-tdep.c (frv_gdbarch_init): Ditto.
838 * cris-tdep.c (cris_gdbarch_init): Ditto.
839 * avr-tdep.c (avr_gdbarch_init): Ditto.
840 * arm-tdep.c (arm_gdbarch_init): Ditto.
841 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
842 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
843
35cac7cf
AC
8442003-03-01 Andrew Cagney <cagney@redhat.com>
845
846 * gdbarch.sh (register_type): New function with predicate.
847 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
848 * gdbarch.h, gdbarch.c: Re-generate.
849 * arch-utils.c (generic_register_byte): Use generic_register_size.
850 (generic_register_size): When available, use
851 gdbarch_register_type.
852 * regcache.c (init_regcache_descr): When available, initialize the
853 register type array using gdbarch_register_type. If the
854 architecture supplies gdbarch_register_type, do not use the legacy
855 regcache layout.
856 * d10v-tdep.c (d10v_register_type): Replace
857 d10v_register_virtual_type.
858 (d10v_gdbarch_init): Set register_type instead of
859 register_virtual_type.
860
7b83296f
AC
8612003-03-01 Andrew Cagney <cagney@redhat.com>
862
863 * Makefile.in (ax-gdb.o): Update dependencies.
864 * ax-gdb.c: Include "regcache.h".
865 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
866 * findvar.c (value_of_register): Ditto.
867 * infcmd.c (default_print_registers_info): Ditto.
868
eadc1c87
MK
8692003-03-01 Mark Kettenis <kettenis@gnu.org>
870
871 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
872 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
873
14143612
MK
8742003-03-01 Mark Kettenis <kettenis@gnu.org>
875
876 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
877 of STREQ.
878
a55cc764
DJ
8792003-02-28 Daniel Jacobowitz <drow@mvista.com>
880
881 * Makefile.in (dwarf2loc.o): Update dependencies.
882 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
883 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
884 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
885 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
886 (locexpr_tracepoint_var_ref): New function.
887 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
888
08a617da
AC
8892003-02-28 Andrew Cagney <cagney@redhat.com>
890
891 * regcache.c (register_size): New function.
892 * regcache.h (register_size): Declare
893 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
894 max_register_size instead of MAX_REGISTER_RAW_SIZE.
895
4224873a
DC
8962003-02-28 David Carlton <carlton@math.stanford.edu>
897
898 * linespec.c (decode_compound): Extract code into find_method.
899 (find_method): New.
900
ccdc5d7f
JB
9012003-02-28 J. Brobecker <brobecker@gnat.com>
902
903 * Makefile.in: Add rules to build and link in observer.o.
904
974e8ced
JB
9052003-02-27 J. Brobecker <brobecker@gnat.com>
906
907 * observer.c: Minor comments edits.
908
7a28f973
JB
9092003-02-27 J. Brobecker <brobecker@gnat.com>
910
911 * observer.h, observer.c: New file.
912
27cddce2
AC
9132003-02-27 Andrew Cagney <cagney@redhat.com>
914
915 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
916
b94a41a1
SC
9172003-02-27 Stephane Carrez <stcarrez@nerim.fr>
918
919 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
920 (M6812_OP_STS_EXT): Likewise.
921 (m6811_prologue): Use the above to recognize prologue.
922 (m6812_prologue): Likewise.
923
c8be8951
DC
9242003-02-27 David Carlton <carlton@math.stanford.edu>
925
926 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
927 SYMBOL_PRINT_NAME.
928 (compare_psymbols): Ditto.
929 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
930
d05bb1fc
MS
9312003-02-27 Michael Snyder <msnyder@redhat.com>
932
4e845cd3
MS
933 * f-lang.c (build_fortran_types): New function.
934 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
935 * doublest.c (extract_floating): Fix warning text.
936
f3824013
AC
9372003-02-27 Andrew Cagney <cagney@redhat.com>
938
939 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
940 predicate. Replaces PUSH_DUMMY_FRAME.
941 * gdbarch.h, gdbarch.c: Regnerate.
942 * valops.c (hand_function_call): Update. Call
943 generic_push_dummy_frame directly.
944 * vax-tdep.c (vax_gdbarch_init): Update.
945 * sparc-tdep.c (sparc_gdbarch_init): Update.
946 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
947 * m68k-tdep.c (m68k_gdbarch_init): Update.
948 * hppa-tdep.c (hppa_gdbarch_init): Update.
949 * alpha-tdep.c (alpha_gdbarch_init): Update.
950 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
951 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
952 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
953 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
954 push_dummy_frame to generic_push_dummy_frame.
955 * v850-tdep.c (v850_gdbarch_init): Ditto.
956 * sh-tdep.c (sh_gdbarch_init): Ditto.
957 * s390-tdep.c (s390_gdbarch_init): Ditto.
958 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
959 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
960 * mips-tdep.c (mips_gdbarch_init): Ditto.
961 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
962 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
963 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
964 * i386-tdep.c (i386_gdbarch_init): Ditto.
965 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
966 * frv-tdep.c (frv_gdbarch_init): Ditto.
967 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
968 * cris-tdep.c (cris_gdbarch_init): Ditto.
969 * avr-tdep.c (avr_gdbarch_init): Ditto.
970 * arm-tdep.c (arm_gdbarch_init): Ditto.
971
ad188201
KB
9722003-02-26 Kevin Buettner <kevinb@redhat.com>
973
974 * mips-tdep.c (show_mips_abi): New function.
975 (_initialize_mips_tdep): Use show_mips_abi() to implement the
976 command ``show mips abi''.
977
6b37567a
JJ
9782003-02-26 Jeff Johnston <jjohnstn@redhat.com>
979
980 From Elena Zannoni <ezannoni@redhat.com>
981 * dbxread.c (process_one_symbol): Only record line 0 if one or
982 more sline entries have been seen for the function.
983
d3e0a5bf
MC
9842003-02-26 Michael Chastain <mec@shout.net>
985
986 * configure: Regenerate with autoconf 000227.
987
18972eea
MC
9882003-02-26 Michael Chastain <mec@shout.net>
989
990 Close PR build/660.
991 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
992 for old libc5/glibc.
993 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
994
0bbde931
KW
9952003-02-26 Kris Warkentin <kewarken@qnx.com>
996
997 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
998 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
999
27ca5dad
MC
10002003-02-26 Michael Chastain <mec@shout.net>
1001
1002 * configure.in: New variable HAVE_UINTPTR_T.
1003 * configure, config.in: Regenerated.
1004
6f88d630
DJ
10052003-02-26 Daniel Jacobowitz <drow@mvista.com>
1006
1007 Fix PR build/1097.
1008 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
1009
b14185ce
AC
10102003-02-25 Andrew Cagney <cagney@redhat.com>
1011
1012 * frame.c (get_prev_frame): Add comment on check for
1013 inside_entry_func. Only check for inside_entry_file when not a
1014 dummy and not a sentinel. Check that the new frame is not inner
1015 to the old frame.
1016
ac2bd0a9
AC
10172003-02-25 Andrew Cagney <cagney@redhat.com>
1018
1019 * frame.c (frame_debug): New variable.
1020 (_initialize_frame): Add "set/show debug frame" command.
1021 (get_prev_frame): When frame_debug, print reason why unwind
1022 failed.
1023
b18a0fd2
MC
10242003-02-25 Michael Chastain <mec@shout.net>
1025
1026 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
1027 to avoid uintptr_t definition problems.
1028
22abf04a
DC
10292003-02-25 David Carlton <carlton@math.stanford.edu>
1030
1031 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
1032 (SYMBOL_LINKAGE_NAME): Ditto.
1033 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
1034 SYMBOL_LINKAGE_NAME.
1035 (struct general_symbol_info): Expand comment.
1036 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
1037 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
1038 (SYMBOL_MATCHES_REGEXP): Ditto.
1039 * symtab.c (symbol_natural_name): New function.
1040 * objfiles.h: Replace all uses of SYMBOL_NAME by
1041 DEPRECATED_SYMBOL_NAME.
1042 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
1043 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
1044 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
1045 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
1046 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
1047 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
1048 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
1049 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
1050 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
1051 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
1052 * ada-exp.y: Ditto.
1053 * ada-exp.y: Update copyright.
1054 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
1055 * cp-valprint.c: Ditto.
1056
1a5848f6
JJ
10572003-02-25 Jeff Johnston <jjohnstn@redhat.com>
1058
1059 * infptrace.c (detach): Do not flag error if ptrace detach fails
1060 and errno is set to ESRCH.
1061
7343d46a
AC
10622003-02-24 Andrew Cagney <cagney@redhat.com>
1063
1064 * infptrace.c (udot_info): Change type of udot_off to long. Use
1065 paddr when printing udot_off's value.
1066
49fa1dc2
DC
10672003-02-24 David Carlton <carlton@math.stanford.edu>
1068
1069 * symtab.c (make_symbol_overload_list): Only read in partial
1070 symtabs containing a matching partial symbol.
1071
0fe19209
DC
10722003-02-24 David Carlton <carlton@math.stanford.edu>
1073
1074 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
1075 do the comparison, not strcmp.
1076 * symfile.c (compare_psymbols): Ditto.
1077 * defs.h: Declare strcmp_iw_ordered.
1078 * utils.c (strcmp_iw_ordered): New function.
1079
8e3ee7b5
JB
10802003-02-24 Jim Blandy <jimb@redhat.com>
1081
1082 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
1083 support, shared libs): Remove my name from here, to better reflect
1084 reality.
1085
7df1a324
KW
10862003-02-24 Kris Warkentin <kewarken@qnx.com>
1087
1088 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
1089 (target_ops): Add to_have_continuable_watchpoint.
1090 * target.c (update_current_target): Add INHERIT line for
1091 to_have_continuable_watchpoint.
1092 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
1093 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
1094 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
1095 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
1096
d1c76907
EZ
10972003-02-24 Elena Zannoni <ezannoni@redhat.com>
1098
1099 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
1100 maintainership.
1101
2610b0bf
KW
11022003-02-24 Kris Warkentin <kewarken@qnx.com>
1103
f46169db
KW
1104 * solib.c (solib_open): Call target defined search function after
1105 failing with solib-search-path.
1106 * solist.h (target_so_ops): Add find_and_open_solib function hook and
1107 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 1108
9a3c34fe
KW
11092003-02-24 Kris Warkentin <kewarken@qnx.com>
1110
f46169db 1111 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 1112
2417dd25
SC
11132003-02-23 Stephane Carrez <stcarrez@nerim.fr>
1114
1115 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
1116
b631436b
SC
11172003-02-22 Stephane Carrez <stcarrez@nerim.fr>
1118
1119 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
1120 (m68hc11_add_reggroups): New function.
1121 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
1122 (m68hc11_gdbarch_init): Install the reggroups.
1123 (_initialize_m68hc11_tdep): Initialize them.
1124
0aa8c1e4
JW
11252003-02-21 James E Wilson <wilson@tuliptree.org>
1126
1127 * MAINTAINERS: Update my email address.
1128
50ceaba5
DC
11292003-02-21 David Carlton <carlton@math.stanford.edu>
1130
1131 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
1132
4c2df51b
DJ
11332003-02-21 Daniel Jacobowitz <drow@mvista.com>
1134
1135 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
1136 * symtab.h: Add opaque declarations of struct axs_value and
1137 struct agent_expr.
1138 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
1139 (struct location_funcs): New type.
1140 (struct symbol): Add "loc" to aux_value.
1141 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
1142 * dwarf2read.c: Include "dwarf2expr.h".
1143 (dwarf2_symbol_mark_computed): New function.
1144 (read_func_scope): Use it.
1145 (var_decode_location): New function.
1146 (new_symbol): Use it.
1147 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
1148
1149 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
1150 (dwarf2expr_h, dwarf2loc_h): New variables.
1151 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
1152 (dwarf2expr.o, dwarf2loc.o): New rules.
1153 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
1154 * buildsym.c (finish_block): Handle LOC_COMPUTED and
1155 LOC_COMPUTED_ARG.
1156 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
1157 * m2-exp.y (yylex): Likewise.
1158 * printcmd.c (address_info, print_frame_args): Likewise.
1159 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
1160 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
1161 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
1162 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
1163 * symtab.c (lookup_block_symbol): Likewise.
1164
5784d15e
AF
11652003-02-20 Adam Fedor <fedor@gnu.org>
1166
1167 * symtab.h: Remove objc_specific struct
1168 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
1169 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
1170 Have language_objc use cplus_specific struct.
1171
d4cad8db
TT
11722003-02-20 Tom Tromey <tromey@redhat.com>
1173
1174 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
1175 TYPE_NAME, when printing a String value. PR java/1075.
1176
2f9a90b4
AF
11772003-02-20 Adam Fedor <fedor@gnu.org>
1178
d38074a8 1179 * objc-lang.h (find_methods): Remove declaration.
2f9a90b4
AF
1180 * objc-lang.c (find_methods): Make static.
1181
6f17862b
CF
11822003-02-20 Christopher Faylor <cgf@redhat.com>
1183
1184 * win32-nat.c (get_image_name): Check return value from
1185 ReadProcessMemory.
1186 (child_xfer_memory): Ditto.
1187
715d1656
AO
11882003-02-20 Alexandre Oliva <aoliva@redhat.com>
1189
1190 * configure.in (TARGET_SYSTEM_ROOT): Set default to
1191 ${exec_prefix}/${target_alias}/sys-root. Match explicit
1192 '${exec_prefix}' (in addition to the expansion thereof) as
1193 relocatable.
1194 * configure: Rebuilt.
1195
b1262a02
DC
11962003-02-20 David Carlton <carlton@math.stanford.edu>
1197
1198 * symtab.c (search_symbols): Revert the search_symbols part of my
1199 2002-12-23 patch. Add comment.
1200
7134143f
DJ
12012002-02-20 Daniel Jacobowitz <drow@mvista.com>
1202
1203 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
1204 * dbxread.c (elfstab_build_psymtabs): Don't call
1205 install_minimal_symbols.
1206 (stabsect_build_psymtabs): Likewise.
1207 * elfread.c (elf_symfile_read): Call install_minimal_symbols
1208 earlier.
1209 * somread.c (som_symfile_read): Call install_minimal_symbols
1210 and do_cleanups earlier.
1211 * nlmread.c (nlm_symfile_read): Likewise.
1212 * mdebugread.c (elfmdebug_build_psymtabs): Call
1213 install_minimal_symbols and make appropriate cleanups.
1214
cf466558
KB
12152003-02-20 Kevin Buettner <kevinb@redhat.com>
1216
1217 * solib.c (reload_shared_libraries): New function.
1218 (_initialize_solib): Add callbacks for ``set solib-search-path''
1219 and ``set solib-absolute-prefix''.
1220
de5ad195
DC
12212003-02-20 David Carlton <carlton@math.stanford.edu>
1222
1223 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
1224 expand comment.
1225 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
1226 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
1227 * ada-typeprint.c (ada_typedef_print): Ditto.
1228 * ax-gdb.c (gen_var_ref): Ditto.
1229 * breakpoint.c (print_one_breakpoint): Ditto.
1230 * buildsym.c (finish_block): Ditto.
1231 * c-valprint.c (c_val_print): Ditto.
1232 * expprint.c (print_subexp): Ditto.
1233 * findvar.c (locate_var_value): Ditto.
1234 * infcmd.c (jump_command): Ditto.
1235 * linespec.c (decode_line_2, decode_compound): Ditto.
1236 * maint.c (maintenance_translate_address): Ditto.
1237 * objc-lang.c (compare_selectors, compare_classes): Ditto.
1238 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
1239 Ditto.
1240 * p-valprint.c (pascal_val_print): Ditto.
1241 * stabsread.c (define_symbol): Ditto.
1242 * stack.c (print_frame, frame_info, print_block_frame_locals)
1243 (print_frame_arg_vars, return_command): Ditto.
1244 * symfile.c (compare_symbols, compare_psymbols): Ditto.
1245 * symmisc.c (print_symbol): Ditto.
1246 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
1247 (compare_search_syms, print_symbol_info, print_msymbol_info)
1248 (rbreak_command): Ditto.
1249 * tracepoint.c (tracepoints_info): Ditto.
1250 * typeprint.c (typedef_print): Ditto.
1251 * valops.c (value_of_variable, hand_function_call): Ditto.
1252 * cli/cli-cmds.c (edit_command, list_command): Ditto.
1253 * ada-typeprint.c: Update Copyright.
1254 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
1255 * tracepoint.c, cli/cli-cmds.c: Ditto.
1256
f796e4be
KB
12572003-02-20 Kevin Buettner <kevinb@redhat.com>
1258
1259 * frame.c (generic_unwind_get_saved_register): Make non-static.
1260 * frame.h (generic_unwind_get_saved_register): Declare.
1261 * mips-tdep.c (read_next_frame_reg): Fetch register from
1262 current regcache when frame is NULL.
1263 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
1264 that must be NULL.
1265 (mips_get_saved_register): Call generic_unwind_get_saved_register()
1266 instead of frame_register_unwind().
1267
836cc9f4
AC
12682003-02-20 Andrew Cagney <ac131313@redhat.com>
1269
1270 * remote-sim.c (gdbsim_insert_breakpoint)
1271 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
1272 code.
1273
501eef12
AC
12742003-02-20 Andrew Cagney <ac131313@redhat.com>
1275
1276 * remote.c (_initialize_remote): Add commands "set/show remote
1277 hardware-watchpoint-limit" and "set/show remote
1278 hardware-breakpoint-limit".
1279 (remote_hw_watchpoint_limit): Initialize to -1.
1280 (remote_hw_breakpoint_limit): Ditto.
1281 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
1282
1b6bc7e0
CF
12832003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
1284
1285 * coff-pe-read.c: New file - support reading of minimal symbols from a
1286 portable executable using the export table.
1287 * coff-pe-read.h: New file.
1288 * coffread.c: Include coff-pe-read.h.
1289 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
1290 debugging symbols found.
1291 * Makefile.in (SFILES): Add coff-pe-read.o.
1292 (coff_pe_read_h): Define.
1293 (COMMON_OBS): Add coff-pe-read.o.
1294 (coffread.o): Add coff_pe_read_h dependency.
1295 (coff-pe-read.o): New target.
1296
fe898f56
DC
12972003-02-19 David Carlton <carlton@math.stanford.edu>
1298
1299 * Makefile.in (SFILES): Add block.c.
1300 (block_h): New.
1301 (COMMON_OBS): Add block.o.
1302 (block.o): New.
1303 (x86-64-tdep.o): Add $(block_h).
1304 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
1305 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
1306 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
1307 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
1308 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
1309 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
1310 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
1311 * value.h: Add opaque declaration for struct block.
1312 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
1313 * ada-lang.h: Ditto.
1314 * x86-64-tdep.c: #include "block.h"
1315 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
1316 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
1317 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
1318 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
1319 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
1320 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
1321 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
1322 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
1323 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
1324 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
1325 * symtab.c (block_function): Ditto.
1326 (contained_in): Ditto.
1327 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
1328 block.h. Add opaque declaration for struct block.
1329 * symtab.h: Move block_function and contained_in declarations to
1330 block.h. Add opaque declarations for struct block, struct
1331 blockvector.
1332 (struct block): Move to block.h.
1333 (struct blockvector): Ditto.
1334 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
1335 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
1336 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
1337 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
1338 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
1339 Ditto.
1340 * block.c: New file.
1341 * block.h: New file.
1342
173345b5
TR
13432003-02-19 Theodore A. Roth <troth@openavr.org>
1344
1345 * avr-tdep.c (avr_extract_return_value): Remove function.
1346 (avr_store_return_value): Remove function.
1347 (avr_extract_struct_value_address): Remove function.
1348 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
1349
338ef23d
AC
13502003-02-19 Andrew Cagney <ac131313@redhat.com>
1351
1352 * rs6000-tdep.c: Include "gdb_assert.h".
1353 (registers_e500): Add "acc" and "spefscr".
1354 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
1355 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
1356 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
1357 really is "r0".
1358 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
1359
5412f5f3
KS
13602003-02-18 Keith Seitz <keiths@redhat.com>
1361
1362 * Makefile.in: Add gdbtk-interps.c.
1363
881324eb
KB
13642003-02-18 Kevin Buettner <kevinb@redhat.com>
1365
1366 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
1367 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
1368
6a2f5abf
AC
13692003-02-18 Andrew Cagney <cagney@redhat.com>
1370
1371 * symtab.h (struct objfile): Add opaque declaration.
1372
54c7009d
EZ
13732003-02-18 Elena Zannoni <ezannoni@redhat.com>
1374
1375 From Jim Ingham <jingham@apple.com>:
1376 * dbxread.c (process_one_symbol): Use last_function_start rather
1377 than function_start_offset to find the real beginning of the
1378 current function. The latter is just the text section offset on
1379 some systems, the former is always the real function start.
1380
7ee6d7eb
AC
13812003-02-17 Andrew Cagney <cagney@redhat.com>
1382
1383 * configure.in: Revert ${target} != ${host}.
1384
2846da9b
AC
13852003-02-17 Andrew Cagney <ac131313@redhat.com>
1386
1387 * configure.in (Makefile): Use the test ${target} != ${host},
1388 instead of the absence of the "nm.h" file, to determine of the
1389 configuration non-native.
1390 * configure: Regenerate.
1391
3b27aeea
EZ
13922003-02-14 Elena Zannoni <ezannoni@redhat.com>
1393
1394 From Brian Ford <ford@vss.fsi.com>
1395
1396 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
1397 conditionalize tui_active test.
1398 (lookup_cmd_1): Ditto.
1399
b0b1c2c0
MK
14002003-02-14 Mark Kettenis <kettenis@gnu.org>
1401
1402 * configure.in: Add check for _etext.
1403 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
1404 available.
1405 * config.in, configure: regenerated.
1406
8f05cde5
DJ
14072003-02-14 Daniel Jacobowitz <drow@mvista.com>
1408
1409 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
1410
021e7609
AC
14112003-02-14 Andrew Cagney <ac131313@redhat.com>
1412
1413 * main.c (tui_version): Delete variable.
1414 (captured_main): When --tui, set interpreter_p to "tui" instead of
1415 enabling tui_version.
1416 * printcmd.c (display_command) [TUI]: Test tui_active instead of
1417 tui_version.
1418 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
1419 * cli/cli-cmds.c (disassemble_command): Ditto.
1420 * defs.h (tui_version): Delete declaration.
1421 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
1422 (tui-interp.o): Add rules.
1423 (SUBDIR_TUI_OBS): Add "tui-interp.o".
1424
e325dcec
CF
14252003-02-14 Christopher Faylor <cgf@redhat.com>
1426
36ffb041 1427 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
1428 just-loaded dll.
1429
c4f90d87
JM
14302003-02-12 Jason Molenda (jmolenda@apple.com)
1431
1432 * symmisc.c (print_objfile_statistics): Include information about
1433 the number of psymtabs and symtabs in each object file.
1434
e46e5ccd
KS
14352003-02-13 Keith R Seitz <keiths@redhat.com>
1436
1437 * main.h (struct captured_main_args): Add interpreter_p.
1438 * main.c (captured_main): Initialize interpreter_p from context.
1439 * gdb.c (main): Set interpreter_p argument.
1440 * Makefile.in (gdb.o): Add dependency for interps.h.
1441
fe97fe9c
AC
14422003-02-12 Andrew Cagney <ac131313@redhat.com>
1443
1444 * event-top.c (cli_command_loop): Delete declaration.
1445 (_initialize_event_loop): Delete function setting event_loop_hook.
1446 * event-top.h (cli_command_loop): Declare. Update copyright.
1447 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
1448 * interps.c (current_interp_command_loop): When event_loop_p, call
1449 cli_command_loop.
1450
1cdac4ef
AC
14512003-02-12 Andrew Cagney <ac131313@redhat.com>
1452
1453 * interps.h (interp_command_loop_ftype): Change return type to
1454 void.
1455
48037ead
ML
14562003-02-12 Michal Ludvig <mludvig@suse.cz>
1457
1458 * x86-64-tdep.c (x86_64_extract_return_value)
1459 (x86_64_store_return_value): Use regcache instead of regbuf.
1460 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
1461 * x86-64-linux-nat.c (fill_gregset): Use regcache.
1462
033afc63
AC
14632003-02-11 Andrew Cagney <ac131313@redhat.com>
1464
1465 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
1466 * aclocal.m4: Regenerate.
1467 * configure: Regenerate.
1468
1469 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
1470 TCL_LD_SEARCH_FLAGS.
1471
40d02bca
ML
14722003-02-10 Michal Ludvig <mludvig@suse.cz>
1473
1474 * dwarf2cfi.c: Reindented.
1475
11308a41
AC
14762003-02-09 Andrew Cagney <ac131313@redhat.com>
1477
1478 * interps.c (clear_interpreter_hooks): Convert function definition
1479 to ISO C.
1480
e1c1c0f6
DC
14812003-02-07 David Carlton <carlton@math.stanford.edu>
1482
1483 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
1484
ab5d3da6
KB
14852003-02-07 Kevin Buettner <kevinb@redhat.com>
1486
1487 * gdbtypes.h (struct main_type): Move ``length'' field from here...
1488 (struct type): ...to here.
1489 (TYPE_LENGTH): Adjust to reflect different location of ``length''
1490 field.
1491 * gdbtypes.c (make_qualified_type): Set length on newly created type.
1492 (replace_type): Set length on all type variants for a given type.
1493
b8a92b82
AC
14942003-02-07 Andrew Cagney <ac131313@redhat.com>
1495
1496 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
1497 <sys/stat.h>.
1498 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
1499
5cb316ef
AC
15002003-02-06 Andrew Cagney <ac131313@redhat.com>
1501
2555fe1a
AC
1502 * Makefile.in (symm-nat.o): Update dependencies.
1503 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
1504 (lynx-nat.o, ia64-linux-nat.): Ditto.
1505 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
1506 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
1507 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
1508
44270758
AC
1509 * Makefile.in (inflow_h): Define.
1510 (procfs.o, inflow.o, procfs.o): Update dependencies.
1511 * inftarg.c (child_stop): Delete extern declaration of
1512 inferior_process_group. Include "inflow.h".
1513 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
1514 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
1515 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
1516 (our_process_group, inferior_process_group): Extern declarations.
1517
df8f7274
AC
1518 * procfs.c: Include "gdb_assert.h".
1519
5cb316ef
AC
1520 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
1521 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
1522 * jv-typeprint.c (java_type_print_base): Ditto.
1523 * typeprint.c (typedef_print): Eliminate STREQ.
1524 * cli/cli-script.c (define_command, define_command): Ditto.
1525 * main.c (captured_main): Ditto.
1526 * values.c (lookup_internalvar): Ditto.
1527 * utils.c (safe_strerror, parse_escape): Eliminate assignment
1528 within `if' conditional.
1529 * linespec.c (decode_line_2): Ditto.
1530 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
1531 (bfd_openw_with_cleanup): Ditto.
1532
2a28ccea
MK
15332003-02-07 Mark Kettenis <kettenis@gnu.org>
1534
1535 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
1536 legacy_extract_return_value and store_return_value to
1537 legacy_return_value.
1538
786b8124
CF
15392003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
1540
1541 * win32-nat.c (get_relocated_section_addrs): New function. Find
1542 section load addresses for symbol handling in relocated DLLs.
1543 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
1544
b871e4ec
FF
15452003-02-05 Fred Fish <fnf@intrinsity.com>
1546
1547 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
1548 '=' and '!='.
1549 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
1550 with '&' and '=='.
1551 (angel_RDI_info): Ditto.
1552 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
1553 with '&' and '!='.
1554 (threads_continue_all_with_signals): Ditto.
1555
4389a95a
AC
15562003-02-05 Jim Ingham <jingham@apple.com>
1557 Keith Seitz <keiths@redhat.com>
1558 Elena Zannoni <ezannoni@redhat.com>
1559 Andrew Cagney <ac131313@redhat.com>
1560
1561 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
1562 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
1563 (SUBDIR_MI_OBS): Add "mi-interp.o".
1564 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
1565 (SFILES): Add "interps.c".
1566 (COMMON_OBS): Add "interps.o".
1567 (interps_h, mi_main_h): Define.
1568 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
1569 (mi-main.o, main.o, event-top.o): Update dependencies.
1570 * cli/cli-interp.c: New file.
1571 * interps.h, interps.c: New files.
1572 * top.c: (gdb_init): Don't install the default interpreter, handed
1573 by captured_main.
1574 * main.c: Include "interps.h".
1575 (interpreter_p): Note that it should malloc'ed.
1576 (captured_command_loop): Call current_interp_command_loop.
1577 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
1578 xfree and xstrdup when updating interpreter_p. Install the
1579 default interpreter. Add hack to stop mi1's copyright notice
1580 being encoded.
1581 * event-top.h (gdb_setup_readline): Declare.
1582 (gdb_disable_readline): Declare.
1583 * event-top.c: Include "interps.h".
1584 (display_gdb_prompt): Call current_interp_display_prompt_p.
1585 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
1586 gdb_stdlog, and gdb_stdtarg.
1587 (_initialize_event_loop): Don't call gdb_setup_readline.
1588 * cli-out.c (cli_out_set_stream): New function.
1589 * cli-out.h (cli_out_set_stream): Declare.
1590
ff3b5810
MK
15912003-02-06 Mark Kettenis <kettenis@gnu.org>
1592
1593 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
1594 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
1595 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
1596 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
1597 config/i386/i386v42mp.mt: Removed.
1598
5b729aa5
MK
15992003-02-05 Mark Kettenis <kettenis@gnu.org>
1600
1601 * configure.tgt (*-*-solaris*): Set gdb_osabi to
1602 GDB_OSABI_SOLARIS.
1603
8cc15142
MC
16042003-02-05 Michael Chastain <mec@shout.net>
1605
1606 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
1607 2.12.1 and earlier versions.
1608
5aa5d4b9
AC
16092003-02-05 Andrew Cagney <ac131313@redhat.com>
1610
1611 Remove orphaned hosts, targets and files.
1612 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
1613 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
1614 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
1615 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
1616 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
1617 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
1618 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
1619 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
1620 * config/sparc/tm-sp64sim.h: Delete.
1621 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
1622 hosts.
1623 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
1624 mips*-dec-mach3* targets.
1625
b68767c1
MC
16262003-02-04 Michael Chastain <mec@shout.net>
1627
1628 * NEWS: Fix typo: sepcifying -> specifying.
1629
5ae7ca1d
MC
16302003-02-04 Michael Chastain <mec@shout.net>
1631
1632 * dwarfread.c: Add documentation on the state of dwarf-1,
1633 looking towards obsoletion.
1634
d08a4280
MC
16352003-02-03 Michael Chastain <mec@shout.net>
1636
1637 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
1638 gdb/testsuite/gdb.c++/pr-1023.exp.
1639
e9be73e4
AC
16402003-02-04 Andrew Cagney <ac131313@redhat.com>
1641
1642 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
1643 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
1644
1645 * utils.c (init_page_info): Delete reference to MPW in comments.
1646 * main.c (captured_main): Delete #ifdef MPW.
1647
05d57f6f
AC
16482003-02-04 Andrew Cagney <ac131313@redhat.com>
1649
1650 * NEWS: Note that the m32r-*-elf* is obsolete.
1651 * monitor.c (monitor_expect): Obsolete reference to m32r.
1652 * configure.tgt: Mark m32r-*-elf* as obsolete.
1653 * MAINTAINERS: Mark m32k as obsolete.
1654 * m32r-rom.c: Obsolete file.
1655 * config/m32r/m32r.mt: Obsolete file.
1656 * config/m32r/tm-m32r.h: Obsolete file.
1657 * m32r-stub.c: Obsolete file.
1658 * m32r-tdep.c: Obsolete file.
1659
8b0e5691
AC
16602003-02-04 Andrew Cagney <ac131313@redhat.com>
1661
1662 * NEWS: Mention that the z8k-zilog-none is obsolete.
1663 * MAINTAINERS: Mark z8k as obsolete.
1664 * configure.tgt: Obsolete the z8k-*-coff* target.
1665 * config/z8k/z8k.mt: Obsolete file.
1666 * config/z8k/tm-z8k.h: Obsolete file.
1667 * z8k-tdep.c: Obsolete file.
1668
67f16606
AC
16692003-02-04 Andrew Cagney <ac131313@redhat.com>
1670
1671 * NEWS: Mention that the mn10200-elf is obsolete.
1672 * configure.tgt: Obsolete mn10200-*-* target.
1673 * breakpoint.c (update_breakpoints_after_exec): Update comment to
1674 mention that the mn10200 is obsolete.
1675 * breakpoint.h: Ditto.
1676 * MAINTAINERS: Mark the mn10200-elf as obsolete.
1677 * config/mn10200/mn10200.mt: Obsolete file.
1678 * config/mn10200/tm-mn10200.h: Obsolete file.
1679 * mn10200-tdep.c: Obsolete file.
1680
fd2299bd
AC
16812003-02-04 Andrew Cagney <ac131313@redhat.com>
1682
1683 * MAINTAINERS: Mark h8500 as obsolete.
1684 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
1685 * findvar.c (value_from_register): Ditto.
1686 * h8500-tdep.c: Mark file as obsolete.
1687 * config/h8500/h8500.mt: Ditto.
1688 * config/h8500/tm-h8500.h: Ditto.
1689 * NEWS: Mention that h8500 is obsolete.
1690
eb9a305d
DC
16912003-02-04 David Carlton <carlton@math.stanford.edu>
1692
1693 * objfiles.c (allocate_objfile): Always set name. Add comment at
1694 start of function.
1695 * jv-lang.c (get_dynamics_objfile): Add comment.
1696
406fc7fb
DC
16972003-02-04 David Carlton <carlton@math.stanford.edu>
1698
1699 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
1700 * printcmd.c (build_address_symbolic): Replace uses of
1701 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
1702 SYMBOL_NAME, and asm_demangle.
1703 Update copyright.
1704
93d91629
DC
17052003-02-04 David Carlton <carlton@math.stanford.edu>
1706
1707 * linespec.c (decode_compound): Extract code into
1708 lookup_prefix_sym.
1709 (lookup_prefix_sym): New function.
1710
1c5cb38e
DC
17112003-02-04 David Carlton <carlton@math.stanford.edu>
1712
1713 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
1714 FLOAT_COERCION_BADNESS.
1715 * gdbtypes.c (rank_one_type): Replace all uses of
1716 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
1717
0cf824c9
JB
17182003-02-04 Jim Blandy <jimb@redhat.com>
1719
1720 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
1721 section, let dwarf_macinfo_section point to it, not
1722 dwarf_loc_section.
1723
a2d356b0
DJ
17242003-02-04 Daniel Jacobowitz <drow@mvista.com>
1725
1726 Pointed out by Anton Blanchard <anton@samba.org>.
1727 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
1728 (ppc_linux_at_sigtramp_return_path): Use it.
1729
2de7ced7
DJ
17302003-02-04 Daniel Jacobowitz <drow@mvista.com>
1731
1732 * defs.h (streq): Add prototype.
1733 * utils.c (streq): New function.
1734
1735 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
1736 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
1737 * mdebugread.c (new_symbol): Likewise.
1738 * stabsread.c (define_symbol): Likewise.
1739 * coffread.c (process_coff_symbol): Likewise.
1740 * dwarfread.c (new_symbol): Likewise.
1741
1742 * minsyms.c (prim_record_minimal_symbol_and_info): Use
1743 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
1744 here.
1745 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
1746 SYMBOL_INIT_DEMANGLED_NAME.
1747 * objfiles.c: Include "hashtab.h".
1748 (allocate_objfile): Call htab_set_functions_ex for the
1749 demangled_names_hash.
1750 (free_objfile): Call htab_delete for the demangled_names_hash.
1751 * objfiles.h (struct htab): Add declaration.
1752 (struct objfile): Add demangled_names_hash.
1753 * symfile.c: Include "hashtab.h".
1754 (reread_symbols): Call htab_delete for the demangled_names_hash.
1755 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
1756 SYMBOL_NAME in the bcache.
1757 * symtab.c: Include "hashtab.h". Update comments.
1758 (create_demangled_names_hash, symbol_set_names): New functions.
1759 (symbol_find_demangled_name): New function, broken out from
1760 symbol_init_demangled_names.
1761 (symbol_init_demangled_names): Use it.
1762 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
1763 (SYMBOL_SET_NAMES): New macro.
1764 (symbol_set_names): Add prototype.
1765
15831452
JB
17662003-02-03 Jim Blandy <jimb@redhat.com>
1767
1768 Use a single, consistent representation for an empty minimal
1769 symbol table in an objfile.
1770 * objfiles.c (terminate_minimal_symbol_table): New function.
1771 (allocate_objfile): Call it.
1772 * objfiles.h (terminate_minimal_symbol_table): New declaration.
1773 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
1774 non-NULL.
1775 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
1776 objfile has minimal symbols, compare minimal_symbol_count to zero,
1777 instead of comparing msymbols with NULL.
1778 * objfiles.c (have_minimal_symbols): Same.
1779 * solib-sunos.c (solib_add_common_symbols): Call
1780 terminate_minimal_symbol_table.
1781 * symfile.c (reread_symbols): Same.
1782
ffc65945
KB
17832003-02-03 Kevin Buettner <kevinb@redhat.com>
1784
1785 * s390-tdep.c (s390_address_class_type_flags)
1786 (s390_address_class_type_flags_to_name)
1787 (s390_address_class_name_to_type_flags): New functions.
1788 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
1789 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
1790
f211c6d4
MS
17912003-02-03 Michael Snyder <msnyder@redhat.com>
1792
1793 * arm-tdep.c: Fix spell-o in comment.
1794
659b0389
ML
17952003-02-03 Michal Ludvig <mludvig@suse.cz>
1796
1797 * dwarf2cfi.c (pointer_encoding): Added new parameter.
1798 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
1799 error messages to contain BFD filename.
1800
3b31d625
EZ
18012003-02-02 Elena Zannoni <ezannoni@redhat.com>
1802
997b089a 1803 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
1804 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
1805 (do_mixed_source_and_assembly): Use
1806 make_cleanup_ui_out_tuple_begin_end and
1807 make_cleanup_ui_out_tuple_begin_end.
1808 (do_mixed_source_and_assembly): Ditto.
1809 * thread.c (do_captured_list_thread_ids): Ditto.
1810 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
1811 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
1812 ui_out_tuple_end): Delete prototypes.
1813 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
1814 ui_out_list_end, ui_out_tuple_end): Delete.
1815
1816 From Kevin Buettner <kevinb@redhat.com>:
1817 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
1818 * ui-out.c (make_cleanup_ui_out_table_begin_end)
1819 (do_cleanup_table_end): New functions.
1820 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
1821 Use cleanups to invoke_ui_out_tuple_end().
1822 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
1823 * cli/cli-setshow.c (cmd_show_list): Use
1824 make_cleanup_ui_out_tuple_begin_end.
1825
5b181d62
AC
18262003-02-02 Andrew Cagney <ac131313@redhat.com>
1827
1828 * frame.c (frame_unwind_register): New function.
1829 (frame_unwind_unsigned_register): Use.
1830 (frame_unwind_signed_register): Use.
1831 (frame_read_register): New function.
1832 * frame.h (frame_unwind_register): Declare.
1833 (frame_read_register): Declare.
1834
1835 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
1836 and frame_unwind_register instead of read_memory, write_register
1837 and deprecated_write_register_bytes.
1838
5f601589
AC
18392003-02-02 Andrew Cagney <ac131313@redhat.com>
1840
1841 * frame.h: Note that namelen can be negative.
1842 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
1843 NAME's length.
1844
1845 * NEWS: Mention that the d10v's `regs' command is deprecated.
1846 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
1847 (d10v_print_registers_info): New function.
1848 (show_regs): Call d10v_print_registers_info.
1849 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
1850
6a3fe0a4
MK
18512003-02-02 Mark Kettenis <kettenis@gnu.org>
1852
1853 * stack.c (print_frame_info): Restore call to annotate_frame_begin
1854 lost in the previous patch.
1855
075559bc
AC
18562003-02-01 Andrew Cagney <ac131313@redhat.com>
1857
1858 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
1859 * stack.c (print_frame_info_base): Output complete FRAME tuple
1860 for synthesized frames.
1861
6789195b
AC
18622003-02-02 Andrew Cagney <ac131313@redhat.com>
1863
1864 * mips-nat.c (zerobuf): Delete.
1865 (fetch_inferior_registers): Alloc local zerobuf.
1866 (fetch_core_registers): Alloc local zerobuf.
1867 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
1868 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
1869 * thread-db.c (thread_db_store_registers): Ditto.
1870 * sh-tdep.c (sh_do_register): Ditto.
1871 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1872 * remote-sim.c (gdbsim_store_register): Ditto.
1873 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1874 * remote-e7000.c (fetch_regs_from_dump): Ditto.
1875 * monitor.c (monitor_supply_register): Ditto.
1876 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
1877 * mips-nat.c (fetch_inferior_registers): Ditto.
1878 * m68klinux-nat.c (fetch_register): Ditto.
1879 * lynx-nat.c (fetch_inferior_registers): Ditto.
1880 (fetch_inferior_registers): Ditto.
1881 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
1882 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
1883 (hpux_thread_store_registers): Ditto.
1884 * hppah-nat.c (fetch_register): Ditto.
1885 * hppab-nat.c (fetch_register): Ditto.
1886 * hppa-tdep.c (pa_register_look_aside): Ditto.
1887 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
1888 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
1889
e669114a
AC
18902003-02-01 Andrew Cagney <ac131313@redhat.com>
1891
1892 * gdbarch.sh: Explictly specify all method levels. When a
1893 variable with an empty level, provide a non-multi-arch default.
1894 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
1895 * gdbarch.h: Re-generate.
1896 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
1897 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
1898
9a043c1d
AC
18992003-02-01 Andrew Cagney <ac131313@redhat.com>
1900
1901 * defs.h (host_pointer_to_address): Delete declaration.
1902 (address_to_host_pointer): Delete declaration.
1903 * utils.c (host_pointer_to_address): Delete function.
1904 (address_to_host_pointer): Delete function.
1905 * procfs.c (procfs_address_to_host_pointer): New function.
1906 * procfs.c (proc_set_watchpoint): Use.
1907 (procfs_can_use_hw_breakpoint): Update comments.
1908 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
1909 (som_solib_add): Use.
1910 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
1911 * hppa-tdep.c (unwind_command): Use.
1912
7ca9f392
AC
19132003-02-01 Andrew Cagney <ac131313@redhat.com>
1914
94bbfd30
AC
1915 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
1916 strlen d_name.
1917
7ca9f392
AC
1918 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
1919 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
1920 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
1921 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
1922 (define_symbol): Update.
1923 * symfile.c (generic_load): Remove references to nindy.
1924 * symtab.c: Remove references to nindy.
1925
31a85ea2
AC
19262003-02-01 Andrew Cagney <ac131313@redhat.com>
1927
1928 * infcmd.c (print_float_info): Delete code conditional on
1929 FLOAT_INFO.
1930 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
1931 * config/m68k/nm-apollo68b.h: Ditto.
1932 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
1933 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
1934 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
1935
f6e85fc8
MK
19362003-02-01 Mark Kettenis <kettenis@gnu.org>
1937
6015b6a0
MK
1938 * config/i386/tm-i386os9k.h: Removed.
1939
f7a30bdf
MK
1940 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
1941 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
1942 they're identical to i[3456]86-*-sysv* now.
1943 * config/i386/i386v32.mh: Removed.
1944 * config/i386/xm-i386v32.h: Removed.
1945 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
1946
28d52111
MK
1947 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
1948
4d3f6bce
MK
1949 * config/i386/i386dgux.mh: Removed.
1950 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
1951
f6e85fc8
MK
1952 * configure.in: Fix typo.
1953 * configure: Regenerated.
1954
53955967
DC
19552003-01-31 David Carlton <carlton@math.stanford.edu>
1956
1957 * dwarf2read.c (dwarf2_locate_sections): Set
1958 dwarf_ranges_section.
1959
b1364885
AC
19602003-01-31 Andrew Cagney <ac131313@redhat.com>
1961
8dbb1c65
AC
1962 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
1963 * utils.c: Update comments documenting legitimate uses of PTR.
1964
8731e58e
AC
1965 * utils.c: Re-indent.
1966
b1364885
AC
1967 * config/djgpp/fnchange.lst: Delete nindy files.
1968 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
1969 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
1970 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
1971 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
1972 * nindy-share/README, nindy-share/Onindy.c: Delete files.
1973 * nindy-tdep.c, nindy-share/Makefile: Delete files.
1974 * Makefile.in (init.c): Remove nindy references.
1975 (saber_gdb): Delete rule.
1976 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
1977 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
1978 and a68v-nat.c.
1979 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
1980 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
1981 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
1982 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
1983 nindy-share/stop.h.
1984 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
1985 * saber.suppress: Delete file.
1986
086df311
DJ
19872003-01-31 Daniel Jacobowitz <drow@mvista.com>
1988
1989 * dbxread.c (stabs_data): New static variable.
1990 (fill_symbuf): Support an in-memory buffer for stabs data.
1991 (stabs_seek): New function.
1992 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
1993 (read_ofile_symtab): Use stabs_seek.
1994 (elfstab_build_psymtabs): Take an asection* instead of
1995 an offset and size. Relocate the stabs data if necessary.
1996 Save the section* for dbx_psymtab_to_symtab.
1997 * dwarf2read.c: Add section variables for each debug section.
1998 (dwarf2_locate_sections): Fill them in.
1999 (dwarf2_read_section): Take an asection* argument.
2000 Relocate the section contents if necessary.
2001 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
2002 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
2003 it to dwarf2_read_section.
2004 (dwarf2_build_frame_info): Update callers.
2005 * elfread.c (elf_symfile_read): Update call to
2006 elfstab_build_psymtabs.
2007 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
2008 (DBX_STAB_SECTION): New macro.
2009 * stabsread.h (elfstab_build_psymtabs): Update prototype.
2010 * symfile.c (symfile_dummy_outputs): New function.
2011 (symfile_relocate_debug_section): New function.
2012 * symfile.h (symfile_relocate_debug_section): Add prototype.
2013
87d1b352
RH
20142003-01-31 Richard Henderson <rth@redhat.com>
2015
2016 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
2017 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
2018 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
2019 * alpha-tdep.c (alpha_register_name): Add "unique".
2020 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
2021 (ALPHA_UNIQUE_REGNUM): New.
2022 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
2023
c48861fb
AC
20242003-01-31 Andrew Cagney <ac131313@redhat.com>
2025
2026 * README: Remove reference to Ericsson 1800 monitor.
2027 * Makefile.in (remote-es.o): Delete rule.
2028 (ALLDEPFILES): Delete remote-es.c.
2029 * remote-es.c: Delete file.
2030 * config/m68k/es1800.mt: Delete file.
2031 * config/djgpp/fnchange.lst: Update.
2032 * configure.tgt: Delete m68*-ericsson-* target.
2033
d764a824
AF
20342003-01-31 Adam Fedor <fedor@gnu.org>
2035
2036 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
2037 Remove duplicate/shadowing variable of same name.
2038
fe36c4f4
JB
20392003-01-30 Jim Blandy <jimb@redhat.com>
2040
2041 * symfile.c (find_separate_debug_file): Assert that the objfile's
2042 directory name we compute ends with a slash, and then assume that
2043 that's so everywhere we use it.
2044
cb741690
DJ
20452003-01-30 Daniel Jacobowitz <drow@mvista.com>
2046
2047 * valops.c (value_assign): Flush frame cache after stores to memory
2048 also.
2049
96ee5227
AC
20502003-01-30 Andrew Cagney <ac131313@redhat.com>
2051
2052 * Makefile.in (mon960-rom.o): Delete rule.
2053 * mon960-rom.c: Delete file.
2054
7f6104a9
AC
20552003-01-30 Andrew Cagney <ac131313@redhat.com>
2056
2057 * d10v-tdep.c: Include "frame-unwind.h".
2058 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
2059 list.
2060 (next_addr, uses_frame): Delete.
2061 (struct d10v_unwind_cache): Define.
2062 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
2063 Use info instead of next_addr and uses_frame globals.
2064 (d10v_frame_init_saved_regs): Delete function.
2065 (d10v_init_extra_frame_info): Delete function.
2066 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
2067 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
2068 init_frame_pc or frame_saved_pc.
2069 (d10v_pop_frame): Delete function.
2070 (do_d10v_pop_frame): Delete function.
2071 (d10v_frame_chain): Delete function.
2072 (d10v_frame_chain_valid): Delete function.
2073 (d10v_frame_pc_unwind): New function.
2074 (d10v_frame_id_unwind): New function.
2075 (saved_regs_unwinder): New function.
2076 (d10v_frame_register_unwind): New function.
2077 (d10v_frame_pop): New function.
2078 (d10v_frame_unwind): New variable.
2079 (d10v_frame_p): New function.
2080 (d10v_frame_saved_pc): Delete function.
2081 * Makefile.in (d10v-tdep.o): Update dependencies.
2082
cad2e848
JB
20832003-01-30 J. Brobecker <brobecker@gnat.com>
2084
2085 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
2086 causing some regressions due to a change in the default value
2087 for this macro.
2088
af34e669
DJ
20892003-01-29 Richard Henderson <rth@redhat.com>
2090 Elena Zannoni <ezannoni@redhat.com>
2091 Daniel Jacobowitz <drow@mvista.com>
2092
2093 Fix PR gdb/961.
2094 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
2095 variables.
2096 (RANGES_SECTION): New.
2097 (dwarf_ranges_buffer): New variable.
2098 (struct comp_unit_head): Add member "die".
2099 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
2100 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
2101 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
2102 (dwarf2_locate_sections): Likewise.
2103 (dwarf2_build_psymtabs): Read .debug_ranges.
2104 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
2105 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
2106 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
2107 Look for DW_AT_ranges and return the bounding box.
2108
baa93fa6
CF
21092003-01-29 Brian Ford <ford@vss.fsi.com>
2110
2111 * win32-nat.c (cygwin_pid): Removed as unused.
2112 (child_attach): Try fall back to Cygwin pid.
2113
c63f977f
JB
21142003-01-29 Jim Blandy <jimb@redhat.com>
2115
2116 * objfiles.h (struct objfile): Doc fix.
2117
d62d1979
AC
21182003-01-29 Andrew Cagney <ac131313@redhat.com>
2119
2120 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
2121 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
2122 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
2123 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
2124 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
2125 (FRAME_SAVED_PC): Change to a function with predicate.
2126 * gdbarch.h, gdbarch.c: Re-generate.
2127
1ae18a04
AC
21282003-01-28 Andrew Cagney <ac131313@redhat.com>
2129
52287340
AC
2130 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
2131
1ae18a04
AC
2132 * complaints.c (complain): Delete function.
2133 * complaints.h (struct deprecated_complaint): Delete definition.
2134 (complain): Delete declaration.
2135
f2c16bd6
KB
21362003-01-28 Kevin Buettner <kevinb@redhat.com>
2137
2138 * mips-tdep.c (mips_init_extra_frame_info): Return early for
2139 dummy frames.
2140
a94dd1fd
AC
21412003-01-27 Andrew Cagney <ac131313@redhat.com>
2142
2143 * sentinel-frame.h, sentinel-frame.c: New files.
2144 * Makefile.in (frame.o): Update dependencies.
2145 (SFILES): Add sentinel-frame.c.
2146 (sentinel_frame_h): Define.
2147 (COMMON_OBS): Add sentinel-frame.o.
2148 (sentinel-frame.o): Specify dependencies.
2149 * frame.c: Include "sentinel-frame.h".
2150 (frame_register_unwind): Rewrite assuming that there is always a a
2151 ->next frame.
2152 (frame_register, generic_unwind_get_saved_register): Ditto.
2153 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
2154 (create_sentinel_frame, unwind_to_current_frame): New functions.
2155 (get_current_frame): Rewrite using create_sentinel_frame and
2156 unwind_to_current_frame. When possible, always create a frame.
2157 (create_new_frame): Set next to the sentinel frame.
2158 (get_next_frame): Rewrite. Don't go below the level 0 frame.
2159 (deprecated_update_frame_pc_hack): Update the next frame's PC and
2160 ID cache when necessary.
2161 (frame_saved_regs_id_unwind): Use frame_relative_level.
2162 (deprecated_generic_get_saved_register): Use frame_relative_level,
2163 get_frame_saved_regs, get_frame_pc, get_frame_base and
2164 get_next_frame.
2165 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
2166 frame_register.
2167
5378adc4
DJ
21682003-01-27 Daniel Jacobowitz <drow@mvista.com>
2169
2170 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
2171
51ee2ddc
DJ
21722003-01-27 Daniel Jacobowitz <drow@mvista.com>
2173
2174 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
2175 (maintenance_set_profile_cmd): Use error () instead of warning ().
2176
d9feb4e7
DJ
21772003-01-27 Daniel Jacobowitz <drow@mvista.com>
2178
2179 * configure.in: Check that -pg works if using --enable-profiling.
2180 Check for monstartup and _mcleanup regardless of --enable-profiling.
2181 * maint.c: Check for monstartup and _mcleanup before using them.
2182 * config.in: Regenerated.
2183 * configure: Regenerated.
2184
2d188dd3
NC
21852003-01-24 Nick Clifton <nickc@redhat.com>
2186
2187 * Add sh2e support:
2188
2189 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
2190
2191 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
2192 (sh2e_show_regs): New.
2193 (sh_gdbarch_init): Handle bfd_mach_sh2e.
2194 * config/sh/tm-sh.h: Added sh2e to comments.
2195
cb3c37b2
JB
21962003-01-23 Jim Blandy <jimb@redhat.com>
2197
2198 * symfile.c (syms_from_objfile): Don't print the "(no debugging
2199 symbols found)" message here; we haven't checked for a separate
2200 debug info file yet, so we don't know yet.
2201 (symbol_file_add_with_addrs_or_offsets): Print it here, after
2202 we've looked everywhere. Also, there's no need to print a special
2203 message when we're loading the separate debug info file: the one
2204 symbol_file_add prints is fine.
2205
5b5d99cf
JB
22062003-01-23 Alexander Larsson <alexl@redhat.com>
2207 Jim Blandy <jimb@redhat.com>
2208
2209 Add support for executables whose debug info has been separated
2210 out into a separate file, leaving only a link behind.
2211 * objfiles.h (struct objfile): New fields: separate_debug_objfile
2212 and separate_debug_objfile_backlink.
2213 (put_objfile_before): New declaration.
2214 * symfile.c: #include "filenames.h".
2215 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
2216 debug info in a separate file, read that, too. Save the addrs
2217 argument, so we can use it again to read the separated debug info;
2218 syms_from_objfile modifies the table we pass it.
2219 (reread_symbols): After re-reading an objfile, call
2220 reread_separate_symbols to refresh its separate debug info
2221 objfile, if it has one.
2222 (reread_separate_symbols, find_separate_debug_file,
2223 get_debug_link_info, separate_debug_file_exists): New functions.
2224 (debug_file_directory): New global var.
2225 (_initialize_symfile): Initialize debug_file_directory, and
2226 provide the new `set debug-file-directory' command to let the user
2227 change it.
2228 * objfiles.c (free_objfile): If this objfile has its debug info in
2229 a separate objfile, free that one too. If this is itself a
2230 separate debug info objfile, clear our parent's backlink.
2231 (put_objfile_before): New function.
2232 * utils.c (gnu_debuglink_crc32): New function.
2233 * defs.h (gnu_debuglink_crc32): New declaration.
2234 * Makefile.in (symfile.o): Note dependency on "filenames.h".
2235 * configure.in: Handle --with-separate-debug-dir config option.
2236 * acinclude.m4 (AC_DEFINE_DIR): New macro.
2237 * acconfig.h (DEBUGDIR): New macro.
2238 * configure, aclocal.m4, config.in: Regenerated.
2239
7e8580c1
JB
22402003-01-22 Jim Blandy <jimb@redhat.com>
2241
7904e09f
JB
2242 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
2243 like the old symbol_file_add, but taking new arguments: you can
2244 now pass in either a `struct section_addr_info' list to say where
2245 each section is loaded, or a `struct section_offsets' table. Pass
2246 these new arguments through to syms_from_objfile as appropriate.
2247 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
2248 with the appropriate quiescent values for the new arguments.
2249
7e8580c1
JB
2250 * symfile.c: #include "gdb_assert.h".
2251 (syms_from_objfile): Add the ability to pass in a section offset
2252 table directly, as an alternative to the section_addr_info table.
2253 Document arguments better.
2254 (symbol_file_add): Pass extra arguments to syms_from_objfile.
2255 * symfile.h (syms_from_objfile): Update declaration.
2256 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
2257 syms_from_objfile.
2258 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
2259
d28f9cdf
DJ
22602003-01-22 Daniel Jacobowitz <drow@mvista.com>
2261
2262 Original patch by Tom Tromey <tromey@cygnus.com> and
2263 Jason Molenda <jmolenda@apple.com>.
2264 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
2265 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
2266 * NEWS: Mention profiling.
2267 * configure.in (--enable-gdbtk): Fix typo.
2268 (--enable-profiling): New. Set PROFILE_CFLAGS.
2269 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
2270 Fill in function.
2271 (profiling_state): New variable.
2272 (mcleanup_wrapper): New function.
2273 (_initialize_maint): Remove NOTYET, fix call to
2274 add_setshow_boolean_cmd for "maint set profile".
2275 * configure: Regenerated.
2276
df21e465
MH
22772003-01-21 Martin M. Hunt <hunt@redhat.com>
2278
2279 * Makefile.in (install-gdbtk): Install PNG images too.
2280
73c1f219
AC
22812003-01-21 Andrew Cagney <ac131313@redhat.com>
2282
2283 * exec.c (text_start): Delete global variable.
2284 (exec_file_attach): Make text_start local to the function.
2285 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
2286 * valops.c (hand_function_call): Delete code that handles
2287 BEFORE_TEXT_END and AFTER_TEXT_END.
2288 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
2289 of CALL_DUMMY_LOCATION.
2290 * gdbarch.c: Regenerate.
2291 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
2292 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
2293 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2294 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
2295 (text_end): Delete extern declaration.
2296
eb4f72c5
AC
22972003-01-21 Andrew Cagney <ac131313@redhat.com>
2298
2299 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
2300 * blockframe.c (backtrace_below_main): Move to "frame.c".
2301 (frame_chain_valid): Delete check for backtrace_below_main.
2302 (_initialize_blockframe): Delete initialization, move ``set
2303 backtrace-below-main'' command to "frame.c".
2304 (do_flush_frames_sfunc): Delete function.
2305 * frame.c: Include "command.h" and "gdbcmd.h".
2306 (frame_type_from_pc): New function.
2307 (create_new_frame): Use frame_type_from_pc.
2308 (legacy_get_prev_frame): New function.
2309 (get_prev_frame): Rewrite. When an old style frame, call
2310 legacy_get_prev_frame. Otherwize, unwind the PC first.
2311 (_initialize_frame): Add ``set backtrace-below-main'' command.
2312 * Makefile.in (frame.o): Update dependencies.
2313
778ce8cc
AC
23142003-01-19 Andrew Cagney <ac131313@redhat.com>
2315
2316 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
2317 DEPRECATED_REGISTERS_INFO.
2318
01c193c8
AC
23192003-01-19 Andrew Cagney <ac131313@redhat.com>
2320
2321 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
2322 Maintainers'. Update `Various Maintainers'.
2323
dedc2a2b
AC
23242003-01-19 Andrew Cagney <ac131313@redhat.com>
2325
2326 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
2327 * gdbarch.sh (POP_FRAME): Change to function with predicate.
2328 Suppress actual parameters when `-'.
2329 * gdbarch.h, gdbarch.c: Regenerate.
2330
b7261c70
AC
23312003-01-19 Andrew Cagney <ac131313@redhat.com>
2332
2333 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
2334 code handling dummy frames.
2335
dbe9fe58
AC
23362003-01-19 Andrew Cagney <ac131313@redhat.com>
2337
2338 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
2339 (struct frame_unwind): Add field pop.
2340 * frame.h (frame_pop): Declare.
2341 * frame.c (frame_saved_regs_pop): New function.
2342 (trad_frame_unwinder): Add frame_saved_regs_pop.
2343 (frame_pop): New function.
2344 * dummy-frame.c (dummy_frame_pop): New function.
2345 (discard_innermost_dummy): New function.
2346 (generic_pop_dummy_frame): Use discard_innermost_dummy.
2347 (dummy_frame_unwind): Add dummy_frame_pop.
2348 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
2349 * valops.c (hand_function_call): Ditto.
2350 * stack.c (return_command): Ditto.
2351
570b8f7c
AC
23522003-01-18 Andrew Cagney <ac131313@redhat.com>
2353
2354 * cris-tdep.c: Fix function declaration indentation.
2355 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
2356 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
2357 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
2358 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
2359 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
2360 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
2361
23622003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
2363
2364 * README (Unpacking and Installation -- quick overview):
2365 Warn against ".../gdb-5.3/gdb/configure".
2366
494cca16
AC
23672003-01-18 Andrew Cagney <ac131313@redhat.com>
2368
2369 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
2370 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
2371 (struct frame_unwind): Declare opaque.
2372 (dummy_frame_p): Declare function.
2373 * dummy-frame.c (dummy_frame_id_unwind): Make static.
2374 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
2375 * dummy-frame.c: Include "frame-unwind.h".
2376 (dummy_frame_p): New function.
2377 (dummy_frame_unwind): New variable.
2378 * frame.c: Include "frame-unwind.h".
2379 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
2380 to use the new unwind field.
2381 (set_unwind_by_pc): Delete function.
2382 (create_new_frame, get_prev_frame): Set unwind field using
2383 frame_unwind_find_by_pc.
2384 (trad_frame_unwind, trad_frame_unwinder): New variables.
2385 * frame.h (trad_frame_unwind): Declare variable.
2386 (frame_id_unwind_ftype): Delete declaration.
2387 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
2388 (struct frame_unwind): Declare opaque.
2389 (struct frame_info): Replace the fields id_unwind, pc_unwind and
2390 register_unwind with a single unwind pointer.
2391 * frame-unwind.h, frame-unwind.c: New files.
2392 * Makefile.in (SFILES): Add frame-unwind.c.
2393 (frame_unwind_h): Define.
2394 (COMMON_OBS): Add frame-unwind.o.
2395 (frame-unwind.o): Specify dependencies.
2396 (frame.o, dummy-frame.o): Update dependencies.
2397
4efb68b1
AC
23982003-01-18 Andrew Cagney <ac131313@redhat.com>
2399
2400 * ada-valprint.c: Eliminate PTR.
2401 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
2402 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
2403 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
2404 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
2405 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
2406 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
2407 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
2408
a84d24ee
AC
24092003-01-17 Andrew Cagney <ac131313@redhat.com>
2410
762f08a3
AC
2411 * main.c (captured_main): Don't use PTR.
2412 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
2413 * gdbtypes.c (lookup_primitive_typename): Ditto.
2414 (lookup_struct_elt_type): Ditto.
2415 * f-valprint.c (info_common_command): Ditto.
2416 (list_all_visible_commons): Ditto.
2417 * jv-typeprint.c (java_type_print_base): Ditto.
2418
a84d24ee
AC
2419 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
2420 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
2421 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
2422 i386-interix-nat.c and i386-interix-tdep.c. Rename
2423 m68klinux-nat.c and m68klinux-tdep.c. Rename
2424 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
2425 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
2426 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
2427 * main.c (captured_main): Use xfree, not free.
2428
c170fb60
AC
24292003-01-16 Andrew Cagney <ac131313@redhat.com>
2430
2431 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
2432 ID back using a parameter.
2433 * frame.c (frame_id_unwind): Update call.
2434 (frame_saved_regs_id_unwind): Update.
2435 * dummy-frame.c (dummy_frame_id_unwind): Update function.
2436 * dummy-frame.h (struct frame_id): Add opaque declaration.
2437 (dummy_frame_id_unwind): Update declaration.
2438
867f3898
AC
24392003-01-15 Andrew Cagney <ac131313@redhat.com>
2440
2441 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
2442
40622be8 24432003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 2444
40622be8 2445 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 2446
ae66c1fc
EZ
24472003-01-14 Elena Zannoni <ezannoni@redhat.com>
2448
997b089a 2449 Fix PR gdb/898
ae66c1fc
EZ
2450 * breakpoint.c (until_break_command): Add new argument. Use it to
2451 decide whether to stop only at the current frame or not.
2452 * breakpoint.h (until_break_command): Update prototype.
2453 * infcmd.c (until_command): Add new argument to until_break_command
2454 call.
2455 (advance_command): New function.
2456 (_initialize_infcmd): Update help string for 'until' command.
2457 Add new 'advance' command.
2458
a04257e6
DC
24592003-01-14 David Carlton <carlton@math.stanford.edu>
2460
2461 * linespec.c (decode_line_1): Normalize comments.
2462 (set_flags): Ditto.
2463 (locate_first_half): Ditto.
2464 (decode_compound): Ditto.
2465 (symtab_from_filename): Ditto.
2466 (decode_all_digits): Ditto.
2467 (decode_dollar): Ditto.
2468 (find_methods): Ditto.
2469 (find_toplevel_char): Ditto.
2470
1bac305b
AC
24712003-01-13 Andrew Cagney <ac131313@redhat.com>
2472
2473 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
2474 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
2475 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
2476 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
2477 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
2478 * language.c, language.h, m32r-tdep.c: Update copyright.
2479 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
2480 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
2481 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
2482 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
2483 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
2484 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
2485
25caa7a8
EZ
24862003-01-13 Elena Zannoni <ezannoni@redhat.com>
2487
2488 * stabsread.h (process_later, resolve_cfront_continuation):
2489 Obsolete.
2490 Update copyright years.
2491 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
2492 Update copyright year.
2493 * dbxread.c(struct cont_elem): Obsolete.
2494 (process_later, process_now): Obsolete functions.
2495 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
2496 Update copyright year.
2497 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
2498 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
2499 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
2500 (parse_partial_symbols): Obsolete cfront support.
2501 * stabsread.c
2502 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
2503 macros.
2504 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
2505 read_cfront_baseclasses, read_cfront_member_functions,
2506 resolve_cfront_continuation,read_cfront_static_fields,
2507 copy_cfront_struct_fields): Obsolete functions.
2508 (define_symbol, read_one_struct_field): Obsolete cfront support.
2509 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
2510 Update Copyright year.
2511
7789c6f5
EZ
25122003-01-13 Elena Zannoni <ezannoni@redhat.com>
2513
2514 * stack.c (print_frame_info, print_stack_frame_base_stub,
2515 print_stack_frame_base, show_and_print_stack_frame_stub,
2516 show_and_print_stack_frame, print_only_stack_frame_stub,
2517 print_only_stack_frame): Delete functions.
2518 (print_stack_frame_stub): Call print_frame_info instead of
2519 print_frame_info_base.
2520 (print_frame_info_base): Rename to print_frame_info.
2521 (backtrace_command_1): Call print_frame_info, instead of
2522 print_frame_info_base.
2523 (current_frame_command): Call print_stack_frame, instead of
2524 print_only_stack_frame.
2525 (frame_command): Call print_stack_frame, instead of
2526 show_and_print_stack_frame.
2527 (up_command): Ditto.
2528 (down_command): Ditto.
2529 * frame.h (print_only_stack_frame): Delete prototype.
2530 * infrun.c (normal_stop): Call print_stack_frame, instead of
2531 show_and_print_stack_frame.
2532 * thread.c (info_threads_command): Call print_stack_frame, instead
2533 of print_only_stack_frame.
2534
3f5a3016
AC
25352003-01-13 Andrew Cagney <ac131313@redhat.com>
2536
d99ba314
AC
2537 * README (Graphical interface to GDB): Update URL. Point at
2538 gdb/links/.
2539
3f5a3016
AC
2540 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
2541 version match.
2542
083ae935
DJ
25432003-01-13 Daniel Jacobowitz <drow@mvista.com>
2544
2545 * symtab.c (find_pc_sect_line): Don't consider end-of-function
2546 lines.
2547
5365276c
DJ
25482003-01-13 Daniel Jacobowitz <drow@mvista.com>
2549
2550 * thread-db.c (attach_thread): Prototype.
2551 (struct private_thread_info): Remove lwpid. Add thread handle (th),
2552 thread information (ti), and valid flags (th_valid, ti_valid).
2553 (attach_thread): Move target_pid_to_str call to after the thread
2554 is added to GDB's list. Initialize the cache.
2555 (thread_get_info_callback, thread_db_map_id2thr)
2556 (thread_db_get_info): New functions.
2557 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
2558 (thread_db_store_registers, thread_db_thread_alive)
2559 (thread_db_get_thread_local_address): Use them.
2560 (thread_db_pid_to_str): Likewise. Return "Missing" instead
2561 of calling error() for threads in unknown state.
2562
2563 (clear_lwpid_callback): New function.
2564 (thread_db_resume): Use it to clear the cache.
2565
9fc30b6b
DJ
25662003-01-13 Daniel Jacobowitz <drow@mvista.com>
2567
2568 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
2569 (resume_callback): Remove dead code.
2570
8f871025
AC
25712003-01-13 Andrew Cagney <ac131313@redhat.com>
2572
2573 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
2574 predicate.
2575 * gdbarch.h, gdbarch.c: Regenerate.
2576 * stack.c (frame_info): Only initialize the saved registers when
2577 FRAME_INIT_SAVED_REGS_P.
2578 * frame.c (frame_saved_regs_register_unwind): Assert
2579 FRAME_INIT_SAVED_REGS_P.
2580 (deprecated_generic_get_saved_register): Ditto.
2581
3f565f1e
DJ
25822003-01-13 Daniel Jacobowitz <drow@mvista.com>
2583
2584 * source.c (openp): Squelch warning about "filename".
2585
072b1022
DJ
25862003-01-13 Daniel Jacobowitz <drow@mvista.com>
2587
2588 * source.c (openp): If the file does not exist don't necessarily
2589 search the path.
2590
973ccf8b
DJ
25912003-01-13 Daniel Jacobowitz <drow@mvista.com>
2592
2593 Fix PR gdb/872.
2594 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
2595 (integer_types_same_name_p): New function.
2596 (rank_one_type): Use it.
2597 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
2598
030292b7
DJ
25992003-01-13 Daniel Jacobowitz <drow@mvista.com>
2600
2601 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
2602 variables.
2603 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
2604 * configure.in: Add --with-sysroot.
2605 * configure: Regenerated.
2606 * main.c (gdb_sysroot): New variable.
2607 (captured_main): Initialize gdb_sysroot.
2608 * defs.h (gdb_sysroot): New extern declaration.
2609 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
2610
afb5d334
MC
26112003-01-12 Michael Chastain <mec@shout.net>
2612
2613 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
2614
751ceeb4
MC
26152003-01-12 Michael Chastain <mec@shout.net>
2616
2617 * top.c (print_gdb_version): Bump copyright year to 2003.
2618
94cd26f8
DC
26192003-01-12 David Carlton <carlton@bactrian.org>
2620
2621 * linespec.c (symtab_from_filename): Rename variable 's' to
2622 'file_symtab'.
2623
1ce79225
AC
26242003-01-12 Andrew Cagney <ac131313@redhat.com>
2625
2626 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
2627 dummy frame.
2628 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
2629
fa1fd571
AC
26302003-01-12 Andrew Cagney <ac131313@redhat.com>
2631
2632 * d10v-tdep.c: Include "gdb_assert.h".
2633 (d10v_store_return_value): Rewrite to match current interface.
2634 (d10v_extract_struct_value_address): Ditto.
2635 (d10v_extract_return_value): Ditto.
2636 (d10v_gdbarch_init): Set store_restore_value,
2637 extract_struct_value_address and extract_return_value.
2638
68b8d23e
JB
26392003-01-12 J. Brobecker <brobecker@gnat.com>
2640
2641 * hpread.c (set_namestring): New procedure replacing the
2642 SET_NAMESTRING macro.
2643 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
2644 by calls to set_namestring.
2645
26462003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
2647
2648 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
2649 a compilation warning.
2650 (hpread_process_one_debug_symbol): Likewise.
2651
88d262ca
DC
26522003-01-10 David Carlton <carlton@math.stanford.edu>
2653
2654 * linespec.c (decode_line_1): Rename variable 's' to
2655 'file_symtab'.
2656 (decode_all_digits): Rename argument 's' to 'file_symtab'.
2657 (decode_dollar): Ditto.
2658 (decode_variable): Ditto.
2659 (symbol_found): Ditto.
2660
86669319
MC
26612003-01-09 Michael Chastain <mec@shout.net>
2662
2663 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
2664
616a9dc4
CV
26652003-01-07 Corinna Vinschen <vinschen@redhat.com>
2666
2667 * win32-nat.c (set_process_privilege): New function.
2668 (child_attach): Call set_process_privilege() to enable the
2669 SE_DEBUG_NAME user privilege if available in process token.
2670
3269bcfa
JB
26712003-01-10 J. Brobecker <brobecker@gnat.com>
2672
2673 * hpread.c (hpread_process_one_debug_symbol): Fix a small
2674 compilation error in the previous revision.
2675
2b0ee454
DC
26762003-01-09 David Carlton <carlton@math.stanford.edu>
2677
2678 * linespec.c: Update copyright.
2679
b3ba1b44
DJ
26802003-01-09 Daniel Jacobowitz <drow@mvista.com>
2681
2682 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
2683 than inferior_ptid.
2684 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
2685
4ef3f3be
AC
26862003-01-09 Andrew Cagney <ac131313@redhat.com>
2687
479ab5a0
AC
2688 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
2689 Update comments.
2690 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
2691 (frame_saved_regs_zalloc): Update.
2692 (frame_saved_regs_register_unwind): Update.
2693 (create_new_frame): Update.
2694 (get_prev_frame): Update.
2695 (frame_extra_info_zalloc): Update.
2696 (deprecated_get_frame_saved_regs): Update.
2697 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
2698 * cris-tdep.c: Update comment.
2699
bde58177
AC
2700 * somsolib.h: Fix function indentation.
2701 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
2702 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
2703 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
2704 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
2705 * somsolib.c, inftarg.c: Remove assignment in if conditional.
2706
4ef3f3be
AC
2707 * infrun.c (follow_fork): Use ISO C definition.
2708 * expprint.c (print_subexp): Use xfree instead of free.
2709 * charset.c: Include "gdb_string.h" instead of <string.h>.
2710 (register_iconv_charsets): Use ISO C definition.
2711 (host_charset, target_charset): Ditto.
2712 * Makefile.in (charset.o): Update dependencies.
2713 (mi-cmd-env.o): Update dependencies.
2714
1c615f7a
AC
27152003-01-08 Andrew Cagney <cagney@redhat.com>
2716
2717 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
2718 get_frame_base.
2719
c9a1dc08
AC
27202003-01-08 Andrew Cagney <ac131313@redhat.com>
2721
2722 * gdb_mbuild.sh: Add --keep option. When specified, keep the
2723 build directories. Save edited gdb output in Mbuild.log. If a
2724 build fails, remove any final GDB executable.
2725
dbad9d94
AC
27262003-01-08 Andrew Cagney <ac131313@redhat.com>
2727
2728 * gdb_mbuild.sh: Edit the output of `maint print architecture'
2729 replacing hex constants with function names and stripping leading
2730 file name directory prefixes.
2731
8d357cca
AC
27322003-01-08 Andrew Cagney <cagney@redhat.com>
2733
2734 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
2735 get_frame_base.
2736
bca02a8a
DC
27372003-01-08 David Carlton <carlton@math.stanford.edu>
2738
2739 * linespec.c (decode_line_1): Move code into decode_variable.
2740 (decode_variable): New function.
2741
7f8ab3a0
AC
27422003-01-08 Andrew Cagney <ac131313@redhat.com>
2743
2744 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
2745
7b5849cc
AC
27462003-01-08 Andrew Cagney <cagney@redhat.com>
2747
2748 * cris-tdep.c (cris_frame_init_saved_regs): Use
2749 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
2750 saved_regs buffer.
2751 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
2752 (sh64_nofp_frame_init_saved_regs): Ditto.
2753 (sh_fp_frame_init_saved_regs): Ditto.
2754 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
2755 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
2756 * mcore-tdep.c (analyze_dummy_frame): Ditto.
2757 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
2758
72a5efb3
DJ
27592003-01-08 Daniel Jacobowitz <drow@mvista.com>
2760
2761 * minsyms.c (lookup_minimal_symbol): Update comment.
2762 (lookup_minimal_symbol_text): Update comment. Use the hash table.
2763 (lookup_minimal_symbol_solib_trampoline): Likewise.
2764
11c02a10
AC
27652003-01-08 Andrew Cagney <cagney@redhat.com>
2766
aab3ea25
AC
2767 * d10v-tdep.c (d10v_init_extra_frame_info): Use
2768 frame_relative_level.
2769
da50a4b7
AC
2770 * alpha-tdep.c: Use get_frame_extra_info.
2771 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2772 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
2773 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
2774 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
2775
11c02a10
AC
2776 * alpha-tdep.c: Use get_next_frame.
2777 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2778 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
2779 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
2780 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
2781 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
2782 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
2783 * xstormy16-tdep.c: Ditto.
2784
1e2330ba
AC
27852003-01-07 Andrew Cagney <cagney@redhat.com>
2786
2787 * alpha-tdep.c: Use get_frame_base.
2788 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2789 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
2790 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
2791 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
2792 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
2793 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
2794 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
2795 * config/sparc/tm-sparc.h: Ditto.
2796
2d75187b
AC
27972003-01-07 Andrew Cagney <cagney@redhat.com>
2798
2799 * frame.c (deprecated_get_frame_context): New function.
2800 (deprecated_set_frame_context): New function.
2801 * frame.h (deprecated_get_frame_context): Declare.
2802 (deprecated_set_frame_context): Declare.
2803 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
2804 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
2805
483d36b2
AC
28062003-01-07 Andrew Cagney <cagney@redhat.com>
2807
2808 * frame.c (deprecated_set_frame_next_hack): New function.
2809 (deprecated_set_frame_prev_hack): New function.
2810 * frame.h (deprecated_set_frame_next_hack): Declare.
2811 (deprecated_set_frame_prev_hack): Declare.
2812 * mcore-tdep.c (analyze_dummy_frame): Use
2813 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
2814 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
2815
14e91ac5
DC
28162003-01-07 David Carlton <carlton@math.stanford.edu>
2817
2818 * linespec.c (decode_line_1): Move code into decode_dollar.
2819 (decode_dollar): New function.
2820
b0c6b05c
AC
28212003-01-07 Andrew Cagney <cagney@redhat.com>
2822
2823 * arm-tdep.c (arm_init_extra_frame_info): Use
2824 deprecated_update_frame_base_hack.
2825 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
2826 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
2827 (fix_frame_pointer): Ditto.
2828 (mn10300_analyze_prologue): Ditto.
2829
a00a19e9
AC
28302003-01-07 Andrew Cagney <cagney@redhat.com>
2831
2832 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
2833 extra_info using frame_extra_info_zalloc.
2834 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
2835 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
2836 (sh64_init_extra_frame_info): Ditto.
2837 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
2838 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
2839 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
2840 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
2841 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
2842 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
2843 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
2844 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
2845 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
2846 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
2847 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
2848 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
2849
2850 * mn10300-tdep.c (analyze_dummy_frame): Use
2851 deprecated_set_frame_extra_info_hack.
2852 * mcore-tdep.c (analyze_dummy_frame): Ditto.
2853
1fb4c65b
JB
28542003-01-07 J. Brobecker <brobecker@gnat.com>
2855
2856 * mdebugread.c (parse_symbol): Skip stProc entries which storage
2857 class is not scText. These do not define "real" procedures.
2858 (parse_partial_symbols): Likewise.
2859
9fe7d6bf
MS
28602003-01-06 Michael Snyder <msnyder@redhat.com>
2861
2862 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
2863
f6c609c4
AC
28642003-01-06 Andrew Cagney <ac131313@redhat.com>
2865
2866 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
2867 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
2868 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
2869 deprecated_frame_xmalloc_with_cleanup.
2870 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
2871 deprecated_frame_xmalloc.
2872 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
2873 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
2874
d995ff4b
AC
28752003-01-06 Andrew Cagney <cagney@redhat.com>
2876
84dc46cb
AC
2877 * x86-64-linux-tdep.c: Include "osabi.h".
2878 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
2879
d995ff4b
AC
2880 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
2881
66140c26
AC
28822003-01-06 Andrew Cagney <cagney@redhat.com>
2883
2884 * MAINTAINERS (Target Instruction Set Architectures): Update
2885 arm-elf. Can be built with -Werror, has been multiarched.
2886
2887 * value.h (unpack_long): Make buffer parameter constant.
2888 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
2889 * scm-lang.h (scm_parse): Ditto.
2890 * defs.h (extract_typed_address, extract_address): Ditto.
2891 (extract_long_unsigned_integer): Ditto.
2892 * inferior.h (unsigned_pointer_to_address): Ditto.
2893 (signed_pointer_to_address): Ditto.
2894 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
2895 * gdbarch.h, gdbarch.c: Regenerate.
2896 * findvar.c (extract_long_unsigned_integer): Update.
2897 (extract_address): Update.
2898 (extract_typed_address): Update.
2899 (unsigned_pointer_to_address): Update.
2900 * values.c (unpack_long): Update.
2901 (unpack_double): Update.
2902 (unpack_pointer): Update.
2903 (unpack_field_as_long): Update.
2904 * d10v-tdep.c (d10v_pointer_to_address): Update.
2905 * avr-tdep.c (avr_pointer_to_address): Update.
2906 * scm-lang.c (scm_unpack): Update.
2907 * findvar.c (signed_pointer_to_address): Update.
2908
b089b3da
ML
29092003-01-06 Michal Ludvig <mludvig@suse.cz>
2910
2911 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
2912 since it is in i386-tdep.c.
2913
aff87235
JB
29142003-01-06 J. Brobecker <brobecker@gnat.com>
2915
2916 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
2917 failure introduced in the previous change.
2918
34f5e845
MC
29192003-01-05 Michael Chastain <mec@shout.net>
2920
2921 * README: Remove references to deleted remote-*.c files:
2922 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
2923 remote-nrom.c, remote-os9k.c, remote-udi.c.
2924
28bcfd30
MK
29252003-01-05 Mark Kettenis <kettenis@gnu.org>
2926
2927 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
2928 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
2929 i386_get_longjmp_target.
2930
15a5b3ee
AC
29312003-01-05 Andrew Cagney <ac131313@redhat.com>
2932
2933 * arm-tdep.c (prologue_cache): Change to a pointer.
2934 (_initialize_arm_tdep): Allocate prologue_cache.
2935 (check_prologue_cache): Update.
2936 (save_prologue_cache): Update.
2937 (arm_gdbarch_init): Update.
2938
c263362b
DJ
29392003-01-04 Daniel Jacobowitz <drow@mvista.com>
2940
2941 * stabsread.c (update_method_name_from_physname): Call complaint()
2942 instead of error.
2943
51603483
DJ
29442003-01-04 Daniel Jacobowitz <drow@mvista.com>
2945
2946 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
2947 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
2948 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
2949
2950 * blockframe.c: Include "gdbcmd.h" and "command.h".
2951 (backtrace_below_main): New variable.
2952 (file_frame_chain_valid, func_frame_chain_valid)
2953 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
2954 (generic_func_frame_chain_valid): Remove functions.
2955 (frame_chain_valid, do_flush_frames_sfunc): New functions.
2956 (_initialize_blockframe): New function.
2957 * Makefile.in (blockframe.o): Update dependencies.
2958 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
2959 comment. Call frame_chain_valid ().
2960 * frame.h: Remove old prototypes. Add prototype for
2961 frame_chain_valid and update comments to match.
2962 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
2963 Remove old comment.
2964 * gdbarch.h: Regenerated.
2965 * gdbarch.c: Regenerated.
2966
2967 * alpha-tdep.c (alpha_gdbarch_init): Don't call
2968 set_gdbarch_frame_chain_valid.
2969 * avr-tdep.c (avr_gdbarch_init): Likewise.
2970 * cris-tdep.c (cris_gdbarch_init): Likewise.
2971 * frv-tdep.c (frv_gdbarch_init): Likewise.
2972 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
2973 * i386-tdep.c (i386_svr4_init_abi): Likewise.
2974 (i386_nw_init_abi): Likewise.
2975 (i386_gdbarch_init): Likewise.
2976 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
2977 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2978 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2979 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2980 * mips-tdep.c (mips_gdbarch_init): Likewise.
2981 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2982 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
2983 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
2984 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2985 * s390-tdep.c (s390_gdbarch_init): Likewise.
2986 * sh-tdep.c (sh_gdbarch_init): Likewise.
2987 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2988 * v850-tdep.c (v850_gdbarch_init): Likewise.
2989 * vax-tdep.c (vax_gdbarch_init): Likewise.
2990 * x86-64-tdep.c (x86_64_init_abi): Likewise.
2991
2992 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
2993 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
2994 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
2995 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
2996 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
2997 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
2998 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
2999 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
3000
b00a8037
DJ
30012002-01-04 Daniel Jacobowitz <drow@mvista.com>
3002
3003 * Makefile.in (acconfig_h): Remove incorrect macro.
3004 (config_h): Define.
3005 (osabi.o): Update dependencies.
3006 * configure.tgt: Set gdb_osabi based on target triplet.
3007 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
3008 * configure: Regenerated.
3009 * config.in: Regenerated.
3010 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
3011 (GDB_OSABI_DEFAULT): Define if not already defined.
3012 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
3013 (set_osabi_string): New variables.
3014 (gdbarch_register_osabi): Add new OS ABI to
3015 gdb_osabi_available_names.
3016 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
3017 (set_osabi, show_osabi): New functions.
3018 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
3019
4be87837
DJ
30202003-01-04 Daniel Jacobowitz <drow@mvista.com>
3021
3022 * arch-utils.c (gdbarch_info_init): Set osabi to
3023 GDB_OSABI_UNINITIALIZED.
3024 * gdbarch.sh: Add osabi to struct gdbarch and to struct
3025 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
3026 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
3027 * gdbarch.c: Regenerated.
3028 * gdbarch.h: Regenerated.
3029 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
3030 there's no BFD.
3031 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
3032 * osabi.h (enum gdb_osabi): Move to defs.h.
3033 (gdbarch_init_osabi): Update prototype.
3034 * defs.h (enum gdb_osabi): Moved here.
3035 * Makefile.in: Update dependencies.
3036
3037 * alpha-tdep.h: Don't include "osabi.h".
3038 (struct gdbarch_tdep): Remove osabi member.
3039 * alpha-tdep.c: Include "osabi.h".
3040 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3041 iterate over arches. Update call to gdbarch_init_osabi.
3042 (alpha_dump_tdep): Don't dump osabi.
3043 * alpha-linux-tdep.c: Include "osabi.h".
3044 * alpha-osf1-tdep.c: Include "osabi.h".
3045 * alphafbsd-tdep.c: Include "osabi.h".
3046 * alphanbsd-tdep.c: Include "osabi.h".
3047
3048 * arm-tdep.h: Don't include "osabi.h".
3049 (struct gdbarch_tdep): Remove osabi member.
3050 * arm-tdep.c: Include "osabi.h".
3051 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3052 iterate over arches. Update call to gdbarch_init_osabi.
3053 (arm_dump_tdep): Don't dump osabi.
3054 * arm-linux-tdep.c: Include "osabi.h".
3055 * armnbsd-tdep.c: Include "osabi.h".
3056
3057 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
3058 Update call to gdbarch_init_osabi.
3059
3060 * i386-tdep.h: Don't include "osabi.h".
3061 (struct gdbarch_tdep): Remove osabi member.
3062 * i386-tdep.c: Include "osabi.h".
3063 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3064 iterate over arches. Update call to gdbarch_init_osabi.
3065 (i386_dump_tdep): Don't dump osabi.
3066 * i386-linux-tdep.c: Include "osabi.h".
3067 * i386-sol2-tdep.c: Include "osabi.h".
3068 * i386bsd-tdep.c: Include "osabi.h".
3069 * i386gnu-tdep.c: Include "osabi.h".
3070 * i386ly-tdep.c: Include "osabi.h".
3071 * i386nbsd-tdep.c: Include "osabi.h".
3072 * i386obsd-tdep.c: Include "osabi.h".
3073
3074 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
3075 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3076 check osabi when iterating over arches. Update call to
3077 gdbarch_init_osabi.
3078 (mips_dump_tdep): Don't dump osabi.
3079
3080 * ns32k-tdep.h: Don't include "osabi.h".
3081 (struct gdbarch_tdep): Remove.
3082 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
3083 gdbarch_lookup_osabi. Don't iterate over arches. Don't
3084 allocate tdep. Update call to gdbarch_init_osabi.
3085 (ns32k_dump_tdep): Remove.
3086 (_initialize_ns32k_tdep): Update call to gdbarch_register.
3087 * ns32knbsd-tdep.c: Include "osabi.h".
3088
3089 * ppc-tdep.h: Don't include "osabi.h".
3090 (struct gdbarch_tdep): Remove osabi member.
3091 * rs6000-tdep.c: Include "osabi.h".
3092 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
3093 osabi when iterating over arches. Update call to
3094 gdbarch_init_osabi.
3095 (rs6000_dump_tdep): Don't dump osabi.
3096 * ppc-linux-tdep.c: Include "osabi.h".
3097 * ppcnbsd-tdep.c: Include "osabi.h".
3098
3099 * sh-tdep.h: Don't include "osabi.h".
3100 (struct gdbarch_tdep): Remove osabi member.
3101 * sh-tdep.c: Include "osabi.h".
3102 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3103 iterate over arches. Update call to gdbarch_init_osabi.
3104 (sh_dump_tdep): Don't dump osabi.
3105 * shnbsd-tdep.c: Include "osabi.h".
3106
3107 * sparc-tdep.c: Include "osabi.h".
3108 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3109 iterate over arches. Update call to gdbarch_init_osabi.
3110 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
3111 tdep structure.
3112
3113 * vax-tdep.h: Don't include "osabi.h".
3114 (struct gdbarch_tdep): Remove.
3115 * vax-tdep.c: Include "osabi.h".
3116 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3117 iterate over arches. Don't allocate tdep. Update call
3118 to gdbarch_init_osabi.
3119 (vax_dump_tdep): Remove.
3120 (_initialize_vax_tdep): Update call to gdbarch_register.
3121
a881cf8e
DJ
31222003-01-04 Daniel Jacobowitz <drow@mvista.com>
3123
3124 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
3125 entirely.
3126 (breakpoint_re_set_one): Don't fetch the value for a disabled
3127 watchpoint.
3128
1e698235
DJ
31292003-01-04 Daniel Jacobowitz <drow@mvista.com>
3130
3131 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
3132 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
3133 (COERCE_FLOAT_TO_DOUBLE): Remove.
3134 * gdbarch.c: Regenerate.
3135 * gdbarch.h: Regenerate.
3136 * Makefile.in: Remove value_h from gdbarch_h.
3137 * valops.c (coerce_float_to_double): New variable.
3138 (default_coerce_float_to_double): Remove.
3139 (standard_coerce_float_to_double): Remove.
3140 (value_arg_coerce): Use coerce_float_to_double.
3141 (_initialize_valops): Add "set coerce-float-to-double".
3142 * value.h (default_coerce_float_to_double): Remove prototype.
3143 (standard_coerce_float_to_double): Remove prototype.
3144
3145 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
3146 prototyped.
3147 * mdebugread.c (parse_symbol): Likewise.
3148 * stabsread.c (define_symbol): Mark all functions as prototyped.
3149
3150 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
3151 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
3152 set_gdbarch_coerce_float_to_double.
3153 * arm-tdep.c (arm_gdbarch_init): Likewise.
3154 * frv-tdep.c (frv_gdbarch_init): Likewise.
3155 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
3156 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
3157 * mips-tdep.c (mips_gdbarch_init): Likewise.
3158 (mips_coerce_float_to_double): Remove.
3159 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3160 (rs6000_coerce_float_to_double): Remove.
3161 * s390-tdep.c (s390_gdbarch_init): Likewise.
3162 * sh-tdep.c (sh_gdbarch_init): Likewise.
3163 (sh_coerce_float_to_double): Remove.
3164 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3165 (sparc_coerce_float_to_double): Remove.
3166 * v850-tdep.c (v850_gdbarch_init): Likewise.
3167 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
3168 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3169 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
3170 (hppa_coerce_float_to_double): Remove prototype.
3171 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3172
f436a26a
DJ
31732003-01-04 Daniel Jacobowitz <drow@mvista.com>
3174
3175 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
3176
248f8055
DJ
31772003-01-04 Daniel Jacobowitz <drow@mvista.com>
3178
3179 Suggested by Stewart Brown <sb24@avaya.com>:
3180 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
3181 in recursive calls. Handle TYPE_CODE_TYPEDEF.
3182 (c_type_print_varspec_suffix): Likewise.
3183
72cfdc76
MK
31842003-01-04 Mark Kettenis <kettenis@gnu.org>
3185
bfd260bb
MK
3186 * configure.in: Don't set and AC_SUBST SUBDIRS.
3187 * configure: Regenerated.
3188
72cfdc76
MK
3189 * configure.in: Remove code dealing with shared libraries.
3190 * Makefile.in: Remove HLDFLAGS and HLDENV.
3191 * configure: Regenerated.
3192
c8b8a898
AC
31932003-01-04 Andrew Cagney <ac131313@redhat.com>
3194
3195 * frame.c (deprecated_frame_xmalloc): New function.
3196 (deprecated_set_frame_saved_regs_hack): New function.
3197 (deprecated_set_frame_extra_info_hack): New function.
3198 * frame.h (deprecated_frame_xmalloc): Declare.
3199 (deprecated_set_frame_saved_regs_hack): Declare.
3200 (deprecated_set_frame_extra_info_hack): Declare.
3201
14abd0fb
MK
32022003-01-04 Mark Kettenis <kettenis@gnu.org>
3203
8ee53726
MK
3204 * configure.in: Move code that provides the --enable-gdbtk option
3205 right after the code that handles the --enable-tui option, and
3206 polish it somewhat.
3207 * configure: Regenerated.
3208
14abd0fb
MK
3209 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
3210 AC_CHECK_FUNCS and remove the old check for pread64.
3211 * acinclude.m4 (AC_GNU_SOURCE): New macro.
3212 * acconfig.h (_GNU_SOURCE): Add.
3213 (HAVE_PREAD64): Remove.
3214 * configure, aclocal.m4, config.in: Regenerated.
3215
b2fb4676
AC
32162003-01-03 Andrew Cagney <ac131313@redhat.com>
3217
3218 * alpha-tdep.c: Use get_frame_saved_regs.
3219 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3220 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
3221 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
3222 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
3223 * vax-tdep.c, xstormy16-tdep.c: Ditto.
3224
8dcde887
MK
32252003-01-03 Mark Kettenis <kettenis@gnu.org>
3226
3227 * configure.in: Remove all use of the SUBDIRS variable; add
3228 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
3229 code providing the --enable-multi-ice option, and move it right in
3230 front of the code that checks whether gdbserver is supported.
3231 Polish that too.
3232 * configure: Regenerated.
3233 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
3234 @SUBDIRS@.
3235
8ccd593b
AC
32362003-01-03 Andrew Cagney <cagney@redhat.com>
3237
3238 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
3239 * avr-tdep.c, cris-tdep.c: Ditto.
3240 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
3241 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
3242
91151a06
MK
32432003-01-03 Mark Kettenis <kettenis@gnu.org>
3244
3245 * configure.in: Remove --enable-netrom option.
3246 * configure: Regenerated.
3247
8fe84d01
MK
32482003-01-03 Mark Kettenis <kettenis@gnu.org>
3249
3250 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
3251 declaration for `struct re_pattern_buffer' instead.
3252 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
3253
f0394be6
JB
32542003-01-03 J. Brobecker <brobecker@gnat.com>
3255
3256 * mdebugread.c (parse_symbol): Count until the stEnd matching
3257 the structure name.
3258
27e9bf90
MK
32592003-01-02 Mark Kettenis <kettenis@gnu.org>
3260
93d331ba
MK
3261 * configure.in: Remove --with-cpu option.
3262 subscripts. Remove evil changequotes here.
3263 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
3264 * config.in, configure: Regenerated.
3265
27e9bf90
MK
3266 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
3267 * configure.in: Cleanup section that sources GDB and BFD configure
3268 subscripts. Remove evil changequotes here.
3269 * config.in, configure: Regenerated.
3270
50abf9e5
AC
32712003-01-02 Andrew Cagney <ac131313@redhat.com>
3272
3273 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
3274 frame accessor methods.
3275 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3276 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
3277 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
3278 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
3279 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
3280 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
3281 * z8k-tdep.c: Ditto.
3282
287c1a40
MK
32832003-01-02 Mark Kettenis <kettenis@gnu.org>
3284
f5dbc56d
MK
3285 * configure.in: Remove UI_OUT configuration code.
3286 * ada-lang.c: Update assuming UI_OUT is always true.
3287 * Makefile.in (UIOUT_CFLAGS): Remove.
3288 * configure: Regenerated.
3289 * TODO: Remove blurb about elimination of -DUI_OUT.
3290
627af7ea
MK
3291 * configure.in: Move code that provides the --enable-gdbcli,
3292 --enable-gdbmi options right before the code that handles the
3293 --enable-tui option. Polish a bit.
3294 * configure: Regenerated.
3295
06825bd1
MK
3296 * configure.in: Rewrite check for GNU regex and the
3297 --without-included regex option, and move it into the "Checks for
3298 library functions" section. This makes us use the system regex
3299 again by default on systems with version 2 of the GNU C library.
3300 This was apparently broken.
3301 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
3302 * acconfig.h (USE_INCLUDED_REGEX): Remove.
3303 * config.in, configure: Regenerated.
3304
287c1a40
MK
3305 * configure.in: Move code that provides the --enable-tui option
3306 before the "Checks for libraries" section. Polish the code
3307 somewhat and set need_curses to yes if we build the TUI. Rewrite
3308 code that looks for a library providing termcap functionality to
3309 match more closely what's done in the Readline library, and move
3310 it into to the "Checks for libraries" section.
3311 * configure: Regenerated.
3312 * Makefile.in (TERMCAP): Remove variable.
3313 * config/i386/go32.mh (TERMCAP): Remove variable.
3314
684e56bf
AC
33152003-01-02 Andrew Cagney <ac131313@redhat.com>
3316
3317 * MAINTAINERS: Mention gdb_mbuild.sh.
3318 * gdb_mbuild.sh: Rewrite.
3319
e1ea1d75
MK
33202003-01-02 Mark Kettenis <kettenis@gnu.org>
3321
3322 * configure.in: Fix typo in last change.
3323 * config.in, configure: Regenerated.
3324
1b831c93
AC
33252003-01-02 Andrew Cagney <ac131313@redhat.com>
3326
3327 * valarith.c (value_binop): Delete obsolete code and comments.
3328 * configure.host: Ditto.
3329 * buildsym.h (make_blockvector): Ditto.
3330 * buildsym.c (make_blockvector): Ditto.
3331 * defs.h (enum language): Ditto.
3332 (chill_demangle): Ditto.
3333 * elfread.c (elf_symtab_read): Ditto.
3334 * dwarfread.c (CHILL_PRODUCER): Ditto.
3335 (set_cu_language): Ditto.
3336 (handle_producer): Ditto.
3337 * expprint.c (print_subexp): Ditto.
3338 * gdbtypes.c (chill_varying_type): Ditto.
3339 * gdbtypes.h (builtin_type_chill_bool): Ditto.
3340 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
3341 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
3342 (chill_varying_type): Ditto.
3343 * language.h (_LANG_chill): Ditto.
3344 * language.c (binop_result_type, integral_type): Ditto.
3345 (character_type, string_type, structured_type): Ditto.
3346 (lang_bool_type, binop_type_check): Ditto.
3347 * stabsread.h (os9k_stabs): Ditto.
3348 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
3349 (define_symbol, read_type, read_struct_fields): Ditto.
3350 (read_array_type, read_enum_type, read_huge_number): Ditto.
3351 (read_range_type, start_stabs): Ditto.
3352 * symfile.c (init_filename_language_table): Ditto.
3353 (add_psymbol_with_dem_name_to_list): Ditto.
3354 * symtab.c (symbol_init_language_specific): Ditto.
3355 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
3356 * symtab.h (struct general_symbol_info): Ditto.
3357 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3358 * typeprint.c (typedef_print): Ditto.
3359 * utils.c (fprintf_symbol_filtered): Ditto.
3360 * valops.c (value_cast, search_struct_field, value_slice): Delete
3361 obsolete code.
3362 (varying_to_slice): Delete function.
3363 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
3364 (varying_to_slice): Delete declaration.
3365 * MAINTAINERS: Update.
3366
8bb2c122
MK
33672003-01-02 Mark Kettenis <kettenis@gnu.org>
3368
97bf5e38
MK
3369 * configure.in: Reorganize "Checks for library functions section"
3370 a bit. Remove check for `btowc' and `isascii' functions.
3371 * configure: Regenerated.
3372
5ee754fc
MK
3373 * acconfig.h (_MSE_INT_H): Remove.
3374 * configure.in: Create "Checks for header files" section, and move
3375 appropriate tests there. Don't check for objlist.h, wchar.h,
3376 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
3377 misdetection fix. Also add "Checks for types", "Checks for
3378 compiler characteristics" and "Checks for library functions"
3379 sections.
3380 * config.in, configure: Regenerated.
3381
8bb2c122
MK
3382 * configure.in: Create "Checks for programs" section, and move
3383 appropriate tests there.
3384
9a156167
MK
33852003-01-01 Mark Kettenis <kettenis@gnu.org>
3386
3387 * configure.in: Create "Checks for libraries" section, and move
3388 appropriate tests there. Cleanup check for wctype in libw. Use
3389 AC_SEARCH_LIBS to see whether we need libsocket.
3390 * configure: Regenerated.
3391
a80e2bcb 3392For older changes see ChangeLog-2002
c906108c
SS
3393\f
3394Local Variables:
3395mode: change-log
3396left-margin: 8
3397fill-column: 74
3398version-control: never
3399End:
This page took 0.531732 seconds and 4 git commands to generate.