* alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
72667056
RH
12003-06-02 Richard Henderson <rth@redhat.com>
2
7b5e1cb3
RH
3 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4 (alpha_extract_return_value): Likewise.
5 (alpha_store_return_value): Likewise.
6
24064b5c
RH
7 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
8 (alpha_store_return_value): Error on IEEE Quad floats.
9
5ec2bb99
RH
10 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
11 (alpha_extract_struct_value_address): Likewise.
12 (alpha_store_return_value): Likewise.
13 (alpha_store_struct_return): Remove.
14 (alpha_gdbarch_init): Update hook registration to match.
15
14696584
RH
16 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
17 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
18 macros where appropriate.
19 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
20 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
21
72667056
RH
22 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
23 for SP, GP; void_func_ptr for PC; non-language-specific types
24 for all others.
25 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
26
6dd77b81
RH
272003-06-02 Richard Henderson <rth@redhat.com>
28
29 * top.h (lim_at_start): Declare.
30 * main.c (captured_main): Set it.
31 * top.c (lim_at_start): Define.
32 (command_loop): Use it instead of &environ.
33 * event-top.c (command_handler): Likewise.
34
f4dbdb54
JT
352003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
36
37 * mipsnbsd-tdep.c: Update copyright years.
38 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
39
8f285956
RH
402003-06-01 Richard Henderson <rth@redhat.com>
41
42 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
43 (alpha-linux-tdep.o): Update dependencies.
44 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
45 * alpha-mdebug-tdep.c: Remove unneeded includes.
46
615967cb
RH
472003-06-01 Richard Henderson <rth@redhat.com>
48
49 * alpha-tdep.c (alpha_register_reggroup_p): New.
50 (alpha_gdbarch_init): Register it.
51
b59661bd
AC
522003-06-02 Andrew Cagney <cagney@redhat.com>
53
54 * dwarfread.c: Eliminate "register"
55 (decode_die_type): Eliminate assignment within "if".
56 (struct_type, decode_array_element_type): Ditto.
57 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
58 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
59 (decode_modified_type, completedieinfo): Ditto.
60 * block.c: Eliminate "register".
61 (blockvector_for_pc_sect): Eliminate assignment within "if".
62 * cp-support.h (struct symbol): Opaque declaration.
63 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
64
5ef165c2
RH
652003-06-01 Richard Henderson <rth@redhat.com>
66
67 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
68 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
69
143985b7
AF
702003-06-01 Adam Fedor <fedor@gnu.org>
71
72 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
73 * gdbarch.[ch]: Regenerate.
74 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
75 (hppa_gdbarch_init): Set it in the gdbarch vector.
76 * i386-tdep.c (i386_fetch_pointer_argument): New
77 (i386_gdbarch_init): Set it into gdbarch.
78 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
79 (rs6000_gdbarch_init): Set it in gdbarch.
80 * sparc-tdep.c (sparc_fetch_pointer_argument): New
81 (sparc_gdbarch_init): Set it in gdbarch.
82
ae0167b9
AC
832003-06-01 Andrew Cagney <cagney@redhat.com>
84
7c0b4a20
AC
85 * defs.h (extract_address): Delete declaration.
86 * findvar.c (extract_address): Delete function.
87 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
88 extract_address with the inline equivalent,
89 extract_unsigned_integer.
90 (xstormy16_extract_struct_value_address): Ditto.
91 (xstormy16_pointer_to_address): Ditto.
92 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
93 * v850-tdep.c (v850_push_arguments): Ditto.
94 (v850_extract_return_value): Ditto.
95 (v850_extract_struct_value_address): Ditto.
96 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
97 (sparcnbsd_get_longjmp_target_64): Ditto.
98 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
99 (get_longjmp_target): Ditto.
100 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
101 (sh64_extract_struct_value_address): Ditto.
102 (sh_push_arguments): Ditto.
103 (sh64_push_arguments): Ditto.
104 * remote-vxsparc.c (vx_read_register): Ditto.
105 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
106 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
107 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
108 * mipsv4-nat.c (get_longjmp_target): Ditto.
109 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
110 * mips-nat.c (get_longjmp_target): Ditto.
111 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
112 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
113 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
114 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
115 * irix5-nat.c (get_longjmp_target): Ditto.
116 * irix4-nat.c (get_longjmp_target): Ditto.
117 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
118 (ia64_push_arguments): Ditto.
119 * hpux-thread.c (hpux_thread_store_registers): Ditto.
120 * h8300-tdep.c (h8300_push_arguments): Ditto.
121 (h8300_store_return_value): Ditto.
122 (h8300_extract_struct_value_address): Ditto.
123 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
124 (frv_push_arguments): Ditto.
125 * avr-tdep.c (avr_pointer_to_address): Ditto.
126 (avr_push_arguments): Ditto.
127 * arm-tdep.c (arm_push_dummy_call): Ditto.
128 (arm_get_longjmp_target): Ditto.
129 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
130 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
131 (alpha_get_longjmp_target): Ditto.
132
ae0167b9
AC
133 * solib-irix.c (extract_mips_address): Inline extract_address,
134 replacing it with extract_signed_integer.
135 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
136 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
137 (first_link_map_member, open_symbol_file_object): Ditto.
138 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
139 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
140 (LM_NEXT, LM_NAME): Ditto.
141
44d88583
RH
1422003-06-01 Richard Henderson <rth@redhat.com>
143
144 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
145 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
146 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
147 (alpha_cannot_store_register): Likewise.
148 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
149 * alpha-nat.c (supply_gregset): Likewise.
150 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
151
310e9b6a
AC
1522003-06-01 Andrew Cagney <cagney@redhat.com>
153
154 * infcall.c (call_function_by_hand): Update comment on
155 DEPRECATED_DUMMY_WRITE_SP.
156
157 * mips-tdep.c (mips_gdbarch_init): Do not set
158 deprecated_dummy_write_sp.
159 (mips_eabi_push_dummy_call): Set the SP register.
160 (mips_o64_push_dummy_call): Set the SP register.
161 (mips_o32_push_dummy_call): Set the SP register.
162 (mips_n32n64_push_dummy_call): Set the SP register.
163
5ab84872
RH
1642003-06-01 Richard Henderson <rth@redhat.com>
165
166 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
167 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
168 (supply_gregset): Likewise.
169 * alpha-tdep.c (alpha_store_return_value): Likewise.
170 (alpha_get_longjmp_target): Likewise.
171 (alpha_register_name): Constify array.
172 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
173 deprecated_register_size, deprecated_register_bytes,
174 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
175 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
176 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
177
09cc52fd
RH
1782003-06-01 Richard Henderson <rth@redhat.com>
179
180 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
181 from arg_reg_buffer to regcache to avoid double conversion.
182
c7f16359
MK
1832003-06-01 Mark Kettenis <kettenis@gnu.org>
184
185 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
186 SP_REGNUM.
187 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
188 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
189
7131cb6e
RH
1902003-06-01 Richard Henderson <rth@redhat.com>
191
192 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
193 (decode_frame_entry): Set it. Skip FDE augmentation.
194
f3e0f90b
RH
1952003-06-01 Richard Henderson <rth@redhat.com>
196
197 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
198 not overlapping PC_REGNUM.
199
c88e30c0
RH
2002003-06-01 Richard Henderson <rth@redhat.com>
201
202 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
203 alpha_push_arguments. Don't dump argument register data to
204 the target stack. Fix float and 128-bit long double semantics.
205 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
206 (alpha_fix_call_dummy): Remove.
207 (alpha_call_dummy_words): Remove.
208 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
209
f1a559ae
RH
2102003-06-01 Richard Henderson <rth@redhat.com>
211
212 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
213
5e045346
AC
2142003-06-01 Andrew Cagney <cagney@redhat.com>
215
95404a3e
AC
216 * mips-tdep.c (is_mips16_addr): New function.
217 (make_mips16_addr, unmake_mips16_addr): New functions.
218 (pc_is_mips16, mips_fetch_instruction): Use.
219 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
220 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
221 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
222 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
223 TARGET_MIPS.
224 * config/mips/tm-mips.h: Update copyright.
225 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
226 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
227 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
228 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
229 (TM_PRINT_INSN_MACH): Delete.
230 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
231
5e045346
AC
232 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
233 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
234 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
235 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
236 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
237 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
238 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
239 mips*-*-riscos* and mips*-*-sysv* onto mips.
240 * config/mips/mips64.mt: New file.
241 * config/mips/mips.mt: New file.
242 * config/mips/littlemips.mt: Delete file.
243 * config/mips/decstation.mt: Delete file.
244 * config/mips/vr4300el.mt: Delete file.
245 * config/mips/vr5000el.mt: Delete file.
246 * config/mips/vr5000.mt: Delete file.
247 * config/mips/vr4100.mt: Delete file.
248 * config/mips/vr4xxxel.mt: Delete file.
249 * config/mips/vr4300.mt: Delete file.
250 * config/mips/vr4xxx.mt: Delete file.
251 * config/mips/bigmips.mt: Delete file.
252 * config/mips/bigmips64.mt: Delete file.
253 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
254 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
255 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
256 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
257 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
258 "tm-bigmips.h".
259 * config/mips/tm-irix3.h: Ditto.
260 * config/mips/tm-mipsv4.h: Ditto.
261 * config/mips/tm-embed.h: Ditto.
262 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
263 "tm-bigmips64.h".
264 * config/mips/tm-vr5000el.h: Delete file.
265 * config/mips/tm-tx39l.h: Delete file.
266 * config/mips/tm-vr4300el.h: Delete file.
267 * config/mips/tm-vr4xxxel.h: Delete file.
268 * config/mips/tm-vr4300.h: Delete file.
269 * config/mips/tm-vr4100.h: Delete file.
270 * config/mips/tm-vr4xxx.h: Delete file.
271 * config/mips/tm-vr5000.h: Delete file.
272 * config/mips/tm-embedl64.h: Delete file.
273 * config/mips/tm-embedl.h: Delete file.
274 * config/mips/tm-embed64.h: Delete file.
275 * config/mips/tm-bigmips64.h: Delete file.
276 * config/mips/tm-bigmips.h: Delete file.
277
2473a4a9
MK
2782003-06-01 Mark Kettenis <kettenis@gnu.org>
279
97a5b208
MK
280 Fix gdb/1216.
281 * shnbsd-nat.c: Include "sh-tdep.h".
282
2473a4a9
MK
283 From Richard Henderson <rth@redhat.com>:
284 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
285
e0f7ec59
AC
2862003-05-31 Andrew Cagney <cagney@redhat.com>
287
288 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
289 forward declaration.
290 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
291 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
292 (mips_find_saved_regs): Use set_reg_offset.
293 (mips_frame_init_saved_regs): Delete function.
294 (mips_pop_frame): Call mips_find_saved_regs instead of
295 DEPRECATED_FRAME_INIT_SAVED_REGS.
296
68dcc709
AC
2972003-05-31 Andrew Cagney <cagney@redhat.com>
298
299 * mips-tdep.c (mips_gdbarch_init): Do not set
300 deprecated_max_register_raw_size, register_virtual_size, and
301 deprecated_max_register_virtual_size.
302
cfc14b3a
MK
3032003-05-31 Mark Kettenis <kettenis@gnu.org>
304
6405b0a6
MK
305 * i386-tdep.c: Include "dwarf2-frame.h".
306 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
307 * Makefile.in (i386-tdep.o): Update dependencies.
308
cfc14b3a
MK
309 * dwarf2-frame.c, dwarf2-frame.h: New files.
310 * Makefile.in (SFILES): Add dwarf2-frame.c.
311 (dwarf2_frame_h): Define.
312 (COMMON_OBS): Add dwarf2-frame.o.
313 (dwarf2-frame.o): Add dependencies.
314
6a2751d2
AJ
3152003-05-31 Andreas Jaeger <aj@suse.de>
316
317 * x86-64-linux-nat.c: Fix comment.
318
1c3545ae
MK
3192003-05-31 Mark Kettenis <kettenis@gnu.org>
320
10f93086
MK
321 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
322 function signature.
323
1c3545ae
MK
324 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
325 have a sigcontext_addr handler.
326 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
327 sigcontext_addr handler.
328
e11c53d2
AC
3292003-05-31 Andrew Cagney <cagney@redhat.com>
330
331 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
332 (print_fp_register_row): Replace do_fp_register_row.
333 (mips_print_fp_register): Add "file" and "frame" parameters.
334 (mips_print_register): Add "file" and "frame" parameters.
335 (mips_print_registers_info): Replace mips_do_registers_info.
336 (mips_gdbarch_init): Set print_registers_info instead of
337 deprecated_do_registers_info.
338 (mips_read_fp_register_single): Add "frame" parameter.
339 (mips_read_fp_register_double): Add "frame" parameter.
340
a3386186
MK
3412003-05-31 Mark Kettenis <kettenis@gnu.org>
342
70913449
MK
343 * i386-tdep.c (i386_register_name): Check for MMX registers first.
344 Fixes a bug where GDB would print the wrong register names for
345 targets without SSE.
346
2b5e0749
MK
347 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
348 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
349 registers.
350
351 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
352 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
353 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
354 TDEP->sc_sp_offset.
355
a3386186
MK
356 From Michal Ludvig <mludvig@suse.cz>:
357 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
358 and `sc_num_regs'.
359 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
360 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
361 I386_ST0_REGNUM): Move here from...
362 * i386-tdep.c: ... here.
363 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
364 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
365 registers if possible.
366 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
367 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
368 Remove variables.
369 (i386bsd_sc_reg_offset): New variable.
370 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
371 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
372 TDEP->sc_sp_offset.
373 (i386fbsd_sc_reg_offset): New variable.
374 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
375 TDEP->sc_num_regs.
376 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
377 variables.
378 (i386fbsd4_sc_reg_offset): New variable.
379 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
380 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
381 TDEP->sc_sp_offset.
382 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
383 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
384 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
385 Remove variables.
386 (i386nbsd_sc_reg_offset): New variable.
387 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
388 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
389 TDEP->sc_sp_offset.
390 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
391 Remove variables.
392 (i386obsd_sc_reg_offset): New variable.
393 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
394 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
395 TDEP->sc_sp_offset.
396 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
397 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
398 for frame pointer offset in `struct sigcontext'.
399
25ab4790
AC
4002003-05-31 Andrew Cagney <cagney@redhat.com>
401
402 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
403 architecture methods call_dummy_words, sizeof_call_dummy_words,
404 push_return_address, store_struct_return, and fix_call_dummy. Set
405 push_dummy_call instead of deprecated_push_arguments.
406 (mips_store_struct_return): Delete function.
407 (mips_fix_call_dummy): Delete function.
408 (mips_push_return_address): Delete function.
409 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
410 RA_REGNUM and T9_REGNUM.
411 (mips_n32n64_push_dummy_call): Ditto for
412 mips_n32n64_push_arguments.
413 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
414 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
415
6a65450a
AC
4162003-05-31 Andrew Cagney <cagney@redhat.com>
417
418 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
419 "dummy_addr" to "bp_addr".
420 * infcall.c (call_function_by_hand): Pass "funaddr" to
421 gdbarch_push_dummy_call.
422 * gdbarch.h, gdbarch.c: Re-generate.
423 * i386-tdep.c (i386_push_dummy_call): Update.
424 * arm-tdep.c (arm_push_dummy_call): Update.
425 * d10v-tdep.c (d10v_push_dummy_call): Update.
426
c4f35dd8
MK
4272003-05-31 Mark Kettenis <kettenis@gnu.org>
428
429 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
430 variable declarations.
431 (x86_64_register_number, x86_64_register_name): Remove prototypes.
432 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
433 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
434 x86_64_init_frame_pc, x86_64_init_frame_pc,
435 x86_64_function_has_prologue): Remove prototypes.
436 (X86_64_NUM_GREGS): New define.
437 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
438 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
439 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
440 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
441 XMM1_REGNUM): Remove defines.
442 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
443 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
444 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
445 X86_64_XMM1_REGNUM): New defines.
446 (struct x86_64_register_info): Renamed from `struct
447 register_info'. Remove `size' member.
448 (x86_64_register_info_table): Remove variable.
449 (x86_64_register_info): New variable.
450 (X86_64_NUM_REGS): New define.
451 (X86_64_NUM_GREGS): Remove define.
452 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
453 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
454 Remove variables.
455 (x86_54_dwarf2_reg_to_regnum): Remove function.
456 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
457 (x86_64_dwarf_reg_to_regnum): New function.
458 (x86_64_register_name): Rewrite.
459 (x86_64_register_raw_size): Remove function.
460 (x86_64_register_byte_table): Remove variable.
461 (x86_64_register_byte): Remove function.
462 (x86_64_register_virtual_type): Remove function.
463 (x86_64_register_type): New function.
464 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
465 x86_64_register_convert_to_raw): Remove functions.
466 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
467 (x86_64_use_struct_convention): Make static. Adjust for renamed
468 defines.
469 (x86_64_frame_init_saved_regs): Remove function.
470 (x86_64_push_arguments): Make static. Change to accept a regcache
471 as argument.
472 (x86_64_store_return_value, x86_64_extract_return_value): Make
473 static. Rewrite based on i386 counterparts.
474 (x86_64_push_dummy_call): New function.
475 (X86_64_NUM_SAVED_REGS): New define.
476 (x86_64_register_number): Remove function.
477 (x86_64_store_struct_return): Remove function.
478 (x86_64_frameless_function_invocation,
479 x86_64_function_has_prologue): Remove functions.
480 (PROLOG_BUFSIZE): Remove define.
481 (struct x86_64_frame_cache): New structure.
482 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
483 x86_64_frame_cache, x86_64_frame_this_id,
484 x86_64_frame_prev_register, x86_64_frame_p,
485 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
486 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
487 functions.
488 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
489 variables.
490 (x86_64_skip_prologue): Rewrite in terms of
491 x86_64_analyze_prologue.
492 (x86_64_frame_base_address): New function.
493 (x86_64_frame_base): New variable.
494 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
495 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
496 set deprecated_fp_regnum, deprecated_register_size,
497 deprecated_register_bytes, register_raw_size, register_byte,
498 register_virtual_type, register_convertiable,
499 register_convert_to_virtual, convert_to_raw,
500 deprecated_get_saved_register, deprecated_target_read_fp,
501 deprecated_push_arguments, deprecated_push_return_address,
502 deprecated_pop_frame, deprecated_store_struct_return,
503 deprecated_frame_init_saved_regs, deprecated_frame_chain,
504 frameless_function_invocation, deprecated_frame_saved_pc,
505 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
506 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
507 deprecated_init_frame_pc and virtual_frame_pointer. Call
508 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
509 and x86_64_frame_p. Call frame_base_set_default to register
510 x86_64_frame_base.
511 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
512 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
513 (_initialize_x86_64_tdep): Remove function.
514 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
515 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
516 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
517 define.
518 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
519 (x86_64_linux_sigcontext_addr): Rewrite.
520 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
521 x86_64_linux_frame_saved_pc): Remove functions.
522 (x86_64_linux_pc_in_sigtramp): Renamed from
523 x86_64_linux_in_sigtramp. Try harder to recognize a signal
524 trampoline.
525 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
526 Remove_functions.
527 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
528 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
529 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
530 (x86_64_regmap): Rename to regmap.
531 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
532 x86_64_num_gregs.
533 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
534 x86_64_regmap.
535 (x86_64_fxsave_offset): Remove function.
536 (supply_fpregset): Simply call x86_64_supply_fxsave.
537 (fill_fpregset): Simply call x86_64_fill_fxsave.
538 (fetch_inferior_registers, store_inferior_registers): Avoid
539 asignment in if-statement.
540 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
541 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
542 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
543 (fetch_core_registers): Remove function.
544 (linux_elf_core_fns): Remove.
545 (offsetoff): Don't define.
546 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
547 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
548 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
549 add core-regset.o.
550 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
551 protection against multiple includes instead of NM_X86_64_h. Add
552 various comments. Include "config/nm-linux.h". Don't include
553 <signal.h>.
554 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
555 GET_THREAD_SIGNALS): Remove defines.
556 (x86_64_register_u_addr, kernel_u_size,
557 lin_thread_get_thread_signals): Remove prototypes.
558 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
559 [HAVE_LINK_H]: Don't include "solib.h".
560 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
561 * config/i386/tm-x86-64linux.h: Fix comments.
562 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
563 x86-64-tdep.o): Update dependencies.
564
c25083af
AC
5652003-05-30 Andrew Cagney <cagney@redhat.com>
566
c8f55a7b
AC
567 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
568 Change parameter type to a "struct regcache *".
569
c25083af
AC
570 * gdbarch.sh: Regardless of the multi-arch level, always define
571 the macro when not already defined.
572 * gdbarch.h, gdbarch.c: Re-generate.
573
fbe586ae
RH
5742003-05-30 Richard Henderson <rth@redhat.com>
575
576 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
577 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
578 (alpha_mdebug_frame_this_id): Likewise.
579 (alpha_mdebug_frame_prev_register): Likewise.
580 (alpha_mdebug_frame_base_address): Likewise.
581 (alpha_mdebug_frame_locals_address): Likewise.
582 (alpha_mdebug_frame_args_address): Likewise.
583 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
584 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
585 (alpha_heuristic_frame_unwind_cache): Make static; add missing
586 loop increment.
587 (alpha_heuristic_frame_this_id): Make static.
588 (alpha_heuristic_frame_prev_register): Likewise.
589 (alpha_heuristic_frame_base_address): Likewise.
590 * alpha-tdep.h: Update.
591
acd5c798
MK
5922003-05-30 Mark Kettenis <kettenis@gnu.org>
593
594 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
595 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
596 defenitions.
597 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
598 * i386-tdep.c: Mark functions that are 64-bit safe as such.
599 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
600 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
601 I386_ST0_REGNUM): New defines.
602 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
603 codestream_get): Remove define.
604 (codestream_next_addr, condestream_addr, condestream_buf,
605 codestream_off, codestream_cnt): Remove variables.
606 (codestream_fill, codestream_seek, codestream_read): Remove
607 functions.
608 (i386_follow_jump): Rewrite to avoid usage of removed codestream
609 functionality.
610 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
611 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
612 i386_frame_saved_pc, i386_saved_pc_after_call,
613 i386_frame_num_args, i386_frame_init_saved_regs,
614 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
615 i386_push_arguments): Remove functions.
616 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
617 functionality. Use i386_analyze_prologue instead of
618 i386_get_frame_setup.
619 (I386_NUM_SAVED_REGS): New define.
620 (struct i386_frame_cache): New structure.
621 (i386_alloc_frame_cache, i386_analyze_struct_return,
622 i386_skip_probe, i386_analyze_frame_setup,
623 i386_analyze_register_saves, i386_analyze_prologue,
624 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
625 i386_frame_prev_register, i386_sigtramp_frame_cache,
626 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
627 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
628 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
629 New functions.
630 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
631 New variables.
632 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
633 I386_EAX_REGNUM and I386_EDX_REGNUM.
634 (i386_extract_return_value, i386_store_return_value): Use
635 I386_ST0_REGNUM where appropriate.
636 (i386_extract_struct_value_address): Rewrite to use extract_address.
637 (i386_svr4_pc_in_sigtramp): Add comment.
638 (i386_svr4_sigcontext_addr): Rewrite.
639 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
640 TDEP->sc_sp_offset.
641 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
642 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
643 of new defines. Set push_dummy_call, don't set
644 deprecated_push_arguments, deprecated_push_return_address,
645 deprecated_pop_frame. Don't set parm_boundary. Don't set
646 deprecated_frame_chain, deprecated_frame_saved_pc,
647 deprecated_saved_pc_after_call. Set unwind_dummy_id,
648 save_dummy_frame_tos, unwind_pc. Call
649 frame_unwind_append_predicate and frame_base_set_default. Don't
650 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
651 Don't set frameless_function_invocation. Don't set
652 deprecated_register_bytes, deprecated_register_size,
653 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
654 * i386-linux-tdep.c: Fix formatting in some comments.
655 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
656 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
657 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
658 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
659 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
660 redundant parentheses.
661 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
662 (i386_linux_sigcontext_addr): Use it. Rewrite.
663 (find_minsym_and_objfile): Change name of second argument.
664 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
665 changed. Use frame_pc_unwind instead of
666 DEPRECATED_SAVED_PC_AFTER_CALL.
667 (i386_linux_init_abi): Don't set deprecated_register_bytes.
668 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
669 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
670 unwinder.
671 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
672 "dummy-frame.h".
673 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
674 (_initialize_i386_cygwin_tdep): New prototype.
675 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
676 deprecated_frame_chain_valid.
677 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
678 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
679 Rely on the SVR4 defaults.
680 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
681 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
682
c89b70f1
AC
6832003-05-30 Andrew Cagney <cagney@redhat.com>
684
685 * infcall.c (call_function_by_hand): Always call
686 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
687
85b32d22
RH
6882003-05-30 Richard Henderson <rth@redhat.com>
689
c89b70f1
AC
690 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
691 increment.
85b32d22 692
bfe51b1e
JB
6932003-05-29 Jim Blandy <jimb@redhat.com>
694
695 Use gdbarch methods for solib stuff on PowerPC Linux.
696 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
697 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
698 show through.
699 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
700 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
701 giving the same effect as the #definitions above.
702
1abf022c
AF
7032003-05-29 Adam Fedor <fedor@gnu.org>
704
705 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
706 (find_implementation_from_class): Replace it with the standard
707 case i.e. do nothing.
708
d2427a71
RH
7092003-05-29 Richard Henderson <rth@redhat.com>
710
711 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
712 (alpha_linux_sigtramp_offset): Use it. Make static.
713 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
714 update for new frame model.
715 * alpha-mdebug-tdep.c: New file.
716 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
717 (alpha_osf1_init_abi): Install it.
718 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
719 (linked_proc_desc_table): Remove.
720 (alpha_frame_past_sigtramp_frame): Remove.
721 (alpha_dynamic_sigtramp_offset): Remove.
722 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
723 (alpha_proc_desc_is_dyn_sigtramp): Remove.
724 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
725 (push_sigtramp_desc): Remove.
726 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
727 (alpha_cannot_store_register): Likewise.
728 (alpha_sigcontext_addr): Remove.
729 (alpha_find_saved_regs): Remove.
730 (alpha_frame_init_saved_regs): Remove.
731 (alpha_init_frame_pc_first): Remove.
732 (read_next_frame_reg): Remove.
733 (alpha_frame_saved_pc): Remove.
734 (alpha_saved_pc_after_call): Remove.
735 (temp_proc_desc, temp_saved_regs): Remove.
736 (alpha_about_to_return): Remove.
737 (cached_proc_desc): Remove.
738 (alpha_frame_chain): Remove.
739 (alpha_print_extra_frame_info): Remove.
740 (alpha_init_extra_frame_info): Remove.
741 (alpha_frame_locals_address): Remove.
742 (alpha_frame_args_address): Remove.
743 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
744 (alpha_push_dummy_frame): Remove.
745 (alpha_pop_frame): Remove.
746 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
747 (alpha_read_insn): New.
748 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
749 for different insn encodings.
750 (alpha_in_lenient_prologue): Remove.
751 (struct alpha_sigtramp_unwind_cache): New.
752 (alpha_sigtramp_frame_unwind_cache): New.
753 (alpha_sigtramp_register_address): New.
754 (alpha_sigtramp_frame_this_id): New.
755 (alpha_sigtramp_frame_prev_register): New.
756 (alpha_sigtramp_frame_unwind): New.
757 (alpha_sigtramp_frame_p): New.
758 (struct alpha_heuristic_unwind_cache): New.
759 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
760 don't count nop insns that occur between functions.
761 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
762 heuristic_proc_desc, but without the mdebug wrapping.
763 (alpha_heuristic_frame_this_id): New.
764 (alpha_heuristic_frame_prev_register): New.
765 (alpha_heuristic_frame_unwind): New.
766 (alpha_heuristic_frame_p): New.
767 (alpha_heuristic_frame_base_address): New.
768 (alpha_heuristic_frame_base): New.
769 (alpha_unwind_dummy_id): New.
770 (alpha_unwind_pc): New.
771 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
772 frame related deprecated initializations; install replacements.
773 (alpha_dump_tdep): Remove.
774 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
775 (alpha_read_insn, alpha_after_prologue,
776 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
777 alpha_heuristic_frame_prev_register,
778 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
779 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
780 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
781 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
782
93ec1121
AC
7832003-05-29 Andrew Cagney <cagney@redhat.com>
784
785 * gdb_assert.h (gdb_assert_fail): Provide different definitions
786 dependant on the availability of ASSERT_FUNCTION.
787 (ASSERT_FUNCTION): Do not define when there is no function name.
788
98f08d3d
KB
7892003-05-29 Kevin Buettner <kevinb@redhat.com>
790
791 From Jimi X <jimix@watson.ibm.com>:
792 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
793
0897f59b
JB
7942003-05-28 Jim Blandy <jimb@redhat.com>
795
796 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
797 argument to ptrace to int; the system headers should give it the
798 right type, and pointers don't fit in ints on powerpc64-*-*.
799
14898363
L
8002003-05-28 H.J. Lu <hongjiu.lu@intel.com>
801
802 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
803 DW_TAG_catch_block.
804
a7a48797
EZ
8052003-05-26 Elena Zannoni <ezannoni@redhat.com>
806
807 * stabsread.c (dbx_lookup_type): Make static.
808 (read_type): Ditto.
809 (add_undefined_type): Ditto.
810 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
811 not export.
812
f5479e9c
EZ
8132003-05-26 Elena Zannoni <ezannoni@redhat.com>
814
815 * hpread.c (hpread_has_name): Make static.
816 (hpread_psymtab_to_symtab): Ditto.
817 (file_exists): Ditto.
818 (hpread_call_pxdb): Ditto.
819 (hpread_pxdb_needed): Ditto.
820 (hpread_quick_traverse): Ditto.
821 (hpread_get_header): Ditto.
822 (hpread_get_lntt): Ditto.
823 (hpread_get_slt): Ditto.
824 (class_of): Ditto.
825
eb2e12d7
AS
8262003-05-25 Andreas Schwab <schwab@suse.de>
827
78bf922a
AS
828 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
829 stack_align and deprecated_extra_stack_alignment_needed.
830 (m68k_stack_align): Delete.
831
eb2e12d7
AS
832 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
833 (m68k_register_virtual_size): Likewise.
834 (altos_skip_prologue): Remove obsolete function.
835 (isi_frame_num_args): Likewise.
836 (news_frame_num_args): Likewise.
837 (m68k_fix_call_dummy): Make static.
838 (m68k_push_dummy_frame): Likewise.
839 (m68k_pop_frame): Likewise.
840 (m68k_skip_prologue): Likewise.
841 (m68k_frame_init_saved_regs): Likewise.
842 (m68k_saved_pc_after_call): Likewise.
843 (m68k_get_longjmp_target): Make multi-arch.
844 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
845 structure. Register m68k_get_longjmp_target if enabled.
846 * m68k-tdep.h (struct gdbarch_tdep): Define.
847 * config/m68k/tm-m68k.h: Don't include "regcache.h".
848
849 * Makefile.in (config.status): Also depend on configure.tgt
850 and configure.host.
851 (m68klinux-tdep.o): Update dependencies.
852 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
853 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
854 (M68K_LINUX_JB_PC): Define.
855 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
856 and take additional parameter.
857 (m68k_linux_sigtramp_saved_pc): Update.
858 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
859 m68k_linux_pc_in_sigtramp, in_plt_section,
860 find_solib_trampoline_target.
861 * config/m68k/tm-linux.h: Don't include any tm headers.
862 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
863 (JB_ELEMENT_SIZE): Likewise.
864 (JB_PC): Likewise.
865 (GET_LONGJMP_TARGET): Likewise.
866 (IN_SIGTRAMP): Likewise.
867 (SVR4_SHARED_LIBS): Define this and include "solib.h".
868
eb2c22dc
MK
8692003-05-25 Mark Kettenis <kettenis@gnu.org>
870
871 * sparc-tdep.c (sparc32_do_push_arguments): New function.
872 (sparc32_push_arguments): Re-implement by calling
873 sparc32_do_push_arguments.
874
44b7b84e
MK
8752003-05-25 Mark Kettenis <kettenis@gnu.org>
876
877 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
878 SPARC_O1_REGNUM): New defines.
879 (sparc32_extract_return_value): Rewrite to operate on a regcache.
880 (sparc32_store_return_value): New function.
881 (sparc_extract_struct_value_address): Rewrite to operate on a
882 regcache.
883 (sparc_gdbarch_init): Don't set
884 deprecated_extract_struct_value_address. Set
885 extract_struct_value_address instead. Don't set
886 deprecated_extract_return_value and deprecated_store_return_value
887 for 32-bit targets. Set extract_return_value and
888 store_return_value instead.
889 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
890 DEPRECTAED_EXTRACT_RETURN_VALUE,
891 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
892 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
893 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
894 (sparc_store_return_value): Remove prototype.
895 (sparc32_store_return_value): New prototype.
896 (sparc32_extract_return_value, sparc_extract_struct_value_address):
897 Adjust prototypes.
898
f6ad61e3
MK
8992003-05-24 Mark Kettenis <kettenis@gnu.org>
900
901 * sparcnbsd-tdep.c: Include "gdb_string.h".
902
b276f1bb
AC
9032003-05-23 Andrew Cagney <cagney@redhat.com>
904
905 * p-valprint.c (pascal_val_print): Replace extract_address with
906 the inline equivalent extract_unsigned_integer.
907 * jv-valprint.c (java_value_print): Ditto.
908 * ada-valprint.c (ada_val_print_1): Ditto.
909 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
910
e76c5fcc
TR
9112003-05-23 Theodore A. Roth <troth@openavr.org>
912
913 * blockframe.c (frameless_look_for_prologue): Remove unused
914 after_prologue variable.
915
2cdd89cb
MK
9162003-05-23 Mark Kettenis <kettenis@gnu.org>
917
918 * blockframe.c (get_pc_function_start): Rewrite to avoid
919 asignments in if-statements.
920
182d43bc
EZ
9212003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
922
923 Committed by Elena Zannoni <ezannoni@redhat.com>.
924 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
925 files, don't relocate absolute symbols (and do use mst_abs).
926
e8f3fcdd
AC
9272003-05-23 Andrew Cagney <cagney@redhat.com>
928
929 * objc-lang.c: Include "gdb_assert.h".
930 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
931 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
932 (gdb_check, gdb_check_fatal): Delete functions.
933 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
934 gdb_assert.
935 (parse_selector, parse_method, find_methods, find_imps): Ditto.
936 * Makefile.in (objc-lang.o): Update dependencies.
937
3c23e6fb
ILT
9382003-05-22 Ian Lance Taylor <ian@airs.com>
939
940 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
941 with fprintf_filtered, not fprintf_unfiltered.
942
af1342ab
AC
9432003-05-22 Andrew Cagney <cagney@redhat.com>
944
945 * stack.c (frame_info): Inline extract_address, replacing it with
946 extract_unsigned_integer.
947 * findvar.c (unsigned_pointer_to_address): Ditto.
948 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
949 * dwarf2expr.c (dwarf2_read_address): Ditto.
950 * frame.c (frame_pc_unwind): Update comment.
951 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
952
47e242ec
JJ
9532003-05-22 Jeff Johnston <jjohnstn@redhat.com>
954
955 * infptrace.c (detach): Call print_sys_errmsg rather than
956 perror_with_name to issue warning message when errno is non-zero
957 after calling ptrace detach.
958
e2ac8128
JB
9592003-05-21 J. Brobecker <brobecker@gnat.com>
960
961 * config/pa/tm-hppa.h: Delete some unused macros. Move some
962 macro definitions from here...
963 * hppa-tdep.c: ...to there.
964
92b3541e
KB
9652003-05-20 Kevin Buettner <kevinb@redhat.com>
966
967 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
968 register_ptrace_addr(). Fix all callers.
969
55809acb
AS
9702003-05-21 Andreas Schwab <schwab@suse.de>
971
972 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
973 dependencies.
974 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
975 end.
976 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
977 (_initialize_m68k_linux_tdep): New function.
978 (m68k_linux_frame_saved_pc): Make static.
979 (m68k_linux_extract_return_value): Likewise.
980 (m68k_linux_store_return_value): Likewise.
981 (m68k_linux_extract_struct_value_address): Likewise.
982 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
983 Remove.
984 (DEPRECATED_STORE_RETURN_VALUE): Remove.
985 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
986 (DEPRECATED_FRAME_SAVED_PC): Remove.
987
0fbc10f7
KW
9882003-05-20 Kris Warkentin <kewarken@qnx.com>
989
990 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
991 regset numbering rather than our own.
992
58da2eb2
DC
9932003-05-19 David Carlton <carlton@bactrian.org>
994
995 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
996
1fcb5155
DC
9972003-05-19 David Carlton <carlton@bactrian.org>
998
999 Partial fix for PR c++/827.
1000 * cp-support.h: Include symtab.h.
1001 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
1002 * cp-namespace.c: Update contributors.
1003 (cp_lookup_symbol_nonlocal): New.
1004 (lookup_namespace_scope, cp_lookup_symbol_namespace)
1005 (lookup_symbol_file): Ditto.
1006 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
1007 * block.h: Declare block_scope, block_using, block_global_block.
1008 * block.c (block_scope): New.
1009 (block_using, block_global_block): Ditto.
1010 * Makefile.in (cp_support_h): Depend on symtab_h.
1011 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
1012
5f9a71c3
DC
10132003-05-19 David Carlton <carlton@bactrian.org>
1014
1015 * language.h (struct language_defn): Add 'la_value_of_this'
1016 and 'la_lookup_symbol_nonlocal' members.
1017 * symtab.h: Declare basic_lookup_symbol_nonlocal,
1018 lookup_symbol_static, lookup_symbol_global,
1019 lookup_symbol_aux_block.
1020 * symtab.c (lookup_symbol_aux): Call language hooks to determine
1021 if we should search fields of this and how to do static/global
1022 lookup.
1023 (lookup_symbol_aux_block): Make extern.
1024 (basic_lookup_symbol_nonlocal): New.
1025 (lookup_symbol_static, lookup_symbol_global): Ditto.
1026 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
1027 'la_lookup_symbol_nonlocal' members.
1028 * c-lang.c (c_language_defn, cplus_language_defn)
1029 (asm_language_defn, minimal_language_defn): Ditto.
1030 * jv-lang.c (java_language_defn): Ditto.
1031 * language.c (unknown_language_defn, auto_language_defn)
1032 (local_language_defn): Ditto.
1033 * m2-lang.c (m2_language_defn): Ditto.
1034 * objc-lang.c (objc_language_defn): Ditto.
1035 * scm-lang.c (scm_language_defn): Ditto.
1036 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
1037 * p-lang.c (pascal_language_defn): Ditto for both.
1038 * Makefile.in (f-lang.o): Depend on value_h.
1039 (p-lang.o): Ditto.
1040
89a9d1b1
DC
10412003-05-19 David Carlton <carlton@bactrian.org>
1042
1043 * block.h: Declare block_static_block.
1044 * block.c (block_static_block): New.
1045 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
1046 lookup_symbol_aux_local, calling block_static_block instead.
1047 (lookup_symbol_aux_local): Delete 'static_block' argument.
1048
eed3f8ab
DC
10492003-05-19 David Carlton <carlton@bactrian.org>
1050
1051 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
1052
a09d8bda
ML
10532003-05-19 Michal Ludvig <mludvig@suse.cz>
1054
1055 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
1056 register numbers mapping.
1057
69636828
AF
10582003-05-18 Adam Fedor <fedor@gnu.org>
1059
1060 * symtab.c (completion_list_objc_symbol): New function.
1061 (make_symbol_completion_list): Use it to add ObjC symbols
1062 when looking though the list.
1063 (language_search_unquoted_string): New function.
1064 (make_file_symbol_completion_list): Use it.
1065
55baeb84
AS
10662003-05-18 Andreas Schwab <schwab@suse.de>
1067
d0b45d99
AS
1068 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
1069 dependencies.
1070 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
1071 as m68k_linux_extract_return_value.
1072 (DEPRECATED_STORE_RETURN_VALUE): Define as
1073 m68k_linux_store_return_value.
1074 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
1075 m68k_linux_extract_struct_value_address.
1076 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
1077 get_next_frame, get_frame_base, get_frame_pc.
1078 (m68k_linux_frame_saved_pc): Use get_frame_base.
1079 (m68k_linux_extract_return_value): New function.
1080 (m68k_linux_store_return_value): New function.
1081 (m68k_linux_extract_struct_value_address): New function.
1082 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
1083
55baeb84
AS
1084 * c-exp.y (typebase): Remove duplicate occurence of
1085 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
1086 of lookup_signed_typename.
1087
b6b08ebf
MK
10882003-05-18 Mark Kettenis <kettenis@gnu.org>
1089
1090 * dwarf2loc.c (find_location_expression): Change type of second
1091 argument to `size_t *'.
1092 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
1093 for size variable.
1094
5ad1c190
DC
10952003-05-18 David Carlton <carlton@bactrian.org>
1096
1097 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
1098 'linkage_name'. Add comment.
1099 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
1100 'linkage_name'.
1101 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
1102 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
1103 (lookup_block_symbol): Ditto.
1104
b8b527c5
AC
11052003-05-16 Andrew Cagney <cagney@redhat.com>
1106
1107 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
1108 * gdbarch.h, gdbarch.c: Re-generate.
1109 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
1110 * TODO (REGISTER_BYTES): Delete reference.
1111 * alpha-tdep.c (alpha_gdbarch_init): Update.
1112 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1113 * x86-64-tdep.c (x86_64_init_abi): Update.
1114 * vax-tdep.c (vax_gdbarch_init): Update.
1115 * v850-tdep.c (v850_gdbarch_init): Update.
1116 * sparc-tdep.c (sparc_gdbarch_init): Update.
1117 * sh-tdep.c (sh_gdbarch_init): Update.
1118 * s390-tdep.c (s390_gdbarch_init): Update.
1119 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1120 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1121 (ns32k_gdbarch_init_32382): Update.
1122 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1123 * mcore-tdep.c (mcore_gdbarch_init): Update.
1124 * m68k-tdep.c (m68k_gdbarch_init): Update.
1125 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1126 * ia64-tdep.c (ia64_gdbarch_init): Update.
1127 * i386-tdep.c (i386_gdbarch_init): Update.
1128 * i386-linux-tdep.c (i386_linux_init_abi): Update.
1129 * hppa-tdep.c (hppa_gdbarch_init): Update.
1130 * h8300-tdep.c (h8300_gdbarch_init): Update.
1131 * frv-tdep.c (frv_gdbarch_init): Update.
1132 * cris-tdep.c (cris_gdbarch_init): Update.
1133 * avr-tdep.c (avr_gdbarch_init): Update.
1134 * arm-tdep.c (arm_gdbarch_init): Update.
1135 * sparc-tdep.c (sparc_pop_frame): Update.
1136 * rs6000-tdep.c (rs6000_pop_frame): Update.
1137 * remote.c (init_remote_state): Update.
1138 (remote_prepare_to_store): Update.
1139 * remote-vx.c (vx_prepare_to_store): Update.
1140 * remote-sds.c (sds_fetch_registers): Update.
1141 (sds_prepare_to_store): Update.
1142 * remote-array.c: Update.
1143 * regcache.c (init_legacy_regcache_descr): Update.
1144 (init_regcache_descr): Update.
1145 * mips-tdep.c (mips_eabi_extract_return_value): Update.
1146 (mips_o64_extract_return_value): Update.
1147 * irix5-nat.c (fetch_core_registers): Update.
1148 * irix4-nat.c (fetch_core_registers): Update.
1149 * i386-tdep.h: Update.
1150 * hppa-tdep.c (pa_do_registers_info): Update.
1151 (pa_do_strcat_registers_info): Update.
1152 * cris-tdep.c (cris_register_bytes_ok): Update.
1153 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1154 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
1155 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
1156 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
1157 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
1158 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
1159 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
1160 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
1161 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
1162 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
1163 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
1164 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
1165 (REGISTER_BYTES_OK): Update.
1166 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
1167 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
1168
ee2842e2
ILT
11692003-05-16 Ian Lance Taylor <ian@airs.com>
1170
1171 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
1172 (vax_print_insn, print_insn_arg): Remove static functions.
1173 (vax_gdbarch_init): Call set_gdbarch_print_insn with
1174 print_insn_vax from opcodes library.
1175 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
1176
973177d3
AC
11772003-05-15 Andrew Cagney <cagney@redhat.com>
1178
aaab4dba
AC
1179 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
1180 * target.h (memory_breakpoint_from_pc): Delete declaration.
1181 * mem-break.c (memory_breakpoint_from_pc): Delete function.
1182 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
1183 * monitor.c (monitor_insert_breakpoint): Use
1184 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
1185 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
1186 * gdbarch.h, gdbarch.c: Re-generate.
1187 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
1188 (sparc_gdbarch_init): Set breakpoint_from_pc to
1189 sparc_breakpoint_from_pc.
1190 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
1191 (BREAKPOINT_FROM_PC): Define.
1192 (sparc_breakpoint_from_pc): Declare.
1193 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
1194 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
1195 (BREAKPOINT_FROM_PC): Define.
1196 (BREAKPOINT): Delete macro.
1197 * target.h: Update comment.
1198 * s390-tdep.c (s390_gdbarch_init): Update comments.
1199 * remote.c: Update comments.
1200 * remote-mips.c: Update comments.
1201 * proc-api.c (write_with_trace): Do not check for a breakpoint.
1202 * mem-break.c: Update comment.
1203 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
1204 (ia64_memory_insert_breakpoint): Update.
1205 * config/sparc/tm-sparc.h: Update comment.
1206 * config/pa/tm-hppa64.h: Update comment.
1207 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
1208 (rs6000_breakpoint_from_pc): Update.
1209 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
1210 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
1211 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
1212 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
1213 (mips_breakpoint_from_pc): Update.
1214 (mips_dump_tdep): Update.
1215
e06963ff
AC
1216 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
1217 * minsyms.c (lookup_minimal_symbol): Inline
1218 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
1219
973177d3
AC
1220 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
1221 * p-valprint.c (pascal_object_print_value_fields): Ditto.
1222 * p-lang.c (pascal_printstr): Ditto.
1223 * objc-lang.c (objc_printstr): Ditto.
1224 * m2-lang.c (m2_printstr): Ditto.
1225 * jv-valprint.c (java_print_value_fields): Ditto.
1226 * f-lang.c (f_printstr): Ditto.
1227 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
1228 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
1229 for repeat_count_threshold.
1230 * Makefile.in (cp-valprint.o): Update dependencies.
1231
5ea2bd7f
JJ
12322003-05-15 Jeff Johnston <jjohnstn@redhat.com>
1233
1234 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
1235 (examine_prologue): Support looking through leaf functions, knowing
1236 they start with mov r2,r12. Support skipping over indirect stores
1237 of the input registers. Upon hitting a non-nop branch instruction
1238 or predicated instruction, bail out by setting lim_pc to the current
1239 pc value in the loop. At the end, if the lim_pc value is still
1240 beyond our calculated value and we have trust_limit set,
1241 use the lim_pc value.
1242
cc8c88f3
AC
12432003-05-15 Andrew Cagney <cagney@redhat.com>
1244
1245 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
1246 generic_find_dummy_frame.
1247 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
1248 (deprecated_generic_find_dummy_frame): Update.
1249 (deprecated_read_register_dummy): Update.
1250 * frame.c (deprecated_generic_get_saved_register): Update.
1251
909cd28e
TR
12522003-05-15 Theodore A. Roth <troth@openavr.org>
1253
1254 * avr-tdep.c (avr_breakpoint_from_pc): New function.
1255 (avr_gdbarch_init): Set breakpoint_from_pc method.
1256
b923b08d
AC
12572003-05-15 Andrew Cagney <cagney@redhat.com>
1258
1259 * regcache.c (build_regcache): Set deprecated_register_valid
1260 directly.
1261 (deprecated_grub_regcache_for_register_valid): Delete function.
1262 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
1263 declaration.
1264
ae2f03ac
EZ
12652003-05-15 David Carlton <carlton@bactrian.org>
1266
1267 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
1268 * symtab.c (lookup_symbol_aux): Delete calls to
1269 lookup_symbol_aux_minsyms.
1270 (lookup_symbol_aux_minsyms): Comment out function and
1271 prototype. Delete lookup by mangled name.
ae2f03ac 1272
18ec9831
KB
12732003-05-14 Kevin Buettner <kevinb@redhat.com>
1274
1275 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
1276 correctly indicate an empty stack and ``stack_allocated'' to the
1277 indicate the number of elements initially allocated.
1278 (dwarf_expr_grow_stack): Simplify method for computing new
1279 stack size. Don't loop infinitely if ``stack_len'' is zero.
1280 (execute_stack_op): Move ``ctx->in_reg'' initialization
1281 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
1282 be used in conjuction with DW_OP_piece. Revise error message
1283 accordingly.
1284
de18ac1f
TR
12852003-05-14 Theodore A. Roth <troth@openavr.org>
1286
1287 * MAINTAINERS: Update my email address.
1288 * avr-tdep.c: Ditto.
1289
176620f1
EZ
12902003-05-14 Elena Zannoni <ezannoni@redhat.com>
1291
1292 * symtab.h (enum domain_enum): Rename from namespace_enum.
1293 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
1294 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
1295 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
1296 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
1297 TYPES_NAMESPACE, METHODS_NAMESPACE.
1298 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
1299 (struct symbol, struct partial_symbol): Rename field
1300 'namespace_enum namespace' to 'domain_enum domain'.
1301 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
1302 Delete old define kludge for namespace.
1303
1304 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
1305 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
1306 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
1307 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
1308 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
1309 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
1310 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
1311 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
1312 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
1313 occurrences of the above.
1314
b7f31508
ILT
13152003-05-14 Ian Lance Taylor <ian@airs.com>
1316
1317 * Makefile.in (install-only): Use $(SHELL) when running
1318 mkinstalldirs.
1319
2fdbdd39
ILT
13202003-05-13 Ian Lance Taylor <ian@airs.com>
1321
a208d82c
ILT
1322 * MAINTAINERS (write after approval): Add myself.
1323
2fdbdd39
ILT
1324 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
1325 second and third arguments.
1326 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1327 * ser-unix.c (_initialize_ser_hardwire): Likewise.
1328
fbd9dcd3
AC
13292003-05-13 Andrew Cagney <cagney@redhat.com>
1330
1331 * defs.h (store_address): Delete declaration.
1332 findvar.c (store_address): Delete function.
1333 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
1334 store_unsigned_integer.
1335 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
1336 * v850-tdep.c (v850_push_arguments): Ditto.
1337 * sparc-tdep.c (sparc_get_saved_register): Ditto.
1338 * sh-tdep.c (sh64_get_saved_register): Ditto.
1339 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
1340 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
1341 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
1342 (mips_get_saved_register): Ditto.
1343 * ia64-tdep.c (ia64_get_saved_register): Ditto.
1344 (find_func_descr, ia64_push_arguments): Ditto.
1345 * i386-tdep.c (i386_push_arguments): Ditto.
1346 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
1347 * frv-tdep.c (frv_push_arguments): Ditto.
1348 * frame.c (legacy_saved_regs_prev_register): Ditto.
1349 (deprecated_generic_get_saved_register): Ditto.
1350 * findvar.c (unsigned_address_to_pointer): Ditto.
1351 * dwarf2read.c (dwarf2_const_value): Ditto.
1352 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
1353 * alpha-tdep.c (alpha_push_arguments): Ditto.
1354
6760f9e6
JB
13552003-05-12 J. Brobecker <brobecker@gnat.com>
1356
1357 * NEWS: Mention that the hppa-hpux port has been partially
1358 multiarched (32bit ABIT only, so far).
1359
30e221b4
AC
13602003-05-11 Andrew Cagney <cagney@redhat.com>
1361
1362 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
1363 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
1364 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
1365 sim/testsuite/sim/arm/misaligned2.ms, and
1366 sim/testsuite/sim/arm/misaligned3.ms.
1367 * disasm.h (struct ui_file): Add opaque struct declaration.
1368 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
1369 * frame.h (struct ui_file): Ditto.
1370
dea7f9ba
MK
13712003-05-11 Mark Kettenis <kettenis@gnu.org>
1372
1373 * value.h: Pretty print.
1374
01986c48
MK
13752003-05-10 Mark Kettenis <kettenis@gnu.org>
1376
1377 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
1378
123a958e
AC
13792003-05-08 Andrew Cagney <cagney@redhat.com>
1380
1381 * regcache.h (max_register_size): Delete declaration.
1382 * regcache.c (max_register_size): Delete function.
1383 (struct regcache_descr): Delete field "max_register_size".
1384 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
1385 registers fit in MAX_REGISTER_SIZE.
1386 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
1387 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
1388 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
1389 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
1390 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
1391 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
1392 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
1393 * dve3900-rom.c, hppa-tdep.c: Ditto.
1394
eb294659
DC
13952003-05-08 David Carlton <carlton@math.stanford.edu>
1396
1397 * valops.c (push_word): Fix typo.
1398
d9d9c31f
AC
13992003-05-08 Andrew Cagney <cagney@redhat.com>
1400
1401 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
1402 * gdbarch.h: Re-generate.
1403 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
1404 (legacy_max_register_raw_size): Delete declaration.
1405 * regcache.c (legacy_max_register_raw_size): Delete function.
1406 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
1407 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
1408 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
1409 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
1410 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
1411 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
1412 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
1413 * findvar.c, dwarf2cfi.c: Ditto.
1414
22540ece
AC
14152003-05-08 Andrew Cagney <cagney@redhat.com>
1416
1417 * mips-tdep.c (read_signed_register): New function, moved to here
1418 from "regcache.c".
1419 (read_signed_register_pid): Ditto.
1420 * regcache.c (read_signed_register_pid): Delete function, moved to
1421 "mips-tdep.c".
1422 (read_signed_register): Ditto.
1423 * regcache.h (read_signed_register): Delete declaration.
1424 (read_signed_register_pid): Delete declaration.
1425
0c92afe8
AC
14262003-05-08 Andrew Cagney <cagney@redhat.com>
1427
1428 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
1429 * gdbarch.h: Re-generate.
1430 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
1431 (legacy_max_register_virtual_size): Delete declaration.
1432 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
1433 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1434 * tracepoint.c (memrange_sortmerge): Ditto.
1435 * sparc-tdep.c (sparc_print_registers): Ditto.
1436 * regcache.c (legacy_max_register_virtual_size): Delete function.
1437
6037b830
JB
14382002-05-08 J. Brobecker <brobecker@gnat.com>
1439
1440 * fork-child.c (escape_bang_in_quoted_argument): New function.
1441 (fork_inferior): Escape '!' characters in quoted arguments
1442 only when needed.
1443
5d62c8b1
JB
14442003-05-08 J. Brobecker <brobecker@gnat.com>
1445
1446 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
1447 the language of the CU is not currently supported by GDB.
1448
20a0e81d
JB
14492003-05-08 J. Brobecker <brobecker@gnat.com>
1450
1451 * defs.h (language): Add language_minimal enum value.
1452 * c-lang.c (minimal_language_defn): New language definition.
1453 (_initialize_c_language): Add the new minimal language to the list
1454 of languages known to GDB.
1455
710ee10a
KB
14562003-05-08 Kevin Buettner <kevinb@redhat.com>
1457
1458 * frame.c (get_frame_type): Don't attempt to lazily initialize
1459 frame's unwinder for legacy frames.
1460
1750fa04
AC
14612003-05-07 Andrew Cagney <cagney@redhat.com>
1462
1463 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
1464 and "regcache" parameters.
1465 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
1466
ddf9f258
JJ
14672003-05-07 Jeff Johnston <jjohnstn@redhat.com>
1468
1469 * dwarf2read.c (dwarf_decode_lines): Only use output of
1470 check_cu_functions() when calling record_line(). Do not update
1471 the current address.
1472
87767c29
AC
14732003-05-07 Andrew Cagney <cagney@redhat.com>
1474
1475 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
1476 code.
1477
5e7b2f39
JB
14782003-05-07 Jim Blandy <jimb@redhat.com>
1479
1480 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
1481 'maint info symtabs' and 'maint info psymtabs'.
1482 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
1483 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
1484 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
1485 Declarations updated.
1486 * maint.c (maintenance_list_command): Delete.
1487 (_initialize_maint_cmds): Update calls to add_cmd.
1488 * gdbcmd.h (maintenancelistlist): Delete declaration.
1489 * cli/cli-cmds.c (maintenancelistlist): Delete.
1490 (init_cmd_lists): Don't initialize it.
1491 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
1492
f6684c31
AC
14932003-05-07 Andrew Cagney <cagney@redhat.com>
1494
1495 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
1496 "regcache".
1497 (d10v_print_registers_info): Update.
1498 (d10v_dmap_register, d10v_imap_register): Delete functions.
1499 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
1500 and "imap_register".
1501 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
1502 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
1503 * arch-utils.c (generic_remote_translate_xfer_address): Add
1504 "regcache" and "gdbarch" parameters.
1505 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
1506 parameter. Change class to multi-arch.
1507 * gdbarch.h, gdbarch.c: Re-generate.
1508 * remote.c (remote_xfer_memory): Use
1509 gdbarch_remote_translate_xfer_address.
1510
e4846b08
JJ
15112003-05-07 Jeff Johnston <jjohnstn@redhat.com>
1512
1513 * infrun.c (prev_pc): Move declaration ahead of proceed().
1514 (proceed): Refresh prev_pc value before resuming.
1515 (stop_stepping): Remove code to refresh prev_pc.
1516
6b71b8ac
KW
15172003-05-06 Kris Warkentin <kewarken@qnx.com>
1518
1519 * nto-tdep.c: Removed stray comment.
1520
47979a4b
KW
15212003-05-06 Kris Warkentin <kewarken@qnx.com>
1522
1523 * i386-nto-tdep.c: Fix old K&R function definitions.
1524 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
1525 Also change add_show_from_set() call to add_setshow_cmd().
1526 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
1527
00905d52
AC
15282003-05-05 Andrew Cagney <cagney@redhat.com>
1529
1530 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
1531 (fprint_dummy_frames): New function.
1532 (maintenance_print_dummy_frames): New function.
1533 (_initialize_dummy_frame): Add command "maint print dummy-frames".
1534 * frame.c (fprint_frame_id): Make global.
1535 * frame.h (fprint_frame_id): Declare.
1536 * Makefile.in (dummy-frame.o): Update dependencies.
1537
b1e29e33
AC
15382003-05-05 Andrew Cagney <cagney@redhat.com>
1539
1540 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
1541 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
1542 SIZEOF_CALL_DUMMY_WORDS.
1543 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
1544 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
1545 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
1546 CALL_DUMMY_BREAKPOINT_OFFSET.
1547 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
1548 CALL_DUMMY_START_OFFSET.
1549 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
1550 * gdbarch.h, gdbarch.c: Re-generate.
1551 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
1552 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
1553 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
1554 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
1555 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
1556 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
1557 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1558 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
1559 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
1560 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
1561 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
1562 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
1563 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
1564 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
1565 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
1566
15672003-05-05 Kris Warkentin <kewarken@qnx.com>
1568
1569 * configure.tgt: Add i[3456]86-*-nto*.
1570 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
1571 * nto-tdep.c: New file. Neutrino target support routines.
1572 * nto-tdep.h: New file. Neutrino target header.
1573 * config/tm-qnxnto.h: New file.
1574 * config/i386/i386nto.mt: New file.
1575 * config/i386/tm-i386nto.h: New file.
b1e29e33 1576
0ce3d317
AC
15772003-05-04 Andrew Cagney <cagney@redhat.com>
1578
1579 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
1580 (load_infrun_state): Ditto.
1581 (struct thread_info): Drop "prev_func_name" field.
1582 * thread.c (load_infrun_state): Update.
1583 (save_infrun_state): Update.
1584 * infrun.c (prev_func_name): Delete variable.
1585 (init_wait_for_inferior): Do not clear prev_func_name.
1586 (stop_stepping, keep_going, context_switch): Do not swap
1587 prev_func_name.
1588 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
1589 instead of PC_IN_SIGTRAMP.
1590
46654a5b
AC
15912003-05-04 Andrew Cagney <cagney@redhat.com>
1592
1593 * sentinel-frame.c (sentinel_frame_prev_register): Replace
1594 REGISTER_BYTE with register_offset_hack.
1595 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
1596 that REGISTER_BYTE is consistent with the regcache.
1597 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
1598 * gdbarch.h, gdbarch.c: Regenerate.
1599
14b08c1b
MK
16002003-05-04 Mark Kettenis <kettenis@gnu.org>
1601
04c8243f
MK
1602 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
1603 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
1604
14b08c1b
MK
1605 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
1606
c7a11e01
JB
16072003-05-03 J. Brobecker <brobecker@gnat.com>
1608
1609 From Thierry Schneider <tpschneider1@yahoo.com>
1610 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
1611 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
1612 (mi-cmd-symbol.o): Add rule.
1613
7043d8dc
AC
16142003-05-03 Andrew Cagney <cagney@redhat.com>
1615
1616 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
1617 comments noteing that it replaces the old FIX_CALL_DUMMY code.
1618 * gdbarch.h, gdbarch.c: Re-generate.
1619 * d10v-tdep.c (d10v_push_dummy_code): New function.
1620 (d10v_gdbarch_init): Set push_dummy_code.
1621 * infcall.c (legacy_push_dummy_code): New function.
1622 (generic_push_dummy_code): New function.
1623 (push_dummy_code): New function.
1624 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
1625 instead of dummy_addr, to push_dummy_call. Move call to
1626 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
1627 switch.
1628 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
1629
92bf2b80
AC
16302003-05-03 Andrew Cagney <cagney@redhat.com>
1631
1632 * disasm.h (print_insn): Declare.
1633 * disasm.c (init_gdb_disassemble_info): New function.
1634 (gdb_disassembly): Call init_gdb_disassemble_info.
1635 (gdb_print_insn): New function.
1636 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
1637 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
1638 * mcore-tdep.c: Include "disasm.h"
1639 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
1640 * d10v-tdep.c: Include "disasm.h".
1641 (display_trace): Call gdb_print_insn, instead of print_insn.
1642 (print_insn): Delete function.
1643 * printcmd.c: Include "disasm.h".
1644 (print_insn): Delete function.
1645 (print_formatted): Call gdb_print_insn, instead of print_insn.
1646 * Makefile.in (printcmd.o): Update dependencies.
1647 (mcore-tdep.o, d10v-tdep.o): Ditto.
1648
27d94c49
AC
16492003-05-02 Andrew Cagney <cagney@redhat.com>
1650
82de1e5b
AC
1651 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
1652 PC_REGNUM, re-indent.
1653 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
1654 PC_REGNUM isn't set.
1655
27d94c49
AC
1656 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
1657 * gdbarch.h, gdbarch.c: Re-generate.
1658 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
1659 register_virtual_size, pc_regnum, or register_bytes.
1660 (D10V_PC_REGNUM): Rename _PC_REGNUM.
1661 (d10v_register_type): Use D10V_PC_REGNUM.
1662 (d10v_print_registers_info, d10v_read_pc): Ditto.
1663 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
1664 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
1665
a9c0dc7f
DC
16662003-05-02 David Carlton <carlton@bactrian.org>
1667
1668 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
1669 the name with mstrsave.
1670
e33d66ec
EZ
16712003-05-02 Elena Zannoni <ezannoni@redhat.com>
1672
1673 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
1674 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
1675 (host_charset_name, target_charset_name): New vars for use by
1676 set/show commands.
1677 (host_charset_enum, target_charset_enum): New enums for set/show
1678 commands.
1679 (set_charset_sfunc, set_host_charset_sfunc,
1680 set_target_charset_sfunc): New functions.
1681 (set_host_charset, set_target_charset): Make static.
1682 (list_charsets, set_host_charset_command,
1683 set_target_charset_command): Delete functions.
1684 (show_charset_command): Rewrite as....
1685 (show_charset): Hook this up with the set/show command mechanism.
1686 (_initialize_charset): Change names of charsets to match the
1687 set/show enums. Use host_charset_name and target_charset_name.
1688 Use set/show mechanism for charset, host-charset, target-charset
1689 commands. Do not make 'show host-charset' and 'show
1690 target-charset' be aliases of 'show charset'.
1691
1692 * charset.h (set_host_charset, set_target_charset): Don't export,
1693 they are not used outside the file.
1694
2b6fd0d8
AC
16952003-05-01 Andrew Cagney <cagney@redhat.com>
1696
1697 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
1698 (gdb_disassembly): Make "di" non static, always initialize and
1699 cleanup. Always use dis_asm_read_memory.
1700 (gdb_dis_asm_read_memory): Delete function.
1701
6ae2f580
AC
17022003-05-01 Andrew Cagney <cagney@redhat.com>
1703
1704 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
1705 (d10v_gdbarch_init): Set frame_align instead of stack_align.
1706
810ecf9f
AC
17072003-04-30 Andrew Cagney <cagney@redhat.com>
1708
1709 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
1710 "tm_print_insn_info".
1711 (TARGET_PRINT_INSN_INFO): Delete macro.
1712 (dis_asm_read_memory): Delete function declaration.
1713 (dis_asm_memory_error, dis_asm_print_address): Ditto.
1714 (tm_print_insn_info): Delete variable definition.
1715 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
1716 * gdbarch.h, gdbarch.c: Re-generate.
1717 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
1718 "deprecated_tm_print_insn_info".
1719 * mcore-tdep.c (mcore_dump_insn): Ditto.
1720 * mips-tdep.c (mips_gdbarch_init): Ditto.
1721 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
1722 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
1723 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
1724 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
1725 instead of TARGET_PRINT_INSN_INFO, add comment.
1726 * s390-tdep.c (s390_get_frame_info): Instead of
1727 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
1728 (s390_check_function_end, s390_is_sigreturn): Ditto.
1729 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
1730 (dis_asm_memory_error, dis_asm_print_address): Ditto.
1731 * disasm.c: Include "gdbcore.h".
1732 (_initialize_disasm): New function, initialize
1733 "deprecated_tm_print_insn_info".
1734 (deprecated_tm_print_insn_info): New variable.
1735 (dis_asm_read_memory): Moved from "corefile.c", made static.
1736 (dis_asm_print_address, dis_asm_memory_error): Ditto.
1737 * Makefile.in (disasm.o): Update dependencies.
1738
07020390
AC
17392003-04-30 Andrew Cagney <cagney@redhat.com>
1740
1741 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
1742
a9fa03de
AF
17432003-04-29 Adam Fedor <fedor@gnu.org>
1744
1745 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
1746 * infcall.c (find_function_addr): Make non-static.
1747 * infcall.h (find_function_addr): Declare.
1748 * Makefile.in (eval.o): Update dependencies.
1749
1bae87b9
AF
17502003-04-28 Adam Fedor <fedor@gnu.org>
1751
1752 * symtab.c (symbol_find_demangled_name): Check for and demangle
1753 ObjC symbols.
1754 (symbol_init_demangled_name): Init for language_objc as well.
1755
0ba6dca9
AC
17562003-04-28 Andrew Cagney <cagney@redhat.com>
1757
1758 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
1759 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
1760 * gdbarch.h, gdbarch.c: Re-generate.
1761 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
1762 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
1763 * inferior.h (deprecated_read_fp): Rename read_fp.
1764 (generic_target_read_fp): Delete declaration.
1765 * regcache.c (generic_target_read_fp): Delete function.
1766 (deprecated_read_fp): Replace read_fp, use
1767 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
1768 * d10v-tdep.c (d10v_read_fp): Delete function.
1769 (d10v_gdbarch_init): Do not set deprecated_read_fp.
1770
1771 * sparc-tdep.c (sparc_gdbarch_init): Do not set
1772 deprecated_target_read_fp to generic_target_read_fp.
1773 * sh-tdep.c (sh_gdbarch_init): Ditto.
1774 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1775 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1776 * frv-tdep.c (frv_gdbarch_init): Ditto.
1777
1778 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
1779 deprecated_fp_regnum.
1780 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1781 * vax-tdep.c (vax_gdbarch_init): Ditto.
1782 * v850-tdep.c (v850_gdbarch_init): Ditto.
1783 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1784 * sh-tdep.c (sh_gdbarch_init): Ditto.
1785 * s390-tdep.c (s390_gdbarch_init): Ditto.
1786 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1787 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1788 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1789 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1790 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1791 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1792 * i386-tdep.c (i386_gdbarch_init): Ditto.
1793 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1794 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1795 * frv-tdep.c (frv_gdbarch_init): Ditto.
1796 * cris-tdep.c (cris_gdbarch_init): Ditto.
1797 * avr-tdep.c (avr_gdbarch_init): Ditto.
1798 * arm-tdep.c (arm_gdbarch_init): Ditto.
1799 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1800
1801 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
1802 * v850-tdep.c (v850_gdbarch_init): Ditto.
1803 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1804 * sh-tdep.c (sh_gdbarch_init): Ditto.
1805 * s390-tdep.c (s390_gdbarch_init): Ditto.
1806 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1807 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1808 * mips-tdep.c (mips_gdbarch_init): Ditto.
1809 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1810 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1811 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1812 * frv-tdep.c (frv_gdbarch_init): Ditto.
1813 * avr-tdep.c (avr_gdbarch_init): Ditto.
1814 * arm-tdep.c (arm_gdbarch_init): Ditto.
1815
1816 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
1817 DEPRECATED_FP_REGNUM.
1818 (vax_push_dummy_frame, vax_pop_frame): Ditto.
1819 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
1820 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
1821 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
1822 (sparc32_register_virtual_type): Ditto.
1823 * sh-tdep.c (sh64_frame_chain): Ditto.
1824 (sh64_get_saved_register, sh64_pop_frame): Ditto.
1825 (sh_nofp_frame_init_saved_regs): Ditto.
1826 (sh64_nofp_frame_init_saved_regs): Ditto.
1827 (sh_fp_frame_init_saved_regs): Ditto.
1828 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1829 * remote-e7000.c (fetch_regs_from_dump): Ditto.
1830 * procfs.c (procfs_fetch_registers): Ditto.
1831 (procfs_store_registers): Ditto.
1832 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
1833 (store_inferior_registers, fetch_core_registers): Ditto.
1834 (fetch_kcore_registers, clear_regs): Ditto.
1835 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
1836 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
1837 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
1838 * nlm/i386.c (do_status): Ditto.
1839 * mipsv4-nat.c (supply_gregset): Ditto.
1840 * mips-tdep.c: Ditto for comments.
1841 * mips-nat.c (fetch_inferior_registers): Ditto.
1842 (store_inferior_registers, fetch_core_registers): Ditto.
1843 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
1844 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
1845 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
1846 (i386_do_pop_frame, i386_register_type): Ditto.
1847 * hppa-tdep.c (hppa_frame_chain): Ditto.
1848 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
1849 (hppa_pop_frame, hppa_read_fp): Ditto.
1850 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
1851 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
1852 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
1853 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
1854 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
1855 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
1856 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
1857 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
1858 * blockframe.c: Ditto for comments.
1859 * arch-utils.h: Ditto for comments.
1860 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
1861 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
1862 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
1863 * alpha-tdep.h: Ditto for comments.
1864 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
1865 (alpha_cannot_store_register): Ditto.
1866 (alpha_push_dummy_frame): Ditto.
1867 * alpha-nat.c (supply_gregset): Ditto.
1868
1869 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
1870 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
1871 * config/sparc/tm-sparc.h: Update comment.
1872
1873 * hppa-tdep.c (hppa_init_extra_frame_info): Use
1874 deprecated_read_fp instead of TARGET_READ_FP.
1875 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
1876 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
1877 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1878 deprecated_read_fp instead of read_fp.
1879 * s390-tdep.c (s390_push_arguments): Ditto.
1880 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1881 * frame.h: Ditto in comments.
1882 * frame.c (legacy_get_prev_frame): Ditto.
1883 * dummy-frame.c (dummy_frame_this_id): Ditto.
1884 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
1885
d7a27068
AC
18862003-04-28 Andrew Cagney <cagney@redhat.com>
1887
1888 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
1889 * gdbarch.h, gdbarch.c: Re-generate.
1890 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
1891 * vax-tdep.c (_initialize_vax_tdep): Update.
1892 * v850-tdep.c (_initialize_v850_tdep): Update.
1893 * sparc-tdep.c (_initialize_sparc_tdep): Update.
1894 * s390-tdep.c (_initialize_s390_tdep): Update.
1895 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
1896 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
1897 * mips-tdep.c (_initialize_mips_tdep): Update.
1898 * mcore-tdep.c (_initialize_mcore_tdep): Update.
1899 * m68k-tdep.c (_initialize_m68k_tdep): Update.
1900 * ia64-tdep.c (_initialize_ia64_tdep): Update.
1901 * hppa-tdep.c (_initialize_hppa_tdep): Update.
1902 * h8300-tdep.c (_initialize_h8300_tdep): Update.
1903 * frv-tdep.c (_initialize_frv_tdep): Update.
1904 * cris-tdep.c (cris_delayed_get_disassembler): Update.
1905 (_initialize_cris_tdep): Update.
1906 * arch-utils.c (legacy_print_insn): Update.
1907 * alpha-tdep.c (_initialize_alpha_tdep): Update.
1908
d2630e69
AF
19092003-04-26 Adam Fedor <fedor@gnu.org>
1910
1911 * linespec.c (decode_objc): New function to decode ObjC calls
1912 (decode_line_1): Check for ObjC calls (using decode_objc)
1913 * Makefile (linespec.o): Update dependencies.
1914
3086aeae
DJ
19152003-04-26 Daniel Jacobowitz <drow@mvista.com>
1916
1917 * breakpoint.h (struct breakpoint_ops): New.
1918 (struct breakpoint): Add ops member.
1919
1920 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
1921 (mention): Use new breakpoint ops member.
1922 (set_raw_breakpoint): Initialize ops field to NULL.
1923 (print_exception_catchpoint, print_one_exception_catchpoint)
1924 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
1925 (gnu_v3_exception_catchpoint_ops): New.
1926 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
1927
1fbec6c3
AF
19282003-04-25 Adam Fedor <fedor@gnu.org>
1929
1930 * Makefile.in (COMMON_OBS): Add objc-lang.o
1931
0ef21242
AC
19322003-04-25 Andrew Cagney <cagney@redhat.com>
1933
1934 * d10v-tdep.c (print_insn): Delete function.
1935 (display_trace): Use TARGET_PRINT_INSN.
1936 (_initialize_d10v_tdep): Do not set tm_print_insn.
1937 (d10v_gdbarch_init): Set print_insn.
1938
f75493ed
AC
19392003-04-25 Andrew Cagney <cagney@redhat.com>
1940
1941 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
1942 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
1943 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
1944 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
1945 (nr_dmap_regs, a0_regnum): ... new functions.
1946 (d10v_print_registers_info): Use a0_regnum, use register_size.
1947 (d10v_register_byte): Delete function.
1948 (d10v_register_raw_size): Delete function.
1949 (d10v_register_type): Use a0_regnum.
1950 (d10v_print_registers_info): Use a0_regnum.
1951 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
1952 (d10v_gdbarch_init): Do not set register_byte or
1953 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
1954 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
1955 extract_address.
1956 (trace_command): Use XCALLOC.
1957 (print_insn): Delete reference to tm_print_insn.
1958 (saved_regs_unwinder): Use store_unsigned_integer instead of
1959 store_address.
1960 * frame.h (FRAME_OBSTACK_CALLOC): Define
1961
2202b100
DC
19622003-04-25 David Carlton <carlton@bactrian.org>
1963
1964 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
1965
4e45ca2e
AF
19662003-04-24 Adam Fedor <fedor@gnu.org>
1967
1968 * objc-lang.c: Include "valprint.h"
1969 * Makefile.in (objc-lang.o): Update dependencies.
1970
93de3e7f
AF
19712003-04-24 Adam Fedor <fedor@gnu.org>
1972
1973 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
1974 architecture dependant compilation and mark as unimplemented
1975 (until they get put in the gdbarch vector).
1976
0f20eeea
DC
19772003-04-23 David Carlton <carlton@bactrian.org>
1978
1979 * cp-support.c (cp_find_first_component): Accept 'operator' in
1980 more locations.
1981
74cfe982
AC
19822003-04-23 Andrew Cagney <cagney@redhat.com>
1983
1984 * infcall.c (call_function_by_hand): Eliminate redundant
1985 indentation. Move "saved_async" and "old_cleanups" to where they
1986 are needed.
1987
52557533
AC
19882003-04-23 Andrew Cagney <cagney@redhat.com>
1989
1990 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
1991 and "buffer". Move the "name" code to where it is needed.
1992
158775de
AC
19932003-04-23 Andrew Cagney <cagney@redhat.com>
1994
1995 * infcall.c (call_function_by_hand): Move variables "start_sp",
1996 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
1997 code to ON_STACK switch branch.
1998
ebc7896c
AC
19992003-04-23 Andrew Cagney <cagney@redhat.com>
2000
2001 * infcall.c (call_function_by_hand): Make declaration of "i",
2002 "sal", "bpt" and "old_sp" more local to their use. Delete #if
2003 lint.
2004
d727590f
AC
20052003-04-23 Andrew Cagney <cagney@redhat.com>
2006
2007 * infcall.c (call_function_by_hand): Delete variable
2008 "n_method_args". Localize "param_type"'s declaration to the loop
2009 that it is used. Reinstate code assigning to said variable -
2010 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
2011 Rationalize code using "param_type".
2012
d585e13a
AC
20132003-04-22 Andrew Cagney <cagney@redhat.com>
2014
2015 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
2016 compute the breakpoint address. Only call FIX_CALL_DUMMY when
2017 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
2018 to DEPRECATED_PUSH_RETURN_ADDRESS.
2019
051caad9
KB
20202003-04-22 Kevin Buettner <kevinb@redhat.com>
2021
2022 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
2023 on the DWARF2 register number prior to fetching a register.
2024
77296879
JB
20252003-04-22 J. Brobecker <brobecker@gnat.com>
2026
2027 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
2028 Update all the tests using SOFT_FLOAT considering the fact that
2029 this macro was always set to 0.
2030 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
2031 considering the fact that this macro was always set to 0.
2032 * hppa-tdep.h (hppa_store_return_value): Likewise.
2033 (hppa_extract_return_value): Likewise.
2034
4252f1df
JB
20352003-04-22 J. Brobecker <brobecker@gnat.com>
2036
2037 * config/pa/tm-hppa.h: Remove obsolete code, was used by
2038 the hppa-pro target only.
2039
14604c6b
JB
20402003-04-21 J. Brobecker <brobecker@gnat.com>
2041
2042 Ongoing multi-arch conversion effort for HP/UX:
2043 * config/pa/tm-hppa.h: Move all macro that are no longer
2044 defined now that GDB_MULTI_ARCH is now set to 1 from here...
2045 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
2046
77eb01d1
JB
20472003-04-21 J. Brobecker <brobecker@gnat.com>
2048
2049 * config/pa/tm-hppa.h: Obsolete a section that was only used
2050 for hppa-pro.
2051
61995b3b
JB
20522003-04-21 J. Brobecker <brobecker@gnat.com>
2053
2054 Ongoing multi-arch conversion for HP/UX.
2055 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
2056 if already defined (allows hppa64 to stay non-multiarched for now).
2057 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
2058
4aa79dcc
AC
20592003-04-21 Andrew Cagney <cagney@redhat.com>
2060
2061 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
2062
0f751ff2
AC
20632003-04-21 Andrew Cagney <cagney@redhat.com>
2064
2065 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
2066 "i386_num_mmx_regs".
2067
04714b91
AC
20682003-04-21 Andrew Cagney <cagney@redhat.com>
2069
2070 * infcall.c: New file.
2071 * infcall.h: New file.
2072 * valarith.c: Include "infcall.h".
2073 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
2074 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
2075 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
2076 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
2077 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
2078 (SFILES): Add "infcall.c"
2079 (COMMON_OBS): Add "infcall.o".
2080 (infcall.o): Specify dependencies.
2081 * value.h (call_function_by_hand): Delete declaration.
2082 * inferior.h (run_stack_dummy): Delete declaration.
2083 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
2084 (run_stack_dummy): Move to "infcall.c", merged into
2085 call_function_by_hand.
2086 * valops.c (call_function_by_hand): Moved to "infcall.c".
2087 (find_function_addr, value_arg_coerce): Ditto.
2088 (unwindonsignal_p, coerce_float_to_double): Ditto.
2089 (_initialize_valops): Move "set/show coerce-float-to-double", and
2090 "set/show unwindonsignal" commands to "infcall.c".
2091 * v850-tdep.c, target.h: Update comments.
2092 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
2093 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
2094 (sh64_init_extra_frame_info): Update comments.
2095 * mn10300-tdep.c: Update comments.
2096 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
2097 * config/sparc/tm-sparc.h: Update comments.
2098 * breakpoint.h: Update comments.
2099 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
2100 * arm-tdep.c: Update comment.
2101
f9d3c2a8
MK
21022003-04-19 Mark Kettenis <kettenis@gnu.org>
2103
c40e1eab
MK
2104 * i386-tdep.c (i386_num_register_names): New variable.
2105 (i386_num_mmx_regs): Renamed from mmx_num_regs.
2106 (MM0_REGNUM): Remove redundant parentheses in define.
2107 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
2108 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
2109 i386_mxcsr_regnum_p): Remove redundant parentheses.
2110 (i386_register_name): Use i386_num_register_names.
2111
94ea66b3
MK
2112 * i386-tdep.c (i386_extract_return_value,
2113 i386_store_return_value): Correct check for availability of
2114 floating-point registers.
2115
54299a1d
MK
2116 * i386-tdep.c (i386_frame_num_args): Remove function.
2117 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
2118
c86c27af
MK
2119 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
2120 mmx_regnum_to_fp_regnum. Adjust all callers.
2121
f9d3c2a8
MK
2122 * i386-tdep.c (i386_get_longjmp_target): Use
2123 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
2124 and TARGET_CHAR_BIT. Use extract_typed_address instead of
2125 extract_address.
2126
94ba74a9
MK
21272003-04-19 Mark Kettenis <kettenis@gnu.org>
2128
2129 * core-regset.c: Update comments to reflect reality. Re-order
2130 includes.
2131 (fetch_core_registers): Use switch instead of if. Remove
2132 redundant prototype.
2133
4074e13c
JB
21342003-04-18 Jim Blandy <jimb@redhat.com>
2135
2136 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 2137 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 2138
e3ab4aba
RH
21392003-04-17 Richard Henderson <rth@redhat.com>
2140
2141 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
2142
627bf7c1
EZ
21432003-04-17 Michael Snyder <msnyder@redhat.com>
2144 Karen Bennet <bennet@redhat.com>
2145
2146 Committed by Elena Zannoni <ezannoni@redhat.com>
2147 * gdb_gcore.sh: New script to create a core dump of a process.
2148
514621a9
EZ
21492003-04-17 Elena Zannoni <ezannoni@redhat.com>
2150
2151 * values.c (value_being_returned): Don't fetch the return
fbe586ae 2152 value if the return type is void.
514621a9 2153
b4acd559
JJ
21542003-04-17 Jeff Johnston <jjohnstn@redhat.com>
2155
2156 * thread-db.c: Reindented.
2157
530b167e
JJ
21582003-04-17 Jeff Johnston <jjohnstn@redhat.com>
2159
2160 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
2161 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
2162 as types.
2163
ab9fe00e
KB
21642003-04-16 Kevin Buettner <kevinb@redhat.com>
2165
610a3745 2166 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
2167 the size of ``long double'' to 16, instead of 8.
2168
e64a344c
MK
21692003-04-16 Mark Kettenis <kettenis@gnu.org>
2170
2171 * i386-linux-nat.c: Add some whitespace to make things more
2172 readable.
2173 (fetch_register, store_register, fetch_inferior_registers,
2174 store_inferior_registers): Get rid of assignment in if-statement.
2175 (store_register): Fix typo in error message.
2176
25d41031
AC
21772003-04-16 Andrew Cagney <cagney@redhat.com>
2178
2179 * utils.c (xmmalloc): Always allocate something, matches
2180 libiberty/xmalloc's semantics.
2181 (xmrealloc, xmcalloc): Ditto.
2182
c50901fd
AC
21832003-04-16 Andrew Cagney <cagney@redhat.com>
2184
2185 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
2186 update comments.
2187 (get_frame_type): Initialize unwind and type when needed.
2188 (get_frame_id, frame_register_unwind): Ditto.
2189
f81824a9
AC
21902003-04-16 Andrew Cagney <cagney@redhat.com>
2191
2192 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
2193 obsolete.
2194 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
2195 * sparcl-stub.c: Obsolete file.
2196 * config/sparc/tm-sparclet.h: Obsolete file.
2197 * sparclet-stub.c: Obsolete file.
2198 * sparclet-rom.c: Obsolete file.
2199 * sparcl-tdep.c: Obsolete file.
2200 * config/sparc/tm-sparclite.h: Obsolete file.
2201 * config/sparc/sparclite.mt: Obsolete file.
2202 * config/sparc/sparclet.mt: Obsolete file.
2203 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
2204 sparc86x-*-* obsolete.
2205
9219021c
DC
22062003-04-15 David Carlton <carlton@math.stanford.edu>
2207
2208 * Makefile.in (SFILES): Add cp-namespace.c.
2209 (COMMON_OBS): Add cp-namespace.o.
2210 (block.o): Depend on gdb_obstack_h and cp_support_h.
2211 (buildsym.o): Depend on cp_support_h.
2212 (cp-namespace.o): New.
2213 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
2214 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
2215 (dwarf2read.o): Depend on cp_support_h.
2216 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
2217 * dwarf2read.c (process_die): Set processing_has_namespace_info,
2218 processing_current_namespace.
2219 (read_namespace): Update processing_current_namespace; check for
2220 anonymous namespaces.
2221 (dwarf2_name): New function.
2222 (dwarf2_extension): Ditto.
2223 * cp-support.h: Update copyright, contributors.
2224 Add inclusion guards.
2225 Add opaque declaration for structs obstack, block, symbol.
2226 (struct using_direct): New struct.
2227 Add declarations for cp_find_first_component,
2228 cp_entire_prefix_len, processing_has_namespace_info,
2229 processing_current_namespace, cp_is_anonymous,
2230 cp_add_using_directive, cp_initialize_namespace,
2231 cp_finalize_namespace, cp_set_block_scope,
2232 cp_scan_for_anonymous_namespaces.
2233 * cp-namespace.c: New file.
2234 * cp-support.c: Update copyright.
2235 Include ctype.h, gdb_assert.h, gdbcmd.h.
2236 New variable maint_cplus_cmd_list.
2237 (cp_find_first_component): New function.
2238 (cp_entire_prefix_len, maint_cplus_command)
2239 (first_component_command, _initialize_cp_support): Ditto.
2240 * buildsym.c: Include cp-support.h.
2241 New variable using_list.
2242 (add_symbol_to_list): Check for anonymous namespaces.
2243 (finish_block): Set block's scope.
2244 (start_symtab): Initialize C++ namespace support.
2245 (end_symtab): Finalize C++ namespace support.
2246 * block.h: Add opaque declarations for structs
2247 block_namespace_info, using_direct, and obstack.
2248 Add declarations for block_set_scope and block_set_using.
2249 (struct block): Add 'language_specific' member.
2250 (BLOCK_NAMESPACE): New macro.
2251 * block.c: Include gdb_obstack.h and cp-support.h.
2252 (struct block_namespace_info): New struct.
2253 (block_set_scope): New function.
2254 (block_set_using, block_initialize_namespace): Ditto.
2255
d5a921c9
KB
22562003-04-14 Kevin Buettner <kevinb@redhat.com>
2257
2258 * solib-svr4.c (svr4_have_link_map_offsets): New function.
2259 (locate_base): Return early if there aren't any link map offsets.
2260 (svr4_solib_create_inferior_hook): Warn if shared library support
2261 is unavailable.
2262
d2a52b27
DC
22632003-04-14 David Carlton <carlton@math.stanford.edu>
2264
2265 * symtab.c (symbol_set_names): Add prefix when storing Java names
2266 in hash table. Fix for PR java/1039.
2267
980cae7a
DC
22682003-04-14 David Carlton <carlton@math.stanford.edu>
2269
2270 * symtab.c (symbol_set_names): Rename 'name' arg to
2271 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
2272 * symtab.h: Change 'name' argument in declaration of
2273 symbol_set_names to 'linkage_name'.
2274 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
2275
e227b13c
AC
22762003-04-14 Andrew Cagney <cagney@redhat.com>
2277
2278 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
2279 return the fully sign-extended register value.
2280 (get_frame_pointer): Ditto.
2281 (mips_pop_frame): Initialize "proc_desc" after checking for a
2282 dummy frame.
2283
36712a20
AC
22842003-04-14 Andrew Cagney <cagney@redhat.com>
2285
2286 * mips-tdep.c (mips_push_dummy_frame): Delete function.
2287 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
2288 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
2289 (mips_push_register): Delete function.
2290 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
2291 PUSH_FP_REGNUM.
2292
44ea7b70
JB
22932003-04-14 Jim Blandy <jimb@redhat.com>
2294
2295 * symmisc.c: #include "gdb_regex.h".
2296 (maintenance_list_symtabs, maintenance_list_psymtabs): New
2297 functions.
2298 * maint.c (maintenance_list_command): New function.
2299 (_initialize_maint_cmds): Register the above as commands.
2300 * symtab.h (maintenance_list_symtabs,
2301 maintenance_list_psymtabs): New declarations.
2302 * cli/cli-cmds.c (maintenancelistlist): New variable.
2303 (init_cmd_lists): Initialize it.
2304 * cli/cli-cmds.h (maintenancelistlist): New declaration.
2305 * gdbcmd.h (maintenancelistlist): New declaration.
2306 * Makefile.in (symmisc.o): Update dependencies.
2307
2d0c7962
EZ
23082003-04-14 Elena Zannoni <ezannoni@redhat.com>
2309
2310 * s390-nat.c: Include asm/types.h for addr_t.
2311
1947a811
CV
23122003-04-14 Corinna Vinschen <vinschen@redhat.com>
2313
2314 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
2315 actually incoming type.
2316
adb616d7
AC
23172003-04-13 Andrew Cagney <cagney@redhat.com>
2318
2319 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
2320 get_next_frame and get_frame_saved_regs.
2321
9b5e151c
AC
23222003-04-13 Andrew Cagney <cagney@redhat.com>
2323
2324 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
2325 of gdbarch_num_regs.
2326
ef6e7e13
AC
23272003-04-13 Andrew Cagney <cagney@redhat.com>
2328
2329 * frame.h: Mention what replaced what in "struct frame_info".
2330 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
2331 deprecated_update_frame_base_hack and
2332 deprecated_update_frame_pc_hack.
2333 * hppa-tdep.c: Ditto.
2334
61fbb938
DJ
23352003-04-13 Daniel Jacobowitz <drow@mvista.com>
2336
2337 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
2338 to read_reg and update its comment. Remove regnum member.
2339 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
2340 Don't call read_reg when setting in_reg. Call read_reg to get
2341 the frame base if it's in a register. Return the register number
2342 on the stack instead of in the context. Remove extra arguments
2343 to read_reg.
2344 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
2345 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
2346 the register number on the expression stack.
2347 (needs_frame_read_reg): Remove extra arguments.
2348
0d53c4c4
DJ
23492003-04-13 Daniel Jacobowitz <drow@mvista.com>
2350
2351 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
2352 made non-static.
2353 (execute_stack_op): All callers updated.
2354 * dwarf2expr.h: Add prototype for dwarf2_read_address.
2355 * dwarf2loc.c (find_location_expression): New function.
2356 (dwarf_expr_frame_base): Call it.
2357 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
2358 (dwarf2_tracepoint_var_ref): New function, broken out from
2359 locexpr_tracepoint_var_ref.
2360 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
2361 Make static.
2362 (loclist_read_variable, loclist_read_needs_frame): New functions.
2363 (loclist_describe_location, loclist_tracepoint_var_ref): New
2364 functions.
2365 (dwarf2_loclist_funcs): New struct location_funcs.
2366 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
2367 (struct dwarf2_locexpr_baton): Add comments.
2368 (dwarf2_loclist_funcs): New extern.
2369 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
2370 base_address and base_known.
2371 (dwarf_loc_buffer): New variable.
2372 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
2373 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
2374 (dwarf2_has_info): Initialize dwarf_loc_offset.
2375 (dwarf2_build_psymtabs): Read in .debug_loc.
2376 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
2377 DWARF_LOC_SIZE.
2378 (psymtab_to_symtab_1): Likewise. Move base address calculation
2379 here, from...
2380 (dwarf2_get_pc_bounds): ... here. Use the base address from
2381 cu_header.
2382 (dwarf2_symbol_mark_computed): Handle location lists.
2383
6aca59a3
DJ
23842003-04-13 Daniel Jacobowitz <drow@mvista.com>
2385
2386 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
2387 if the linkage name demangled successfully.
2388
aca1fcd0
MK
23892003-04-13 Mark Kettenis <kettenis@gnu.org>
2390
97095916
MK
2391 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
2392 disassmbly_flavour): Removed.
2393
aca1fcd0
MK
2394 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
2395
562a961f
MK
23962003-04-13 Mark Kettenis <kettenis@gnu.org>
2397
2398 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
2399
bd013d54
AC
24002003-04-12 Andrew Cagney <cagney@redhat.com>
2401
2402 * frame.h (struct frame_info): Move definition from here ...
2403 * frame.c (struct frame_info): ... to here.
2404
167ef8b1
AC
24052003-04-12 Andrew Cagney <cagney@redhat.com>
2406
2407 * gdbthread.h (save_infrun_state): Delete parameter
2408 "prev_func_start".
2409 (struct thread_info): Delete field "prev_func_start".
2410 (load_infrun_state): Ditto.
2411 * thread.c (load_infrun_state, save_infrun_state): Update.
2412 * infrun.c (prev_func_start): Delete variable.
2413 (context_switch, init_wait_for_inferior): Update.
2414 (stop_stepping, keep_going): Update.
2415
da3331ec
AC
24162003-04-12 Andrew Cagney <cagney@redhat.com>
2417
2418 * gdbarch.sh: Add missing opaque declarations.
2419 * gdbarch.h: Regnerate.
2420 * symtab.h: Add missing opaque declarations.
2421 * value.h, target.h, symfile.h, stabsread.h: Ditto.
2422 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
2423 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
2424 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
2425 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
2426 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
2427 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
2428 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
2429 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
2430 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
2431 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
2432 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
2433 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
2434
18adea3f
AC
24352003-04-11 Andrew Cagney <cagney@redhat.com>
2436
2437 * frame.c (get_frame_id): Return this frame's "id".
2438 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
2439 function start.
2440 (legacy_saved_regs_this_id): Replace function body with
2441 internal-error.
2442 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
2443 FRAME_OBSTACK_ZALLOC.
2444 (create_new_frame): Mark the frame ID as valid.
2445
2252e863
AO
24462003-04-11 Alexandre Oliva <aoliva@redhat.com>
2447
2448 * Makefile.in (libbfd_h): Added missing setting.
2449 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
2450 according to the selected ABI.
2451
a8245ab8
JJ
24522003-04-11 Jeff Johnston <jjohnstn@redhat.com>
2453
2454 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
2455
6913c89a
AC
24562003-04-11 Andrew Cagney <cagney@redhat.com>
2457
2458 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
2459 SAVED_PC_AFTER_CALL.
2460 * gdbarch.h, gdbarch.c: Regenerate.
2461 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2462 * x86-64-tdep.c (x86_64_init_abi): Update.
2463 * vax-tdep.c (vax_gdbarch_init): Update.
2464 * v850-tdep.c (v850_gdbarch_init): Update.
2465 * sparc-tdep.c (sparc_gdbarch_init): Update.
2466 * sh-tdep.c (sh_gdbarch_init): Update.
2467 * s390-tdep.c (s390_gdbarch_init): Update.
2468 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2469 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2470 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2471 * mips-tdep.c (mips_gdbarch_init): Update.
2472 * mcore-tdep.c (mcore_gdbarch_init): Update.
2473 * m68k-tdep.c (m68k_gdbarch_init): Update.
2474 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2475 * ia64-tdep.c (ia64_gdbarch_init): Update.
2476 (ia64_saved_pc_after_call): Update declaration.
2477 * i386ly-tdep.c (i386lynx_init_abi): Update.
2478 * i386-tdep.c (i386_gdbarch_init): Update.
2479 * hppa-tdep.c (hppa_gdbarch_init): Update.
2480 * h8300-tdep.c (h8300_gdbarch_init): Update.
2481 * frv-tdep.c (frv_gdbarch_init): Update.
2482 * cris-tdep.c (cris_gdbarch_init): Update.
2483 * avr-tdep.c (avr_gdbarch_init): Update.
2484 * arm-tdep.c (arm_gdbarch_init): Update.
2485 * alpha-tdep.c (alpha_gdbarch_init): Update.
2486 * ns32knbsd-nat.c (frame_num_args): Update.
2487 * ns32k-tdep.c (umax_frame_num_args): Update.
2488 * mips-tdep.c (mips_init_frame_pc_first): Update.
2489 * infrun.c (step_over_function): Update.
2490 * i386-linux-tdep.c (skip_hurd_resolver): Update.
2491 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
2492 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
2493 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2494 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2495 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
2496 * arm-linux-tdep.c (skip_hurd_resolver): Update.
2497 * arch-utils.c (init_frame_pc_default): Update.
2498 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
2499 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
2500 declaration.
2501
38edeab8
AC
25022003-04-11 Andrew Cagney <cagney@redhat.com>
2503
2504 * i387-tdep.c: Update copyright.
2505 (i387_to_double): Delete function.
2506 (double_to_i387): Delete function.
2507
81f8a206
AC
25082003-04-10 Andrew Cagney <cagney@redhat.com>
2509
2510 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
2511 frame's function's address. Simplify.
2512 (d10v_frame_unwind_cache): Check that the frame's function is
2513 non-zero.
2514
6e691f7a
JB
25152003-04-10 Jim Blandy <jimb@redhat.com>
2516
2517 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
2518 call to set_gdbarch_deprecated_push_arguments.
2519
7f78e237
AC
25202003-04-10 Andrew Cagney <cagney@redhat.com>
2521
2522 * frame.c (fprint_frame_id): New function.
2523 (fprint_frame_type, fprint_frame): New function.
2524 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
2525 (create_sentinel_frame, get_frame_id): Ditto.
2526 (frame_id_p, frame_id_eq): Ditto.
2527 (frame_id_inner, create_new_frame): Ditto.
2528 (legacy_get_prev_frame, get_prev_frame): Ditto.
2529 (deprecated_update_frame_pc_hack): Ditto.
2530 (frame_register_unwind): Ditto.
2531 (deprecated_update_frame_base_hack): Ditto.
2532
f870b49b
CV
25332003-04-10 Corinna Vinschen <vinschen@redhat.com>
2534
2535 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
2536 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
2537 frame_chain function.
2538 * Makefile.in: Add dependencies due to above change.
2539
7c86889b
CV
25402003-04-10 Corinna Vinschen <vinschen@redhat.com>
2541
2542 * blockframe.c (legacy_frame_chain_valid): Move call to
2543 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
2544 inside_entry_file.
2545
d0a55772
AC
25462003-04-09 Andrew Cagney <cagney@redhat.com>
2547
2548 * frame.h (struct frame_id): Replace "pc" and "base" with
2549 "stack_addr" and "code_addr". Update comments.
2550 (frame_id_build): Update parameter names and comment.
2551 (struct frame_info): Replace "id_p" and "id" with "this_id".
2552 * dummy-frame.c (dummy_frame_this_id): Update.
2553 * breakpoint.c (print_one_breakpoint): Update.
2554 * frame.c (get_frame_id): Update.
2555 (get_frame_base, frame_id_build): Update.
2556 (create_sentinel_frame, legacy_get_prev_frame): Update.
2557 (deprecated_update_frame_base_hack): Update.
2558 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
2559 (frame_id_inner): Ditto.
2560
ac16bf07
AC
25612003-04-09 Andrew Cagney <cagney@redhat.com>
2562
2563 * defs.h (gdb_print_host_address): Make "addr" parameter a
2564 pointer constant.
2565 * utils.c (gdb_print_host_address): Update.
2566
366cfc9e
KB
25672003-04-09 Kevin Buettner <kevinb@redhat.com>
2568
2569 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
2570 register number for R0 is 0.
2571
cd983b5c
JB
25722003-04-09 J. Brobecker <brobecker@gnat.com>
2573
2574 * frame.h (struct gdbarch): Add opaque structure definition
2575 to avoid a compilation warning on LynxOS 4.0.
2576
d1340264
AC
25772003-04-09 Andrew Cagney <cagney@redhat.com>
2578
2579 * frame.h (struct frame_info): Delete field "pc". Replace
2580 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
2581 structure.
2582 * frame.c (frame_pc_unwind): Update.
2583 (create_sentinel_frame): Do not set "pc".
2584 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
2585 (get_frame_pc): Call frame_pc_unwind.
2586 (deprecated_update_frame_pc_hack): Update.
2587 (create_new_frame): Use "pc" not "->pc".
2588
90a6fffb
AC
25892003-04-09 Andrew Cagney <cagney@redhat.com>
2590
2591 * frame.c (get_frame_id): Eliminate code updating "frame".
2592 (legacy_get_prev_frame): Ditto.
2593 (get_frame_base): Return id.base directly.
2594 (deprecated_update_frame_base_hack): Update "id.base".
2595 * frame.h (struct frame_info): Delete field "frame".
2596
2fbce691
AC
25972003-04-09 Andrew Cagney <cagney@redhat.com>
2598
2599 * NEWS: Mention that the "Sequent family" is obsolete.
2600 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
2601 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
2602 * configure.host: Obsolete i[3456]86-sequent-bsd*,
2603 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
2604 * config/i386/tm-ptx4.h: Obsolete file.
2605 * config/i386/tm-ptx.h: Obsolete file.
2606 * symm-tdep.c: Obsolete file.
2607 * config/i386/symmetry.mt: Obsolete file.
2608 * config/i386/tm-symmetry.h: Obsolete file.
2609 * symm-nat.c: Obsolete file.
2610 * config/i386/nm-symmetry.h: Obsolete file.
2611 * config/i386/xm-symmetry.h: Obsolete file.
2612 * config/i386/symmetry.mh: Obsolete file.
2613 * config/i386/nm-ptx4.h: Obsolete file.
2614 * config/i386/ptx4.mh: Obsolete file.
2615 * config/i386/ptx.mt: Obsolete file.
2616 * config/i386/ptx.mh: Obsolete file.
2617 * config/i386/xm-ptx4.h: Obsolete file.
2618 * config/i386/xm-ptx.h: Obsolete file.
2619
78c43945
AC
26202003-04-09 Andrew Cagney <cagney@redhat.com>
2621
2622 Obsolete mips*-*-mach3*.
2623 * NEWS: Mention that mips*-*-mach3* is obsolete.
2624 * m3-nat.c: Obsolete file.
2625 * config/nm-m3.h: Obsolete file.
2626 * config/mips/tm-mipsm3.h: Obsolete file.
2627 * config/mips/mipsm3.mt: Obsolete file.
2628 * config/mips/mipsm3.mh: Obsolete file.
2629 * config/mips/xm-mipsm3.h: Obsolete file.
2630 * mipsm3-nat.c: Obsolete file.
2631 * configure.host: Obsolete mips-dec-mach3*.
2632 * configure.tgt: Obsolete mips*-*-mach3*.
2633
f1908289
AC
26342003-04-09 Andrew Cagney <cagney@redhat.com>
2635
2636 * doublest.h: Update copyright.
2637 (deprecated_store_floating, deprecated_extract_floating): Rename
2638 store_floating and extract_floating. Update comments.
2639 * doublest.c: Update copyright.
2640 (extract_floating_by_length): Replace extract_floating.
2641 (store_floating_by_length): Replace store_floating.
2642 (deprecated_extract_floating): New function.
2643 (deprecated_store_floating): New function.
2644 (extract_typed_floating): Call extract_floating_by_length.
2645 (store_typed_floating): Call store_floating_by_length.
2646 * x86-64-tdep.c (x86_64_store_return_value): Update.
2647 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
2648 (sh64_extract_return_value): Update.
2649 (sh_sh4_register_convert_to_virtual): Update.
2650 (sh_sh64_register_convert_to_virtual): Update.
2651 (sh_sh4_register_convert_to_raw): Update.
2652 (sh_sh64_register_convert_to_raw): Update.
2653 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
2654 (rs6000_register_convert_to_raw): Update.
2655 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
2656 (ia64_register_convert_to_raw): Update.
2657 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
2658 (REGISTER_CONVERT_TO_VIRTUAL): Update.
2659 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
2660 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
2661 (alpha_register_convert_to_raw): Update.
2662
4443bd83
AC
26632003-04-08 Andrew Cagney <cagney@redhat.com>
2664
2665 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
2666 * gdbarch.h, gdbarch.c: Re-generate.
2667 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
2668 (d10v_gdbarch_init): Do not set saved_pc_after_call.
2669 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
2670 conditionally, use frame_pc_unwind as an alternative. Add
2671 comments.
2672 * arch-utils.c (init_frame_pc_default): Only call
2673 SAVED_PC_AFTER_CALL when available.
2674
c0236d92
EZ
26752003-04-08 Elena Zannoni <ezannoni@redhat.com>
2676
fbe586ae 2677 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
2678 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
2679 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
2680 (start_remote): Ditto.
2681 (handle_inferior_event): Ditto.
2682 (save_inferior_status): Ditto.
2683 (restore_inferior_status): Ditto.
2684 * infcmd.c (attach_command): Ditto.
2685 * fork-child.c (startup_inferior): Ditto.
fbe586ae 2686 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
2687 * alpha-tdep.c (heuristic_proc_start): Ditto.
2688 * mips-tdep.c (heuristic_proc_start): Ditto.
2689 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
2690 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
2691 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
2692 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
2693 * remote-vx.c (vx_create_inferior): Ditto.
2694
26952003-04-08 Elena Zannoni <ezannoni@redhat.com>
2696
2697 * infrun.c (stop_soon_quietly): Make it an enum, to better
2698 override the default behavior of handle_inferior_event.
2699 (clear_proceed_status): Update uses of stop_soon_quietly to
2700 reflect that it is now an enum.
2701 (start_remote): Ditto.
2702 (handle_inferior_event): Change logic a bit if stop_soon_quietly
2703 is set to handle the new GNU/Linux kernel behavior for
2704 attach/sigstop. Update uses of stop_soon_quietly.
2705 * inferior.h (enum stop_kind): New enum.
2706 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
2707 Reset normal handle_inferior_event behavior, afterwards.
2708 * fork-child.c (startup_inferior): Update.
2709 * alpha-tdep.c (heuristic_proc_start): Update.
2710 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2711 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
2712 * solib-osf.c (osf_solib_create_inferior_hook): Update.
2713 * solib-irix.c (irix_solib_create_inferior_hook): Update.
2714 * remote-vx.c (vx_create_inferior): Update.
2715 * mips-tdep.c (heuristic_proc_start): Update.
2716
1211bce3
EZ
27172003-04-07 Elena Zannoni <ezannoni@redhat.com>
2718
2719 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 2720 be freed more than once, causing wild memory corruptions.
1211bce3 2721 (gdb_disassembly): Look for the substring "-thread",
fbe586ae
RH
2722 instead of "-threads" in the target name, to make sure to find
2723 the 'multi-thread' target. Also, make sure we do the right thing
2724 with the "core" target.
1211bce3 2725
f0ef6b29
KB
27262003-04-07 Kevin Buettner <kevinb@redhat.com>
2727
2728 * mips-tdep.c (mips_print_fp_register): New function, created from
2729 do_fp_register_row(). Registers are now (also) printed as hex.
2730 Only one register is printed per row.
2731 (mips_print_register, do_fp_register_row): Print floating point
2732 registers with mips_print_fp_register().
2733
8cf71652
AC
27342003-04-06 Andrew Cagney <cagney@redhat.com>
2735
5e488a7b
AC
2736 * valprint.h (inspect_it): Add extern declaration.
2737 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
2738 (selectors_info, classes_info): Ditto.
2739 (find_objc_msgcall): Fix indentation.
2740 (objc_printstr): Delete extern declarations.
2741
8cf71652
AC
2742 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
2743
e6ba3bc9
AC
27442003-04-06 Andrew Cagney <cagney@redhat.com>
2745
2746 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
2747 Update comment.
2748 * frame.c (legacy_saved_regs_this_id): Update.
2749 (legacy_get_prev_frame): Update.
2750 * xstormy16-tdep.c: Update comment.
2751 * sparc-tdep.c (sparc_frame_chain): Update comment.
2752 * blockframe.c (legacy_frame_chain_valid): Update.
2753
55e1d7e7
AC
27542003-04-06 Andrew Cagney <cagney@redhat.com>
2755
996179ee
AC
2756 * valprint.c (val_print_type_code_int): Delete #ifdef
2757 PRINT_TYPELESS_INTEGER code.
2758
55e1d7e7
AC
2759 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
2760 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
2761 multi-arch definition.
2762 * gdbarch.h: Re-generate.
2763
43bd9a9e
AC
27642003-04-05 Andrew Cagney <cagney@redhat.com>
2765
2766 Eliminate FRAME_FIND_SAVED_REGS.
2767 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
2768 Change FSR parameter to a pointer.
2769 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
2770 Assume FSR parameter is a pointer.
2771 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
2772 Make fsr a pointer.
2773 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
2774 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
2775 saved_regs a pointer.
2776 (hppa_frame_saved_pc): Ditto.
2777 (find_dummy_frame_regs): Make frame_saved_regs a pointer
2778 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
2779 pointer.
2780 (restore_pc_queue): Make fsr a pointer.
2781 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
2782 (hppa_frame_chain): Make saved_regs a pointer, call
2783 hppa_frame_init_saved_regs.
2784 * sparc-tdep.c: Include "gdb_assert.h".
2785 (sparc_frame_find_saved_regs): Replace internal_error with
2786 gdb_assert.
2787 * remote-vxsparc.c (vx_read_register): Delete reference to
2788 FRAME_FIND_SAVED_REGS.
2789 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
2790 * gdbarch.h: Regenerate.
2791 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
2792 (deprecated_get_frame_saved_regs): Delete declaration.
2793 (struct frame_saved_regs): Delete definition.
2794 * frame.c (deprecated_get_frame_saved_regs): Delete function.
2795 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
2796 (hppa_frame_find_saved_regs): Delete declaration.
2797 (FRAME_FIND_SAVED_REGS): Delete macro.
2798 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
2799 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
2800 FRAME_FIND_SAVED_REGS in comment.
2801
be41e9f4
AC
28022003-04-05 Andrew Cagney <cagney@redhat.com>
2803
2804 * frame.c (frame_func_unwind, get_frame_func): New functions.
2805 * frame.h (get_frame_func, frame_func_unwind): Declare.
2806 (struct frame_info): Add field "prev_func" for caching the
2807 previous frame's function address.
2808 * arm-tdep.c (arm_frameless_function_invocation): Combine
2809 get_pc_function_start and get_frame_pc into get_frame_func.
2810 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
2811 (sh64_nofp_frame_init_saved_regs): Ditto.
2812 * s390-tdep.c (s390_function_start): Ditto.
2813 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
2814 (rs6000_frameless_function_invocation): Ditto.
2815 (rs6000_frame_saved_pc): Ditto.
2816 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
2817 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
2818 * i386-tdep.c (i386_frameless_signal_p): Ditto.
2819 (i386_frame_init_saved_regs): Ditto.
2820 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
2821 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
2822 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
2823 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2824 * blockframe.c (frameless_look_for_prologue): Ditto.
2825
a01dd7cc
AC
28262003-04-05 Andrew Cagney <cagney@redhat.com>
2827
2828 * frame.c (legacy_get_prev_frame): Link prev to next at the
2829 function start. Update comments.
2830
5e5592e6
AC
28312003-04-05 Andrew Cagney <cagney@redhat.com>
2832
2833 * frame.c (get_frame_id): Update comment.
2834 (legacy_get_prev_frame): Update comment.
2835 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
2836 * gdbarch.h: Regenerate.
2837 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
2838 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
2839
6fba5002
AC
28402003-04-05 Andrew Cagney <cagney@redhat.com>
2841
2842 * stack.c (print_frame_info): Use get_frame_pc.
2843
7df05f2b
AC
28442003-04-04 Andrew Cagney <cagney@redhat.com>
2845
2846 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
2847 the frame's type from the unwinder.
2848 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
2849 (create_new_frame, legacy_get_prev_frame): When the unwinder's
2850 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
2851 (get_frame_base_address): Use get_frame_type.
2852 (get_frame_locals_address, get_frame_args_address): Ditto.
2853 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
2854 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
2855 (struct frame_info): Add comment explaining why the frame contains
2856 a "type" field.
2857 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
2858 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
2859 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
2860 NORMAL_FRAME.
2861 * frame-unwind.h: Include "frame.h".
2862 (struct frame_unwind): Add "type" field.
2863 * Makefile.in (frame_unwind_h): Add $(frame_h).
2864
11889732
AC
28652003-04-04 Andrew Cagney <cagney@redhat.com>
2866
2867 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
2868 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
2869 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
2870 get_frame_base.
2871 (d10v_unwind_dummy_id): Use frame_id_build.
2872 * frame.c (find_frame_sal): Use get_frame_pc.
2873 (create_new_frame): Use deprecated_update_frame_pc_hack and
2874 deprecated_update_frame_base_hack.
2875 (create_sentinel_frame): Add comment about ->pc going away.
2876 (get_prev_frame): Add comment about ->pc going away.
2877 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
2878 frame_id_build, deprecated_update_frame_pc_hack and
2879 deprecated_update_frame_base_hack.
2880 (select_frame): Use get_frame_pc.
2881 (legacy_saved_regs_this_id): Use frame_id_build.
2882
50c46a0d
EZ
28832003-04-04 Elena Zannoni <ezannoni@redhat.com>
2884
fbe586ae
RH
2885 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
2886 signed integer case.
2887 (classify_argument): Handle enumerations and references.
50c46a0d 2888
50bbdbd9
AC
28892003-04-04 Andrew Cagney <cagney@redhat.com>
2890
2891 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
2892 ID to NULL.
2893
36018d2e
AF
28942003-04-01 Adam Fedor <fedor@gnu.org>
2895
2896 * gdb/objc-lang.c (selectors_info): Replace calls to
2897 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
2898 SYMBOL_NATURAL_NAME.
2899 (classes_info, find_methods): Likewise.
2900
35cec841
KB
29012003-04-03 Kevin Buettner <kevinb@redhat.com>
2902
2903 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
2904 ``mach'' to the value determined by bfd_default_set_arch_mach().
2905
43136899
BR
29062003-04-02 Bob Rossi <bob_rossi@cox.net>
2907
2908 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
2909 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
2910 (mi-cmd-file.o): Update dependencies.
2911
040b99fd
KB
29122003-04-01 Kevin Buettner <kevinb@redhat.com>
2913
2914 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
2915 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
2916
9a3d7dfd
AF
29172003-04-01 Adam Fedor <fedor@gnu.org>
2918
2919 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
2920 * language.h (struct language_defn): Add la_demangle.
2921 (language_demangle): Declare.
2922 * language.c (language_demangle): New function.
2923 (unk_lang_demangle): Likewise.
2924 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 2925 Add ukn_lang_demangle.
9a3d7dfd 2926 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 2927 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
2928 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
2929 (cplus_language_defn): Add cplus_demangle for la_demangle element.
2930 * jv-lang.c (java_demangle): New function
2931 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
2932 * objc-lang.c (objc_demangle): Add options argument
2933 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
2934 * maint.c (maintenance_demangle): Replace switch with
2935 call to language_demangle.
2936 * utils.c (fprintf_symbol_filtered): Likewise.
2937
5e074003
AC
29382003-04-01 Andrew Cagney <cagney@redhat.com>
2939
2940 * printcmd.c (print_frame_nameless_args): Delete #ifdef
2941 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
2942 PRINT_TYPELESS_INTEGER.
2943 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
2944 PUSH_RETURN_ADDRESS.
2945
270cb5d6
AC
29462003-04-01 Andrew Cagney <cagney@redhat.com>
2947
2948 * Makefile.in (d10v-tdep.o): Update dependencies.
2949 * d10v-tdep.c: Include "frame-base.h".
2950 (d10v_frame_unwind): Make constant.
2951 (d10v_frame_base_address): New function.
2952 (d10v_frame_base): New variable.
2953 (d10v_gdbarch_init): Set frame_base default.
2954 (struct d10v_unwind_cache): Add the field "prev_sp". Update
2955 comment for base.
2956 (d10v_frame_unwind_cache): Set and use "prev_sp".
2957 (d10v_frame_this_id): Use the previous frame's inner most stack
2958 address and this frame's func address for the frame ID. Use
2959 frame_id_build. Don't analyze beyond the current instruction.
2960
6bfb3e36
AC
29612003-04-01 Andrew Cagney <cagney@redhat.com>
2962
2963 * frame.h (get_frame_locals_address, get_frame_args_address):
2964 Refer to the base address, instead of the address of the first
2965 local or parameter.
2966
da62e633
AC
29672003-04-01 Andrew Cagney <cagney@redhat.com>
2968
2969 Add frame debug info addresses:
2970 * frame-base.c: New file.
2971 * frame-base.h: New file.
2972 * frame.h (struct frame_base): Add opaque declaration.
2973 (get_frame_base): Update comment.
2974 (get_frame_base_address): Declare.
2975 (get_frame_locals_address): Declare.
2976 (get_frame_args_address): Declare.
2977 (struct frame_info): Add "base" and "base_cache". Update
2978 comments on the unwinder.
2979 * frame.c: Include "frame-base.h".
2980 (get_frame_locals_address): New function.
2981 (get_frame_base_address): New function.
2982 (get_frame_args_address): New function.
2983 * findvar.c (read_var_value): Use get_frame_locals_address and
2984 get_frame_args_address.
2985 * stack.c (frame_info): Use get_frame_locals_address and
2986 get_frame_args_address.
2987 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
2988 moved to "frame-base.c".
2989 * printcmd.c (print_frame_nameless_args): Ditto.
2990 * symtab.h (address_class): Update comments.
2991 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
2992 get_frame_base_address.
2993 * dwarf2expr.c (execute_stack_op): Ditto.
2994 * Makefile.in (frame_base_h): Define.
2995 (frame.o): Update dependencies.
2996 (frame-base.o): Add dependencies.
2997 (SFILES): Add frame-base.c.
2998 (COMMON_OBS): Add frame-base.o.
2999
3d30e9c2
AC
30002003-04-01 Andrew Cagney <cagney@redhat.com>
3001
3002 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
3003 CALL_DUMMY_LENGTH): Ditto.
3004 * gdbarch.c: Re-generate.
3005 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
3006 (CALL_DUMMY_LENGTH): Delete macro.
3007 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
3008 * arm-tdep.c (arm_gdbarch_init): Ditto.
3009 * avr-tdep.c (avr_gdbarch_init): Ditto.
3010 * cris-tdep.c (cris_gdbarch_init): Ditto.
3011 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3012 * frv-tdep.c (frv_gdbarch_init): Ditto.
3013 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3014 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3015 * i386-tdep.c (i386_gdbarch_init): Ditto.
3016 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3017 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3018 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3019 * mips-tdep.c (mips_gdbarch_init): Ditto.
3020 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3021 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3022 * s390-tdep.c (s390_gdbarch_init): Ditto.
3023 * sh-tdep.c (sh_gdbarch_init): Ditto.
3024 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3025 * v850-tdep.c (v850_gdbarch_init): Ditto.
3026 * vax-tdep.c (vax_gdbarch_init): Ditto.
3027 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
3028
ce0c7262
CV
30292003-04-01 Corinna Vinschen <vinschen@redhat.com>
3030
3031 * frame.c (get_prev_frame): Disable call to inside_entry_file().
3032
73dd234f
AC
30332003-04-01 Andrew Cagney <cagney@redhat.com>
3034
3035 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
3036 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3037 * gdbarch.h, gdbarch.c: Re-generate.
3038 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3039 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3040 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3041 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3042 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
3043 * infcmd.c (run_stack_dummy): Simplify assuming
3044 CALL_DUMMY_BREAKPOINT_OFFSET_P.
3045 * infrun.c (handle_inferior_event): Ditto.
3046 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3047 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
3048 * arm-tdep.c (arm_gdbarch_init): Ditto.
3049 * avr-tdep.c (avr_gdbarch_init): Ditto.
3050 * cris-tdep.c (cris_gdbarch_init): Ditto.
3051 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3052 * frv-tdep.c (frv_gdbarch_init): Ditto.
3053 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3054 * i386-tdep.c (i386_gdbarch_init): Ditto.
3055 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3056 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3057 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3058 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3059 * mips-tdep.c (mips_gdbarch_init): Ditto.
3060 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3061 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3062 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3063 * s390-tdep.c (s390_gdbarch_init): Ditto.
3064 * sh-tdep.c (sh_gdbarch_init): Ditto.
3065 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3066 * v850-tdep.c (v850_gdbarch_init): Ditto.
3067 * vax-tdep.c (vax_gdbarch_init): Ditto.
3068 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
3069
97606a13
DJ
30702003-04-01 Daniel Jacobowitz <drow@mvista.com>
3071
3072 * symfile.c (symfile_relocate_debug_section): Update call to
3073 bfd_simple_get_relocated_section_contents.
3074
e8ab51f7
AC
30752003-03-31 Andrew Cagney <cagney@redhat.com>
3076
3077 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
3078 * gdbarch.h, gdbarch.c: Regenerate.
3079 * inferior.h (FIX_CALL_DUMMY): Delete macro.
3080 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
3081 available.
3082 * frame.h (generic_fix_call_dummy): Delete declaration.
3083 * dummy-frame.h: Update comment.
3084 * dummy-frame.c (generic_fix_call_dummy): Delete function.
3085 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3086 fix_call_dummy.
3087 * sh-tdep.c (sh_gdbarch_init): Ditto.
3088 * s390-tdep.c (s390_gdbarch_init): Ditto.
3089 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3090 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3091 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3092 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3093 * i386-tdep.c (i386_gdbarch_init): Ditto.
3094 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3095 * frv-tdep.c (frv_gdbarch_init): Ditto.
3096 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3097 * cris-tdep.c (cris_gdbarch_init): Ditto.
3098 * avr-tdep.c (avr_gdbarch_init): Ditto.
3099 * arm-tdep.c (arm_gdbarch_init): Ditto.
3100
018d1b48
JB
31012003-03-31 J. Brobecker <brobecker@gnat.com>
3102
3103 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
3104 (INIT_FRAME_AP): Likewise.
3105 (EXTRA_FRAME_INFO): Likewise.
3106
e9a2674e
AC
31072003-03-31 Andrew Cagney <cagney@redhat.com>
3108
3109 * gdbarch.sh: Include "symfile.h".
3110 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
3111 * gdbarch.h, gdbarch.c: Re-generate.
3112 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
3113 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3114 call_dummy_address, the default is at entry_point_address.
3115 * v850-tdep.c (v850_gdbarch_init): Ditto.
3116 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3117 * sh-tdep.c (sh_gdbarch_init): Ditto.
3118 * s390-tdep.c (s390_gdbarch_init): Ditto.
3119 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3120 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3121 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3122 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3123 * i386-tdep.c (i386_gdbarch_init): Ditto.
3124 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3125 * frv-tdep.c (frv_gdbarch_init): Ditto.
3126 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3127 * cris-tdep.c (cris_gdbarch_init): Ditto.
3128 * arm-tdep.c (arm_gdbarch_init): Ditto.
3129
e8a8712a
AC
31302003-03-31 Andrew Cagney <cagney@redhat.com>
3131
3132 * gdbarch.sh (CALL_DUMMY_P): Delete.
3133 * gdbarch.h, gdbarch.c: Re-generate.
3134 * inferior.h (CALL_DUMMY_P): Delete macro.
3135 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3136 * vax-tdep.c (vax_gdbarch_init): Update.
3137 * v850-tdep.c (v850_gdbarch_init): Update.
3138 * sparc-tdep.c (sparc_gdbarch_init): Update.
3139 * sh-tdep.c (sh_gdbarch_init): Update.
3140 * s390-tdep.c (s390_gdbarch_init): Update.
3141 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3142 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3143 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3144 * mips-tdep.c (mips_gdbarch_init): Update.
3145 * mcore-tdep.c (mcore_gdbarch_init): Update.
3146 * m68k-tdep.c (m68k_gdbarch_init): Update.
3147 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3148 * ia64-tdep.c (ia64_gdbarch_init): Update.
3149 * i386-tdep.c (i386_gdbarch_init): Update.
3150 * h8300-tdep.c (h8300_gdbarch_init): Update.
3151 * frv-tdep.c (frv_gdbarch_init): Update.
3152 * d10v-tdep.c (d10v_gdbarch_init): Update.
3153 * cris-tdep.c (cris_gdbarch_init): Update.
3154 * breakpoint.c (deprecated_frame_in_dummy): Update.
3155 * avr-tdep.c (avr_gdbarch_init): Update.
3156 * alpha-tdep.c (alpha_gdbarch_init): Update.
3157 * arm-tdep.c (arm_gdbarch_init): Update.
3158 * dummy-frame.c (dummy_frame_this_id): Update comments.
3159 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
3160 * frame.c (legacy_get_prev_frame): Ditto.
3161 * valops.c (call_function_by_hand): Delete function.
3162 (hand_function_call): Rename to call_function_by_hand
3163
ed234cf8
AC
31642003-03-30 Andrew Cagney <cagney@redhat.com>
3165
3166 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 3167 * value.h (struct value): Update comment.
ed234cf8 3168
06c77151
AC
31692003-03-30 Andrew Cagney <cagney@redhat.com>
3170
6c2b5168
AC
3171 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
3172 D10V_FP_REGNUM.
3173 (d10v_gdbarch_init): Do not set fp_regnum.
3174
06c77151
AC
3175 * frame.c (get_frame_base): Force ID initialization.
3176 (get_prev_frame): Move computation of the frame ID from here ...
3177 (get_frame_id): ... to here.
3178 (legacy_get_prev_frame): Mark the frame ID as valid.
3179 * frame.h (struct frame_info): Add field "id_p".
3180
97a1a11c
MK
31812003-03-30 Mark Kettenis <kettenis@gnu.org>
3182
3183 * i386-tdep.c (i386_store_struct_return): Removed.
3184 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
3185
6c0e89ed
AC
31862003-03-30 Andrew Cagney <cagney@redhat.com>
3187
3188 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
3189 * gdbarch.h, gdbarch.c: Regenerate.
3190 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
3191 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
3192 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3193 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3194 * i386-tdep.c (i386_gdbarch_init): Ditto.
3195 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3196 * cris-tdep.c (cris_gdbarch_init): Ditto.
3197 * vax-tdep.c (vax_gdbarch_init): Ditto.
3198 * s390-tdep.c (s390_gdbarch_init): Ditto.
3199 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3200 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3201 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3202 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
3203 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3204 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
3205 * sparc-tdep.c (sparc_gdbarch_init): Update.
3206 * sh-tdep.c (sh_gdbarch_init): Update.
3207 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3208 * mips-tdep.c (mips_gdbarch_init): Update.
3209 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3210 * ia64-tdep.c (ia64_gdbarch_init): Update.
3211 * frv-tdep.c (frv_gdbarch_init): Update.
3212 * avr-tdep.c (avr_gdbarch_init): Update.
3213 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
3214 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
3215 instead of when push_dummy_call is not available.
3216
f7dd6af2
AC
32172003-03-30 Andrew Cagney <cagney@redhat.com>
3218
3219 * infttrace.c: Include "gdbthread.h".
3220 (parent_attach_all): Fix function signature.
3221 (call_ptrace): Update call.
3222 * Makefile.in (infttrace.o): Update dependencies.
3223
28f617b3
AC
32242003-03-30 Andrew Cagney <cagney@redhat.com>
3225
3226 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
3227 PUSH_RETURN_ADDRESS.
3228 * gdbarch.h, gdbarch.c: Regenerate.
3229 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3230 * x86-64-tdep.c (x86_64_init_abi): Update.
3231 * v850-tdep.c (v850_gdbarch_init): Update.
3232 * sparc-tdep.c (sparc_gdbarch_init): Update.
3233 * sh-tdep.c (sh_gdbarch_init): Update.
3234 * s390-tdep.c (s390_gdbarch_init): Update.
3235 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3236 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3237 * mips-tdep.c (mips_gdbarch_init): Update.
3238 * mcore-tdep.c (mcore_gdbarch_init): Update.
3239 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3240 * ia64-tdep.c (ia64_gdbarch_init): Update.
3241 * i386-tdep.c (i386_gdbarch_init): Update.
3242 * h8300-tdep.c (h8300_gdbarch_init): Update.
3243 * frv-tdep.c (frv_gdbarch_init): Update.
3244 * cris-tdep.c (cris_gdbarch_init): Update.
3245 * avr-tdep.c (avr_gdbarch_init): Update.
3246 * arm-tdep.c (arm_gdbarch_init): Update.
3247 * valops.c (hand_function_call): Update.
3248
4d628cd7
AC
32492003-03-29 Andrew Cagney <cagney@redhat.com>
3250
3251 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
3252 sizeof_call_dummy_words.
3253 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
3254 define.
3255 * gdbarch.h: Regenerate.
3256
65e82032
AC
32572003-03-29 Andrew Cagney <cagney@redhat.com>
3258
3259 * infttrace.h: New file.
3260 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
3261 (hpread_get_textlow): Detect an uninitialized dn_bufp.
3262 (hpread_read_doc_function_type): Detect an initialized type1.
3263 (hpread_quick_traverse): Initialize mod_name_string.
3264 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
3265 (som_solib_get_solib_by_pc): Declare.
3266 (so_lib_thread_start_addr): Declare.
3267 (no_shared_libraries): Declare.
3268 * somread.c (init_import_symbols): Make static. Add forward
3269 declaration.
3270 * config/pa/nm-hppah.h: Include "infttrace.h" for
3271 parent_attach_all.
3272 (hppa_insert_hw_watchpoint): Declare.
3273 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
3274 * hppah-nat.c: Include "gdb_string.h".
3275 (parent_attach_all): Delete extern declaration, moved to
3276 "infttrace.h".
3277 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
3278 int.
3279 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
3280 * Makefile.in (infttrace_h): Define.
3281 (hpread.o): Update dependencies.
3282 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
3283 * hppa-hpux-tdep.c: Include "gdb_string.h".
3284 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
3285 * infrun.c (handle_inferior_event): Always initialize
3286 stepped_after_stopped_by_watchpoint. Add default and remove
3287 fallthrough in switch statement.
3288 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
3289 parameter to int.
3290 (hppa_remove_hw_watchpoint): Ditto.
3291
2c3bbe77
AC
32922003-03-29 Andrew Cagney <cagney@redhat.com>
3293
3294 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
3295 offset.
3296
2dd604e7
RE
32972003-03-29 Richard Earnshaw <rearnsha@arm.com>
3298
3299 * arm-tdep.c (arm_push_arguments): Delete.
3300 (struct stack_item): New type.
3301 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
3302 (arm_store_struct_return): Delte.
3303 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
3304 arm_push_arguments or arm_store_struct_return.
3305
e8933a55
AC
33062003-03-28 Andrew Cagney <cagney@redhat.com>
3307
3308 * Makefile.in (d10v-tdep.o): Update dependencies.
3309 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
3310 * d10v-tdep.c: Include "remote.h".
3311 (target_resume_hook): Delete extern declaration.
3312 (target_wait_loop_hook): Ditto.
3313 (tdisassemble_command): Eliminate assignment in "if" conditional.
3314 (d10v_ts2_register_sim_regno): Eliminate call to
3315 legacy_register_sim_regno.
3316 (d10v_ts3_register_sim_regno): Ditto.
3317
6949171e
JJ
33182003-03-28 Jeff Johnston <jjohnstn@redhat.com>
3319
3320 * thread.c: Reindented.
3321 * lin-lwp.c: Ditto.
3322 * linux-proc.c: Ditto.
3323
98c7071f
BR
33242003-03-28 Bob Rossi <bob_rossi@cox.net>
3325
fbe586ae 3326 * MAINTAINERS (write after approval): Add myself.
98c7071f 3327
5edc9ca6
TR
33282003-03-27 Theodore A. Roth <troth@openavr.org>
3329
3330 * objc-exp.y: Add missing semi-colons.
3331
378bfd1b
AC
33322003-03-27 Andrew Cagney <cagney@redhat.com>
3333
3334 * regcache.c (write_sp): Delete function and references.
3335 * inferior.h (write_sp): Delete declaration.
3336 * valops.c (hand_function_call): Replace write_sp with
3337 TARGET_WRITE_SP.
3338 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
3339 (sparc_pop_frame): Ditto.
3340
56056df7
AC
33412003-03-27 Andrew Cagney <cagney@redhat.com>
3342
3343 * NEWS: Mention removal of support for hppa*-*-bsd* and
3344 hppa*-*-osf* natives, and hppa*-*-pro* target.
3345 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
3346 * config/pa/xm-pa.h: Obsolete file.
3347 * config/pa/xm-hppab.h: Obsolete file.
3348 * config/pa/nm-hppab.h: Obsolete file.
3349 * config/pa/tm-hppab.h: Obsolete file.
3350 * config/pa/tm-hppao.h: Obsolete file.
3351 * config/pa/nm-hppao.h: Obsolete file.
3352 * config/pa/tm-pro.h: Obsolete file.
3353 * config/pa/hppaosf.mt: Obsolete file.
3354 * config/pa/hppaosf.mh: Obsolete file.
3355 * config/pa/hppapro.mt: Obsolete file.
3356 * config/pa/hppabsd.mt: Obsolete file.
3357 * config/pa/hppabsd.mh: Obsolete file.
3358 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
3359 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
3360 hppa*-*-osf*.
3361
5873a88d
AC
33622003-03-27 Andrew Cagney <cagney@redhat.com>
3363
3364 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
3365 push_arguments. Don't set push_return_address or write_sp.
3366 (d10v_push_dummy_call): Replace d10v_push_arguments.
3367 (d10v_push_return_address, d10v_write_sp): Delete function,
3368 handled by push_dummy_call.
3369
b81774d8
AC
33702003-03-26 Andrew Cagney <cagney@redhat.com>
3371
3372 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
3373 (push_dummy_call): New pure multi-arch replacement with gdbarch,
3374 regcache and dummy_addr parameters.
3375 * gdbarch.h, gdbarch.c: Re-generate.
3376 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
3377 available; assume it will handle stack alignment and return
3378 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
3379 legacy_push_arguments.
3380 (legacy_push_arguments): Rename default_push_arguments.
3381 * value.h (legacy_push_arguments): Rename default_push_arguments.
3382 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
3383 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
3384 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
3385 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
3386 * config/i386/tm-symmetry.h: Update.
3387 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3388 * x86-64-tdep.c (x86_64_init_abi): Update.
3389 * v850-tdep.c (v850_gdbarch_init): Update.
3390 * sparc-tdep.c (sparc_gdbarch_init): Update.
3391 * sh-tdep.c (sh_gdbarch_init): Update.
3392 * s390-tdep.c (s390_gdbarch_init): Update.
3393 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3394 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3395 * mips-tdep.c (mips_gdbarch_init): Update.
3396 * mcore-tdep.c (mcore_gdbarch_init): Update.
3397 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3398 * ia64-tdep.c (ia64_gdbarch_init): Update.
3399 * i386-tdep.c (i386_gdbarch_init): Update.
3400 * hppa-tdep.c (hppa_gdbarch_init): Update.
3401 * h8300-tdep.c (h8300_gdbarch_init): Update.
3402 * frv-tdep.c (frv_gdbarch_init): Update.
3403 * d10v-tdep.c (d10v_gdbarch_init): Update.
3404 * cris-tdep.c (cris_gdbarch_init): Update.
3405 * avr-tdep.c (avr_gdbarch_init): Update.
3406 * arm-tdep.c (arm_gdbarch_init): Update.
3407 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3408 * alpha-tdep.c (alpha_gdbarch_init): Update.
3409
f541410f
DJ
34102003-03-26 Daniel Jacobowitz <drow@mvista.com>
3411
3412 * signals/signals.c (do_target_signal_to_host): Correct realtime
3413 signal range test.
3414
69f567ae
DJ
34152003-03-26 Daniel Jacobowitz <drow@mvista.com>
3416
3417 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
3418 (struct sal_chain, map_catch_names): Remove.
3419 (catch_exception_command_1): Don't call
3420 handle_gnu_4_16_catch_command.
3421
d5d14a5a
DJ
34222003-03-26 Daniel Jacobowitz <drow@mvista.com>
3423
3424 From Mark Dettinger <dettinge@de.ibm.com>:
3425 * dwarf2cfi.c (read_2u): Increment pointer by two.
3426
bdd73e22
DJ
34272003-03-26 Daniel Jacobowitz <drow@mvista.com>
3428
3429 * signals/signals.c: Fix typos in last change.
3430
960cb555
DJ
34312003-03-26 Daniel Jacobowitz <drow@mvista.com>
3432
3433 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
3434 not already defined. Use __SIGRTMIN if available.
3435 (target_signal_from_host): Remove SIGRTMIN block.
3436 (do_target_signal_to_host): Remove SIGRTMIN block; check that
3437 the signal is within the realtime range.
3438
f636b87d
AF
34392003-03-25 Adam Fedor <fedor@gnu.org>
3440
3441 * Makefile.in (infrun.o): Add $(language_h)
3442 * infrun.c (handle_inferior_event): Use skip_language_trampoline
3443 for language specific trampolines.
3444 * language.h (struct language_defn): Add skip_trampoline.
3445 (skip_language_trampoline): Declare.
3446 * language.c (unk_lang_trampoline, skip_language_trampoline):
3447 New functions.
3448 (unknown_language_defn, auto_language_defn, local_language_defn):
3449 Add ukn_lang_trampoline.
3450 * ada-lang.c (ada_language_defn): Add NULL for language
3451 specific skip_trampoline.
3452 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
3453 scm-lang.c: Likewise.
3454 * objc-lang.c (objc_skip_trampoline): New function.
3455 (objc_language_defn): Add objc_skip_trampoline.
3456
28f617b3 34572003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
3458
3459 * frame.c (get_prev_frame): Delay validating a frame's ID -
3460 non-NULL, didn't go backwards - until an attempt to unwind it to
3461 the previous frame.
3462
f933a9c5
AC
34632003-03-25 Andrew Cagney <cagney@redhat.com>
3464
3465 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
3466 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
3467 * gdbarch.h, gdbarch.c: Re-generate.
3468 * config/sparc/tm-sparc.h
3469 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
3470 * sparc-tdep.c (sparc_gdbarch_init): Set
3471 deprecated_extra_stack_alignment_needed.
3472 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
3473 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
3474 extra_stack_alignment_needed.
3475 * v850-tdep.c (v850_gdbarch_init): Ditto.
3476 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3477 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3478 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3479 * cris-tdep.c (cris_gdbarch_init): Ditto.
3480 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3481 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3482
4183d812
AC
34832003-03-25 Andrew Cagney <cagney@redhat.com>
3484
3485 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
3486 STORE_STRUCT_RETURN.
3487 * gdbarch.h, gdbarch.c: Regenerate.
3488 * d10v-tdep.c (d10v_store_struct_return): Delete function.
3489 (d10v_push_arguments): Set the struct return register.
3490 (d10v_gdbarch_init): Update.
3491 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3492 * x86-64-tdep.c (x86_64_init_abi): Update.
3493 * vax-tdep.c (vax_gdbarch_init): Update.
3494 * v850-tdep.c (v850_gdbarch_init): Update.
3495 * sparc-tdep.c (sparc_gdbarch_init): Update.
3496 * sh-tdep.c (sh_gdbarch_init): Update.
3497 * s390-tdep.c (s390_gdbarch_init): Update.
3498 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3499 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3500 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3501 * mips-tdep.c (mips_gdbarch_init): Update.
3502 * mcore-tdep.c (mcore_gdbarch_init): Update.
3503 * m68k-tdep.c (m68k_gdbarch_init): Update.
3504 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3505 * ia64-tdep.c (ia64_gdbarch_init): Update.
3506 * i386-tdep.c (i386_gdbarch_init): Update.
3507 * hppa-tdep.c (hppa_gdbarch_init): Update.
3508 * h8300-tdep.c (h8300_gdbarch_init): Update.
3509 * frv-tdep.c (frv_gdbarch_init): Update.
3510 * cris-tdep.c (cris_gdbarch_init): Update.
3511 * avr-tdep.c (avr_gdbarch_init): Update.
3512 * arm-tdep.c (arm_gdbarch_init): Update.
3513 * alpha-tdep.c (alpha_gdbarch_init): Update.
3514
1bf6d5cc
AC
35152003-03-25 Andrew Cagney <cagney@redhat.com>
3516
3517 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
3518 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
3519 CALL_DUMMY_STACK_ADJUST with a predicate variable.
3520 * gdbarch.h, gdbarch.c: Regenerate.
3521 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3522 call_dummy_stack_adjust_p.
3523 * vax-tdep.c (vax_gdbarch_init): Ditto.
3524 * v850-tdep.c (v850_gdbarch_init): Ditto.
3525 * sh-tdep.c (sh_gdbarch_init): Ditto.
3526 * s390-tdep.c (s390_gdbarch_init): Ditto.
3527 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3528 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3529 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3530 * mips-tdep.c (mips_gdbarch_init): Ditto.
3531 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3532 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3533 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3534 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3535 * i386-tdep.c (i386_gdbarch_init): Ditto.
3536 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3537 * frv-tdep.c (frv_gdbarch_init): Ditto.
3538 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3539 * cris-tdep.c (cris_gdbarch_init): Ditto.
3540 * avr-tdep.c (avr_gdbarch_init): Ditto.
3541 * arm-tdep.c (arm_gdbarch_init): Ditto.
3542 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3543 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
3544 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
3545 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
3546 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
3547 call_dummy_stack_adjust_p.
3548 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
3549 (CALL_DUMMY_STACK_ADJUST): Delete macro.
3550 * sparc-tdep.c (sparc32_push_arguments): Update.
3551 * valops.c (hand_function_call): Update.
3552
71c08af0
CV
35532003-03-25 Corinna Vinschen <vinschen@redhat.com>
3554
3555 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
3556 set_gdbarch_char_signed.
3557
30757f90
RE
35582003-03-25 Richard Earnshaw <rearnsha@arm.com>
3559
3560 PR cli/548
3561 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
3562
03d48a7d
RE
35632003-03-25 Richard Earnshaw <rearnsha@arm.com>
3564
3565 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
3566 (_initialize_arm_tdep): Don't set tm_print_insn.
3567
2cf6873c
AF
35682003-03-24 Adam Fedor <fedor@gnu.org>
3569
3570 * Makefile.in (YYOBJ): Add objc-exp.tab.o
3571 * objc-lang.h: Add multiple inclusion protection.
3572 (start_msglist, add_msglist, end_msglist): Additional declarations.
3573
17c0759e
RE
35742003-03-24 Richard Earnshaw <rearnsha@arm.com>
3575
3576 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
3577 value was renamed to ARM_FLOAT_SOFT_FPA.
3578
618ce49f
AC
35792003-03-23 Andrew Cagney <cagney@redhat.com>
3580
3581 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
3582 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
3583 * gdbarch.h, gdbarch.c: Regenerate.
3584 * valops.c (hand_function_call): Update.
3585 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
3586 * frame.c (legacy_saved_regs_this_id): Update.
3587 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
3588 * dummy-frame.h: Update.
3589 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
3590 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
3591 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
3592 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
3593 * config/m68k/tm-sun3.h: Update.
3594 * blockframe.c (inside_main_func, frame_chain_valid): Update.
3595 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3596 * x86-64-tdep.c (x86_64_init_abi): Update.
3597 * vax-tdep.c (vax_gdbarch_init): Update.
3598 * v850-tdep.c (v850_gdbarch_init): Update.
3599 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
3600 * sh-tdep.c (sh_gdbarch_init): Update.
3601 * s390-tdep.c (s390_gdbarch_init): Update.
3602 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3603 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
3604 (frame_get_saved_regs): Update.
3605 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
3606 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3607 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3608 * mips-tdep.c (mips_gdbarch_init): Update.
3609 * mcore-tdep.c (mcore_gdbarch_init): Update.
3610 * m68k-tdep.c (m68k_gdbarch_init): Update.
3611 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3612 * ia64-tdep.c (ia64_gdbarch_init): Update.
3613 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
3614 * i386-interix-tdep.c (i386_interix_init_abi): Update.
3615 (i386_interix_back_one_frame): Update.
3616 * hppa-tdep.c (hppa_gdbarch_init): Update.
3617 (hppa_init_extra_frame_info): Update.
3618 * h8300-tdep.c (h8300_gdbarch_init): Update.
3619 * frv-tdep.c (frv_gdbarch_init): Update.
3620 * cris-tdep.c (cris_gdbarch_init): Update.
3621 * avr-tdep.c (avr_gdbarch_init): Update.
3622 * arm-tdep.c (arm_gdbarch_init): Update.
3623 * alpha-tdep.c (alpha_gdbarch_init): Update.
3624
fd50bc42
RE
36252003-03-22 Richard Earnshaw <rearnsha@arm.com>
3626
3627 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
3628 (arm_get_fp_model): Declare.
3629 * arm-tdep.c (fp_model_strings): New string array.
3630 (arm_fp_model, current_fp_model): New variables.
3631 (arm_get_fp_model): New function.
3632 (arm_set_fp): New function.
3633 (set_fp_model_sfunc): New function.
3634 (show_fp_model): New function.
3635 (_initialize_arm_tdep): Add new command to set/show the FPU.
3636 (arm_extract_return_value): Use arm_get_fp_model.
3637 (arm_store_return_value): Likewise.
3638 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
3639 to initialize the floating-point data types.
3640 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
3641 model is FPA.
3642
26304000
RE
36432003-03-22 Richard Earnshaw <rearnsha@arm.com>
3644
3645 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
3646 the current setting of each value.
3647 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
3648 new_set and new_show. Use add_setshow_cmd_full and
3649 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
3650 commands and add new version as subcommands of "set/show arm".
3651
afd7eef0
RE
36522003-03-22 Richard Earnshaw <rearnsha@arm.com>
3653
3654 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
3655 (set_arm_command, show_arm_command): New functions.
3656 (_initialize_arm_tdep): Add them.
3657 (num_disassembly_options): Renamed from num_flavor_options.
3658 (valid_disassembly_styles): Renamed from valid_flavors.
3659 (disassembly_style): Renamed from disassembly_flavor.
3660 (set_disassembly_style_sfunc): Renamed from
3661 set_disassembly_flavor_sfunc.
3662 (set_disassembly_style): Renamed from set_disassembly_flavor.
3663 (arm_othernames): Updated.
3664 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
3665 command. Add "set/show arm disassembly" commands. Deprecate
3666 "othernames" command.
3667
299a7944
RE
36682003-03-22 Richard Earnshaw <rearnsha@arm.com>
3669
3670 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
3671 (arm-tdep.o): Depend on elf_arm_h.
3672
c1dac9e6
RE
36732003-03-22 Richard Earnshaw <rearnsha@arm.com>
3674
3675 * Makefile.in (coff_internal_h): Define.
3676 (arm-tdep.o): Update dependencies.
3677
2702d96c
RE
36782003-03-22 Richard Earnshaw <rearnsha@arm.com>
3679
3680 * arm-tdep.c (prologue_cache): Delete.
3681 (check_prologue_cache, save_prologue_cache): Delete.
3682 (arm_scan_prologue): Don't check or update the prologue_cache.
3683 (arm_gdb_arch_init): Don't initialize it.
3684 (_initialize_arm_tdep): Likewise.
3685
27d5d74b
SC
36862003-03-21 Stephane Carrez <stcarrez@nerim.fr>
3687
3688 * MAINTAINERS (tui): Maintainer of tui code.
3689
1762d96d
CV
36902003-03-21 Corinna Vinschen <vinschen@redhat.com>
3691
3692 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
3693 (i386-cygwin-tdep.o): Add dependencies.
3694 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
3695 * i386-cygwin-tdep.c: New file.
3696 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
3697 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
3698
4c2e2391
AC
36992003-03-20 Andrew Cagney <cagney@redhat.com>
3700
f20d38b7
AC
3701 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
3702 (handle_inferior_event): Remove code calling
3703 DYNAMIC_TRAMPOLINE_NEXTPC.
3704
0022b738
AC
3705 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
3706 already has a full path.
3707
864dbc90
AC
3708 * main.c (gdb_main): Return 1.
3709 (captured_main): Call error to report an invalid interpreter.
3710
4c2e2391
AC
3711 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3712 * alpha-osf1-tdep.c: Include "gdb_string.h".
3713
5ef7553b
JB
37142003-03-19 J. Brobecker <brobecker@gnat.com>
3715
3716 Continuing work to convert the hppa targets to multiarch partial.
3717
3718 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
3719 method, now that hppa_push_dummy_frame has a conformant prototype.
3720 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
3721 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
3722 for the switch to multiarch partial.
3723
7bde8967
KB
37242003-03-19 Kevin Buettner <kevinb@redhat.com>
3725
3726 * mdebugread.c (parse_symbol): For stEnd, we're done counting
3727 when iss is issNull.
3728
b006a9e9
KB
37292003-03-18 Kevin Buettner <kevinb@redhat.com>
3730
3731 * mips-tdep.c (mips_register_name): Fix fencepost error involving
3732 NUM_REGS bounds check.
3733
5e2e9765
KB
37342003-03-18 Kevin Buettner <kevinb@redhat.com>
3735
3736 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
3737 * mips-tdep.c (gdb_assert.h): Include.
3738 (mips_generic_reg_names, mips_processor_reg_names): Make static.
3739 (mips_register_name): Handle integer registers explicitly. Add
3740 bounds checking.
3741 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
3742 (mips_lsi33k_reg_names): Don't list integer registers; they're
3743 handled by mips_register_name() now.
3744 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
3745 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
3746 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
3747 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
3748 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
3749
a2867626
AC
37502003-03-18 Andrew Cagney <cagney@redhat.com>
3751
3752 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
3753 a void pointer.
3754 * gdbtypes.h (print_scalar_formatted): Update declaration.
3755 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
3756
06600e06
JB
37572003-03-18 J. Brobecker <brobecker@gnat.com>
3758
3759 * infrun.c (observer.h): Add #include.
3760 (normal_stop): Add call to observer_notify_normal_stop.
3761 * Makefile.in (infrun.o): Add dependency on observer.h.
3762
7daf4f5b
JB
37632003-03-18 J. Brobecker <brobecker@gnat.com>
3764
3765 Continuing work to convert the hppa targets to multiarch partial.
3766 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
3767 parameter. Reformat comment.
3768 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
3769 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
3770 to match new profile.
3771
3371ccc0
JB
37722003-03-18 J. Brobecker <brobecker@gnat.com>
3773
3774 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
3775 appear to be working in any case.
3776
4fbe891e
JB
37772003-03-18 J. Brobecker <brobecker@gnat.com>
3778
3779 * observer.c (observer_test_first_observer): New static variable.
3780 (observer_test_second_observer): Likewise.
3781 (observer_test_third_observer): Likewise.
3782 (observer_test_first_notification_function): New static function.
3783 (observer_test_second_notification_function): Likewise.
3784 (observer_test_third_notification_function): Likewise.
3785
a7ff40e7
JB
37862003-03-17 J. Brobecker <brobecker@gnat.com>
3787
3788 * hppa-tdep.c (gdb_assert.h): Add missing #include.
3789 * somsolib.c (gdb_assert.h): Likewise.
3790 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
3791 (somsolib.o): Likewise.
3792
26ca4152
AC
37932003-03-17 Andrew Cagney <cagney@redhat.com>
3794
3795 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
3796 BFD. Simplify setting of di.endian.
3797
0a613259
AC
37982003-03-17 Andrew Cagney <cagney@redhat.com>
3799
3800 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
3801 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
3802
3803 From Elena Zannoni <ezannoni@redhat.com>
3804 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
3805 vector and floating-point parameters.
3806 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
3807 convention.
3808 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
3809
1132738f
FN
38102003-03-17 Fernando Nasser <fnasser@redhat.com>
3811
3812 * MAINTAINERS: Remove my name from several maintainership roles.
3813
6dc42492
AC
38142003-03-17 Andrew Cagney <cagney@redhat.com>
3815
3816 Fix frame off-by-one bug.
3817 * frame-unwind.h (frame_this_id_ftype): Replace
3818 frame_unwind_id_ftype.
3819 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
3820 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
3821 with "prev_register".
3822 * frame-unwind.c (frame_unwind_find_by_pc): Return
3823 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
3824 comment.
3825 * dummy-frame.c (cached_find_dummy_frame): Delete function.
3826 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
3827 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
3828 (dummy_frame_unwind): Update.
3829 * sentinel-frame.c (sentinel_frame_prev_register): Replace
3830 sentinel_frame_register_unwind.
3831 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
3832 (sentinel_frame_unwinder): Update.
3833 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
3834 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
3835 * frame.c (create_sentinel_frame): Update. Initialize
3836 "prologue_cache" instead of "unwind_cache".
3837 (frame_register_unwind): Call this frame's prev_register with the
3838 next frame and this frame's prologue cache.
3839 (get_prev_frame): Simplify. Always call prev frame's this_id with
3840 this frame and prev frame's prologue cache. Document that this
3841 call is shifted one to the left when compared to the
3842 frame_register_unwind call.
3843 (legacy_saved_regs_prev_register): Replace
3844 frame_saved_regs_register_unwind.
3845 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
3846 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
3847 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
3848 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
3849 (d10v_frame_unwind): Update.
3850 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
3851 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
3852 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
3853 "saved_regs" with "this_saved_regs".
3854
efd710d6
AC
38552003-03-16 Andrew Cagney <cagney@redhat.com>
3856
3857 * frame.c (frame_pop): Don't call target_store_registers. Fix
3858 problem reported by Mark Kettenis.
3859
4e259f09
MK
38602003-03-16 Mark Kettenis <kettenis@gnu.org>
3861
3862 * i386-tdep.c (i386_register_type): Renamed from
3863 i386_register_virtual_type. Adjust function signature.
3864 (i386_gdbarch_init): Set register_type instead of
3865 deprecated_max_register_raw_size,
3866 deprecated_max_register_virtual_size and register_virtual_type.
3867
055bb976
AC
38682003-03-14 Andrew Cagney <cagney@redhat.com>
3869
3870 * frame.c (get_prev_frame): When a legacy frame, always call
3871 legacy_get_prev_frame. Simplify unwind code using assumption that
3872 the unwinder is new.
3873 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
3874 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
3875 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
3876
ac2adee5
AC
38772003-03-14 Andrew Cagney <cagney@redhat.com>
3878
3879 * frame.c (get_saved_register): Delete function.
3880 * frame.h (get_saved_register): Delete declaration.
3881 * xstormy16-tdep.c: Update comment.
3882 * regcache.h: Update comments.
3883 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
3884 get_saved_register and extract_address, use
3885 frame_read_unsigned_register.
3886 (sparc_frame_saved_pc): Ditto.
3887 (sparc_get_saved_register): Instead of get_saved_register, use
3888 frame_register.
3889 (sparc_pop_frame): Ditto.
3890 * findvar.c: Update comments.
3891 (value_of_register): Call frame_register instead of
3892 get_saved_register.
3893 (value_from_register): Ditto.
3894 * config/sparc/tm-sparc.h: Update comment.
3895 * breakpoint.c: Update comment.
3896
129c1cd6
AC
38972003-03-14 Andrew Cagney <cagney@redhat.com>
3898
3899 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
3900 GET_SAVED_REGISTER.
3901 * gdbarch.h, gdbarch.c: Re-generate.
3902 * frame.h: Update comments.
3903 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3904 * x86-64-tdep.c (x86_64_init_abi): Update.
3905 * sparc-tdep.c (sparc_gdbarch_init): Update.
3906 * sh-tdep.c (sh_gdbarch_init): Update.
3907 * mips-tdep.c (mips_gdbarch_init): Update.
3908 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3909 * cris-tdep.c (cris_gdbarch_init): Update.
3910 * ia64-tdep.c (ia64_gdbarch_init): Update.
3911 * frame.c (frame_register): Update.
3912 (get_saved_register): Update.
3913 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
3914
749b82f6
AC
39152003-03-13 Andrew Cagney <cagney@redhat.com>
3916
3917 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
3918 * gdbarch.h, gdbarch.c: Regenerate.
3919 * valops.c (hand_function_call): Update comment.
3920 * stack.c (return_command): Update comment.
3921 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
3922 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
3923 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3924 * x86-64-tdep.c (x86_64_init_abi): Update.
3925 * vax-tdep.c (vax_gdbarch_init): Update.
3926 * v850-tdep.c (v850_gdbarch_init): Update.
3927 * sparc-tdep.c (sparc_gdbarch_init): Update.
3928 * sh-tdep.c (sh_gdbarch_init): Update.
3929 * s390-tdep.c (s390_gdbarch_init): Update.
3930 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3931 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3932 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3933 * mips-tdep.c (mips_gdbarch_init): Update.
3934 * mcore-tdep.c (mcore_gdbarch_init): Update.
3935 * m68k-tdep.c (m68k_gdbarch_init): Update.
3936 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3937 * ia64-tdep.c (ia64_gdbarch_init): Update.
3938 * i386-tdep.c (i386_gdbarch_init): Update.
3939 * hppa-tdep.c (hppa_gdbarch_init): Update.
3940 * h8300-tdep.c (h8300_gdbarch_init): Update.
3941 * frv-tdep.c (frv_gdbarch_init): Update.
3942 * cris-tdep.c (cris_gdbarch_init): Update.
3943 * avr-tdep.c (avr_gdbarch_init): Update.
3944 * arm-tdep.c (arm_gdbarch_init): Update.
3945 * alpha-tdep.c (alpha_gdbarch_init): Update.
3946
1594fa56
AC
39472003-03-13 Andrew Cagney <cagney@redhat.com>
3948
3949 * frame.c (legacy_frame_p): New function.
3950 (get_prev_frame): Use legacy_frame_p.
3951 * frame.h (legacy_frame_p): Declare.
3952
7717fda3
V
39532003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
3954
fbe586ae 3955 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
3956 listing corrected.
3957
0c67cbe9
V
39582003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
3959
fbe586ae 3960 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 3961
03febf99
AC
39622003-03-12 Andrew Cagney <cagney@redhat.com>
3963
3964 * frame.c (get_prev_frame): Rename the frame parameter to
3965 "this_frame".
3966 (get_next_frame, legacy_get_prev_frame): Ditto.
3967
0a1e1ca1
AC
39682003-03-12 Andrew Cagney <cagney@redhat.com>
3969
3970 * frame.c (get_current_frame): Check target_has_registers before
3971 checking target_has_stack.
3972 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
3973 instead of deprecated_selected_frame.
3974 * findvar.c (value_of_register): Pass "frame", not
3975 deprecated_selected_frame, to value_of_builtin_reg.
3976
a66a9c23
AC
39772003-03-12 Andrew Cagney <cagney@redhat.com>
3978
3979 * regcache.c (regcache_cooked_write_signed): New function.
3980 (regcache_cooked_write_unsigned): New function.
3981 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
3982 (regcache_cooked_read_signed): Fix regnum in range assertion.
3983 * regcache.h (regcache_cooked_write_signed): Declare.
3984 (regcache_cooked_write_unsigned): Declare.
3985
8bedc050
AC
39862003-03-12 Andrew Cagney <cagney@redhat.com>
3987
3988 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
3989 * gdbarch.h, gdbarch.c: Re-generate.
3990 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3991 * x86-64-tdep.h: Update.
3992 * x86-64-tdep.c (x86_64_init_abi): Update.
3993 * v850-tdep.c (v850_gdbarch_init): Update.
3994 * sparc-tdep.c (sparc_gdbarch_init): Update.
3995 * sh-tdep.c (sh_gdbarch_init): Update.
3996 * s390-tdep.c (s390_gdbarch_init): Update.
3997 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3998 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
3999 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4000 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4001 * mips-tdep.c (mips_gdbarch_init): Update.
4002 * mcore-tdep.c (mcore_gdbarch_init): Update.
4003 * m68k-tdep.c (m68k_gdbarch_init): Update.
4004 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4005 * ia64-tdep.c (ia64_gdbarch_init): Update.
4006 * i386-tdep.c (i386_gdbarch_init): Update.
4007 * i386-interix-tdep.c (i386_interix_init_abi): Update.
4008 * hppa-tdep.c (hppa_gdbarch_init): Update.
4009 * h8300-tdep.c (h8300_gdbarch_init): Update.
4010 * frv-tdep.c (frv_gdbarch_init): Update.
4011 * cris-tdep.c (cris_gdbarch_init): Update.
4012 * avr-tdep.c (avr_gdbarch_init): Update.
4013 * arm-tdep.c (arm_gdbarch_init): Update.
4014 * alpha-tdep.c (alpha_gdbarch_init): Update.
4015 * sh-tdep.c (sh_init_extra_frame_info): Update.
4016 (sh64_init_extra_frame_info): Update.
4017 * ns32knbsd-nat.c (frame_num_args): Update.
4018 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
4019 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
4020 (xstormy16_frame_chain_valid): Update.
4021 * vax-tdep.c (vax_saved_pc_after_call): Update.
4022 * v850-tdep.c (v850_frame_chain): Update.
4023 (v850_pop_frame): Update.
4024 (v850_init_extra_frame_info): Update.
4025 * sparc-tdep.c (setup_arbitrary_frame): Update.
4026 * ns32k-tdep.c (umax_frame_num_args): Update.
4027 * s390-tdep.c (s390_pop_frame_regular): Update.
4028 * mn10300-tdep.c (mn10300_frame_chain): Update.
4029 (mn10300_pop_frame_regular): Update.
4030 (mn10300_init_extra_frame_info): Update.
4031 * mips-tdep.c (mips_init_frame_pc_first): Update.
4032 (mips_frame_chain): Update.
4033 (mips_pop_frame): Update.
4034 * mcore-tdep.c (mcore_frame_chain): Update.
4035 (mcore_pop_frame): Update.
4036 (mcore_init_extra_frame_info): Update.
4037 * arch-utils.c (init_frame_pc_default): Update.
4038 * m68k-tdep.c (isi_frame_num_args): Update.
4039 (delta68_frame_num_args): Update.
4040 (news_frame_num_args): Update.
4041 * ia64-tdep.c (ia64_pop_frame_regular): Update.
4042 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
4043 (alpha_frame_chain): Update.
4044 (alpha_pop_frame): Update.
4045 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
4046 (hppa_init_extra_frame_info): Update.
4047 (hppa_frame_chain): Update.
4048 (hppa_frame_chain_valid): Update.
4049 * cris-tdep.c (cris_init_extra_frame_info): Update.
4050 * avr-tdep.c (avr_init_extra_frame_info): Update.
4051 * arm-tdep.c (arm_frame_chain_valid): Update.
4052 (arm_init_extra_frame_info): Update.
4053 (arm_pop_frame): Update.
4054 * frame.c (frame_pc_unwind): Update.
4055 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
4056 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4057 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4058 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
4059 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
4060 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
4061
7a25a7c1
AC
40622003-03-12 Andrew Cagney <cagney@redhat.com>
4063
4064 Eliminate the need for POP_FRAME.
4065 * frame.c (do_frame_unwind_register): New function.
4066 (frame_pop): When no POP_FRAME, pop the frame using register
4067 unwind and a scratch regcache.
4068 (frame_saved_regs_pop): Delete function.
4069 (trad_frame_unwinder): Update.
4070 * d10v-tdep.c (d10v_frame_pop): Delete function.
4071 (d10v_frame_unwind): Update.
4072 * sentinel-frame.c (sentinel_frame_pop): Delete function.
4073 (sentinel_frame_unwinder): Update.
4074 * dummy-frame.c (dummy_frame_pop): Delete function.
4075 (dummy_frame_unwind): Update.
4076 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
4077 (struct frame_unwind): Update.
4078
2f38ef89
KB
40792003-03-11 Kevin Buettner <kevinb@redhat.com>
4080
4081 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
4082 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
4083 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
4084 Do range checks on register number obtained from debugging info.
4085 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
4086 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
4087 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
4088 mapping function.
4089 (do_fp_register_row): Fix typo which caused double type to be
4090 used when attempting to unpack a float.
4091
552f4abf
JB
40922003-03-11 J. Brobecker <brobecker@gnat.com>
4093
4094 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
4095
e0d2ae16
AC
40962003-03-11 Andrew Cagney <cagney@redhat.com>
4097
4098 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
4099 frame. Problem found by Corinna Vinschen.
4100
ddbfdd06
PM
41012003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
4102
4103 * doublest.c (floatformat_from_length): Accept also
4104 the real size of 'long double' type.
4105
088b2ddc 41062003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 4107
088b2ddc 4108 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
4109 * breakpoint.c (bpstat_copy): Copy the command lines as well
4110 as the old value, to match what is freed in bpstat_clear.
4111
f56f77c1
DC
41122003-03-10 David Carlton <carlton@math.stanford.edu>
4113
4114 * minsyms.c (add_minsym_to_hash_table): Replace
4115 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4116 (compare_minimal_symbols, compact_minimal_symbols)
4117 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
4118 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
4119 of DEPRECATED_SYMBOL_MATCHES_NAME.
4120 (lookup_minimal_symbol_solib_trampoline): Ditto.
4121
5602984a
AC
41222003-03-10 Andrew Cagney <cagney@redhat.com>
4123
4124 * regcache.h (regcache_cooked_read_ftype): Define.
4125 (regcache_save, regcache_restore): Add a cooked_read parameter.
4126 * regcache.c (regcache_save, regcache_restore): Update.
4127 (do_cooked_read): New function.
4128 (regcache_cpy): Pass do_cooked_read to regcache_save and
4129 regcache_restore.
4130
8bedc050
AC
41312003-03-10 Andrew Cagney <cagney@redhat.com>
4132
4133 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
4134 * gdbarch.h, gdbarch.c: Re-generate.
4135 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4136 * x86-64-tdep.h: Update.
4137 * x86-64-tdep.c (x86_64_init_abi): Update.
4138 * v850-tdep.c (v850_gdbarch_init): Update.
4139 * sparc-tdep.c (sparc_gdbarch_init): Update.
4140 * sh-tdep.c (sh_gdbarch_init): Update.
4141 * s390-tdep.c (s390_gdbarch_init): Update.
4142 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4143 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
4144 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4145 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4146 * mips-tdep.c (mips_gdbarch_init): Update.
4147 * mcore-tdep.c (mcore_gdbarch_init): Update.
4148 * m68k-tdep.c (m68k_gdbarch_init): Update.
4149 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4150 * ia64-tdep.c (ia64_gdbarch_init): Update.
4151 * i386-tdep.c (i386_gdbarch_init): Update.
4152 * i386-interix-tdep.c (i386_interix_init_abi): Update.
4153 * hppa-tdep.c (hppa_gdbarch_init): Update.
4154 * h8300-tdep.c (h8300_gdbarch_init): Update.
4155 * frv-tdep.c (frv_gdbarch_init): Update.
4156 * cris-tdep.c (cris_gdbarch_init): Update.
4157 * avr-tdep.c (avr_gdbarch_init): Update.
4158 * arm-tdep.c (arm_gdbarch_init): Update.
4159 * alpha-tdep.c (alpha_gdbarch_init): Update.
4160 * sh-tdep.c (sh_init_extra_frame_info): Update.
4161 (sh64_init_extra_frame_info): Update.
4162 * ns32knbsd-nat.c (frame_num_args): Update.
4163 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
4164 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
4165 (xstormy16_frame_chain_valid): Update.
4166 * vax-tdep.c (vax_saved_pc_after_call): Update.
4167 * v850-tdep.c (v850_frame_chain): Update.
4168 (v850_pop_frame): Update.
4169 (v850_init_extra_frame_info): Update.
4170 * sparc-tdep.c (setup_arbitrary_frame): Update.
4171 * ns32k-tdep.c (umax_frame_num_args): Update.
4172 * s390-tdep.c (s390_pop_frame_regular): Update.
4173 * mn10300-tdep.c (mn10300_frame_chain): Update.
4174 (mn10300_pop_frame_regular): Update.
4175 (mn10300_init_extra_frame_info): Update.
4176 * mips-tdep.c (mips_init_frame_pc_first): Update.
4177 (mips_frame_chain): Update.
4178 (mips_pop_frame): Update.
4179 * mcore-tdep.c (mcore_frame_chain): Update.
4180 (mcore_pop_frame): Update.
4181 (mcore_init_extra_frame_info): Update.
4182 * arch-utils.c (init_frame_pc_default): Update.
4183 * m68k-tdep.c (isi_frame_num_args): Update.
4184 (delta68_frame_num_args): Update.
4185 (news_frame_num_args): Update.
4186 * ia64-tdep.c (ia64_pop_frame_regular): Update.
4187 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
4188 (alpha_frame_chain): Update.
4189 (alpha_pop_frame): Update.
4190 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
4191 (hppa_init_extra_frame_info): Update.
4192 (hppa_frame_chain): Update.
4193 (hppa_frame_chain_valid): Update.
4194 * cris-tdep.c (cris_init_extra_frame_info): Update.
4195 * avr-tdep.c (avr_init_extra_frame_info): Update.
4196 * arm-tdep.c (arm_frame_chain_valid): Update.
4197 (arm_init_extra_frame_info): Update.
4198 (arm_pop_frame): Update.
4199 * frame.c (frame_pc_unwind): Update.
4200 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
4201 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4202 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4203 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
4204 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
4205 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
4206
12cc2063
AC
42072003-03-10 Andrew Cagney <cagney@redhat.com>
4208
4209 * gdbarch.sh (gdbarch_unwind_pc): New method.
4210 * gdbarch.h, gdbarch.c: Regenerate.
4211 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
4212 but use read_pc and FRAME_SAVED_PC as fall backs.
4213 (frame_saved_regs_pc_unwind): Delete function.
4214 (trad_frame_unwinder): Update.
4215 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
4216 (struct frame_unwind): Update.
4217 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
4218 (dummy_frame_unwind): Update.
4219 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
4220 (sentinel_frame_unwinder): Update.
4221 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
4222 (d10v_frame_unwind): Update.
4223 (d10v_unwind_pc): New function.
4224 (d10v_gdbarch_init): Set unwind_pc.
4225
ef840a37
AC
42262003-03-10 Andrew Cagney <cagney@redhat.com>
4227
a2ce2e56
AC
4228 * gdbarch.h: Re-generate.
4229
ef840a37
AC
4230 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
4231 PC.
4232 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
4233 the PC register.
4234
08f3424b
MK
42352003-03-08 Mark Kettenis <kettenis@gnu.org>
4236
4237 * gdbarch.sh (save_dummy_frame_tos): Add comment.
4238
1248ede2
AC
42392003-03-08 Andrew Cagney <cagney@redhat.com>
4240
4241 * cli-out.c: Update copyright.
4242 (cli_out_data): Define typedef. Use instead of ui_out_data.
4243
f49bacc8
AC
42442003-03-08 Andrew Cagney <cagney@redhat.com>
4245
4246 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
4247 the result.
4248
9b05f993
AC
42492003-03-07 Andrew Cagney <cagney@redhat.com>
4250
4251 * gdbarch.sh: Don't generate two macro definitions when an
4252 undefined macro taking no arguments.
4253 * gdbarch.h: Regenerate.
4254
166f4c7b
ML
42552002-03-07 Michal Ludvig <mludvig@suse.cz>
4256
4257 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
4258 (x86_64_unwind_dummy_id): New functions.
4259 (x86_64_init_abi): Register these two new functions.
4260
6d686a84
ML
42612003-03-07 Michal Ludvig <mludvig@suse.cz>
4262
4263 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
4264 (x86_64_skip_prologue): Move prologue detection to
4265 separate function.
4266 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
4267
6314f104
AC
42682003-03-05 Andrew Cagney <cagney@redhat.com>
4269
4270 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
4271 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
4272 * frame.c (get_prev_frame): Restructure the frame ID unwind code
4273 to use unwind_dummy_id when a dummy frame.
4274 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
4275 predicate.
4276 * gdbarch.h, gdbarch.c: Regneerate.
4277
ceea5145
AC
42782003-03-05 Andrew Cagney <cagney@redhat.com>
4279
4280 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
4281 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
4282 Do not use d10v_read_sp or d10v_read_fp when obtaining register
4283 values.
4284
0d843116
AC
42852003-03-05 Andrew Cagney <cagney@redhat.com>
4286
4287 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
4288 (struct d10v_unwind_cache): Delete field "frameless". Replace
4289 "next_addr" with "sp_offset". Add "r11_offset".
4290 (d10v_frame_unwind_cache): Update.
4291 (prologue_find_regs): Update. When "mv r11, sp", save the
4292 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
4293 RN was saved in r11_offset.
4294
b2579786
AC
42952003-03-05 Andrew Cagney <cagney@redhat.com>
4296
4297 * frame.c (deprecated_update_frame_pc_hack): Also update the the
4298 cached PC value in the next frame.
4299
218e5956
AC
43002003-03-05 Andrew Cagney <cagney@redhat.com>
4301
4302 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
4303 "id_unwind_cache" with "id".
4304 (frame_id_unwind): Delete declaration.
4305 * frame.c (frame_id_unwind): Delete function.
4306 (get_prev_frame): Call the frame id unwind method directly. Store
4307 the returned next frame's ID value in NEXT_FRAME. Note that there
4308 is a problem with the wrong unwind ID being called with the wrong
4309 unwind cache.
4310
ed363b1b
DJ
43112003-03-05 Daniel Jacobowitz <drow@mvista.com>
4312
4313 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
4314
fe1f4a5e
DJ
43152003-03-05 James Ingham <jingham@apple.com>
4316 Daniel Jacobowitz <drow@mvista.com>
4317
4318 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
4319 (auto_cp_abi): New variable.
4320 (current_cp_abi, num_cp_abis): Make static.
4321 (CP_ABI_MAX): Define.
4322 (cp_abis): Turn into an array.
4323 (value_virtual_fn_field): Fix formatting.
4324 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
4325 takes a pointer.
4326 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
4327 (list_cp_abis, _initialize_cp_abi): New functions.
4328 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
4329 declarations for cp_abis, num_cp_abis, current_cp_abi, and
4330 switch_to_cp_abi. Update prototype for register_cp_abi.
4331 * Makefile.in (cp-abi.o): Update dependencies.
4332 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
4333 instead of switch_to_cp_abi.
4334 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
4335 register_cp_abi.
4336 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
4337 register_cp_abi.
4338 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
4339
e4adbba9
DJ
43402003-03-05 Daniel Jacobowitz <drow@mvista.com>
4341
4342 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
4343 * dwarf2loc.c: Include "regcache.h".
4344 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
4345 register_size.
4346 * Makefile.in (dwarf2loc.o): Update dependencies.
4347
91ccbfc1
TR
43482003-03-04 Theodore A. Roth <troth@openavr.org>
4349
4350 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
4351 number of io registers reported by remote target is not a multiple of
4352 step.
4353
3d4e8fd2
DC
43542003-03-04 David Carlton <carlton@math.stanford.edu>
4355
4356 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
4357 (lookup_symbol_aux_psymtabs): Update call to
4358 lookup_partial_symbol.
4359 (lookup_transparent_type, find_main_psymtab)
4360 (make_symbol_overload_list): Ditto.
4361
ed42d87b
KH
43622003-03-04 Kazu Hirata <kazu@cs.umass.edu>
4363
4364 * MAINTAINERS (Write after approval): Update my email address.
4365
a0ed5532
AC
43662003-03-03 Andrew Cagney <cagney@redhat.com>
4367
4368 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
4369 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
4370 predicate. Replace MAX_REGISTER_RAW_SIZE.
4371 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
4372 MAX_REGISTER_VIRTUAL_SIZE.
4373 * regcache.c (legacy_max_register_raw_size): New function.
4374 (legacy_max_register_virtual_size): New function.
4375 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
4376 (MAX_REGISTER_RAW_SIZE): Define.
4377 (legacy_max_register_raw_size): Declare.
4378 (legacy_max_register_virtual_size): Declare.
4379 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4380 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
4381 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4382 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
4383 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4384 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
4385 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
4386 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
4387 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
4388 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4389 * vax-tdep.c (vax_gdbarch_init): Update.
4390 * v850-tdep.c (v850_gdbarch_init): Update.
4391 * sparc-tdep.c (sparc_gdbarch_init): Update.
4392 * sh-tdep.c (sh_gdbarch_init): Update.
4393 * s390-tdep.c (s390_gdbarch_init): Update.
4394 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4395 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4396 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4397 * mips-tdep.c (mips_gdbarch_init): Update.
4398 * mcore-tdep.c (mcore_gdbarch_init): Update.
4399 * m68k-tdep.c (m68k_gdbarch_init): Update.
4400 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4401 * ia64-tdep.c (ia64_gdbarch_init): Update.
4402 * i386-tdep.c (i386_gdbarch_init): Update.
4403 * hppa-tdep.c (hppa_gdbarch_init): Update.
4404 * h8300-tdep.c (h8300_gdbarch_init): Update.
4405 * frv-tdep.c (frv_gdbarch_init): Update.
4406 * cris-tdep.c (cris_gdbarch_init): Update.
4407 * avr-tdep.c (avr_gdbarch_init): Update.
4408 * arm-tdep.c (arm_gdbarch_init): Update.
4409 * alpha-tdep.c (alpha_gdbarch_init): Update.
4410 * d10v-tdep.c (d10v_gdbarch_init): Do not set
4411 max_register_raw_size or max_register_virtual_size.
4412
8e437497
DC
44132003-03-03 David Carlton <carlton@math.stanford.edu>
4414
4415 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
4416 SYMBOL_MATCHES_NAME, add comment.
4417 (SYMBOL_MATCHES_NATURAL_NAME): New.
4418 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
4419 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
4420 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
4421 * symtab.c (lookup_partial_symbol): Use
4422 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
4423 unhelpful comment.
4424 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
4425 SYMBOL_MATCHES_NAME.
4426 Fix for PR c++/33.
4427
25120b0d
DC
44282003-03-03 David Carlton <carlton@math.stanford.edu>
4429
4430 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
4431 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
4432 by regexp matching against SYMBOL_NATURAL_NAME.
4433
78a11fb4
DC
44342003-03-03 David Carlton <carlton@math.stanford.edu>
4435
4436 * linespec.c (find_method): Extract code into collect_methods.
4437 (collect_methods): New.
4438
645dd519
MK
44392003-03-02 Mark Kettenis <kettenis@gnu.org>
4440
b4700d91
MK
4441 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
4442 get_frame_base.
4443
645dd519
MK
4444 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
4445 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4446
0aa7e1aa
SC
44472003-03-02 Stephane Carrez <stcarrez@nerim.fr>
4448
4449 * arch-utils.c (generic_register_byte): Fix to use the loop index
4450 and not regnum when summing the size of all registers up to regnum.
4451
f30ee0bc
AC
44522003-03-01 Andrew Cagney <cagney@redhat.com>
4453
4454 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
4455 FRAME_INIT_SAVED_REGS.
4456 * gdbarch.h, gdbarch.c: Regenerate.
4457 * stack.c (frame_info): Update.
4458 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
4459 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
4460 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
4461 * ns32k-tdep.c (ns32k_pop_frame): Update.
4462 * mips-tdep.c (mips_pop_frame): Update.
4463 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
4464 * ia64-tdep.c (ia64_frame_chain): Update.
4465 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
4466 (ia64_frameless_function_invocation): Update.
4467 (ia64_init_extra_frame_info): Update.
4468 (ia64_pop_frame_regular): Update.
4469 * frame.h (struct frame_info): Update comment.
4470 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
4471 * frame.c (frame_saved_regs_register_unwind): Update.
4472 (frame_saved_regs_register_unwind): Update.
4473 (deprecated_generic_get_saved_register): Update.
4474 * cris-tdep.c: Update comment.
4475 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
4476 Rename macro.
4477 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4478 * x86-64-tdep.c (x86_64_init_abi): Update.
4479 * vax-tdep.c (vax_gdbarch_init): Update.
4480 * v850-tdep.c (v850_gdbarch_init): Update.
4481 * sparc-tdep.c (sparc_gdbarch_init): Update.
4482 * sh-tdep.c (sh_gdbarch_init): Update.
4483 * s390-tdep.c (s390_gdbarch_init): Update.
4484 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4485 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
4486 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4487 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4488 * mips-tdep.c (mips_gdbarch_init): Update.
4489 * mcore-tdep.c (mcore_gdbarch_init): Update.
4490 * m68k-tdep.c (m68k_gdbarch_init): Update.
4491 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4492 * ia64-tdep.c (ia64_gdbarch_init): Update.
4493 * i386-tdep.c (i386_gdbarch_init): Update.
4494 * frv-tdep.c (frv_gdbarch_init): Update.
4495 * avr-tdep.c (avr_gdbarch_init): Update.
4496 * arm-tdep.c (arm_gdbarch_init): Update.
4497 * alpha-tdep.c (alpha_gdbarch_init): Update.
4498
42fa7c0f
AC
44992003-03-01 Andrew Cagney <cagney@redhat.com>
4500
4501 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
4502 option enum and switch. When no windows, set the interpreter to
4503 INTERP_CONSOLE.
4504
49c7e338
AC
45052003-03-01 Andrew Cagney <cagney@redhat.com>
4506
4507 * main.c (captured_main): Replace magic option characters with an
4508 enum.
4509
e9582e71
AC
45102003-03-01 Andrew Cagney <cagney@redhat.com>
4511
4512 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
4513 INIT_EXTRA_FRAME_INFO.
4514 * gdbarch.h, gdbarch.c: Regenerate.
4515 * arm-tdep.c: Update comments.
4516 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
4517 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
4518 * frame.h, avr-tdep.c: Ditto.
4519 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
4520 (create_new_frame, legacy_get_prev_frame): Ditto.
4521 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
4522 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
4523 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
4524 deprecated_init_extra_frame_info instead of init_extra_frame_info.
4525 * x86-64-tdep.c (x86_64_init_abi): Ditto.
4526 * v850-tdep.c (v850_gdbarch_init): Ditto.
4527 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4528 * sh-tdep.c (sh_gdbarch_init): Ditto.
4529 * s390-tdep.c (s390_gdbarch_init): Ditto.
4530 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
4531 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4532 * mips-tdep.c (mips_gdbarch_init): Ditto.
4533 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4534 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4535 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4536 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
4537 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4538 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4539 * frv-tdep.c (frv_gdbarch_init): Ditto.
4540 * cris-tdep.c (cris_gdbarch_init): Ditto.
4541 * avr-tdep.c (avr_gdbarch_init): Ditto.
4542 * arm-tdep.c (arm_gdbarch_init): Ditto.
4543 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4544 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4545
35cac7cf
AC
45462003-03-01 Andrew Cagney <cagney@redhat.com>
4547
4548 * gdbarch.sh (register_type): New function with predicate.
4549 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
4550 * gdbarch.h, gdbarch.c: Re-generate.
4551 * arch-utils.c (generic_register_byte): Use generic_register_size.
4552 (generic_register_size): When available, use
4553 gdbarch_register_type.
4554 * regcache.c (init_regcache_descr): When available, initialize the
4555 register type array using gdbarch_register_type. If the
4556 architecture supplies gdbarch_register_type, do not use the legacy
4557 regcache layout.
4558 * d10v-tdep.c (d10v_register_type): Replace
4559 d10v_register_virtual_type.
4560 (d10v_gdbarch_init): Set register_type instead of
4561 register_virtual_type.
4562
7b83296f
AC
45632003-03-01 Andrew Cagney <cagney@redhat.com>
4564
4565 * Makefile.in (ax-gdb.o): Update dependencies.
4566 * ax-gdb.c: Include "regcache.h".
4567 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
4568 * findvar.c (value_of_register): Ditto.
4569 * infcmd.c (default_print_registers_info): Ditto.
4570
eadc1c87
MK
45712003-03-01 Mark Kettenis <kettenis@gnu.org>
4572
4573 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
4574 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4575
14143612
MK
45762003-03-01 Mark Kettenis <kettenis@gnu.org>
4577
4578 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
4579 of STREQ.
4580
a55cc764
DJ
45812003-02-28 Daniel Jacobowitz <drow@mvista.com>
4582
4583 * Makefile.in (dwarf2loc.o): Update dependencies.
4584 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
4585 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
4586 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
4587 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
4588 (locexpr_tracepoint_var_ref): New function.
4589 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
4590
08a617da
AC
45912003-02-28 Andrew Cagney <cagney@redhat.com>
4592
4593 * regcache.c (register_size): New function.
4594 * regcache.h (register_size): Declare
4595 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
4596 max_register_size instead of MAX_REGISTER_RAW_SIZE.
4597
4224873a
DC
45982003-02-28 David Carlton <carlton@math.stanford.edu>
4599
4600 * linespec.c (decode_compound): Extract code into find_method.
4601 (find_method): New.
4602
ccdc5d7f
JB
46032003-02-28 J. Brobecker <brobecker@gnat.com>
4604
4605 * Makefile.in: Add rules to build and link in observer.o.
4606
974e8ced
JB
46072003-02-27 J. Brobecker <brobecker@gnat.com>
4608
4609 * observer.c: Minor comments edits.
4610
7a28f973
JB
46112003-02-27 J. Brobecker <brobecker@gnat.com>
4612
4613 * observer.h, observer.c: New file.
4614
27cddce2
AC
46152003-02-27 Andrew Cagney <cagney@redhat.com>
4616
4617 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
4618
b94a41a1
SC
46192003-02-27 Stephane Carrez <stcarrez@nerim.fr>
4620
4621 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
4622 (M6812_OP_STS_EXT): Likewise.
4623 (m6811_prologue): Use the above to recognize prologue.
4624 (m6812_prologue): Likewise.
4625
c8be8951
DC
46262003-02-27 David Carlton <carlton@math.stanford.edu>
4627
4628 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
4629 SYMBOL_PRINT_NAME.
4630 (compare_psymbols): Ditto.
4631 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
4632
d05bb1fc
MS
46332003-02-27 Michael Snyder <msnyder@redhat.com>
4634
4e845cd3
MS
4635 * f-lang.c (build_fortran_types): New function.
4636 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
4637 * doublest.c (extract_floating): Fix warning text.
4638
f3824013
AC
46392003-02-27 Andrew Cagney <cagney@redhat.com>
4640
4641 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
4642 predicate. Replaces PUSH_DUMMY_FRAME.
4643 * gdbarch.h, gdbarch.c: Regnerate.
4644 * valops.c (hand_function_call): Update. Call
4645 generic_push_dummy_frame directly.
4646 * vax-tdep.c (vax_gdbarch_init): Update.
4647 * sparc-tdep.c (sparc_gdbarch_init): Update.
4648 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4649 * m68k-tdep.c (m68k_gdbarch_init): Update.
4650 * hppa-tdep.c (hppa_gdbarch_init): Update.
4651 * alpha-tdep.c (alpha_gdbarch_init): Update.
4652 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
4653 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
4654 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
4655 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
4656 push_dummy_frame to generic_push_dummy_frame.
4657 * v850-tdep.c (v850_gdbarch_init): Ditto.
4658 * sh-tdep.c (sh_gdbarch_init): Ditto.
4659 * s390-tdep.c (s390_gdbarch_init): Ditto.
4660 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4661 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4662 * mips-tdep.c (mips_gdbarch_init): Ditto.
4663 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4664 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4665 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4666 * i386-tdep.c (i386_gdbarch_init): Ditto.
4667 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4668 * frv-tdep.c (frv_gdbarch_init): Ditto.
4669 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4670 * cris-tdep.c (cris_gdbarch_init): Ditto.
4671 * avr-tdep.c (avr_gdbarch_init): Ditto.
4672 * arm-tdep.c (arm_gdbarch_init): Ditto.
4673
ad188201
KB
46742003-02-26 Kevin Buettner <kevinb@redhat.com>
4675
4676 * mips-tdep.c (show_mips_abi): New function.
4677 (_initialize_mips_tdep): Use show_mips_abi() to implement the
4678 command ``show mips abi''.
4679
6b37567a
JJ
46802003-02-26 Jeff Johnston <jjohnstn@redhat.com>
4681
4682 From Elena Zannoni <ezannoni@redhat.com>
4683 * dbxread.c (process_one_symbol): Only record line 0 if one or
4684 more sline entries have been seen for the function.
4685
d3e0a5bf
MC
46862003-02-26 Michael Chastain <mec@shout.net>
4687
4688 * configure: Regenerate with autoconf 000227.
4689
18972eea
MC
46902003-02-26 Michael Chastain <mec@shout.net>
4691
4692 Close PR build/660.
4693 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
4694 for old libc5/glibc.
4695 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
4696
0bbde931
KW
46972003-02-26 Kris Warkentin <kewarken@qnx.com>
4698
4699 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
4700 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
4701
27ca5dad
MC
47022003-02-26 Michael Chastain <mec@shout.net>
4703
4704 * configure.in: New variable HAVE_UINTPTR_T.
4705 * configure, config.in: Regenerated.
4706
6f88d630
DJ
47072003-02-26 Daniel Jacobowitz <drow@mvista.com>
4708
4709 Fix PR build/1097.
4710 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
4711
b14185ce
AC
47122003-02-25 Andrew Cagney <cagney@redhat.com>
4713
4714 * frame.c (get_prev_frame): Add comment on check for
4715 inside_entry_func. Only check for inside_entry_file when not a
4716 dummy and not a sentinel. Check that the new frame is not inner
4717 to the old frame.
4718
ac2bd0a9
AC
47192003-02-25 Andrew Cagney <cagney@redhat.com>
4720
4721 * frame.c (frame_debug): New variable.
4722 (_initialize_frame): Add "set/show debug frame" command.
4723 (get_prev_frame): When frame_debug, print reason why unwind
4724 failed.
4725
b18a0fd2
MC
47262003-02-25 Michael Chastain <mec@shout.net>
4727
4728 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
4729 to avoid uintptr_t definition problems.
4730
22abf04a
DC
47312003-02-25 David Carlton <carlton@math.stanford.edu>
4732
4733 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
4734 (SYMBOL_LINKAGE_NAME): Ditto.
4735 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
4736 SYMBOL_LINKAGE_NAME.
4737 (struct general_symbol_info): Expand comment.
4738 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
4739 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
4740 (SYMBOL_MATCHES_REGEXP): Ditto.
4741 * symtab.c (symbol_natural_name): New function.
4742 * objfiles.h: Replace all uses of SYMBOL_NAME by
4743 DEPRECATED_SYMBOL_NAME.
4744 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
4745 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
4746 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
4747 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
4748 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
4749 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
4750 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
4751 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
4752 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
4753 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
4754 * ada-exp.y: Ditto.
4755 * ada-exp.y: Update copyright.
4756 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
4757 * cp-valprint.c: Ditto.
4758
1a5848f6
JJ
47592003-02-25 Jeff Johnston <jjohnstn@redhat.com>
4760
4761 * infptrace.c (detach): Do not flag error if ptrace detach fails
4762 and errno is set to ESRCH.
4763
7343d46a
AC
47642003-02-24 Andrew Cagney <cagney@redhat.com>
4765
4766 * infptrace.c (udot_info): Change type of udot_off to long. Use
4767 paddr when printing udot_off's value.
4768
49fa1dc2
DC
47692003-02-24 David Carlton <carlton@math.stanford.edu>
4770
4771 * symtab.c (make_symbol_overload_list): Only read in partial
4772 symtabs containing a matching partial symbol.
4773
0fe19209
DC
47742003-02-24 David Carlton <carlton@math.stanford.edu>
4775
4776 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
4777 do the comparison, not strcmp.
4778 * symfile.c (compare_psymbols): Ditto.
4779 * defs.h: Declare strcmp_iw_ordered.
4780 * utils.c (strcmp_iw_ordered): New function.
4781
8e3ee7b5
JB
47822003-02-24 Jim Blandy <jimb@redhat.com>
4783
4784 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
4785 support, shared libs): Remove my name from here, to better reflect
4786 reality.
4787
7df1a324
KW
47882003-02-24 Kris Warkentin <kewarken@qnx.com>
4789
4790 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
4791 (target_ops): Add to_have_continuable_watchpoint.
4792 * target.c (update_current_target): Add INHERIT line for
4793 to_have_continuable_watchpoint.
4794 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
4795 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
4796 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
4797 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
4798
d1c76907
EZ
47992003-02-24 Elena Zannoni <ezannoni@redhat.com>
4800
4801 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
4802 maintainership.
4803
2610b0bf
KW
48042003-02-24 Kris Warkentin <kewarken@qnx.com>
4805
f46169db
KW
4806 * solib.c (solib_open): Call target defined search function after
4807 failing with solib-search-path.
4808 * solist.h (target_so_ops): Add find_and_open_solib function hook and
4809 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 4810
9a3c34fe
KW
48112003-02-24 Kris Warkentin <kewarken@qnx.com>
4812
f46169db 4813 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 4814
2417dd25
SC
48152003-02-23 Stephane Carrez <stcarrez@nerim.fr>
4816
4817 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
4818
b631436b
SC
48192003-02-22 Stephane Carrez <stcarrez@nerim.fr>
4820
4821 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
4822 (m68hc11_add_reggroups): New function.
4823 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
4824 (m68hc11_gdbarch_init): Install the reggroups.
4825 (_initialize_m68hc11_tdep): Initialize them.
4826
0aa8c1e4
JW
48272003-02-21 James E Wilson <wilson@tuliptree.org>
4828
4829 * MAINTAINERS: Update my email address.
4830
50ceaba5
DC
48312003-02-21 David Carlton <carlton@math.stanford.edu>
4832
4833 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
4834
4c2df51b
DJ
48352003-02-21 Daniel Jacobowitz <drow@mvista.com>
4836
4837 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
4838 * symtab.h: Add opaque declarations of struct axs_value and
4839 struct agent_expr.
4840 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
4841 (struct location_funcs): New type.
4842 (struct symbol): Add "loc" to aux_value.
4843 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
4844 * dwarf2read.c: Include "dwarf2expr.h".
4845 (dwarf2_symbol_mark_computed): New function.
4846 (read_func_scope): Use it.
4847 (var_decode_location): New function.
4848 (new_symbol): Use it.
4849 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
4850
4851 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
4852 (dwarf2expr_h, dwarf2loc_h): New variables.
4853 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
4854 (dwarf2expr.o, dwarf2loc.o): New rules.
4855 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
4856 * buildsym.c (finish_block): Handle LOC_COMPUTED and
4857 LOC_COMPUTED_ARG.
4858 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
4859 * m2-exp.y (yylex): Likewise.
4860 * printcmd.c (address_info, print_frame_args): Likewise.
4861 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
4862 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
4863 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
4864 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
4865 * symtab.c (lookup_block_symbol): Likewise.
4866
5784d15e
AF
48672003-02-20 Adam Fedor <fedor@gnu.org>
4868
4869 * symtab.h: Remove objc_specific struct
4870 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
4871 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
4872 Have language_objc use cplus_specific struct.
4873
d4cad8db
TT
48742003-02-20 Tom Tromey <tromey@redhat.com>
4875
4876 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
4877 TYPE_NAME, when printing a String value. PR java/1075.
4878
2f9a90b4
AF
48792003-02-20 Adam Fedor <fedor@gnu.org>
4880
d38074a8 4881 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 4882 * objc-lang.c (find_methods): Make static.
2f9a90b4 4883
6f17862b
CF
48842003-02-20 Christopher Faylor <cgf@redhat.com>
4885
4886 * win32-nat.c (get_image_name): Check return value from
4887 ReadProcessMemory.
4888 (child_xfer_memory): Ditto.
4889
715d1656
AO
48902003-02-20 Alexandre Oliva <aoliva@redhat.com>
4891
4892 * configure.in (TARGET_SYSTEM_ROOT): Set default to
4893 ${exec_prefix}/${target_alias}/sys-root. Match explicit
4894 '${exec_prefix}' (in addition to the expansion thereof) as
4895 relocatable.
4896 * configure: Rebuilt.
4897
b1262a02
DC
48982003-02-20 David Carlton <carlton@math.stanford.edu>
4899
4900 * symtab.c (search_symbols): Revert the search_symbols part of my
4901 2002-12-23 patch. Add comment.
4902
7134143f
DJ
49032002-02-20 Daniel Jacobowitz <drow@mvista.com>
4904
4905 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
4906 * dbxread.c (elfstab_build_psymtabs): Don't call
4907 install_minimal_symbols.
4908 (stabsect_build_psymtabs): Likewise.
4909 * elfread.c (elf_symfile_read): Call install_minimal_symbols
4910 earlier.
4911 * somread.c (som_symfile_read): Call install_minimal_symbols
4912 and do_cleanups earlier.
4913 * nlmread.c (nlm_symfile_read): Likewise.
4914 * mdebugread.c (elfmdebug_build_psymtabs): Call
4915 install_minimal_symbols and make appropriate cleanups.
4916
cf466558
KB
49172003-02-20 Kevin Buettner <kevinb@redhat.com>
4918
4919 * solib.c (reload_shared_libraries): New function.
4920 (_initialize_solib): Add callbacks for ``set solib-search-path''
4921 and ``set solib-absolute-prefix''.
4922
de5ad195
DC
49232003-02-20 David Carlton <carlton@math.stanford.edu>
4924
4925 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
4926 expand comment.
4927 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
4928 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
4929 * ada-typeprint.c (ada_typedef_print): Ditto.
4930 * ax-gdb.c (gen_var_ref): Ditto.
4931 * breakpoint.c (print_one_breakpoint): Ditto.
4932 * buildsym.c (finish_block): Ditto.
4933 * c-valprint.c (c_val_print): Ditto.
4934 * expprint.c (print_subexp): Ditto.
4935 * findvar.c (locate_var_value): Ditto.
4936 * infcmd.c (jump_command): Ditto.
4937 * linespec.c (decode_line_2, decode_compound): Ditto.
4938 * maint.c (maintenance_translate_address): Ditto.
4939 * objc-lang.c (compare_selectors, compare_classes): Ditto.
4940 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
4941 Ditto.
4942 * p-valprint.c (pascal_val_print): Ditto.
4943 * stabsread.c (define_symbol): Ditto.
4944 * stack.c (print_frame, frame_info, print_block_frame_locals)
4945 (print_frame_arg_vars, return_command): Ditto.
4946 * symfile.c (compare_symbols, compare_psymbols): Ditto.
4947 * symmisc.c (print_symbol): Ditto.
4948 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
4949 (compare_search_syms, print_symbol_info, print_msymbol_info)
4950 (rbreak_command): Ditto.
4951 * tracepoint.c (tracepoints_info): Ditto.
4952 * typeprint.c (typedef_print): Ditto.
4953 * valops.c (value_of_variable, hand_function_call): Ditto.
4954 * cli/cli-cmds.c (edit_command, list_command): Ditto.
4955 * ada-typeprint.c: Update Copyright.
4956 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
4957 * tracepoint.c, cli/cli-cmds.c: Ditto.
4958
f796e4be
KB
49592003-02-20 Kevin Buettner <kevinb@redhat.com>
4960
4961 * frame.c (generic_unwind_get_saved_register): Make non-static.
4962 * frame.h (generic_unwind_get_saved_register): Declare.
4963 * mips-tdep.c (read_next_frame_reg): Fetch register from
4964 current regcache when frame is NULL.
4965 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
4966 that must be NULL.
4967 (mips_get_saved_register): Call generic_unwind_get_saved_register()
4968 instead of frame_register_unwind().
4969
836cc9f4
AC
49702003-02-20 Andrew Cagney <ac131313@redhat.com>
4971
4972 * remote-sim.c (gdbsim_insert_breakpoint)
4973 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
4974 code.
4975
501eef12
AC
49762003-02-20 Andrew Cagney <ac131313@redhat.com>
4977
4978 * remote.c (_initialize_remote): Add commands "set/show remote
4979 hardware-watchpoint-limit" and "set/show remote
4980 hardware-breakpoint-limit".
4981 (remote_hw_watchpoint_limit): Initialize to -1.
4982 (remote_hw_breakpoint_limit): Ditto.
4983 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
4984
1b6bc7e0
CF
49852003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
4986
4987 * coff-pe-read.c: New file - support reading of minimal symbols from a
4988 portable executable using the export table.
4989 * coff-pe-read.h: New file.
4990 * coffread.c: Include coff-pe-read.h.
4991 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
4992 debugging symbols found.
4993 * Makefile.in (SFILES): Add coff-pe-read.o.
4994 (coff_pe_read_h): Define.
4995 (COMMON_OBS): Add coff-pe-read.o.
4996 (coffread.o): Add coff_pe_read_h dependency.
4997 (coff-pe-read.o): New target.
4998
fe898f56
DC
49992003-02-19 David Carlton <carlton@math.stanford.edu>
5000
5001 * Makefile.in (SFILES): Add block.c.
5002 (block_h): New.
5003 (COMMON_OBS): Add block.o.
5004 (block.o): New.
5005 (x86-64-tdep.o): Add $(block_h).
5006 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
5007 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
5008 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
5009 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
5010 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
5011 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
5012 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
5013 * value.h: Add opaque declaration for struct block.
5014 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
5015 * ada-lang.h: Ditto.
5016 * x86-64-tdep.c: #include "block.h"
5017 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
5018 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
5019 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
5020 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
5021 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
5022 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
5023 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
5024 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
5025 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
5026 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
5027 * symtab.c (block_function): Ditto.
5028 (contained_in): Ditto.
5029 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
5030 block.h. Add opaque declaration for struct block.
5031 * symtab.h: Move block_function and contained_in declarations to
5032 block.h. Add opaque declarations for struct block, struct
5033 blockvector.
5034 (struct block): Move to block.h.
5035 (struct blockvector): Ditto.
5036 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
5037 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
5038 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
5039 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
5040 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
5041 Ditto.
5042 * block.c: New file.
5043 * block.h: New file.
5044
173345b5
TR
50452003-02-19 Theodore A. Roth <troth@openavr.org>
5046
5047 * avr-tdep.c (avr_extract_return_value): Remove function.
5048 (avr_store_return_value): Remove function.
5049 (avr_extract_struct_value_address): Remove function.
5050 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
5051
338ef23d
AC
50522003-02-19 Andrew Cagney <ac131313@redhat.com>
5053
5054 * rs6000-tdep.c: Include "gdb_assert.h".
5055 (registers_e500): Add "acc" and "spefscr".
5056 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
5057 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
5058 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
5059 really is "r0".
5060 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
5061
5412f5f3
KS
50622003-02-18 Keith Seitz <keiths@redhat.com>
5063
5064 * Makefile.in: Add gdbtk-interps.c.
5065
881324eb
KB
50662003-02-18 Kevin Buettner <kevinb@redhat.com>
5067
5068 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
5069 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
5070
6a2f5abf
AC
50712003-02-18 Andrew Cagney <cagney@redhat.com>
5072
5073 * symtab.h (struct objfile): Add opaque declaration.
5074
54c7009d
EZ
50752003-02-18 Elena Zannoni <ezannoni@redhat.com>
5076
5077 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
5078 * dbxread.c (process_one_symbol): Use last_function_start rather
5079 than function_start_offset to find the real beginning of the
5080 current function. The latter is just the text section offset on
5081 some systems, the former is always the real function start.
54c7009d 5082
7ee6d7eb
AC
50832003-02-17 Andrew Cagney <cagney@redhat.com>
5084
5085 * configure.in: Revert ${target} != ${host}.
5086
2846da9b
AC
50872003-02-17 Andrew Cagney <ac131313@redhat.com>
5088
5089 * configure.in (Makefile): Use the test ${target} != ${host},
5090 instead of the absence of the "nm.h" file, to determine of the
5091 configuration non-native.
5092 * configure: Regenerate.
5093
3b27aeea
EZ
50942003-02-14 Elena Zannoni <ezannoni@redhat.com>
5095
fbe586ae 5096 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
5097
5098 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
5099 conditionalize tui_active test.
5100 (lookup_cmd_1): Ditto.
5101
b0b1c2c0
MK
51022003-02-14 Mark Kettenis <kettenis@gnu.org>
5103
5104 * configure.in: Add check for _etext.
5105 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
5106 available.
5107 * config.in, configure: regenerated.
5108
8f05cde5
DJ
51092003-02-14 Daniel Jacobowitz <drow@mvista.com>
5110
5111 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
5112
021e7609
AC
51132003-02-14 Andrew Cagney <ac131313@redhat.com>
5114
5115 * main.c (tui_version): Delete variable.
5116 (captured_main): When --tui, set interpreter_p to "tui" instead of
5117 enabling tui_version.
5118 * printcmd.c (display_command) [TUI]: Test tui_active instead of
5119 tui_version.
5120 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
5121 * cli/cli-cmds.c (disassemble_command): Ditto.
5122 * defs.h (tui_version): Delete declaration.
5123 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
5124 (tui-interp.o): Add rules.
5125 (SUBDIR_TUI_OBS): Add "tui-interp.o".
5126
e325dcec
CF
51272003-02-14 Christopher Faylor <cgf@redhat.com>
5128
36ffb041 5129 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
5130 just-loaded dll.
5131
c4f90d87
JM
51322003-02-12 Jason Molenda (jmolenda@apple.com)
5133
fbe586ae
RH
5134 * symmisc.c (print_objfile_statistics): Include information about
5135 the number of psymtabs and symtabs in each object file.
c4f90d87 5136
e46e5ccd
KS
51372003-02-13 Keith R Seitz <keiths@redhat.com>
5138
5139 * main.h (struct captured_main_args): Add interpreter_p.
5140 * main.c (captured_main): Initialize interpreter_p from context.
5141 * gdb.c (main): Set interpreter_p argument.
5142 * Makefile.in (gdb.o): Add dependency for interps.h.
5143
fe97fe9c
AC
51442003-02-12 Andrew Cagney <ac131313@redhat.com>
5145
5146 * event-top.c (cli_command_loop): Delete declaration.
5147 (_initialize_event_loop): Delete function setting event_loop_hook.
5148 * event-top.h (cli_command_loop): Declare. Update copyright.
5149 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
5150 * interps.c (current_interp_command_loop): When event_loop_p, call
5151 cli_command_loop.
5152
1cdac4ef
AC
51532003-02-12 Andrew Cagney <ac131313@redhat.com>
5154
5155 * interps.h (interp_command_loop_ftype): Change return type to
5156 void.
5157
48037ead
ML
51582003-02-12 Michal Ludvig <mludvig@suse.cz>
5159
5160 * x86-64-tdep.c (x86_64_extract_return_value)
5161 (x86_64_store_return_value): Use regcache instead of regbuf.
5162 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
5163 * x86-64-linux-nat.c (fill_gregset): Use regcache.
5164
033afc63
AC
51652003-02-11 Andrew Cagney <ac131313@redhat.com>
5166
5167 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
5168 * aclocal.m4: Regenerate.
5169 * configure: Regenerate.
5170
5171 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
5172 TCL_LD_SEARCH_FLAGS.
5173
40d02bca
ML
51742003-02-10 Michal Ludvig <mludvig@suse.cz>
5175
5176 * dwarf2cfi.c: Reindented.
5177
11308a41
AC
51782003-02-09 Andrew Cagney <ac131313@redhat.com>
5179
5180 * interps.c (clear_interpreter_hooks): Convert function definition
5181 to ISO C.
5182
e1c1c0f6
DC
51832003-02-07 David Carlton <carlton@math.stanford.edu>
5184
5185 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
5186
ab5d3da6
KB
51872003-02-07 Kevin Buettner <kevinb@redhat.com>
5188
5189 * gdbtypes.h (struct main_type): Move ``length'' field from here...
5190 (struct type): ...to here.
5191 (TYPE_LENGTH): Adjust to reflect different location of ``length''
5192 field.
5193 * gdbtypes.c (make_qualified_type): Set length on newly created type.
5194 (replace_type): Set length on all type variants for a given type.
5195
b8a92b82
AC
51962003-02-07 Andrew Cagney <ac131313@redhat.com>
5197
5198 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
5199 <sys/stat.h>.
5200 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
5201
5cb316ef
AC
52022003-02-06 Andrew Cagney <ac131313@redhat.com>
5203
2555fe1a
AC
5204 * Makefile.in (symm-nat.o): Update dependencies.
5205 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
5206 (lynx-nat.o, ia64-linux-nat.): Ditto.
5207 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
5208 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
5209 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
5210
44270758
AC
5211 * Makefile.in (inflow_h): Define.
5212 (procfs.o, inflow.o, procfs.o): Update dependencies.
5213 * inftarg.c (child_stop): Delete extern declaration of
5214 inferior_process_group. Include "inflow.h".
5215 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
5216 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
5217 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
5218 (our_process_group, inferior_process_group): Extern declarations.
5219
df8f7274
AC
5220 * procfs.c: Include "gdb_assert.h".
5221
5cb316ef
AC
5222 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
5223 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
5224 * jv-typeprint.c (java_type_print_base): Ditto.
5225 * typeprint.c (typedef_print): Eliminate STREQ.
5226 * cli/cli-script.c (define_command, define_command): Ditto.
5227 * main.c (captured_main): Ditto.
5228 * values.c (lookup_internalvar): Ditto.
5229 * utils.c (safe_strerror, parse_escape): Eliminate assignment
5230 within `if' conditional.
5231 * linespec.c (decode_line_2): Ditto.
5232 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
5233 (bfd_openw_with_cleanup): Ditto.
5234
2a28ccea
MK
52352003-02-07 Mark Kettenis <kettenis@gnu.org>
5236
5237 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
5238 legacy_extract_return_value and store_return_value to
5239 legacy_return_value.
5240
786b8124
CF
52412003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
5242
5243 * win32-nat.c (get_relocated_section_addrs): New function. Find
5244 section load addresses for symbol handling in relocated DLLs.
5245 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
5246
b871e4ec
FF
52472003-02-05 Fred Fish <fnf@intrinsity.com>
5248
5249 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
5250 '=' and '!='.
5251 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
5252 with '&' and '=='.
5253 (angel_RDI_info): Ditto.
5254 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
5255 with '&' and '!='.
5256 (threads_continue_all_with_signals): Ditto.
5257
4389a95a 52582003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
5259 Keith Seitz <keiths@redhat.com>
5260 Elena Zannoni <ezannoni@redhat.com>
5261 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
5262
5263 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
5264 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
5265 (SUBDIR_MI_OBS): Add "mi-interp.o".
5266 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
5267 (SFILES): Add "interps.c".
5268 (COMMON_OBS): Add "interps.o".
5269 (interps_h, mi_main_h): Define.
5270 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
5271 (mi-main.o, main.o, event-top.o): Update dependencies.
5272 * cli/cli-interp.c: New file.
5273 * interps.h, interps.c: New files.
5274 * top.c: (gdb_init): Don't install the default interpreter, handed
5275 by captured_main.
5276 * main.c: Include "interps.h".
5277 (interpreter_p): Note that it should malloc'ed.
5278 (captured_command_loop): Call current_interp_command_loop.
5279 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
5280 xfree and xstrdup when updating interpreter_p. Install the
5281 default interpreter. Add hack to stop mi1's copyright notice
5282 being encoded.
5283 * event-top.h (gdb_setup_readline): Declare.
5284 (gdb_disable_readline): Declare.
5285 * event-top.c: Include "interps.h".
5286 (display_gdb_prompt): Call current_interp_display_prompt_p.
5287 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
5288 gdb_stdlog, and gdb_stdtarg.
5289 (_initialize_event_loop): Don't call gdb_setup_readline.
5290 * cli-out.c (cli_out_set_stream): New function.
5291 * cli-out.h (cli_out_set_stream): Declare.
5292
ff3b5810
MK
52932003-02-06 Mark Kettenis <kettenis@gnu.org>
5294
5295 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
5296 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
5297 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
5298 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
5299 config/i386/i386v42mp.mt: Removed.
5300
5b729aa5
MK
53012003-02-05 Mark Kettenis <kettenis@gnu.org>
5302
5303 * configure.tgt (*-*-solaris*): Set gdb_osabi to
5304 GDB_OSABI_SOLARIS.
5305
8cc15142
MC
53062003-02-05 Michael Chastain <mec@shout.net>
5307
5308 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
5309 2.12.1 and earlier versions.
5310
5aa5d4b9
AC
53112003-02-05 Andrew Cagney <ac131313@redhat.com>
5312
5313 Remove orphaned hosts, targets and files.
5314 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
5315 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
5316 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
5317 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
5318 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
5319 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
5320 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
5321 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
5322 * config/sparc/tm-sp64sim.h: Delete.
5323 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
5324 hosts.
5325 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
5326 mips*-dec-mach3* targets.
5327
b68767c1
MC
53282003-02-04 Michael Chastain <mec@shout.net>
5329
5330 * NEWS: Fix typo: sepcifying -> specifying.
5331
5ae7ca1d
MC
53322003-02-04 Michael Chastain <mec@shout.net>
5333
5334 * dwarfread.c: Add documentation on the state of dwarf-1,
5335 looking towards obsoletion.
5336
d08a4280
MC
53372003-02-03 Michael Chastain <mec@shout.net>
5338
5339 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
5340 gdb/testsuite/gdb.c++/pr-1023.exp.
5341
e9be73e4
AC
53422003-02-04 Andrew Cagney <ac131313@redhat.com>
5343
5344 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
5345 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
5346
5347 * utils.c (init_page_info): Delete reference to MPW in comments.
5348 * main.c (captured_main): Delete #ifdef MPW.
5349
05d57f6f
AC
53502003-02-04 Andrew Cagney <ac131313@redhat.com>
5351
5352 * NEWS: Note that the m32r-*-elf* is obsolete.
5353 * monitor.c (monitor_expect): Obsolete reference to m32r.
5354 * configure.tgt: Mark m32r-*-elf* as obsolete.
5355 * MAINTAINERS: Mark m32k as obsolete.
5356 * m32r-rom.c: Obsolete file.
5357 * config/m32r/m32r.mt: Obsolete file.
5358 * config/m32r/tm-m32r.h: Obsolete file.
5359 * m32r-stub.c: Obsolete file.
5360 * m32r-tdep.c: Obsolete file.
5361
8b0e5691
AC
53622003-02-04 Andrew Cagney <ac131313@redhat.com>
5363
5364 * NEWS: Mention that the z8k-zilog-none is obsolete.
5365 * MAINTAINERS: Mark z8k as obsolete.
5366 * configure.tgt: Obsolete the z8k-*-coff* target.
5367 * config/z8k/z8k.mt: Obsolete file.
5368 * config/z8k/tm-z8k.h: Obsolete file.
5369 * z8k-tdep.c: Obsolete file.
5370
67f16606
AC
53712003-02-04 Andrew Cagney <ac131313@redhat.com>
5372
5373 * NEWS: Mention that the mn10200-elf is obsolete.
5374 * configure.tgt: Obsolete mn10200-*-* target.
5375 * breakpoint.c (update_breakpoints_after_exec): Update comment to
5376 mention that the mn10200 is obsolete.
5377 * breakpoint.h: Ditto.
5378 * MAINTAINERS: Mark the mn10200-elf as obsolete.
5379 * config/mn10200/mn10200.mt: Obsolete file.
5380 * config/mn10200/tm-mn10200.h: Obsolete file.
5381 * mn10200-tdep.c: Obsolete file.
5382
fd2299bd
AC
53832003-02-04 Andrew Cagney <ac131313@redhat.com>
5384
5385 * MAINTAINERS: Mark h8500 as obsolete.
5386 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
5387 * findvar.c (value_from_register): Ditto.
5388 * h8500-tdep.c: Mark file as obsolete.
5389 * config/h8500/h8500.mt: Ditto.
5390 * config/h8500/tm-h8500.h: Ditto.
5391 * NEWS: Mention that h8500 is obsolete.
5392
eb9a305d
DC
53932003-02-04 David Carlton <carlton@math.stanford.edu>
5394
5395 * objfiles.c (allocate_objfile): Always set name. Add comment at
5396 start of function.
5397 * jv-lang.c (get_dynamics_objfile): Add comment.
5398
406fc7fb
DC
53992003-02-04 David Carlton <carlton@math.stanford.edu>
5400
5401 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
5402 * printcmd.c (build_address_symbolic): Replace uses of
5403 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
5404 SYMBOL_NAME, and asm_demangle.
5405 Update copyright.
5406
93d91629
DC
54072003-02-04 David Carlton <carlton@math.stanford.edu>
5408
5409 * linespec.c (decode_compound): Extract code into
5410 lookup_prefix_sym.
5411 (lookup_prefix_sym): New function.
5412
1c5cb38e
DC
54132003-02-04 David Carlton <carlton@math.stanford.edu>
5414
5415 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
5416 FLOAT_COERCION_BADNESS.
5417 * gdbtypes.c (rank_one_type): Replace all uses of
5418 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
5419
0cf824c9
JB
54202003-02-04 Jim Blandy <jimb@redhat.com>
5421
5422 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
5423 section, let dwarf_macinfo_section point to it, not
5424 dwarf_loc_section.
5425
a2d356b0
DJ
54262003-02-04 Daniel Jacobowitz <drow@mvista.com>
5427
5428 Pointed out by Anton Blanchard <anton@samba.org>.
5429 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
5430 (ppc_linux_at_sigtramp_return_path): Use it.
5431
2de7ced7
DJ
54322003-02-04 Daniel Jacobowitz <drow@mvista.com>
5433
5434 * defs.h (streq): Add prototype.
5435 * utils.c (streq): New function.
5436
5437 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
5438 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
5439 * mdebugread.c (new_symbol): Likewise.
5440 * stabsread.c (define_symbol): Likewise.
5441 * coffread.c (process_coff_symbol): Likewise.
5442 * dwarfread.c (new_symbol): Likewise.
5443
5444 * minsyms.c (prim_record_minimal_symbol_and_info): Use
5445 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
5446 here.
5447 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
5448 SYMBOL_INIT_DEMANGLED_NAME.
5449 * objfiles.c: Include "hashtab.h".
5450 (allocate_objfile): Call htab_set_functions_ex for the
5451 demangled_names_hash.
5452 (free_objfile): Call htab_delete for the demangled_names_hash.
5453 * objfiles.h (struct htab): Add declaration.
5454 (struct objfile): Add demangled_names_hash.
5455 * symfile.c: Include "hashtab.h".
5456 (reread_symbols): Call htab_delete for the demangled_names_hash.
5457 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
5458 SYMBOL_NAME in the bcache.
5459 * symtab.c: Include "hashtab.h". Update comments.
5460 (create_demangled_names_hash, symbol_set_names): New functions.
5461 (symbol_find_demangled_name): New function, broken out from
5462 symbol_init_demangled_names.
5463 (symbol_init_demangled_names): Use it.
5464 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
5465 (SYMBOL_SET_NAMES): New macro.
5466 (symbol_set_names): Add prototype.
5467
15831452
JB
54682003-02-03 Jim Blandy <jimb@redhat.com>
5469
5470 Use a single, consistent representation for an empty minimal
5471 symbol table in an objfile.
5472 * objfiles.c (terminate_minimal_symbol_table): New function.
5473 (allocate_objfile): Call it.
5474 * objfiles.h (terminate_minimal_symbol_table): New declaration.
5475 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
5476 non-NULL.
5477 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
5478 objfile has minimal symbols, compare minimal_symbol_count to zero,
5479 instead of comparing msymbols with NULL.
5480 * objfiles.c (have_minimal_symbols): Same.
5481 * solib-sunos.c (solib_add_common_symbols): Call
5482 terminate_minimal_symbol_table.
5483 * symfile.c (reread_symbols): Same.
5484
ffc65945
KB
54852003-02-03 Kevin Buettner <kevinb@redhat.com>
5486
5487 * s390-tdep.c (s390_address_class_type_flags)
5488 (s390_address_class_type_flags_to_name)
5489 (s390_address_class_name_to_type_flags): New functions.
5490 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
5491 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
5492
f211c6d4
MS
54932003-02-03 Michael Snyder <msnyder@redhat.com>
5494
5495 * arm-tdep.c: Fix spell-o in comment.
5496
659b0389
ML
54972003-02-03 Michal Ludvig <mludvig@suse.cz>
5498
5499 * dwarf2cfi.c (pointer_encoding): Added new parameter.
5500 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
5501 error messages to contain BFD filename.
5502
3b31d625
EZ
55032003-02-02 Elena Zannoni <ezannoni@redhat.com>
5504
997b089a 5505 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
5506 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
5507 (do_mixed_source_and_assembly): Use
5508 make_cleanup_ui_out_tuple_begin_end and
5509 make_cleanup_ui_out_tuple_begin_end.
5510 (do_mixed_source_and_assembly): Ditto.
5511 * thread.c (do_captured_list_thread_ids): Ditto.
5512 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
5513 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
5514 ui_out_tuple_end): Delete prototypes.
5515 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
5516 ui_out_list_end, ui_out_tuple_end): Delete.
5517
5518 From Kevin Buettner <kevinb@redhat.com>:
5519 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
5520 * ui-out.c (make_cleanup_ui_out_table_begin_end)
5521 (do_cleanup_table_end): New functions.
5522 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
5523 Use cleanups to invoke_ui_out_tuple_end().
5524 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
5525 * cli/cli-setshow.c (cmd_show_list): Use
5526 make_cleanup_ui_out_tuple_begin_end.
5527
5b181d62
AC
55282003-02-02 Andrew Cagney <ac131313@redhat.com>
5529
5530 * frame.c (frame_unwind_register): New function.
5531 (frame_unwind_unsigned_register): Use.
5532 (frame_unwind_signed_register): Use.
5533 (frame_read_register): New function.
5534 * frame.h (frame_unwind_register): Declare.
5535 (frame_read_register): Declare.
5536
5537 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
5538 and frame_unwind_register instead of read_memory, write_register
5539 and deprecated_write_register_bytes.
5540
5f601589
AC
55412003-02-02 Andrew Cagney <ac131313@redhat.com>
5542
5543 * frame.h: Note that namelen can be negative.
5544 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
5545 NAME's length.
5546
5547 * NEWS: Mention that the d10v's `regs' command is deprecated.
5548 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
5549 (d10v_print_registers_info): New function.
5550 (show_regs): Call d10v_print_registers_info.
5551 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
5552
6a3fe0a4
MK
55532003-02-02 Mark Kettenis <kettenis@gnu.org>
5554
5555 * stack.c (print_frame_info): Restore call to annotate_frame_begin
5556 lost in the previous patch.
5557
075559bc
AC
55582003-02-01 Andrew Cagney <ac131313@redhat.com>
5559
5560 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
5561 * stack.c (print_frame_info_base): Output complete FRAME tuple
5562 for synthesized frames.
075559bc 5563
6789195b
AC
55642003-02-02 Andrew Cagney <ac131313@redhat.com>
5565
5566 * mips-nat.c (zerobuf): Delete.
5567 (fetch_inferior_registers): Alloc local zerobuf.
5568 (fetch_core_registers): Alloc local zerobuf.
5569 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
5570 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
5571 * thread-db.c (thread_db_store_registers): Ditto.
5572 * sh-tdep.c (sh_do_register): Ditto.
5573 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
5574 * remote-sim.c (gdbsim_store_register): Ditto.
5575 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5576 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5577 * monitor.c (monitor_supply_register): Ditto.
5578 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
5579 * mips-nat.c (fetch_inferior_registers): Ditto.
5580 * m68klinux-nat.c (fetch_register): Ditto.
5581 * lynx-nat.c (fetch_inferior_registers): Ditto.
5582 (fetch_inferior_registers): Ditto.
5583 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
5584 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5585 (hpux_thread_store_registers): Ditto.
5586 * hppah-nat.c (fetch_register): Ditto.
5587 * hppab-nat.c (fetch_register): Ditto.
5588 * hppa-tdep.c (pa_register_look_aside): Ditto.
5589 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
5590 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
5591
e669114a
AC
55922003-02-01 Andrew Cagney <ac131313@redhat.com>
5593
5594 * gdbarch.sh: Explictly specify all method levels. When a
5595 variable with an empty level, provide a non-multi-arch default.
5596 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
5597 * gdbarch.h: Re-generate.
5598 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
5599 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
5600
9a043c1d
AC
56012003-02-01 Andrew Cagney <ac131313@redhat.com>
5602
5603 * defs.h (host_pointer_to_address): Delete declaration.
5604 (address_to_host_pointer): Delete declaration.
5605 * utils.c (host_pointer_to_address): Delete function.
5606 (address_to_host_pointer): Delete function.
5607 * procfs.c (procfs_address_to_host_pointer): New function.
5608 * procfs.c (proc_set_watchpoint): Use.
5609 (procfs_can_use_hw_breakpoint): Update comments.
5610 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
5611 (som_solib_add): Use.
5612 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
5613 * hppa-tdep.c (unwind_command): Use.
5614
7ca9f392
AC
56152003-02-01 Andrew Cagney <ac131313@redhat.com>
5616
94bbfd30
AC
5617 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
5618 strlen d_name.
5619
7ca9f392
AC
5620 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
5621 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
5622 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
5623 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
5624 (define_symbol): Update.
5625 * symfile.c (generic_load): Remove references to nindy.
5626 * symtab.c: Remove references to nindy.
5627
31a85ea2
AC
56282003-02-01 Andrew Cagney <ac131313@redhat.com>
5629
5630 * infcmd.c (print_float_info): Delete code conditional on
5631 FLOAT_INFO.
5632 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
5633 * config/m68k/nm-apollo68b.h: Ditto.
5634 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
5635 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
5636 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
5637
f6e85fc8
MK
56382003-02-01 Mark Kettenis <kettenis@gnu.org>
5639
6015b6a0
MK
5640 * config/i386/tm-i386os9k.h: Removed.
5641
f7a30bdf
MK
5642 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
5643 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
5644 they're identical to i[3456]86-*-sysv* now.
5645 * config/i386/i386v32.mh: Removed.
5646 * config/i386/xm-i386v32.h: Removed.
5647 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
5648
28d52111
MK
5649 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
5650
4d3f6bce
MK
5651 * config/i386/i386dgux.mh: Removed.
5652 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
5653
f6e85fc8
MK
5654 * configure.in: Fix typo.
5655 * configure: Regenerated.
5656
53955967
DC
56572003-01-31 David Carlton <carlton@math.stanford.edu>
5658
5659 * dwarf2read.c (dwarf2_locate_sections): Set
5660 dwarf_ranges_section.
5661
b1364885
AC
56622003-01-31 Andrew Cagney <ac131313@redhat.com>
5663
8dbb1c65
AC
5664 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
5665 * utils.c: Update comments documenting legitimate uses of PTR.
5666
8731e58e
AC
5667 * utils.c: Re-indent.
5668
b1364885
AC
5669 * config/djgpp/fnchange.lst: Delete nindy files.
5670 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
5671 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
5672 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
5673 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
5674 * nindy-share/README, nindy-share/Onindy.c: Delete files.
5675 * nindy-tdep.c, nindy-share/Makefile: Delete files.
5676 * Makefile.in (init.c): Remove nindy references.
5677 (saber_gdb): Delete rule.
5678 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
5679 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
5680 and a68v-nat.c.
5681 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
5682 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
5683 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
5684 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
5685 nindy-share/stop.h.
5686 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
5687 * saber.suppress: Delete file.
5688
086df311
DJ
56892003-01-31 Daniel Jacobowitz <drow@mvista.com>
5690
5691 * dbxread.c (stabs_data): New static variable.
5692 (fill_symbuf): Support an in-memory buffer for stabs data.
5693 (stabs_seek): New function.
5694 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
5695 (read_ofile_symtab): Use stabs_seek.
5696 (elfstab_build_psymtabs): Take an asection* instead of
5697 an offset and size. Relocate the stabs data if necessary.
5698 Save the section* for dbx_psymtab_to_symtab.
5699 * dwarf2read.c: Add section variables for each debug section.
5700 (dwarf2_locate_sections): Fill them in.
5701 (dwarf2_read_section): Take an asection* argument.
5702 Relocate the section contents if necessary.
5703 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
5704 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
5705 it to dwarf2_read_section.
5706 (dwarf2_build_frame_info): Update callers.
5707 * elfread.c (elf_symfile_read): Update call to
5708 elfstab_build_psymtabs.
5709 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
5710 (DBX_STAB_SECTION): New macro.
5711 * stabsread.h (elfstab_build_psymtabs): Update prototype.
5712 * symfile.c (symfile_dummy_outputs): New function.
5713 (symfile_relocate_debug_section): New function.
5714 * symfile.h (symfile_relocate_debug_section): Add prototype.
5715
87d1b352
RH
57162003-01-31 Richard Henderson <rth@redhat.com>
5717
5718 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
5719 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
5720 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
5721 * alpha-tdep.c (alpha_register_name): Add "unique".
5722 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
5723 (ALPHA_UNIQUE_REGNUM): New.
5724 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
5725
c48861fb
AC
57262003-01-31 Andrew Cagney <ac131313@redhat.com>
5727
5728 * README: Remove reference to Ericsson 1800 monitor.
5729 * Makefile.in (remote-es.o): Delete rule.
5730 (ALLDEPFILES): Delete remote-es.c.
5731 * remote-es.c: Delete file.
5732 * config/m68k/es1800.mt: Delete file.
5733 * config/djgpp/fnchange.lst: Update.
5734 * configure.tgt: Delete m68*-ericsson-* target.
5735
d764a824
AF
57362003-01-31 Adam Fedor <fedor@gnu.org>
5737
5738 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
5739 Remove duplicate/shadowing variable of same name.
5740
fe36c4f4
JB
57412003-01-30 Jim Blandy <jimb@redhat.com>
5742
5743 * symfile.c (find_separate_debug_file): Assert that the objfile's
5744 directory name we compute ends with a slash, and then assume that
5745 that's so everywhere we use it.
5746
cb741690
DJ
57472003-01-30 Daniel Jacobowitz <drow@mvista.com>
5748
5749 * valops.c (value_assign): Flush frame cache after stores to memory
5750 also.
5751
96ee5227
AC
57522003-01-30 Andrew Cagney <ac131313@redhat.com>
5753
5754 * Makefile.in (mon960-rom.o): Delete rule.
5755 * mon960-rom.c: Delete file.
5756
7f6104a9
AC
57572003-01-30 Andrew Cagney <ac131313@redhat.com>
5758
5759 * d10v-tdep.c: Include "frame-unwind.h".
5760 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
5761 list.
5762 (next_addr, uses_frame): Delete.
5763 (struct d10v_unwind_cache): Define.
5764 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
5765 Use info instead of next_addr and uses_frame globals.
5766 (d10v_frame_init_saved_regs): Delete function.
5767 (d10v_init_extra_frame_info): Delete function.
5768 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
5769 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
5770 init_frame_pc or frame_saved_pc.
5771 (d10v_pop_frame): Delete function.
5772 (do_d10v_pop_frame): Delete function.
5773 (d10v_frame_chain): Delete function.
5774 (d10v_frame_chain_valid): Delete function.
5775 (d10v_frame_pc_unwind): New function.
5776 (d10v_frame_id_unwind): New function.
5777 (saved_regs_unwinder): New function.
5778 (d10v_frame_register_unwind): New function.
5779 (d10v_frame_pop): New function.
5780 (d10v_frame_unwind): New variable.
5781 (d10v_frame_p): New function.
5782 (d10v_frame_saved_pc): Delete function.
5783 * Makefile.in (d10v-tdep.o): Update dependencies.
5784
cad2e848
JB
57852003-01-30 J. Brobecker <brobecker@gnat.com>
5786
5787 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
5788 causing some regressions due to a change in the default value
5789 for this macro.
5790
af34e669
DJ
57912003-01-29 Richard Henderson <rth@redhat.com>
5792 Elena Zannoni <ezannoni@redhat.com>
5793 Daniel Jacobowitz <drow@mvista.com>
5794
5795 Fix PR gdb/961.
5796 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
5797 variables.
5798 (RANGES_SECTION): New.
5799 (dwarf_ranges_buffer): New variable.
5800 (struct comp_unit_head): Add member "die".
5801 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
5802 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
5803 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
5804 (dwarf2_locate_sections): Likewise.
5805 (dwarf2_build_psymtabs): Read .debug_ranges.
5806 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
5807 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
5808 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
5809 Look for DW_AT_ranges and return the bounding box.
5810
baa93fa6
CF
58112003-01-29 Brian Ford <ford@vss.fsi.com>
5812
5813 * win32-nat.c (cygwin_pid): Removed as unused.
5814 (child_attach): Try fall back to Cygwin pid.
5815
c63f977f
JB
58162003-01-29 Jim Blandy <jimb@redhat.com>
5817
5818 * objfiles.h (struct objfile): Doc fix.
5819
d62d1979
AC
58202003-01-29 Andrew Cagney <ac131313@redhat.com>
5821
5822 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
5823 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
5824 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
5825 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
5826 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
5827 (FRAME_SAVED_PC): Change to a function with predicate.
5828 * gdbarch.h, gdbarch.c: Re-generate.
5829
1ae18a04
AC
58302003-01-28 Andrew Cagney <ac131313@redhat.com>
5831
52287340
AC
5832 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
5833
1ae18a04
AC
5834 * complaints.c (complain): Delete function.
5835 * complaints.h (struct deprecated_complaint): Delete definition.
5836 (complain): Delete declaration.
5837
f2c16bd6
KB
58382003-01-28 Kevin Buettner <kevinb@redhat.com>
5839
5840 * mips-tdep.c (mips_init_extra_frame_info): Return early for
5841 dummy frames.
5842
a94dd1fd
AC
58432003-01-27 Andrew Cagney <ac131313@redhat.com>
5844
5845 * sentinel-frame.h, sentinel-frame.c: New files.
5846 * Makefile.in (frame.o): Update dependencies.
5847 (SFILES): Add sentinel-frame.c.
5848 (sentinel_frame_h): Define.
5849 (COMMON_OBS): Add sentinel-frame.o.
5850 (sentinel-frame.o): Specify dependencies.
5851 * frame.c: Include "sentinel-frame.h".
5852 (frame_register_unwind): Rewrite assuming that there is always a a
5853 ->next frame.
5854 (frame_register, generic_unwind_get_saved_register): Ditto.
5855 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
5856 (create_sentinel_frame, unwind_to_current_frame): New functions.
5857 (get_current_frame): Rewrite using create_sentinel_frame and
5858 unwind_to_current_frame. When possible, always create a frame.
5859 (create_new_frame): Set next to the sentinel frame.
5860 (get_next_frame): Rewrite. Don't go below the level 0 frame.
5861 (deprecated_update_frame_pc_hack): Update the next frame's PC and
5862 ID cache when necessary.
5863 (frame_saved_regs_id_unwind): Use frame_relative_level.
5864 (deprecated_generic_get_saved_register): Use frame_relative_level,
5865 get_frame_saved_regs, get_frame_pc, get_frame_base and
5866 get_next_frame.
5867 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
5868 frame_register.
5869
5378adc4
DJ
58702003-01-27 Daniel Jacobowitz <drow@mvista.com>
5871
5872 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
5873
51ee2ddc
DJ
58742003-01-27 Daniel Jacobowitz <drow@mvista.com>
5875
5876 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
5877 (maintenance_set_profile_cmd): Use error () instead of warning ().
5878
d9feb4e7
DJ
58792003-01-27 Daniel Jacobowitz <drow@mvista.com>
5880
5881 * configure.in: Check that -pg works if using --enable-profiling.
5882 Check for monstartup and _mcleanup regardless of --enable-profiling.
5883 * maint.c: Check for monstartup and _mcleanup before using them.
5884 * config.in: Regenerated.
5885 * configure: Regenerated.
5886
2d188dd3
NC
58872003-01-24 Nick Clifton <nickc@redhat.com>
5888
5889 * Add sh2e support:
5890
5891 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
5892
5893 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
5894 (sh2e_show_regs): New.
5895 (sh_gdbarch_init): Handle bfd_mach_sh2e.
5896 * config/sh/tm-sh.h: Added sh2e to comments.
5897
cb3c37b2
JB
58982003-01-23 Jim Blandy <jimb@redhat.com>
5899
5900 * symfile.c (syms_from_objfile): Don't print the "(no debugging
5901 symbols found)" message here; we haven't checked for a separate
5902 debug info file yet, so we don't know yet.
5903 (symbol_file_add_with_addrs_or_offsets): Print it here, after
5904 we've looked everywhere. Also, there's no need to print a special
5905 message when we're loading the separate debug info file: the one
5906 symbol_file_add prints is fine.
5907
5b5d99cf
JB
59082003-01-23 Alexander Larsson <alexl@redhat.com>
5909 Jim Blandy <jimb@redhat.com>
5910
5911 Add support for executables whose debug info has been separated
5912 out into a separate file, leaving only a link behind.
5913 * objfiles.h (struct objfile): New fields: separate_debug_objfile
5914 and separate_debug_objfile_backlink.
5915 (put_objfile_before): New declaration.
5916 * symfile.c: #include "filenames.h".
5917 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
5918 debug info in a separate file, read that, too. Save the addrs
5919 argument, so we can use it again to read the separated debug info;
5920 syms_from_objfile modifies the table we pass it.
5921 (reread_symbols): After re-reading an objfile, call
5922 reread_separate_symbols to refresh its separate debug info
5923 objfile, if it has one.
5924 (reread_separate_symbols, find_separate_debug_file,
5925 get_debug_link_info, separate_debug_file_exists): New functions.
5926 (debug_file_directory): New global var.
5927 (_initialize_symfile): Initialize debug_file_directory, and
5928 provide the new `set debug-file-directory' command to let the user
5929 change it.
5930 * objfiles.c (free_objfile): If this objfile has its debug info in
5931 a separate objfile, free that one too. If this is itself a
5932 separate debug info objfile, clear our parent's backlink.
5933 (put_objfile_before): New function.
5934 * utils.c (gnu_debuglink_crc32): New function.
5935 * defs.h (gnu_debuglink_crc32): New declaration.
5936 * Makefile.in (symfile.o): Note dependency on "filenames.h".
5937 * configure.in: Handle --with-separate-debug-dir config option.
5938 * acinclude.m4 (AC_DEFINE_DIR): New macro.
5939 * acconfig.h (DEBUGDIR): New macro.
5940 * configure, aclocal.m4, config.in: Regenerated.
5941
7e8580c1
JB
59422003-01-22 Jim Blandy <jimb@redhat.com>
5943
7904e09f
JB
5944 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
5945 like the old symbol_file_add, but taking new arguments: you can
5946 now pass in either a `struct section_addr_info' list to say where
5947 each section is loaded, or a `struct section_offsets' table. Pass
5948 these new arguments through to syms_from_objfile as appropriate.
5949 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
5950 with the appropriate quiescent values for the new arguments.
5951
7e8580c1
JB
5952 * symfile.c: #include "gdb_assert.h".
5953 (syms_from_objfile): Add the ability to pass in a section offset
5954 table directly, as an alternative to the section_addr_info table.
5955 Document arguments better.
5956 (symbol_file_add): Pass extra arguments to syms_from_objfile.
5957 * symfile.h (syms_from_objfile): Update declaration.
5958 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
5959 syms_from_objfile.
5960 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
5961
d28f9cdf
DJ
59622003-01-22 Daniel Jacobowitz <drow@mvista.com>
5963
5964 Original patch by Tom Tromey <tromey@cygnus.com> and
5965 Jason Molenda <jmolenda@apple.com>.
5966 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
5967 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
5968 * NEWS: Mention profiling.
5969 * configure.in (--enable-gdbtk): Fix typo.
5970 (--enable-profiling): New. Set PROFILE_CFLAGS.
5971 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
5972 Fill in function.
5973 (profiling_state): New variable.
5974 (mcleanup_wrapper): New function.
5975 (_initialize_maint): Remove NOTYET, fix call to
5976 add_setshow_boolean_cmd for "maint set profile".
5977 * configure: Regenerated.
5978
df21e465
MH
59792003-01-21 Martin M. Hunt <hunt@redhat.com>
5980
5981 * Makefile.in (install-gdbtk): Install PNG images too.
5982
73c1f219
AC
59832003-01-21 Andrew Cagney <ac131313@redhat.com>
5984
5985 * exec.c (text_start): Delete global variable.
5986 (exec_file_attach): Make text_start local to the function.
5987 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
5988 * valops.c (hand_function_call): Delete code that handles
5989 BEFORE_TEXT_END and AFTER_TEXT_END.
5990 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
5991 of CALL_DUMMY_LOCATION.
5992 * gdbarch.c: Regenerate.
5993 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
5994 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
5995 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
5996 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
5997 (text_end): Delete extern declaration.
5998
eb4f72c5
AC
59992003-01-21 Andrew Cagney <ac131313@redhat.com>
6000
6001 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
6002 * blockframe.c (backtrace_below_main): Move to "frame.c".
6003 (frame_chain_valid): Delete check for backtrace_below_main.
6004 (_initialize_blockframe): Delete initialization, move ``set
6005 backtrace-below-main'' command to "frame.c".
6006 (do_flush_frames_sfunc): Delete function.
6007 * frame.c: Include "command.h" and "gdbcmd.h".
6008 (frame_type_from_pc): New function.
6009 (create_new_frame): Use frame_type_from_pc.
6010 (legacy_get_prev_frame): New function.
6011 (get_prev_frame): Rewrite. When an old style frame, call
6012 legacy_get_prev_frame. Otherwize, unwind the PC first.
6013 (_initialize_frame): Add ``set backtrace-below-main'' command.
6014 * Makefile.in (frame.o): Update dependencies.
6015
778ce8cc
AC
60162003-01-19 Andrew Cagney <ac131313@redhat.com>
6017
6018 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
6019 DEPRECATED_REGISTERS_INFO.
6020
01c193c8
AC
60212003-01-19 Andrew Cagney <ac131313@redhat.com>
6022
6023 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
6024 Maintainers'. Update `Various Maintainers'.
6025
dedc2a2b
AC
60262003-01-19 Andrew Cagney <ac131313@redhat.com>
6027
6028 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
6029 * gdbarch.sh (POP_FRAME): Change to function with predicate.
6030 Suppress actual parameters when `-'.
6031 * gdbarch.h, gdbarch.c: Regenerate.
6032
b7261c70
AC
60332003-01-19 Andrew Cagney <ac131313@redhat.com>
6034
6035 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
6036 code handling dummy frames.
6037
dbe9fe58
AC
60382003-01-19 Andrew Cagney <ac131313@redhat.com>
6039
6040 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
6041 (struct frame_unwind): Add field pop.
6042 * frame.h (frame_pop): Declare.
6043 * frame.c (frame_saved_regs_pop): New function.
6044 (trad_frame_unwinder): Add frame_saved_regs_pop.
6045 (frame_pop): New function.
6046 * dummy-frame.c (dummy_frame_pop): New function.
6047 (discard_innermost_dummy): New function.
6048 (generic_pop_dummy_frame): Use discard_innermost_dummy.
6049 (dummy_frame_unwind): Add dummy_frame_pop.
6050 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
6051 * valops.c (hand_function_call): Ditto.
6052 * stack.c (return_command): Ditto.
6053
570b8f7c
AC
60542003-01-18 Andrew Cagney <ac131313@redhat.com>
6055
6056 * cris-tdep.c: Fix function declaration indentation.
6057 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
6058 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
6059 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
6060 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
6061 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
6062 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
6063
60642003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
6065
6066 * README (Unpacking and Installation -- quick overview):
6067 Warn against ".../gdb-5.3/gdb/configure".
6068
494cca16
AC
60692003-01-18 Andrew Cagney <ac131313@redhat.com>
6070
6071 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
6072 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
6073 (struct frame_unwind): Declare opaque.
6074 (dummy_frame_p): Declare function.
6075 * dummy-frame.c (dummy_frame_id_unwind): Make static.
6076 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
6077 * dummy-frame.c: Include "frame-unwind.h".
6078 (dummy_frame_p): New function.
6079 (dummy_frame_unwind): New variable.
6080 * frame.c: Include "frame-unwind.h".
6081 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
6082 to use the new unwind field.
6083 (set_unwind_by_pc): Delete function.
6084 (create_new_frame, get_prev_frame): Set unwind field using
6085 frame_unwind_find_by_pc.
6086 (trad_frame_unwind, trad_frame_unwinder): New variables.
6087 * frame.h (trad_frame_unwind): Declare variable.
6088 (frame_id_unwind_ftype): Delete declaration.
6089 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
6090 (struct frame_unwind): Declare opaque.
6091 (struct frame_info): Replace the fields id_unwind, pc_unwind and
6092 register_unwind with a single unwind pointer.
6093 * frame-unwind.h, frame-unwind.c: New files.
6094 * Makefile.in (SFILES): Add frame-unwind.c.
6095 (frame_unwind_h): Define.
6096 (COMMON_OBS): Add frame-unwind.o.
6097 (frame-unwind.o): Specify dependencies.
6098 (frame.o, dummy-frame.o): Update dependencies.
6099
4efb68b1
AC
61002003-01-18 Andrew Cagney <ac131313@redhat.com>
6101
6102 * ada-valprint.c: Eliminate PTR.
6103 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
6104 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
6105 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
6106 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
6107 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
6108 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
6109 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
6110
a84d24ee
AC
61112003-01-17 Andrew Cagney <ac131313@redhat.com>
6112
762f08a3
AC
6113 * main.c (captured_main): Don't use PTR.
6114 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
6115 * gdbtypes.c (lookup_primitive_typename): Ditto.
6116 (lookup_struct_elt_type): Ditto.
6117 * f-valprint.c (info_common_command): Ditto.
6118 (list_all_visible_commons): Ditto.
6119 * jv-typeprint.c (java_type_print_base): Ditto.
6120
a84d24ee
AC
6121 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
6122 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
6123 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
6124 i386-interix-nat.c and i386-interix-tdep.c. Rename
6125 m68klinux-nat.c and m68klinux-tdep.c. Rename
6126 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
6127 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
6128 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
6129 * main.c (captured_main): Use xfree, not free.
6130
c170fb60
AC
61312003-01-16 Andrew Cagney <ac131313@redhat.com>
6132
6133 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
6134 ID back using a parameter.
6135 * frame.c (frame_id_unwind): Update call.
6136 (frame_saved_regs_id_unwind): Update.
6137 * dummy-frame.c (dummy_frame_id_unwind): Update function.
6138 * dummy-frame.h (struct frame_id): Add opaque declaration.
6139 (dummy_frame_id_unwind): Update declaration.
6140
867f3898
AC
61412003-01-15 Andrew Cagney <ac131313@redhat.com>
6142
6143 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
6144
40622be8 61452003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 6146
40622be8 6147 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 6148
ae66c1fc
EZ
61492003-01-14 Elena Zannoni <ezannoni@redhat.com>
6150
997b089a 6151 Fix PR gdb/898
ae66c1fc
EZ
6152 * breakpoint.c (until_break_command): Add new argument. Use it to
6153 decide whether to stop only at the current frame or not.
6154 * breakpoint.h (until_break_command): Update prototype.
6155 * infcmd.c (until_command): Add new argument to until_break_command
6156 call.
6157 (advance_command): New function.
6158 (_initialize_infcmd): Update help string for 'until' command.
6159 Add new 'advance' command.
6160
a04257e6
DC
61612003-01-14 David Carlton <carlton@math.stanford.edu>
6162
6163 * linespec.c (decode_line_1): Normalize comments.
6164 (set_flags): Ditto.
6165 (locate_first_half): Ditto.
6166 (decode_compound): Ditto.
6167 (symtab_from_filename): Ditto.
6168 (decode_all_digits): Ditto.
6169 (decode_dollar): Ditto.
6170 (find_methods): Ditto.
6171 (find_toplevel_char): Ditto.
6172
1bac305b
AC
61732003-01-13 Andrew Cagney <ac131313@redhat.com>
6174
6175 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
6176 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
6177 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
6178 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
6179 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
6180 * language.c, language.h, m32r-tdep.c: Update copyright.
6181 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
6182 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
6183 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
6184 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
6185 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
6186 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
6187
25caa7a8
EZ
61882003-01-13 Elena Zannoni <ezannoni@redhat.com>
6189
6190 * stabsread.h (process_later, resolve_cfront_continuation):
6191 Obsolete.
6192 Update copyright years.
6193 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
6194 Update copyright year.
6195 * dbxread.c(struct cont_elem): Obsolete.
6196 (process_later, process_now): Obsolete functions.
6197 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
6198 Update copyright year.
6199 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
6200 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
6201 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
6202 (parse_partial_symbols): Obsolete cfront support.
6203 * stabsread.c
6204 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
6205 macros.
6206 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
6207 read_cfront_baseclasses, read_cfront_member_functions,
6208 resolve_cfront_continuation,read_cfront_static_fields,
6209 copy_cfront_struct_fields): Obsolete functions.
6210 (define_symbol, read_one_struct_field): Obsolete cfront support.
6211 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
6212 Update Copyright year.
6213
7789c6f5
EZ
62142003-01-13 Elena Zannoni <ezannoni@redhat.com>
6215
6216 * stack.c (print_frame_info, print_stack_frame_base_stub,
6217 print_stack_frame_base, show_and_print_stack_frame_stub,
6218 show_and_print_stack_frame, print_only_stack_frame_stub,
6219 print_only_stack_frame): Delete functions.
6220 (print_stack_frame_stub): Call print_frame_info instead of
6221 print_frame_info_base.
6222 (print_frame_info_base): Rename to print_frame_info.
6223 (backtrace_command_1): Call print_frame_info, instead of
6224 print_frame_info_base.
6225 (current_frame_command): Call print_stack_frame, instead of
6226 print_only_stack_frame.
6227 (frame_command): Call print_stack_frame, instead of
6228 show_and_print_stack_frame.
6229 (up_command): Ditto.
6230 (down_command): Ditto.
6231 * frame.h (print_only_stack_frame): Delete prototype.
6232 * infrun.c (normal_stop): Call print_stack_frame, instead of
6233 show_and_print_stack_frame.
6234 * thread.c (info_threads_command): Call print_stack_frame, instead
6235 of print_only_stack_frame.
6236
3f5a3016
AC
62372003-01-13 Andrew Cagney <ac131313@redhat.com>
6238
d99ba314
AC
6239 * README (Graphical interface to GDB): Update URL. Point at
6240 gdb/links/.
6241
3f5a3016
AC
6242 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
6243 version match.
6244
083ae935
DJ
62452003-01-13 Daniel Jacobowitz <drow@mvista.com>
6246
6247 * symtab.c (find_pc_sect_line): Don't consider end-of-function
6248 lines.
6249
5365276c
DJ
62502003-01-13 Daniel Jacobowitz <drow@mvista.com>
6251
6252 * thread-db.c (attach_thread): Prototype.
6253 (struct private_thread_info): Remove lwpid. Add thread handle (th),
6254 thread information (ti), and valid flags (th_valid, ti_valid).
6255 (attach_thread): Move target_pid_to_str call to after the thread
6256 is added to GDB's list. Initialize the cache.
6257 (thread_get_info_callback, thread_db_map_id2thr)
6258 (thread_db_get_info): New functions.
6259 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
6260 (thread_db_store_registers, thread_db_thread_alive)
6261 (thread_db_get_thread_local_address): Use them.
6262 (thread_db_pid_to_str): Likewise. Return "Missing" instead
6263 of calling error() for threads in unknown state.
6264
6265 (clear_lwpid_callback): New function.
6266 (thread_db_resume): Use it to clear the cache.
6267
9fc30b6b
DJ
62682003-01-13 Daniel Jacobowitz <drow@mvista.com>
6269
6270 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
6271 (resume_callback): Remove dead code.
6272
8f871025
AC
62732003-01-13 Andrew Cagney <ac131313@redhat.com>
6274
6275 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
6276 predicate.
6277 * gdbarch.h, gdbarch.c: Regenerate.
6278 * stack.c (frame_info): Only initialize the saved registers when
6279 FRAME_INIT_SAVED_REGS_P.
6280 * frame.c (frame_saved_regs_register_unwind): Assert
6281 FRAME_INIT_SAVED_REGS_P.
6282 (deprecated_generic_get_saved_register): Ditto.
6283
3f565f1e
DJ
62842003-01-13 Daniel Jacobowitz <drow@mvista.com>
6285
6286 * source.c (openp): Squelch warning about "filename".
6287
072b1022
DJ
62882003-01-13 Daniel Jacobowitz <drow@mvista.com>
6289
6290 * source.c (openp): If the file does not exist don't necessarily
6291 search the path.
6292
973ccf8b
DJ
62932003-01-13 Daniel Jacobowitz <drow@mvista.com>
6294
6295 Fix PR gdb/872.
6296 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
6297 (integer_types_same_name_p): New function.
6298 (rank_one_type): Use it.
6299 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
6300
030292b7
DJ
63012003-01-13 Daniel Jacobowitz <drow@mvista.com>
6302
6303 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
6304 variables.
6305 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
6306 * configure.in: Add --with-sysroot.
6307 * configure: Regenerated.
6308 * main.c (gdb_sysroot): New variable.
6309 (captured_main): Initialize gdb_sysroot.
6310 * defs.h (gdb_sysroot): New extern declaration.
6311 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
6312
afb5d334
MC
63132003-01-12 Michael Chastain <mec@shout.net>
6314
6315 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
6316
751ceeb4
MC
63172003-01-12 Michael Chastain <mec@shout.net>
6318
6319 * top.c (print_gdb_version): Bump copyright year to 2003.
6320
94cd26f8
DC
63212003-01-12 David Carlton <carlton@bactrian.org>
6322
6323 * linespec.c (symtab_from_filename): Rename variable 's' to
6324 'file_symtab'.
6325
1ce79225
AC
63262003-01-12 Andrew Cagney <ac131313@redhat.com>
6327
6328 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
6329 dummy frame.
6330 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
6331
fa1fd571
AC
63322003-01-12 Andrew Cagney <ac131313@redhat.com>
6333
6334 * d10v-tdep.c: Include "gdb_assert.h".
6335 (d10v_store_return_value): Rewrite to match current interface.
6336 (d10v_extract_struct_value_address): Ditto.
6337 (d10v_extract_return_value): Ditto.
6338 (d10v_gdbarch_init): Set store_restore_value,
6339 extract_struct_value_address and extract_return_value.
6340
68b8d23e
JB
63412003-01-12 J. Brobecker <brobecker@gnat.com>
6342
6343 * hpread.c (set_namestring): New procedure replacing the
6344 SET_NAMESTRING macro.
6345 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
6346 by calls to set_namestring.
6347
63482003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
6349
6350 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
6351 a compilation warning.
6352 (hpread_process_one_debug_symbol): Likewise.
6353
88d262ca
DC
63542003-01-10 David Carlton <carlton@math.stanford.edu>
6355
6356 * linespec.c (decode_line_1): Rename variable 's' to
6357 'file_symtab'.
6358 (decode_all_digits): Rename argument 's' to 'file_symtab'.
6359 (decode_dollar): Ditto.
6360 (decode_variable): Ditto.
6361 (symbol_found): Ditto.
6362
86669319
MC
63632003-01-09 Michael Chastain <mec@shout.net>
6364
6365 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
6366
616a9dc4
CV
63672003-01-07 Corinna Vinschen <vinschen@redhat.com>
6368
6369 * win32-nat.c (set_process_privilege): New function.
6370 (child_attach): Call set_process_privilege() to enable the
6371 SE_DEBUG_NAME user privilege if available in process token.
6372
3269bcfa
JB
63732003-01-10 J. Brobecker <brobecker@gnat.com>
6374
6375 * hpread.c (hpread_process_one_debug_symbol): Fix a small
6376 compilation error in the previous revision.
6377
2b0ee454
DC
63782003-01-09 David Carlton <carlton@math.stanford.edu>
6379
6380 * linespec.c: Update copyright.
6381
b3ba1b44
DJ
63822003-01-09 Daniel Jacobowitz <drow@mvista.com>
6383
6384 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
6385 than inferior_ptid.
6386 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
6387
4ef3f3be
AC
63882003-01-09 Andrew Cagney <ac131313@redhat.com>
6389
479ab5a0
AC
6390 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
6391 Update comments.
6392 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
6393 (frame_saved_regs_zalloc): Update.
6394 (frame_saved_regs_register_unwind): Update.
6395 (create_new_frame): Update.
6396 (get_prev_frame): Update.
6397 (frame_extra_info_zalloc): Update.
6398 (deprecated_get_frame_saved_regs): Update.
6399 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
6400 * cris-tdep.c: Update comment.
6401
bde58177
AC
6402 * somsolib.h: Fix function indentation.
6403 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
6404 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
6405 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
6406 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
6407 * somsolib.c, inftarg.c: Remove assignment in if conditional.
6408
4ef3f3be
AC
6409 * infrun.c (follow_fork): Use ISO C definition.
6410 * expprint.c (print_subexp): Use xfree instead of free.
6411 * charset.c: Include "gdb_string.h" instead of <string.h>.
6412 (register_iconv_charsets): Use ISO C definition.
6413 (host_charset, target_charset): Ditto.
6414 * Makefile.in (charset.o): Update dependencies.
6415 (mi-cmd-env.o): Update dependencies.
6416
1c615f7a
AC
64172003-01-08 Andrew Cagney <cagney@redhat.com>
6418
6419 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
6420 get_frame_base.
6421
c9a1dc08
AC
64222003-01-08 Andrew Cagney <ac131313@redhat.com>
6423
6424 * gdb_mbuild.sh: Add --keep option. When specified, keep the
6425 build directories. Save edited gdb output in Mbuild.log. If a
6426 build fails, remove any final GDB executable.
6427
dbad9d94
AC
64282003-01-08 Andrew Cagney <ac131313@redhat.com>
6429
6430 * gdb_mbuild.sh: Edit the output of `maint print architecture'
6431 replacing hex constants with function names and stripping leading
6432 file name directory prefixes.
6433
8d357cca
AC
64342003-01-08 Andrew Cagney <cagney@redhat.com>
6435
6436 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
6437 get_frame_base.
6438
bca02a8a
DC
64392003-01-08 David Carlton <carlton@math.stanford.edu>
6440
6441 * linespec.c (decode_line_1): Move code into decode_variable.
6442 (decode_variable): New function.
6443
7f8ab3a0
AC
64442003-01-08 Andrew Cagney <ac131313@redhat.com>
6445
6446 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
6447
7b5849cc
AC
64482003-01-08 Andrew Cagney <cagney@redhat.com>
6449
6450 * cris-tdep.c (cris_frame_init_saved_regs): Use
6451 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
6452 saved_regs buffer.
6453 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6454 (sh64_nofp_frame_init_saved_regs): Ditto.
6455 (sh_fp_frame_init_saved_regs): Ditto.
6456 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
6457 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
6458 * mcore-tdep.c (analyze_dummy_frame): Ditto.
6459 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
6460
72a5efb3
DJ
64612003-01-08 Daniel Jacobowitz <drow@mvista.com>
6462
6463 * minsyms.c (lookup_minimal_symbol): Update comment.
6464 (lookup_minimal_symbol_text): Update comment. Use the hash table.
6465 (lookup_minimal_symbol_solib_trampoline): Likewise.
6466
11c02a10
AC
64672003-01-08 Andrew Cagney <cagney@redhat.com>
6468
aab3ea25
AC
6469 * d10v-tdep.c (d10v_init_extra_frame_info): Use
6470 frame_relative_level.
6471
da50a4b7
AC
6472 * alpha-tdep.c: Use get_frame_extra_info.
6473 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6474 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
6475 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
6476 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
6477
11c02a10
AC
6478 * alpha-tdep.c: Use get_next_frame.
6479 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6480 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
6481 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
6482 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
6483 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
6484 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
6485 * xstormy16-tdep.c: Ditto.
6486
1e2330ba
AC
64872003-01-07 Andrew Cagney <cagney@redhat.com>
6488
6489 * alpha-tdep.c: Use get_frame_base.
6490 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6491 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
6492 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
6493 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
6494 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
6495 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
6496 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
6497 * config/sparc/tm-sparc.h: Ditto.
6498
2d75187b
AC
64992003-01-07 Andrew Cagney <cagney@redhat.com>
6500
6501 * frame.c (deprecated_get_frame_context): New function.
6502 (deprecated_set_frame_context): New function.
6503 * frame.h (deprecated_get_frame_context): Declare.
6504 (deprecated_set_frame_context): Declare.
6505 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
6506 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
6507
483d36b2
AC
65082003-01-07 Andrew Cagney <cagney@redhat.com>
6509
6510 * frame.c (deprecated_set_frame_next_hack): New function.
6511 (deprecated_set_frame_prev_hack): New function.
6512 * frame.h (deprecated_set_frame_next_hack): Declare.
6513 (deprecated_set_frame_prev_hack): Declare.
6514 * mcore-tdep.c (analyze_dummy_frame): Use
6515 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
6516 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
6517
14e91ac5
DC
65182003-01-07 David Carlton <carlton@math.stanford.edu>
6519
6520 * linespec.c (decode_line_1): Move code into decode_dollar.
6521 (decode_dollar): New function.
6522
b0c6b05c
AC
65232003-01-07 Andrew Cagney <cagney@redhat.com>
6524
6525 * arm-tdep.c (arm_init_extra_frame_info): Use
6526 deprecated_update_frame_base_hack.
6527 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
6528 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
6529 (fix_frame_pointer): Ditto.
6530 (mn10300_analyze_prologue): Ditto.
6531
a00a19e9
AC
65322003-01-07 Andrew Cagney <cagney@redhat.com>
6533
6534 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
6535 extra_info using frame_extra_info_zalloc.
6536 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6537 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
6538 (sh64_init_extra_frame_info): Ditto.
6539 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
6540 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
6541 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
6542 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
6543 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
6544 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
6545 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
6546 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
6547 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
6548 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
6549 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6550 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
6551
6552 * mn10300-tdep.c (analyze_dummy_frame): Use
6553 deprecated_set_frame_extra_info_hack.
6554 * mcore-tdep.c (analyze_dummy_frame): Ditto.
6555
1fb4c65b
JB
65562003-01-07 J. Brobecker <brobecker@gnat.com>
6557
6558 * mdebugread.c (parse_symbol): Skip stProc entries which storage
6559 class is not scText. These do not define "real" procedures.
6560 (parse_partial_symbols): Likewise.
6561
9fe7d6bf
MS
65622003-01-06 Michael Snyder <msnyder@redhat.com>
6563
6564 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
6565
f6c609c4
AC
65662003-01-06 Andrew Cagney <ac131313@redhat.com>
6567
6568 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
6569 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
6570 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
6571 deprecated_frame_xmalloc_with_cleanup.
6572 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
6573 deprecated_frame_xmalloc.
6574 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
6575 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
6576
d995ff4b
AC
65772003-01-06 Andrew Cagney <cagney@redhat.com>
6578
84dc46cb
AC
6579 * x86-64-linux-tdep.c: Include "osabi.h".
6580 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
6581
d995ff4b
AC
6582 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
6583
66140c26
AC
65842003-01-06 Andrew Cagney <cagney@redhat.com>
6585
6586 * MAINTAINERS (Target Instruction Set Architectures): Update
6587 arm-elf. Can be built with -Werror, has been multiarched.
6588
6589 * value.h (unpack_long): Make buffer parameter constant.
6590 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
6591 * scm-lang.h (scm_parse): Ditto.
6592 * defs.h (extract_typed_address, extract_address): Ditto.
6593 (extract_long_unsigned_integer): Ditto.
6594 * inferior.h (unsigned_pointer_to_address): Ditto.
6595 (signed_pointer_to_address): Ditto.
6596 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
6597 * gdbarch.h, gdbarch.c: Regenerate.
6598 * findvar.c (extract_long_unsigned_integer): Update.
6599 (extract_address): Update.
6600 (extract_typed_address): Update.
6601 (unsigned_pointer_to_address): Update.
6602 * values.c (unpack_long): Update.
6603 (unpack_double): Update.
6604 (unpack_pointer): Update.
6605 (unpack_field_as_long): Update.
6606 * d10v-tdep.c (d10v_pointer_to_address): Update.
6607 * avr-tdep.c (avr_pointer_to_address): Update.
6608 * scm-lang.c (scm_unpack): Update.
6609 * findvar.c (signed_pointer_to_address): Update.
6610
b089b3da
ML
66112003-01-06 Michal Ludvig <mludvig@suse.cz>
6612
6613 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
6614 since it is in i386-tdep.c.
6615
aff87235
JB
66162003-01-06 J. Brobecker <brobecker@gnat.com>
6617
6618 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
6619 failure introduced in the previous change.
6620
34f5e845
MC
66212003-01-05 Michael Chastain <mec@shout.net>
6622
6623 * README: Remove references to deleted remote-*.c files:
6624 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
6625 remote-nrom.c, remote-os9k.c, remote-udi.c.
6626
28bcfd30
MK
66272003-01-05 Mark Kettenis <kettenis@gnu.org>
6628
6629 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
6630 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
6631 i386_get_longjmp_target.
6632
15a5b3ee
AC
66332003-01-05 Andrew Cagney <ac131313@redhat.com>
6634
6635 * arm-tdep.c (prologue_cache): Change to a pointer.
6636 (_initialize_arm_tdep): Allocate prologue_cache.
6637 (check_prologue_cache): Update.
6638 (save_prologue_cache): Update.
6639 (arm_gdbarch_init): Update.
6640
c263362b
DJ
66412003-01-04 Daniel Jacobowitz <drow@mvista.com>
6642
6643 * stabsread.c (update_method_name_from_physname): Call complaint()
6644 instead of error.
6645
51603483
DJ
66462003-01-04 Daniel Jacobowitz <drow@mvista.com>
6647
6648 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
6649 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
6650 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
6651
6652 * blockframe.c: Include "gdbcmd.h" and "command.h".
6653 (backtrace_below_main): New variable.
6654 (file_frame_chain_valid, func_frame_chain_valid)
6655 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
6656 (generic_func_frame_chain_valid): Remove functions.
6657 (frame_chain_valid, do_flush_frames_sfunc): New functions.
6658 (_initialize_blockframe): New function.
6659 * Makefile.in (blockframe.o): Update dependencies.
6660 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
6661 comment. Call frame_chain_valid ().
6662 * frame.h: Remove old prototypes. Add prototype for
6663 frame_chain_valid and update comments to match.
6664 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
6665 Remove old comment.
6666 * gdbarch.h: Regenerated.
6667 * gdbarch.c: Regenerated.
6668
6669 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6670 set_gdbarch_frame_chain_valid.
6671 * avr-tdep.c (avr_gdbarch_init): Likewise.
6672 * cris-tdep.c (cris_gdbarch_init): Likewise.
6673 * frv-tdep.c (frv_gdbarch_init): Likewise.
6674 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
6675 * i386-tdep.c (i386_svr4_init_abi): Likewise.
6676 (i386_nw_init_abi): Likewise.
6677 (i386_gdbarch_init): Likewise.
6678 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
6679 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
6680 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6681 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
6682 * mips-tdep.c (mips_gdbarch_init): Likewise.
6683 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6684 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
6685 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6686 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6687 * s390-tdep.c (s390_gdbarch_init): Likewise.
6688 * sh-tdep.c (sh_gdbarch_init): Likewise.
6689 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
6690 * v850-tdep.c (v850_gdbarch_init): Likewise.
6691 * vax-tdep.c (vax_gdbarch_init): Likewise.
6692 * x86-64-tdep.c (x86_64_init_abi): Likewise.
6693
6694 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
6695 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
6696 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
6697 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
6698 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
6699 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
6700 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
6701 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
6702
b00a8037
DJ
67032002-01-04 Daniel Jacobowitz <drow@mvista.com>
6704
6705 * Makefile.in (acconfig_h): Remove incorrect macro.
6706 (config_h): Define.
6707 (osabi.o): Update dependencies.
6708 * configure.tgt: Set gdb_osabi based on target triplet.
6709 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
6710 * configure: Regenerated.
6711 * config.in: Regenerated.
6712 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
6713 (GDB_OSABI_DEFAULT): Define if not already defined.
6714 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
6715 (set_osabi_string): New variables.
6716 (gdbarch_register_osabi): Add new OS ABI to
6717 gdb_osabi_available_names.
6718 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
6719 (set_osabi, show_osabi): New functions.
6720 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
6721
4be87837
DJ
67222003-01-04 Daniel Jacobowitz <drow@mvista.com>
6723
6724 * arch-utils.c (gdbarch_info_init): Set osabi to
6725 GDB_OSABI_UNINITIALIZED.
6726 * gdbarch.sh: Add osabi to struct gdbarch and to struct
6727 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
6728 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
6729 * gdbarch.c: Regenerated.
6730 * gdbarch.h: Regenerated.
6731 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
6732 there's no BFD.
6733 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
6734 * osabi.h (enum gdb_osabi): Move to defs.h.
6735 (gdbarch_init_osabi): Update prototype.
6736 * defs.h (enum gdb_osabi): Moved here.
6737 * Makefile.in: Update dependencies.
6738
6739 * alpha-tdep.h: Don't include "osabi.h".
6740 (struct gdbarch_tdep): Remove osabi member.
6741 * alpha-tdep.c: Include "osabi.h".
6742 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6743 iterate over arches. Update call to gdbarch_init_osabi.
6744 (alpha_dump_tdep): Don't dump osabi.
6745 * alpha-linux-tdep.c: Include "osabi.h".
6746 * alpha-osf1-tdep.c: Include "osabi.h".
6747 * alphafbsd-tdep.c: Include "osabi.h".
6748 * alphanbsd-tdep.c: Include "osabi.h".
6749
6750 * arm-tdep.h: Don't include "osabi.h".
6751 (struct gdbarch_tdep): Remove osabi member.
6752 * arm-tdep.c: Include "osabi.h".
6753 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6754 iterate over arches. Update call to gdbarch_init_osabi.
6755 (arm_dump_tdep): Don't dump osabi.
6756 * arm-linux-tdep.c: Include "osabi.h".
6757 * armnbsd-tdep.c: Include "osabi.h".
6758
6759 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
6760 Update call to gdbarch_init_osabi.
6761
6762 * i386-tdep.h: Don't include "osabi.h".
6763 (struct gdbarch_tdep): Remove osabi member.
6764 * i386-tdep.c: Include "osabi.h".
6765 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6766 iterate over arches. Update call to gdbarch_init_osabi.
6767 (i386_dump_tdep): Don't dump osabi.
6768 * i386-linux-tdep.c: Include "osabi.h".
6769 * i386-sol2-tdep.c: Include "osabi.h".
6770 * i386bsd-tdep.c: Include "osabi.h".
6771 * i386gnu-tdep.c: Include "osabi.h".
6772 * i386ly-tdep.c: Include "osabi.h".
6773 * i386nbsd-tdep.c: Include "osabi.h".
6774 * i386obsd-tdep.c: Include "osabi.h".
6775
6776 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
6777 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6778 check osabi when iterating over arches. Update call to
6779 gdbarch_init_osabi.
6780 (mips_dump_tdep): Don't dump osabi.
6781
6782 * ns32k-tdep.h: Don't include "osabi.h".
6783 (struct gdbarch_tdep): Remove.
6784 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
6785 gdbarch_lookup_osabi. Don't iterate over arches. Don't
6786 allocate tdep. Update call to gdbarch_init_osabi.
6787 (ns32k_dump_tdep): Remove.
6788 (_initialize_ns32k_tdep): Update call to gdbarch_register.
6789 * ns32knbsd-tdep.c: Include "osabi.h".
6790
6791 * ppc-tdep.h: Don't include "osabi.h".
6792 (struct gdbarch_tdep): Remove osabi member.
6793 * rs6000-tdep.c: Include "osabi.h".
6794 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
6795 osabi when iterating over arches. Update call to
6796 gdbarch_init_osabi.
6797 (rs6000_dump_tdep): Don't dump osabi.
6798 * ppc-linux-tdep.c: Include "osabi.h".
6799 * ppcnbsd-tdep.c: Include "osabi.h".
6800
6801 * sh-tdep.h: Don't include "osabi.h".
6802 (struct gdbarch_tdep): Remove osabi member.
6803 * sh-tdep.c: Include "osabi.h".
6804 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6805 iterate over arches. Update call to gdbarch_init_osabi.
6806 (sh_dump_tdep): Don't dump osabi.
6807 * shnbsd-tdep.c: Include "osabi.h".
6808
6809 * sparc-tdep.c: Include "osabi.h".
6810 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6811 iterate over arches. Update call to gdbarch_init_osabi.
6812 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
6813 tdep structure.
6814
6815 * vax-tdep.h: Don't include "osabi.h".
6816 (struct gdbarch_tdep): Remove.
6817 * vax-tdep.c: Include "osabi.h".
6818 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6819 iterate over arches. Don't allocate tdep. Update call
6820 to gdbarch_init_osabi.
6821 (vax_dump_tdep): Remove.
6822 (_initialize_vax_tdep): Update call to gdbarch_register.
6823
a881cf8e
DJ
68242003-01-04 Daniel Jacobowitz <drow@mvista.com>
6825
6826 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
6827 entirely.
6828 (breakpoint_re_set_one): Don't fetch the value for a disabled
6829 watchpoint.
6830
1e698235
DJ
68312003-01-04 Daniel Jacobowitz <drow@mvista.com>
6832
6833 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
6834 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
6835 (COERCE_FLOAT_TO_DOUBLE): Remove.
6836 * gdbarch.c: Regenerate.
6837 * gdbarch.h: Regenerate.
6838 * Makefile.in: Remove value_h from gdbarch_h.
6839 * valops.c (coerce_float_to_double): New variable.
6840 (default_coerce_float_to_double): Remove.
6841 (standard_coerce_float_to_double): Remove.
6842 (value_arg_coerce): Use coerce_float_to_double.
6843 (_initialize_valops): Add "set coerce-float-to-double".
6844 * value.h (default_coerce_float_to_double): Remove prototype.
6845 (standard_coerce_float_to_double): Remove prototype.
6846
6847 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
6848 prototyped.
6849 * mdebugread.c (parse_symbol): Likewise.
6850 * stabsread.c (define_symbol): Mark all functions as prototyped.
6851
6852 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
6853 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
6854 set_gdbarch_coerce_float_to_double.
6855 * arm-tdep.c (arm_gdbarch_init): Likewise.
6856 * frv-tdep.c (frv_gdbarch_init): Likewise.
6857 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
6858 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
6859 * mips-tdep.c (mips_gdbarch_init): Likewise.
6860 (mips_coerce_float_to_double): Remove.
6861 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6862 (rs6000_coerce_float_to_double): Remove.
6863 * s390-tdep.c (s390_gdbarch_init): Likewise.
6864 * sh-tdep.c (sh_gdbarch_init): Likewise.
6865 (sh_coerce_float_to_double): Remove.
6866 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
6867 (sparc_coerce_float_to_double): Remove.
6868 * v850-tdep.c (v850_gdbarch_init): Likewise.
6869 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6870 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6871 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
6872 (hppa_coerce_float_to_double): Remove prototype.
6873 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6874
f436a26a
DJ
68752003-01-04 Daniel Jacobowitz <drow@mvista.com>
6876
6877 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
6878
248f8055
DJ
68792003-01-04 Daniel Jacobowitz <drow@mvista.com>
6880
6881 Suggested by Stewart Brown <sb24@avaya.com>:
6882 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
6883 in recursive calls. Handle TYPE_CODE_TYPEDEF.
6884 (c_type_print_varspec_suffix): Likewise.
6885
72cfdc76
MK
68862003-01-04 Mark Kettenis <kettenis@gnu.org>
6887
bfd260bb
MK
6888 * configure.in: Don't set and AC_SUBST SUBDIRS.
6889 * configure: Regenerated.
6890
72cfdc76
MK
6891 * configure.in: Remove code dealing with shared libraries.
6892 * Makefile.in: Remove HLDFLAGS and HLDENV.
6893 * configure: Regenerated.
6894
c8b8a898
AC
68952003-01-04 Andrew Cagney <ac131313@redhat.com>
6896
6897 * frame.c (deprecated_frame_xmalloc): New function.
6898 (deprecated_set_frame_saved_regs_hack): New function.
6899 (deprecated_set_frame_extra_info_hack): New function.
6900 * frame.h (deprecated_frame_xmalloc): Declare.
6901 (deprecated_set_frame_saved_regs_hack): Declare.
6902 (deprecated_set_frame_extra_info_hack): Declare.
6903
14abd0fb
MK
69042003-01-04 Mark Kettenis <kettenis@gnu.org>
6905
8ee53726
MK
6906 * configure.in: Move code that provides the --enable-gdbtk option
6907 right after the code that handles the --enable-tui option, and
6908 polish it somewhat.
6909 * configure: Regenerated.
6910
14abd0fb
MK
6911 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
6912 AC_CHECK_FUNCS and remove the old check for pread64.
6913 * acinclude.m4 (AC_GNU_SOURCE): New macro.
6914 * acconfig.h (_GNU_SOURCE): Add.
6915 (HAVE_PREAD64): Remove.
6916 * configure, aclocal.m4, config.in: Regenerated.
6917
b2fb4676
AC
69182003-01-03 Andrew Cagney <ac131313@redhat.com>
6919
6920 * alpha-tdep.c: Use get_frame_saved_regs.
6921 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6922 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
6923 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
6924 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
6925 * vax-tdep.c, xstormy16-tdep.c: Ditto.
6926
8dcde887
MK
69272003-01-03 Mark Kettenis <kettenis@gnu.org>
6928
6929 * configure.in: Remove all use of the SUBDIRS variable; add
6930 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
6931 code providing the --enable-multi-ice option, and move it right in
6932 front of the code that checks whether gdbserver is supported.
6933 Polish that too.
6934 * configure: Regenerated.
6935 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
6936 @SUBDIRS@.
6937
8ccd593b
AC
69382003-01-03 Andrew Cagney <cagney@redhat.com>
6939
6940 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
6941 * avr-tdep.c, cris-tdep.c: Ditto.
6942 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
6943 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
6944
91151a06
MK
69452003-01-03 Mark Kettenis <kettenis@gnu.org>
6946
6947 * configure.in: Remove --enable-netrom option.
6948 * configure: Regenerated.
6949
8fe84d01
MK
69502003-01-03 Mark Kettenis <kettenis@gnu.org>
6951
6952 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
6953 declaration for `struct re_pattern_buffer' instead.
6954 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
6955
f0394be6
JB
69562003-01-03 J. Brobecker <brobecker@gnat.com>
6957
6958 * mdebugread.c (parse_symbol): Count until the stEnd matching
6959 the structure name.
6960
27e9bf90
MK
69612003-01-02 Mark Kettenis <kettenis@gnu.org>
6962
93d331ba
MK
6963 * configure.in: Remove --with-cpu option.
6964 subscripts. Remove evil changequotes here.
6965 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
6966 * config.in, configure: Regenerated.
6967
27e9bf90
MK
6968 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
6969 * configure.in: Cleanup section that sources GDB and BFD configure
6970 subscripts. Remove evil changequotes here.
6971 * config.in, configure: Regenerated.
6972
50abf9e5
AC
69732003-01-02 Andrew Cagney <ac131313@redhat.com>
6974
6975 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
6976 frame accessor methods.
6977 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6978 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
6979 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
6980 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
6981 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
6982 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
6983 * z8k-tdep.c: Ditto.
6984
287c1a40
MK
69852003-01-02 Mark Kettenis <kettenis@gnu.org>
6986
f5dbc56d
MK
6987 * configure.in: Remove UI_OUT configuration code.
6988 * ada-lang.c: Update assuming UI_OUT is always true.
6989 * Makefile.in (UIOUT_CFLAGS): Remove.
6990 * configure: Regenerated.
6991 * TODO: Remove blurb about elimination of -DUI_OUT.
6992
627af7ea
MK
6993 * configure.in: Move code that provides the --enable-gdbcli,
6994 --enable-gdbmi options right before the code that handles the
6995 --enable-tui option. Polish a bit.
6996 * configure: Regenerated.
6997
06825bd1
MK
6998 * configure.in: Rewrite check for GNU regex and the
6999 --without-included regex option, and move it into the "Checks for
7000 library functions" section. This makes us use the system regex
7001 again by default on systems with version 2 of the GNU C library.
7002 This was apparently broken.
7003 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
7004 * acconfig.h (USE_INCLUDED_REGEX): Remove.
7005 * config.in, configure: Regenerated.
7006
287c1a40
MK
7007 * configure.in: Move code that provides the --enable-tui option
7008 before the "Checks for libraries" section. Polish the code
7009 somewhat and set need_curses to yes if we build the TUI. Rewrite
7010 code that looks for a library providing termcap functionality to
7011 match more closely what's done in the Readline library, and move
7012 it into to the "Checks for libraries" section.
7013 * configure: Regenerated.
7014 * Makefile.in (TERMCAP): Remove variable.
7015 * config/i386/go32.mh (TERMCAP): Remove variable.
7016
684e56bf
AC
70172003-01-02 Andrew Cagney <ac131313@redhat.com>
7018
7019 * MAINTAINERS: Mention gdb_mbuild.sh.
7020 * gdb_mbuild.sh: Rewrite.
7021
e1ea1d75
MK
70222003-01-02 Mark Kettenis <kettenis@gnu.org>
7023
7024 * configure.in: Fix typo in last change.
7025 * config.in, configure: Regenerated.
7026
1b831c93
AC
70272003-01-02 Andrew Cagney <ac131313@redhat.com>
7028
7029 * valarith.c (value_binop): Delete obsolete code and comments.
7030 * configure.host: Ditto.
7031 * buildsym.h (make_blockvector): Ditto.
7032 * buildsym.c (make_blockvector): Ditto.
7033 * defs.h (enum language): Ditto.
7034 (chill_demangle): Ditto.
7035 * elfread.c (elf_symtab_read): Ditto.
7036 * dwarfread.c (CHILL_PRODUCER): Ditto.
7037 (set_cu_language): Ditto.
7038 (handle_producer): Ditto.
7039 * expprint.c (print_subexp): Ditto.
7040 * gdbtypes.c (chill_varying_type): Ditto.
7041 * gdbtypes.h (builtin_type_chill_bool): Ditto.
7042 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
7043 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
7044 (chill_varying_type): Ditto.
7045 * language.h (_LANG_chill): Ditto.
7046 * language.c (binop_result_type, integral_type): Ditto.
7047 (character_type, string_type, structured_type): Ditto.
7048 (lang_bool_type, binop_type_check): Ditto.
7049 * stabsread.h (os9k_stabs): Ditto.
7050 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
7051 (define_symbol, read_type, read_struct_fields): Ditto.
7052 (read_array_type, read_enum_type, read_huge_number): Ditto.
7053 (read_range_type, start_stabs): Ditto.
7054 * symfile.c (init_filename_language_table): Ditto.
7055 (add_psymbol_with_dem_name_to_list): Ditto.
7056 * symtab.c (symbol_init_language_specific): Ditto.
7057 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
7058 * symtab.h (struct general_symbol_info): Ditto.
7059 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
7060 * typeprint.c (typedef_print): Ditto.
7061 * utils.c (fprintf_symbol_filtered): Ditto.
7062 * valops.c (value_cast, search_struct_field, value_slice): Delete
7063 obsolete code.
7064 (varying_to_slice): Delete function.
7065 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
7066 (varying_to_slice): Delete declaration.
7067 * MAINTAINERS: Update.
7068
8bb2c122
MK
70692003-01-02 Mark Kettenis <kettenis@gnu.org>
7070
97bf5e38
MK
7071 * configure.in: Reorganize "Checks for library functions section"
7072 a bit. Remove check for `btowc' and `isascii' functions.
7073 * configure: Regenerated.
7074
5ee754fc
MK
7075 * acconfig.h (_MSE_INT_H): Remove.
7076 * configure.in: Create "Checks for header files" section, and move
7077 appropriate tests there. Don't check for objlist.h, wchar.h,
7078 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
7079 misdetection fix. Also add "Checks for types", "Checks for
7080 compiler characteristics" and "Checks for library functions"
7081 sections.
7082 * config.in, configure: Regenerated.
7083
8bb2c122
MK
7084 * configure.in: Create "Checks for programs" section, and move
7085 appropriate tests there.
7086
9a156167
MK
70872003-01-01 Mark Kettenis <kettenis@gnu.org>
7088
7089 * configure.in: Create "Checks for libraries" section, and move
7090 appropriate tests there. Cleanup check for wctype in libw. Use
7091 AC_SEARCH_LIBS to see whether we need libsocket.
7092 * configure: Regenerated.
7093
a80e2bcb 7094For older changes see ChangeLog-2002
c906108c
SS
7095\f
7096Local Variables:
7097mode: change-log
7098left-margin: 8
7099fill-column: 74
7100version-control: never
7101End:
This page took 0.826418 seconds and 4 git commands to generate.