* gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
[binutils-gdb.git] / gdb / ChangeLog
1 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2
3 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
4 * gdbarch.c, gdbarch.h: Regenerate.
5 * dbxread.c (find_stab_function_addr): Define unconditionally.
6 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
7 instead of SOFUN_ADDRESS_MAYBE_MISSING.
8 (end_psymtab): Likewise.
9 (process_one_symbol): Likewise.
10 * mdebugread.c (parse_partial_symbols): Likewise.
11
12 * symtab.h (struct minimal_symbol): Always define "filename" member.
13 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
14 * minsyms.c (lookup_minimal_symbol): Likewise.
15 * symmisc.c (dump_msymbols): Likewise.
16
17 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
18 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
19 * config/i386/tm-i386sol2.h: Remove file.
20 * config/i386/tm-linux.h: Remove file.
21 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
22 set_gdbarch_sofun_address_maybe_missing.
23 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
24
25 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
26 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
27 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
28 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
29 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
30 * config/powerpc/tm-ppc-eabi.h: Remove file.
31 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
32 set_gdbarch_sofun_address_maybe_missing.
33
34 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
35 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
36 * config/sparc/tm-sol2.h: Remove file.
37 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
38 set_gdbarch_sofun_address_maybe_missing.
39 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
40
41 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
42
43 * gdbarch.sh (static_transform_name): New gdbarch callback.
44 * gdbarch.c, gdbarch.h: Regenerate.
45 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
46 instead of STATIC_TRANSFORM_NAME.
47 * mdebugread.c (parse_partial_symbols): Likewise.
48 * stabsread.c (define_symbol): Likewise.
49 * xcoffread.c (scan_xcoff_symtab): Likewise.
50
51 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
52 (IS_STATIC_TRANSFORM_NAME): Remove.
53 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
54 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
55 (i386_sol2_init_abi): Install it.
56
57 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
58 (IS_STATIC_TRANSFORM_NAME): Remove.
59 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
60 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
61 (sparc32_sol2_init_abi): Install it.
62 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
63 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
64
65 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
66
67 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
68 (mips_n32n64_return_value, mips_o32_return_value)
69 (mips_o64_return_value): Update calls to mips_xfer_register.
70
71 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
72
73 * frame.c (frame_unwind_unsigned_register): Delete.
74 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
75 * frame.h (frame_unwind_unsigned_register): Delete prototype.
76
77 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
78 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
79 mt-tdep.c: Replace frame_unwind_unsigned_register with
80 frame_unwind_register_unsigned.
81
82 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
83
84 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
85 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
86 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
87 include procfs.h.
88 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
89 if not building on Cygwin.
90 (win32_make_so, handle_output_debug_string, handle_exception)
91 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
92 (win32_attach): Only fallback to Cygwin pids if building on
93 Cygwin.
94 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
95 building on Cygwin.
96 (win32_create_inferior): Disable starting the inferior through a
97 shell, environment var processing and tty handling if not building
98 on Cygwin.
99 (cygwin_pid_to_str): Rename to ...
100 (win32_pid_to_str): ... this.
101 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
102 and "cygwin-exceptions" commands if not building on Cygwin.
103
104 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
105
106 * doc/gdb.texinfo: Add TSIZE definition, removed
107 statement about unbounded arrays being unimplemented.
108 * m2-valprint.c (m2_print_array_contents): New function.
109 (m2_print_unbounded_array): New function.
110 (m2_print_array_contents): New function.
111 * m2-typeprint.c (m2_unbounded_array): New function.
112 (m2_is_unbounded_array): New function.
113 (m2_print_type): Test for unbounded array when walking
114 across structs.
115 * m2-lang.h: Added extern m2_is_unbounded_array.
116 * m2-lang.c (evaluate_subexp_modula2): New function.
117 (exp_descriptor_modula2): New structure.
118 (m2_language_defn): Use exp_descriptor_modula2.
119 * m2-exp.y: Added TSIZE and binary subscript.
120
121 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
122
123 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
124 after freeing it.
125
126 2007-10-16 Kevin Buettner <kevinb@redhat.com>
127
128 * m32r-tdep.c (decode_prologue): Sign extend offset for
129 "addi sp, xx" case.
130 (m32r_frame_unwind_cache): Likewise.
131
132 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
133
134 * rs6000-tdep.c (skip_prologue): Restore comment with
135 function description to its proper place.
136
137 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
138
139 * NEWS: Mention gdbserver PowerPC improvements.
140
141 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
142
143 * features/Makefile (WHICH): Add PowerPC register definitions.
144 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
145 (rs6000/powerpc-64-expedite): New macros.
146 ($(outdir)/%.dat): Handle subdirectories.
147 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
148 regformats/rs6000/powerpc-e500.dat: New generated files.
149
150 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
151
152 * ppc-linux-nat.c (ppc_linux_read_description): New.
153 (_initialize_ppc_linux_nat): Set to_read_description.
154 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
155
156 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
157
158 * NEWS: Document target described register support for PowerPC.
159 * ppc-tdep.h: Remove ppc_spr constants.
160 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
161 ppc_builtin_type_vec128 members.
162 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
163 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
164 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
165 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
166 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
167 * rs6000-tdep.c: Include preparsed descriptions.
168 (init_sim_regno_table): Do not iterate over pseudo registers.
169 Look up segment registers by name. Use sim_spr_register_name
170 for SPRs.
171 (rs6000_register_sim_regno): Call init_sim_regno_table here.
172 (rs6000_builtin_type_vec128): Delete.
173 (rs6000_register_name): Only handle SPE pseudo registers and upper
174 halves. Call tdesc_register_name for everything else.
175 (rs6000_register_type): Delete. Replace with...
176 (rs6000_pseudo_register_type): ...this new function. Only handle
177 SPE pseudo registers.
178 (rs6000_register_reggroup_p): Delete. Replace with...
179 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
180 handle SPE pseudo registers.
181 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
182 "struct reg".
183 (rs6000_register_to_value, rs6000_value_to_register): Remove check
184 of reg->fpr.
185 (e500_register_reggroup_p): Delete.
186 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
187 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
188 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
189 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
190 (registers_powerpc, registers_403, registers_403GC, registers_505)
191 (registers_860, registers_601, registers_602, registers_603)
192 (registers_604, registers_750, registers_7400, registers_e500): Delete
193 variables.
194 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
195 tdesc.
196 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
197 (variants): Delete outdated comment. Use standard target descriptions
198 instead of "struct reg" arrays.
199 (init_variants): Delete.
200 (rs6000_gdbarch_init): Do not guess word size from the BFD
201 architecture if we have a target description. Select a variant
202 before creating a new architecture. Use the variant's target
203 description if the target did not define a register layout.
204 Validate target-supplied registers. Reject mismatches. Use
205 fixed register numbers and new constants instead of magic
206 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
207 (_initialize_rs6000_tdep): Initialize the preparsed target
208 descriptions.
209 * target-descriptions.c (tdesc_predefined_types): Add int128 and
210 uint128.
211 (tdesc_find_register_early): New function.
212 (tdesc_numbered_register): Use it.
213 (tdesc_register_size): New function.
214 (tdesc_use_registers): Take a target_desc argument. Do not use
215 gdbarch_target_desc.
216 * target-descriptions.h (tdesc_use_registers): Update prototype
217 and comment.
218 (tdesc_register_size): New prototype.
219 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
220 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
221 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
222 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
223 (rs6000-tdep.o): Update.
224 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
225 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
226 * mips-tdep.c (mips_gdbarch_init): Likewise.
227
228 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
229
230 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
231 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
232 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
233 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
234 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
235 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
236 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
237 generated files.
238
239 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
240
241 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
242 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
243 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
244 feature descriptions for standard PowerPC register sets.
245
246 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
247 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
248 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
249 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
250 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
251 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
252 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
253 target descriptions for PowerPC processors.
254
255 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
256
257 * target-descriptions.c (tdesc_predefined_types): New.
258 (tdesc_named_type): Use it.
259 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
260 (_intialize_target_descriptions): Register "maint print c-tdesc".
261 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
262 (cfiles, %.c): New rules.
263 * features/arm-with-iwmmxt.c, features/mips-linux.c,
264 features/mips64-linux.c: New generated files.
265
266 * arm-linux-nat.c: Include preparsed description instead of
267 "xml-support.h".
268 (super_xfer_partial, arm_linux_xfer_partial): Remove.
269 (arm_linux_read_description): New function.
270 (_initialize_arm_linux_nat): Set to_read_description instead of
271 to_xfer_partial. Initialize preparsed description.
272 * config/arm/linux.mh (TDEP_XML): Delete.
273 * mips-linux-nat.c: Include preparsed descriptions instead of
274 "xml-support.h".
275 (super_xfer_partial, mips_linux_xfer_partial): Remove.
276 (mips_linux_read_description): New function.
277 (_initialize_mips_linux_nat): Set to_read_description instead of
278 to_xfer_partial. Initialize preparsed description.
279 * config/mips/linux.mh (TDEP_XML): Delete.
280 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
281 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
282 (mips64_linux_c): New macros.
283 (arm-linux-nat.o, mips-linux-nat.o): Update.
284
285 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
286
287 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
288 Replace xasprintf by xstrprintf.
289 symfile-mem.c (add_vsyscall_page): Ditto.
290
291 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
292
293 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
294 replacing use of global current_gdbarch.
295 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
296 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
297
298 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
299 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
300 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
301 (ia64_sigtramp_frame_cache): Update caller.
302
303 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
304
305 * gdbarch.sh (deprecated_use_struct_convention): Remove.
306 (extract_return_value, store_return_value): Remove.
307 (return_value): Remove default implementation.
308 * gdbarch.c, gdbarch.h: Regenerate.
309
310 * stack.c (return_command): Remove compatibility hack.
311 * arch-utils.c (legacy_return_value): Remove.
312 * arch-utils.h (legacy_return_value): Likewise.
313
314 * arch-utils.c (always_use_struct_convention): Remove.
315 * arch-utils.h (always_use_struct_convention): Likewise.
316 * value.c (generic_use_struct_convention): Remove.
317 * defs.h (generic_use_struct_convention): Likewise.
318
319 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
320
321 * avr-tdep.c (avr_return_value): New function.
322 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
323 set_gdbarch_extract_return_value.
324
325 * fvr-tdep.c (frv_return_value): New function.
326 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
327 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
328 and set_gdbarch_deprecated_use_struct_convention.
329
330 * ia64-tdep.c (ia64_use_struct_convention): Make static.
331 Add check for structure, union, or array types.
332 (ia64_extract_return_value): Make static.
333 (ia64_store_return_value): Make static. Support multi-word values.
334 (ia64_return_value): New function.
335 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
336 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
337 and set_gdbarch_deprecated_use_struct_convention.
338
339 2007-10-12 Joel Brobecker <brobecker@adacore.com>
340
341 * solib-target.c (solib_target_parse_libraries)
342 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
343
344 2007-10-12 Jim Blandy <jimb@codesourcery.com>
345
346 * serial.h (struct serial_ops): Document read_prim to return zero
347 at EOF.
348 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
349 read_prim returns zero, not SERIAL_TIMEOUT.
350
351 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
352
353 * alpha-mdebug-tdep.c: Include "gdb_string.h".
354 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
355 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
356 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
357
358 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
359 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
360 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
361 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
362 * config/alpha/tm-alpha.h: Remove file.
363
364 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
365
366 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
367 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
368
369 * config/pa/tm-hppa.h: Delete file.
370 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
371 * config/pa/hppahpux.mt: Likewise.
372 * config/pa/hppa.mt: Likewise.
373 * config/pa/linux.mt: Likewise.
374 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
375
376 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
377
378 * config/arm/nm-nbsdaout.h: Remove file.
379 * config/nm-nbsdaout.h: Likewise.
380 * config/nm-nbsd.h: Likewise.
381
382 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
383
384 * block.h (struct block): Remove "gcc_compile_flag" member.
385 (BLOCK_GCC_COMPILED): Remove.
386 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
387 * buildsym.c (finish_block): Do not set it.
388 * symmisc.c (dump_symtab_1): Do not dump it.
389
390 * value.h (using_struct_return): Remove "gcc_p" argument.
391 * value.c (using_struct_return): Likewise.
392 * eval.c (evaluate_subexp_standard): Adapt callers.
393 * infcall.c (call_function_by_hand): Likewise.
394 * stack.c (return_command): Likewise.
395 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
396
397 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
398 * gdbarch.c, gdbarch.h: Regenerate.
399 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
400 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
401 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
402 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
403 (push_dummy_code, call_function_by_hand): Adapt callers.
404
405 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
406
407 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
408 (finish_command_continuation, finish_command): Adapt callers.
409
410 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
411
412 * infcall.c (call_function_by_hand): Remove special handling
413 for HP aCC compiled code.
414
415 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
416
417 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
418 reference. Fix endianness bugs.
419 (cris_reg_struct_has_address): Remove.
420 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
421 and set_gdbarch_deprecated_use_struct_convention calls.
422
423 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
424 * gdbarch.c, gdbarch.h: Regenerate.
425 * infcall.c (call_function_by_hand): Remove handling of
426 deprecated_reg_struct_has_addr.
427
428 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
429 Kazu Hirata <kazu@codesourcery.com>
430
431 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
432 checking watchpoint resources.
433
434 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
435
436 * memattr.c (inaccessible_by_default): Change the initial
437 value to 1.
438
439 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
440
441 PR gdb/2280
442 * coffread.c (read_one_sym): Check for read errors.
443
444 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
445
446 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
447 instead of "Linux 2.6.19" in comment.
448 (linux_xfer_partial): Use "GNU/Linux target" instead of
449 "Linux target" in comment.
450 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
451 (m68k_linux_get_sigtramp_info): Likewise.
452
453 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
454
455 * MAINTAINERS (language support): List Joel and Paul as
456 Ada maintainers.
457
458 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
459
460 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
461 checks.
462 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
463 not set DEPRECATED_TM_FILE.
464 * config/arm/tm-arm.h: Delete file.
465
466 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
467
468 * MAINTAINERS (Write After Approval): Add self.
469
470 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
471
472 * buildsym.c (record_line): Remove empty lines followed by
473 end-of-sequence markers.
474
475 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
476
477 * configure.tgt: Recognize fido-*-elf.
478
479 2007-10-10 Joel Brobecker <brobecker@adacore.com>
480
481 GDB 6.7 released.
482
483 2007-10-10 Markus Deuling <deuling@de.ibm.com>
484
485 * stack.c (print_frame_args, frame_info, return_command): Use
486 get_regcache_arch or get_frame_arch to get at the current architecture
487 by regcache or by frame, respectively.
488
489 2007-10-10 Markus Deuling <deuling@de.ibm.com>
490
491 * rs6000-nat.c (fetch_register, store_register)
492 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
493 get_regcache_arch to get at the current architecture by regcache.
494
495 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
496 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
497 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
498 current_gdbarch by gdbarch.
499 (rs6000_skip_trampoline_code, rs6000_register_to_value)
500 (rs6000_value_to_register): Use get_frame_arch to get at the current
501 architecture by frame_info.
502
503 2007-10-10 Markus Deuling <deuling@de.ibm.com>
504
505 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
506 get_regcache_arch to get at the current architecture by regcache.
507
508 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
509 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
510 get_regcache_arch to get at the current architecture by regcache.
511
512 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
513 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
514 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
515 current architecture by regcache.
516
517 2007-10-10 Markus Deuling <deuling@de.ibm.com>
518
519 * remote-mips.c (mips_wait, mips_fetch_registers)
520 (mips_store_registers): Use get_regcache_arch to get at the
521 current architecture by regcache.
522
523 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
524 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
525 get at the current architecture by regcache.
526 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
527 architecture by frame_info.
528
529 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
530 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
531 the current architecture by regcache.
532
533 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
534 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
535 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
536 current architecture by frame_info.
537 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
538 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
539 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
540 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
541 get at the current architecture by regcache.
542
543 * mips-linux-nat.c (mips_linux_register_addr)
544 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
545 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
546 (mips64_linux_regsets_fetch_registers)
547 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
548 the current architecture by regcache.
549
550 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
551 get at the current architecture by frame_info.
552
553 2007-10-10 Markus Deuling <deuling@de.ibm.com>
554
555 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
556 current architecture by regcache.
557 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
558 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
559 (mips_stub_frame_cache, mips_read_fp_register_single)
560 (mips_read_fp_register_double, mips_print_fp_register)
561 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
562 at the current architecture by frame_info.
563 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
564 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
565 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
566 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
567 (mips_o32_push_dummy_call, mips_o32_return_value)
568 (mips_o64_push_dummy_call, mips_o64_return_value)
569 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
570 gdbarch.
571
572 2007-10-10 Markus Deuling <deuling@de.ibm.com>
573
574 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
575 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
576 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
577 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
578 (xtensa_register_write_masked, xtensa_register_read_masked)
579 (xtensa_supply_gregset, xtensa_store_return_value)
580 (xtensa_extract_return_value): Use get_regcache_arch to get at the
581 current architecture by regcache.
582 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
583 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
584 architecture by frame_info.
585
586 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
587
588 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
589 (thumb_analyze_prologue): Move pv_area_store_would_trash call
590 out of loop. Do not set cache->frameoffset.
591 (arm_scan_prologue): Use prologue-value mechanism. Do not set
592 frameoffset. Simplify framesize.
593 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
594 frameoffset.
595 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
596
597 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
598
599 * target.c (update_current_target): Call setup_target_debug.
600 (push_target): Do not call it here.
601
602 2007-10-09 Michael Snyder <msnyder@specifix.com>
603
604 * MAINTAINERS: Update my email address.
605
606 2007-10-09 Markus Deuling <deuling@de.ibm.com>
607
608 * xtensa-tdep.c: Replace following current-gdbarch based macros by
609 their expression:
610 (xtensa_pseudo_register_read)
611 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
612 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
613 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
614 (xtensa_pseudo_register_read)
615 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
616 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
617 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
618 (xtensa_frame_prev_register): NUM_AREGS.
619 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
620 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
621 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
622 (xtensa_supply_gregset, xtensa_frame_cache)
623 (xtensa_frame_prev_register): WS_REGNUM.
624 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
625 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
626 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
627 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
628 (xtensa_register_reggroup_p): REGMAP.
629 (call0_track_op): LITBASE_REGNUM.
630 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
631 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
632 (xtensa_frame_prev_register, AREG_NUMBER)
633 (xtensa_register_type): AR_BASE.
634 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
635 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
636 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
637 (xtensa_frame_cache, xtensa_frame_prev_register)
638 (xtensa_extract_return_value, xtensa_store_return_value)
639 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
640 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
641 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
642 (xtensa_frame_prev_register, xtensa_push_dummy_call)
643 (call0_frame_cache): A1_REGNUM.
644 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
645 (xtensa_push_dummy_call): A4_REGNUM.
646 (ARGS_FIRST_REG): A6_REGNUM.
647 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
648 (xtensa_frame_prev_register): A15_REGNUM.
649 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
650 them in the appropriate source file:
651 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
652 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
653 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
654 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
655 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
656 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
657 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
658 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
659 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
660 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
661 A13_REGNUM, A14_REGNUM, A15_REGNUM.
662
663 2007-10-09 Markus Deuling <deuling@de.ibm.com>
664
665 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
666 the current architecture by frame_info.
667 (h8300_frame_prev_register
668 (h8300_print_register): Replace current_gdbarch by gdbarch.
669 (h8300_print_registers_info, h8300_register_type)
670 (h8300_register_type): Likewise.
671
672 2007-10-09 Markus Deuling <deuling@de.ibm.com>
673
674 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
675 the current architecture by regcache.
676 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
677 (i386_linux_fetch_inferior_registers)
678 (i386_linux_store_inferior_registers): Likewise.
679 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
680 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
681 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
682 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
683 (i386_extract_return_value, i386_store_return_value): Likewise.
684 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
685 the current architecture by frame_info.
686 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
687 (i386_register_to_value, i386_value_to_register): Likewise.
688
689 2007-10-09 Markus Deuling <deuling@de.ibm.com>
690
691 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
692 the current architecture by regcache.
693 (monitor_store_register, monitor_store_registers): Likewise.
694
695 2007-10-09 Markus Deuling <deuling@de.ibm.com>
696
697 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
698 the current architecture by regcache.
699
700 2007-10-09 Markus Deuling <deuling@de.ibm.com>
701
702 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
703 gdbarch.
704
705 2007-10-09 Markus Deuling <deuling@de.ibm.com>
706
707 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
708 architecture by frame.
709 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
710 (inside_main_func, frame_sp_unwind): Likewise.
711
712 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
713
714 * solib-svr4.c (enable_break): Add the dynamic linker also if
715 auxv succeeds.
716
717 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
718
719 * MAINTAINERS (Write After Approval): Add self.
720
721 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
722
723 * stabsread.c (read_huge_number): Initialize local variable to 0.
724
725 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
726
727 * p-lang.h (pascal_main_name): Add declaration.
728 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
729 (GPC_MAIN_PROGRAM_NAME_2): New constants.
730 (pascal_main_name): New function.
731 * symtab.c: Include p-lang.h.
732 (find_main_name): Add call to pascal_main_name.
733 * Makefile.in (symtab.o): Add dependency on p-lang.h.
734
735 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
736
737 * stabsread.c (read_huge_number): Fix handling of octal
738 representation when the bit width is known.
739 (read_range_type): Record unsigned integral types with their size,
740 when the type size is known.
741
742 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
743
744 * MAINTAINERS (Write After Approval): Add self.
745
746 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
747
748 * breakpoint.c (print_one_breakpoint_location): ARI fix:
749 Replace asprintf by xstrprintf.
750
751 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
752
753 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
754 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
755
756 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
757
758 * linux-fork.c: Move "gdb_wait.h" include back to the position of
759 <sys/wait.h> include before last commit.
760
761 2007-10-08 Maciej W. Rozycki <macro@mips.com>
762
763 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
764
765 2007-10-08 Markus Deuling <deuling@de.ibm.com>
766
767 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
768 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
769 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
770 (store_regs_user_thread, store_regs_kernel_thread): Use
771 get_regcache_arch or get_frame_arch to get at the current architecture
772 by regcache or by frame, respectively.
773
774 2007-10-08 Markus Deuling <deuling@de.ibm.com>
775
776 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
777 (sh64_pseudo_register_read, sh64_pseudo_register_write)
778 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
779 (sh64_print_register, sh64_media_print_registers_info)
780 (sh64_compact_print_registers_info, sh64_unwind_sp)
781 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
782 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
783 (sh64_frame_prev_register): Use FRAME to recognize current
784 architecture.
785
786 2007-10-08 Markus Deuling <deuling@de.ibm.com>
787
788 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
789 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
790 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
791 current_gdbarch by gdbarch.
792 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
793 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
794 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
795 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
796 recognize current architecture.
797
798 2007-10-08 Markus Deuling <deuling@de.ibm.com>
799
800 * remote.c (init_remote_state, fetch_register_using_p)
801 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
802 (store_register_using_P, store_registers_using_G)
803 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
804 get at the current architecture by regcache or by frame, respectively.
805
806 2007-10-08 Markus Deuling <deuling@de.ibm.com>
807
808 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
809 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
810 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
811 get_regcache_arch or get_frame_arch to get at the current architecture
812 by regcache or by frame, respectively.
813 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
814 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
815 (store_register, old_store_inferior_registers, supply_gregset)
816 (supply_fpregset, fill_fpregset): Likewise.
817 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
818 Replace current_gdbarch by gdbarch.
819
820 2007-10-08 Markus Deuling <deuling@de.ibm.com>
821
822 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
823 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
824 get_frame_arch to get at the current architecture by regcache or by
825 frame, respectively.
826
827 2007-10-08 Markus Deuling <deuling@de.ibm.com>
828
829 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
830 Replace current_gdbarch by gdbarch.
831 * ia64-tdep.c (ia64_frame_prev_register
832 (ia64_sigtramp_frame_prev_register)
833 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
834 get_frame_arch to get at the current architecture by regcache or by
835 frame, respectively.
836 * ia64-linux-nat.c (ia64_linux_fetch_register)
837 (ia64_linux_fetch_registers, ia64_linux_store_register)
838 (ia64_linux_store_registers): Likewise.
839
840 2007-10-08 Markus Deuling <deuling@de.ibm.com>
841
842 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
843 current_gdbarch by gdbarch.
844 * hppa-linux-nat.c (fetch_register, store_register)
845 (hppa_linux_fetch_inferior_registers)
846 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
847 get_frame_arch to get at the current architecture by regcache or by
848 frame, respectively.
849 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
850 (hppa_hpux_unwind_adjust_stub): Likewise.
851 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
852 (hppa_hpux_fetch_inferior_registers)
853 (hppa_hpux_store_inferior_registers): Likewise.
854
855 2007-10-08 Markus Deuling <deuling@de.ibm.com>
856
857 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
858 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
859 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
860 or get_frame_arch to get at the current architecture by regcache or by
861 frame, respectively.
862 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
863 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
864 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
865 current_gdbarch by gdbarch.
866
867 2007-10-08 Markus Deuling <deuling@de.ibm.com>
868
869 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
870 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
871 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
872 get at the current architecture by regcache or by·frame, respectively.
873 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
874 gdbarch.
875
876 2007-10-08 Markus Deuling <deuling@de.ibm.com>
877
878 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
879 Use get_regcache_arch or get_frame_arch to get at the current
880 architecture by regcache or by frame, respectively.
881 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
882 * amd64-nat.c (amd64_supply_native_gregset)
883 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
884
885 2007-10-08 Markus Deuling <deuling@de.ibm.com>
886
887 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
888 gdbarch.
889 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
890 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
891 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
892 get_frame_arch to get at the current architecture by regcache or by
893 frame, respectively.
894 * alpha-nat.c (fetch_osf_core_registers): Likewise.
895
896 2007-10-08 Markus Deuling <deuling@de.ibm.com>
897
898 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
899 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
900 current_gdbarch by gdbarch.
901 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
902
903 2007-10-08 Markus Deuling <deuling@de.ibm.com>
904
905 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
906 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
907 * regcache.c (regcache_raw_write): Use get_regcache_arch or
908 get_frame_arch to get at the current architecture by regcache or by
909 frame, respectively.
910
911 2007-10-08 Markus Deuling <deuling@de.ibm.com>
912
913 * findvar.c (value_of_register, locate_var_value): Use
914 get_regcache_arch or get_frame_arch to get at the current architecture
915 by regcache or by frame, respectively.
916 * findvar.c (default_value_from_register, value_from_register): Replace
917 current_gdbarch by gdbarch.
918
919 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
920
921 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
922
923 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
924
925 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
926 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
927
928 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
929
930 * remote.c (get_offsets): Only call free_symfile_segment_data if
931 data was allocated.
932
933 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
934
935 * objc-exp.y: ARI fix: remove 4 PARAMS.
936
937 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
938
939 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
940 news. Mention XML support for M68K in GDB 6.7.
941
942 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
943
944 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
945 bounds.
946 (init_vector_type): Use builtin_type_int32.
947
948 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
949
950 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
951 size to enable bi-arch generate-core-file support.
952
953 2007-10-02 Markus Deuling <deuling@de.ibm.com>
954
955 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
956
957 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
958
959 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
960 signal handler.
961 * tui/tui-win.c (tui_initialize_win): New function for
962 initializing tui's SIGWINCH signal handler.
963 * tui/tui-win.h (tui_initialize_win): Declare.
964
965 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
966
967 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
968 pointer to uintptr_t before casting to CORE_ADDR.
969
970 2007-10-02 Markus Deuling <deuling@de.ibm.com>
971
972 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
973
974 2007-10-02 Mark Mitchell <mark@codesourcery.com>
975
976 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
977 * ser-mingw.c (enum select_thread_state): New type.
978 (struct ser_console_state): Add have_started and thread_state.
979 (select_thread_wait): New function.
980 (thread_fn_type): New type.
981 (create_select_thread): New function.
982 (destroy_select_thread): Likewise.
983 (start_select_thread): Likewise.
984 (stop_select_thread): Likewise.
985 (console_select_thread): Use new functions.
986 (pipe_select_thread): Likewise.
987 (file_select_thread): Likewise.
988 (ser_console_wait_handle): Likewise.
989 (ser_console_done_wait_handle): Likewise.
990 (ser_console_close): Likewise.
991 (free_pipe_state): Likewise.
992 (pipe_wait_handle): Likewise.
993 (pipe_done_wait_handle): Likewise.
994 (struct net_windows_state): Derive from ser_console_state.
995 (net_windows_select_thread): Use new functions.
996 (net_windows_wait_handle): Likewise.
997 (net_windows_done_wait_handle): Likewise.
998 (net_windows_close): Likewise.
999
1000 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
1001
1002 * inflow.c (terminal_ours_1): Remove useless line.
1003
1004 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
1005
1006 * mips-tdep.c (mips_read_fp_register_double): Correct check for
1007 odd FP registers.
1008 (mips_print_fp_register): Correct check for even FP registers.
1009 (mips_virtual_frame_pointer): New function.
1010 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
1011
1012 2007-09-30 Mike Frysinger <vapier@gentoo.org>
1013
1014 * value.h (lookup_only_internalvar): New prototype.
1015 (create_internalvar): Likewise.
1016 * value.c (lookup_only_internalvar): New function.
1017 (create_internalvar): Likewise.
1018 (lookup_internalvar): Use new lookup_only_internalvar and
1019 create_internalvar functions.
1020 * parse.c (write_dollar_variable): Look up $ symbols in internal
1021 table first rather than last.
1022
1023 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
1024
1025 * linux-nat.c (linux_nat_new_thread): New variable.
1026 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
1027 linux_nat_switch_fork.
1028 (lwp_list): Make public.
1029 (add_lwp): Call linux_nat_new_thread.
1030 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
1031 the new thread.
1032 (resume_callback): Clear lp->siginfo. Remove unused variable.
1033 (linux_nat_resume): Assert that the LWP list is already initialized.
1034 Clear lp->siginfo.
1035 (save_siginfo): New.
1036 (stop_wait_callback, linux_nat_wait): Call it.
1037 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
1038 * linux-nat.h (struct lwp_info): Add siginfo.
1039 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
1040 (ALL_LWPS): Define.
1041
1042 * amd64-linux-nat.c (amd64_linux_dr): New.
1043 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
1044 (amd64_linux_dr_set): Take a PTID argument.
1045 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
1046 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
1047 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
1048 (amd64_linux_new_thread): New.
1049 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
1050 * i386-linux-nat.c (i386_linux_dr): New.
1051 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
1052 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
1053 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
1054 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
1055 (i386_linux_new_thread): New.
1056 (i386_linux_resume): Remove unnecessary PID check.
1057 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
1058 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
1059 (fetch_debug_register, fetch_debug_register_pair): Delete.
1060 (debug_registers): New.
1061 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
1062 ALL_LWPS and debug_registers.
1063 (ia64_linux_new_thread): New.
1064 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
1065 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
1066 * ppc-linux-nat.c (last_stopped_data_address): Delete.
1067 (saved_dabr_value): New.
1068 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
1069 ALL_LWPS.
1070 (ppc_linux_new_thread): New.
1071 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
1072 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
1073 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
1074 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
1075 after reading it.
1076 (s390_fix_watch_points): Take a PTID argument.
1077 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
1078 (_initialize_s390_nat): Call linux_nat_set_new_thread.
1079
1080 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
1081 Jeff Johnston <jjohnstn@redhat.com>
1082
1083 * breakpoint.c (watchpoints_triggered): New.
1084 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
1085 Check watchpoint_triggered instead. Combine handling for software
1086 and hardware watchpoints. Do not use target_stopped_data_address
1087 here. Always check a watchpoint if its scope breakpoint triggers.
1088 Do not stop for thread or overlay events. Improve check for
1089 triggered watchpoints without a value change.
1090 (watch_command_1): Insert the scope breakpoint first. Link the
1091 scope breakpoint to the watchpoint.
1092 * breakpoint.h (enum watchpoint_triggered): New.
1093 (struct breakpoint): Add watchpoint_triggered.
1094 (bpstat_stop_status): Update prototype.
1095 (watchpoints_triggered): Declare.
1096 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
1097 (stepped_after_stopped_by_watchpoint): Delete.
1098 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
1099 local. Handle infwait_step_watch_state. Update calls to
1100 bpstat_stop_status. Use watchpoints_triggered to check
1101 watchpoints.
1102 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
1103 (remote_stopped_data_address): Do not check it.
1104
1105 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
1106
1107 * configure.ac: Add $LIBINTL when testing libbfd.
1108 * configure: Regenerated.
1109
1110 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
1111
1112 * NEW: Mention pending breakpoint changes and
1113 support for breakpoints at multiple locations.
1114
1115 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
1116
1117 * arm-linux-tdep.c (arm_linux_software_single_step): New.
1118 (arm_linux_init_abi): Use it.
1119 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
1120 condition correctly.
1121 * arm-tdep.h (arm_get_next_pc): Declare.
1122 * Makefile.in (arm-linux-tdep.o): Update.
1123
1124 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
1125
1126 * varobj.c (install_new_value): Don't
1127 call value_get_print_value when a value is
1128 lazy. Update the print_value member in a
1129 single place.
1130
1131 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
1132
1133 * breakpoint.c (create_breakpoint): Set
1134 condition on each location, not on the first
1135 location of breakpoint.
1136
1137 2007-09-26 Jim Blandy <jimb@codesourcery.com>
1138
1139 * remote.c (getpkt_sane): Fix error message. No animals were
1140 harmed in the making of this debugger.
1141
1142 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1143
1144 * p-typeprint.c: Fix 11 ARI reported problems.
1145 (pascal_print_type): Fix 4 operator at end of line.
1146 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
1147 using strncmp function.
1148 (pascal_type_print_base): Fix 2 operator at end of line.
1149 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
1150 using strncmp function.
1151
1152
1153 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1154
1155 * Fix PR pascal/2231
1156 dwarf2read.c (read_subroutine_type):
1157 All pascal functions are prototyped.
1158
1159 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1160
1161 * Fix PR pascal/2283
1162 p-valprint.c (pascal_val_print): correct current language check.
1163 Also print array of char as strings.
1164
1165
1166 2007-09-26 David Ung <davidu@mips.com>
1167 Maciej W. Rozycki <macro@mips.com>
1168
1169 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
1170
1171 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
1172
1173 * p-exp.y: Fix 12 ARI reported problems.
1174 (name_not_typename): Fix 2 operator at end of line issues.
1175 (yylex): Fix 3 operator at end of line issues.
1176 Replace 7 DEPRECATED_STREQ macros using strcmp function.
1177
1178 2007-09-25 David Ung <davidu@mips.com>
1179 Maciej W. Rozycki <macro@mips.com>
1180
1181 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
1182 rules return composite types in registers as appropriate.
1183
1184 2007-09-24 Jim Blandy <jimb@codesourcery.com>
1185
1186 * symfile.h (struct symfile_segment_data): Doc fixes.
1187 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
1188 Assert that we were passed some loaded segment addresses,
1189 and that sections' segment numbers are valid.
1190 Simplify offset calculation.
1191 * remote.c (get_offsets): Clarify selection of relocate-by-segment
1192 strategy, and set num_segments correctly. Delete redundant
1193 assignments to do_sections.
1194
1195 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
1196
1197 * frame.c (get_prev_frame_1): Also check for PC in the same register.
1198
1199 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
1200
1201 * breakpoint.c (remove_sal): New.
1202 (expand_line_sal_maybe): New.
1203 (create_breakpoints): Call expand_line_sal_maybe.
1204 (clear_command): Add comment.
1205 (breakpoint_re_set_one): Call expand_line_sal_maybe.
1206 * linespec.c (decode_indirect): Set explicit_pc to 1.
1207 (decode_all_digits): Set explicit_line to 1.
1208 (append_expanded_sal): New.
1209 (expand_line_sal): New.
1210 * linespec.h (expand_line_sal): Declare.
1211 * symtab.c (init_sal): Initialize explicit_pc
1212 and explicit_line.
1213 * symtab.h (struct symtab_and_line): New fields
1214 explicit_pc and explicit_line.
1215
1216 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
1217
1218 * infcall.c (call_function_by_hand): Handle language-specific
1219 pass and return by reference.
1220
1221 * cp-abi.c (cp_pass_by_reference): New.
1222 * cp-abi.h (cp_pass_by_reference): Declare.
1223 (struct cp_abi_ops): Add pass_by_reference.
1224 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
1225 (init_gnuv3_ops): Set pass_by_reference.
1226
1227 * language.c (language_pass_by_reference): New.
1228 (default_pass_by_reference): New.
1229 (unknown_language_defn, auto_language_defn, local_language_defn): Add
1230 default_pass_by_reference.
1231 * langauge.h (struct language_defn): Add la_pass_by_reference.
1232 (language_pass_by_reference, default_pass_by_reference): Declare.
1233 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
1234 * c-lang.c (c_language_defn, asm_language_defn)
1235 (minimal_language_defn): Likewise.
1236 (cplus_language_defn): Add cp_pass_by_reference.
1237 * f-lang.c (f_language_defn): Add default_pass_by_reference.
1238 * jv-lang.c (java_language_defn): Likewise.
1239 * m2-lang.c (m2_language_defn): Likewise.
1240 * objc-lang.c (objc_language_defn): Likewise.
1241 * p-lang.c (pascal_language_defn): Likewise.
1242 * scm-lang.c (scm_language_defn): Likewise
1243
1244 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
1245
1246 Allow a code breakpoint to have several locations
1247 associated with it.
1248 * breakpoint.h (enum enable_state): Remove the
1249 bp_shlib_disabled enumerator.
1250 (struct bp_location): New members shlib_disabled,
1251 global_next, enabled and function_name.
1252 Rename pending to condition_not_parsed.
1253
1254 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
1255 (ALL_BP_LOCATIONS_SAFE): Likewise.
1256 (breakpoint_enabled): Don't check for pending.
1257 (condition_command): Free and update all locations of
1258 a breakpoint.
1259 (insert_bp_location): Adjust.
1260 (software_breakpoint_inserted_here_p): Don't care
1261 if breakpoint is enabled, as soon as it's inserted.
1262 (print_it_typical): Print bpstat's location, not
1263 bpstat's breakpoint's location.
1264 (bpstat_stop_status): Iterate over all locations, not
1265 all breakpoints.
1266 (print_breakpoint_location): New.
1267 (print_one_breakpoint): Renamed to
1268 (print_one_breakpoint_location): ...this. Take
1269 parameters to describe which location is being
1270 printed. Modify code to properly print header
1271 for several locations and individual locations.
1272 (print_one_breakpoint): Print all locations.
1273 (breakpoint_has_pc): New.
1274 (describe_other_breakpoints): Use the above.
1275 (check_duplicates): Renamed to...
1276 (check_duplicates_for): .. this.
1277 (check_duplicates): Use check_duplicates_for.
1278 (allocate_bp_location): Adjust.
1279 (set_raw_breakpoint_without_location): New,
1280 extracted from set_raw_breakpoint.
1281 (set_breakpoint_location_function): New.
1282 (set_raw_breakpoint): Use
1283 set_raw_breakpoint_without_location.
1284 (make_breakpoint_permanent): Mark all locations
1285 as inserted.
1286 (disable_breakpoints_in_shlibs): Iterate over
1287 locations.
1288 (disable_breakpoints_in_unloaded_shlib): Likewise.
1289 (re_enable_breakpoints_in_shlibs): Likewise.
1290 (mention): Say "pending" when breakpoint has
1291 zero locations. If breakpoint has more than one
1292 location, say so.
1293 (add_location_to_breakpoint): New.
1294 (create_breakpoint): Accept symtabs_and_lines, not
1295 symtab_and_line. Pass extra sals to
1296 add_location_to_breakpoint.
1297 (create_breakpoints): Pass symtabs_and_lines to
1298 create_breakpoints.
1299 (break_command_1): Make pending breakpoints
1300 have zero locations.
1301 (do_captured_breakpoint): Remove wrong allocation.
1302 (clear_command): Iterate over all locations.
1303 (unlink_locations_from_global_list): Renamed
1304 from unlink_location_from_global_list. Remove
1305 all locations.
1306 (delete_breakpoint): Remove all locations.
1307 Iterate over all locations when deciding which
1308 other location to re-enable.
1309 (all_locations_are_pending): New.
1310 (update_breakpoint_locations): Renamed from
1311 update_breakpoint_location. Try to match old
1312 and new locations using names of containing
1313 functions.
1314 (breakpoint_re_set_one): Adjust.
1315 (find_location_by_number): New.
1316 (disable_command): Allow disabling individual location.
1317 (enable_command): Allow enabling individual location.
1318 * breakpoint.c: Adjust all uses of breakpoint's
1319 enable state to for bp_shlib_disabled change.
1320
1321 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1322
1323 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
1324 (resolve_pending_breakpoint): Remove.
1325 (re_enable_breakpoints_in_shlibs): Remove.
1326 (unlink_locations_from_global_list): New.
1327 (update_breakpoint_locations): New.
1328 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
1329 Use parse_condition and update_breakpoint_location to
1330 reset breakpoint. Ignore 'symbol not found' error from
1331 decode_line_1.
1332 (breakpoint_re_set): Don't emit newline before the
1333 reason why breakpoint is not reset.
1334 (do_enable_breakpoint): Don't specially process pending
1335 breakpoints.
1336 (free_bp_location): New.
1337 (break_command_1): For pending breakpoints, initialize
1338 all fields of a sal with zeroes.
1339 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
1340 * infcmd.c (post_create_inferior): Don't call
1341 re_enable_breakpoints_in_shlibs.
1342 * infrun.c (handle_inferior_event): Likewise.
1343 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1344 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1345 * win32-nat.c (get_win32_debug_event): Likewise.
1346
1347 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1348
1349 * breakpoint.c (create_breakpoint): Split from
1350 create_breakpoints, implementing most of its logic.
1351 Take just a single sal, single address string and
1352 single condition. Do not take parsed condition at
1353 all.
1354 (create_breakpoints): Just call create_breakpoint
1355 for each sal.
1356 (find_condition_and_thread): New.
1357 (break_command_1): Use find_condition_and_thread.
1358 Do not keep parsed conditions.
1359 (do_captured_breakpoint): Don't convert
1360 condition string to struct expression.
1361
1362 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1363
1364 * breakpoint.h (struct breakpoint): Move the cond
1365 field to...
1366 (struct bp_location): Here.
1367 * breakpoint.c (condition_command, bpstat_stop_status)
1368 (print_one_breakpoint, allocate_bp_location)
1369 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
1370 (create_exec_event_catchpoint, create_breakpoints)
1371 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
1372 (create_ada_exception_breakpoint, set_breakpoint_sal)
1373 (delete_breakpoint, breakpoint_re_set_one): Adjust.
1374 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
1375
1376 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1377
1378 Associate bp_stat with bp_location, not breakpoint.
1379 * breakpoint.h (breakpoint_at): Change type
1380 to bp_location*.
1381 * breakpoint.c (bpstat_alloc): Take bp_location,
1382 not breakpoint.
1383 (bpstat_find_breakpoint): Look at bpstat's location's
1384 owner, not at bpstat->breakpoint_at.
1385 (bpstat_find_step_resume_breakpoint): Likewise.
1386 (bpstat_num): Likewise.
1387 (print_it_typical): Likewise.
1388 (print_bp_stop_message): Likewise.
1389 (watchpoint_check): Likewise.
1390 (bpstat_what): Likewise.
1391 (bpstat_get_triggered_catchpoints): Likewise.
1392 (breakpoint_auto_delete): Likewise.
1393 (delete_breakpoint): Likewise.
1394 (bpstat_stop_status): Pass location, not breakpoint,
1395 to bpstat_alloc. Look at bpstat's location's
1396 owner, not at bpstat->breakpoint_at.
1397
1398 2007-09-21 Jim Blandy <jimb@codesourcery.com>
1399
1400 * macrotab.h (new_macro_table): Document that removing information
1401 from an obstack/bcache-managed macro table leaks memory.
1402 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
1403 that data is never freed in obstack/bcache-managed macro tables,
1404 just leak the storage.
1405 (macro_undef): If we're undefining a macro at exactly the same
1406 source location that we defined it, simply remove the definition
1407 altogether.
1408
1409 2007-09-21 Joel Brobecker <brobecker@adacore.com>
1410
1411 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
1412 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
1413 Adjust the struct sym_fns object accordingly by setting
1414 the new field to NULL.
1415 * xcoffread.c (aix_process_linenos): Make static.
1416 (xcoff_sym_fns): Set new field to aix_process_linenos.
1417 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
1418 by call to new the new sym_fns sym_read_linetable function.
1419 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
1420 * config/rs6000/tm-rs6000.h: Delete.
1421
1422 2007-09-21 David Ung <davidu@mips.com>
1423 Maciej W. Rozycki <macro@mips.com>
1424
1425 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
1426 rules do not treat composite types specially.
1427
1428 2007-09-20 Maciej W. Rozycki <macro@mips.com>
1429
1430 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
1431 (mips16_in_function_epilogue_p): Likewise.
1432 (mips_in_function_epilogue_p): Likewise.
1433 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
1434
1435 2007-09-19 Joel Brobecker <brobecker@adacore.com>
1436
1437 * configure.ac: Add check for "etext".
1438 * configure, config.in: Regenerate.
1439 * maint.c (TEXTEND): Only define if either _etext or etext
1440 are available.
1441 Disable the profiling functionality if TEXTEND is not defined.
1442
1443 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
1444
1445 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
1446 address register. Correct the call to frame_id_build.
1447 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
1448 is invalid.
1449
1450 2007-09-18 Joel Brobecker <brobecker@adacore.com>
1451
1452 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
1453 the linetable past the function end.
1454
1455 2007-09-18 James E. Wilson <wilson@specifix.com>
1456
1457 * MAINTAINERS: Update my email address.
1458
1459 2007-09-18 Jerome Guitton <guitton@adacore.com>
1460
1461 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
1462 (inf_ttrace_delete_dying_threads_callback): New function.
1463 (inf_ttrace_resume): After resuming the execution, iterate over
1464 the dying threads to delete them for the thread list.
1465 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
1466 mark the corresponding thread as dying instead of removing it
1467 from the thread list.
1468 (inf_ttrace_thread_alive): return 0 for dying threads.
1469
1470 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1471
1472 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
1473 that return_frame is not null.
1474
1475 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1476
1477 * solib-svr4.c: Add include of "auxv.h".
1478 (enable_break): Use the AT_BASE auxiliary entry if available.
1479 * Makefile.in (solib-svr4.o): Update dependencies.
1480
1481 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1482
1483 * NEWS: Create a new section for the next release branch.
1484 Rename the section of the current branch, now that it has
1485 been cut.
1486
1487 2007-09-17 Jerome Guitton <guitton@adacore.com>
1488
1489 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
1490 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
1491
1492 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
1493
1494 * mi/mi-cmds.c (mi_cmds): Register -list-features.
1495 * mi/mi-cmds.h (mi_cmd_list_features): New.
1496 * mi/mi-main.c (mi_cmd_list_features): New.
1497
1498 2007-09-11 Joel Brobecker <brobecker@adacore.com>
1499
1500 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
1501 * version.in: Bump version to 6.7.50-20070911-cvs.
1502
1503 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1504
1505 * thread.c (free_thread): Do not delete the step resume breakpoint
1506 right away.
1507
1508 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1509
1510 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
1511 * corelow.c (core_read_description): New.
1512 (init_core_ops): Set to_read_description.
1513 * gdbarch.sh: Add gdbarch_core_read_description.
1514 * mips-linux-tdep.c (mips_linux_core_read_description): New.
1515 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
1516 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
1517 (mips_register_g_packet_guesses): Use them.
1518 (_initialize_mips_tdep): Initialize them.
1519 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
1520 * gdbarch.h, gdbarch.c: Regenerated.
1521
1522 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1523
1524 * infrun.c (stepping_past_breakpoint): New global variable.
1525 (stepping_past_breakpoint_ptid): Likewise.
1526 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
1527 Only switch threads if we need to single-step over a breakpoint hit
1528 in the previously selected thread. If stepping, remember previous
1529 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
1530 switch_to_thread instead of copying its contents.
1531 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
1532 prepare_to_proceed returns true.
1533 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
1534 (context_switch): Call switch_to_thread.
1535 (handle_inferior_event): Switch back to previous thread if requested
1536 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
1537 * gdbthread.h (switch_to_thread): Add prototype.
1538 * thread.c (switch_to_thread): Make global.
1539
1540 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
1541
1542 * p-valprint.c: Fix 7 ARI reported problems.
1543 (pascal_val_print): Fix one operator at end of line issue.
1544 Use paddress function to remove use of
1545 deprecated_print_address_numeric function (2 times).
1546 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
1547 (pascal_value_print): Fix 3 operator at end of line issues.
1548
1549 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
1550
1551 PR gdb/2103
1552 * arm-tdep.c (arm_in_call_stub): Delete.
1553 (arm_skip_stub): Handle from_arm and from_thumb stubs.
1554
1555 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
1556
1557 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
1558 types.
1559
1560 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1561 Jim Blandy <jimb@codesourcery.com>
1562
1563 * NEWS: Update description of string changes. Mention print/s.
1564 * c-valprint.c (textual_element_type): New.
1565 (c_val_print): Use it. Do not skip address printing for pointers
1566 with a string format.
1567 (c_value_print): Doc update.
1568 * dwarf2read.c (read_array_type): Use make_vector_type.
1569 * gdbtypes.c (make_vector_type): New.
1570 (init_vector_type): Use it.
1571 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
1572 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
1573 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
1574 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
1575 (make_vector_type): New.
1576 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
1577 Call the language print routine for string format.
1578 (print_scalar_formatted): Call val_print for string format. Handle
1579 unsigned original types for char format.
1580 (validate_format): Do not reject string format.
1581 * stabsread.c (read_type): Use make_vector_type.
1582 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
1583
1584 2007-09-04 Michael Snyder <msnyder@access-company.com>
1585
1586 * expprint.c (print_subexp_standard): Check strchr for null.
1587 * Makefile.in (expprint.o): Depend on gdb_assert.h.
1588
1589 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
1590
1591 * stabsread.c (patch_block_status): Guard against null.
1592 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
1593
1594 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1595
1596 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
1597 in internal error message.
1598
1599 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1600 Daniel Jacobowitz <dan@codesourcery.com>
1601
1602 * infcmd.c (post_create_inferior): Update comment.
1603 (run_command_1): Always call post_create_inferior with 0 as
1604 from_tty.
1605
1606 * i386-cygwin-tdep.h: New.
1607 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
1608 (win32_xfer_shared_library): Make it extern.
1609
1610 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
1611 i386-cygwin-tdep.h.
1612 (win32_so_ops): Delete.
1613 (get_relocated_section_addrs): Delete.
1614 (solib_symbols_add): Delete.
1615 (register_loaded_dll): Delete.
1616 (win32_make_so): New.
1617 (handle_load_dll): Use win32_make_so.
1618 (win32_free_so): Free the passed in so.
1619 (win32_relocate_section_addresses): Delete.
1620 (win32_solib_create_inferior_hook): Delete.
1621 (handle_unload_dll): Don't add PE offset here. Free so with
1622 win32_free_so instead of free_so.
1623 (win32_special_symbol_handling): Delete.
1624 (get_win32_debug_event): Remove unneeded calls. Set state to
1625 TARGET_WAITKIND_LOADED on a dll unload.
1626 (do_initial_win32_stuff): Clear cygwin_load_start and
1627 cygwin_load_end.
1628 (map_code_section_args): Delete.
1629 (dll_code_sections_add): Delete.
1630 (core_section_load_dll_symbols): Delete.
1631 (win32_xfer_shared_libraries): New.
1632 (win32_current_sos): Delete.
1633 (win32_xfer_partial): New.
1634 (open_symbol_file_object): Delete.
1635 (in_dynsym_resolve_code): Delete.
1636 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
1637 of win32_ops. Remove win32_so_ops settings. Don't set
1638 current_target_so_ops here.
1639
1640 * Makefile.in (i386_cygwin_tdep_h): New variable.
1641 (i386-cygwin-tdep.o): Update dependencies.
1642 (win32-nat.o): Update dependencies.
1643
1644 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1645 Daniel Jacobowitz <dan@codesourcery.com>
1646
1647 * gdbarch.sh (core_xfer_shared_libraries): New.
1648
1649 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1650
1651 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
1652
1653 * xml-support.c (gdb_xml_parse): Debug output tweaks.
1654 (xml_escape_text): New.
1655 * xml-support.h (xml_escape_text): Declare.
1656
1657 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
1658 * config/i386/cygwin.mt (TDEPFILES): ... here.
1659
1660 * win32-nat.c: (fetch_elf_core_registers): Delete.
1661 (win32_elf_core_fn): Delete.
1662 (_initialize_core_win32): Delete.
1663
1664 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
1665 "xml-support.h" and "gdbcore.h".
1666 (i386_win32_gregset_reg_offset): New.
1667 (I386_WIN32_SIZEOF_GREGSET): New.
1668 (i386_win32_regset_from_core_section): New.
1669 (win32_xfer_shared_library): New.
1670 (struct cpms_data): New.
1671 (core_process_module_section): New.
1672 (win32_core_xfer_shared_libraries): New.
1673 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
1674 gregset_num_regs, sizeof_gregset members of tdep. Register
1675 regset_from_core_section and core_xfer_shared_libraries callbacks.
1676
1677 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
1678 * gdbarch.h, gdbarch.c: Regenerate.
1679
1680 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1681
1682 * corelow.c (core_xfer_partial): Pass writebuf to
1683 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
1684
1685 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
1686
1687 * arm-tdep.h (arm_skip_stub): Declare.
1688 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
1689 "gdbcore.h".
1690 (arm_pe_skip_trampoline_code): New function.
1691 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
1692 gdbarch_skip_trampoline_code callback.
1693 * Makefile.in (arm-wince-tdep.o): Update dependencies.
1694
1695 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1696
1697 * MAINTAINERS: Move Fred Fish to Past Maintainers.
1698
1699 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1700
1701 * configure.ac: Add --with-expat.
1702 * configure: Regenerated.
1703
1704 2007-09-03 Andreas Schwab <schwab@suse.de>
1705
1706 * configure.ac: Accept --with-system-readline.
1707 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
1708 * configure: Regenerate.
1709 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
1710 substituted values.
1711 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
1712
1713 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
1714 Daniel Jacobowitz <dan@codesourcery.com>
1715
1716 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
1717
1718 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1719
1720 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
1721
1722 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1723
1724 * top.c (print_gdb_version): Update for GPL version 3.
1725
1726 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1727
1728 * NEWS: Mention the build-id .debug files verification.
1729
1730 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1731
1732 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
1733
1734 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1735
1736 * Makefile.in (symfile.o): Update dependencies.
1737 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
1738 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
1739 (struct build_id): New structure.
1740 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
1741 (find_separate_debug_file): New variable BUILD_ID.
1742 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
1743
1744 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1745
1746 * varobj.c (struct varobj): Fix comment
1747 for the type member not to lie when it can be
1748 NULL.
1749
1750 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1751
1752 Implement -var-info-path-expression.
1753
1754 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
1755 Declare.
1756 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
1757 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
1758 * varobj.c (struct varobj): New field 'path_expr'.
1759 (c_path_expr_of_child, cplus_path_expr_of_child)
1760 (java_path_expr_of_child): New.
1761 (struct language_specific): New field path_expr_of_child.
1762 (varobj_create): Initialize the path_expr field.
1763 (varobj_get_path_expr): New.
1764 (new_variable): Initialize the path_expr field.
1765 (free_variable): Free the path_expr field.
1766 (adjust_value_for_children_access): New parameter
1767 WAS_TYPE.
1768 (c_number_of_children): Adjust.
1769 (c_describe_child): New parameter CFULL_EXPRESSION.
1770 Compute full expression.
1771 (c_value_of_child, c_type_of_child): Adjust.
1772 (cplus_number_of_children): Adjust.
1773 (cplus_describe_child): New parameter CFULL_EXPRESSION.
1774 Compute full expression.
1775 (cplus_name_of_child, cplus_value_of_child)
1776 (cplus_type_of_child): Adjust.
1777 * varobj.h (varobj_get_path_expr): Declare.
1778
1779 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1780
1781 * mi/mi-cmd-var.c (print_varobj): If a varobj
1782 type is NULL, don't try to print it.
1783
1784 2007-08-30 Alan Modra <amodra@bigpond.net.au>
1785
1786 * ppc-linux-nat.c (right_fill_reg): Delete.
1787 (supply_gregset): Use ppc_supply_gregset.
1788 (supply_fpregset): Use ppc_supply_fpregset.
1789 (fill_gregset): Use ppc_collect_gregset.
1790 (fill_fpregset): Use ppc_collect_fpregset.
1791 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
1792 (right_supply_register, ppc_linux_supply_gregset): Delete.
1793 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
1794 (ppc_linux_supply_fpregset): Delete.
1795 (ppc_linux_collect_gregset): New function.
1796 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
1797 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
1798 ppc_linux_supply_gregset, and ppc_collect_gregset.
1799 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
1800 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
1801 (ppc_linux_regset_from_core_section): Update.
1802 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
1803 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
1804 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
1805 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
1806 (ppcobsd_collect_gregset): Likewise.
1807 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
1808 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
1809 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
1810 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
1811 (rs6000_aix64_reg_offsets): Likewise.
1812 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
1813 ppc_floating_point_unit_p.
1814 (rs6000_aix_collect_regset): Similarly.
1815 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
1816 when regsize is larger than regcache register size.
1817 (ppc_collect_reg): Similarly zero pad when regsize is larger than
1818 regcache register size.
1819 (ppc_greg_offset): New function, split out from..
1820 (ppc_supply_gregset): ..here. Separate code handling all regs from
1821 single reg case. Correct xer offset.
1822 (ppc_fpreg_offset): New function, split out from..
1823 (ppc_supply_fpregset): ..here. Separate code handling all regs from
1824 single reg case.
1825 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
1826 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
1827 a fp unit, instead return if no fp.
1828
1829 2007-08-29 Jim Blandy <jimb@codesourcery.com>
1830
1831 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
1832 this code has not been compiled for two years.
1833
1834 2007-08-29 Michael Snyder <msnyder@access-company.com>
1835
1836 * event-top.c (gdb_readline2): Return after EOF.
1837
1838 2007-08-29 Joel Brobecker <brobecker@adacore.com>
1839
1840 * symtab.c: Remove a function that has been commented out 3 years ago.
1841
1842 2007-08-29 Randolph Chung <tausq@debian.org>
1843
1844 * hppa-tdep.c (hppa32_cannot_fetch_register)
1845 (hppa64_cannot_fetch_register): New functions.
1846 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
1847 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
1848
1849 2007-08-28 Michael Snyder <msnyder@access-company.com>
1850
1851 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
1852 check for null before calling check_typedef.
1853
1854 * NEWS: Mention Coverity bug fixes.
1855
1856 2007-08-27 Markus Deuling <deuling@de.ibm.com>
1857
1858 * spu-tdep.c (spu_pointer_to_address): New function.
1859 (spu_integer_to_address): Likewise.
1860 (spu_gdbarch_init): Add spu_pointer_to_address and
1861 spu_integer_to_address to gdbarch.
1862
1863 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
1864
1865 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
1866
1867 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1868
1869 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
1870 that contains the GDB license.
1871 * copying.awk: Adjust to the GPLv3 wording.
1872 * copying.c: Regenerate.
1873
1874 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1875
1876 * copying.awk: Protoization, and i18n markup.
1877
1878 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1879
1880 * config/djgpp/djconfig.sh: Switch license to GPLv3.
1881 * copyright.sh: Likewise.
1882 * gdb-events.sh: Likewise.
1883 * gdb_gcore.sh: Likewise.
1884 * gdb_mbuild.sh: Likewise.
1885 * gdbarch.sh: Likewise.
1886 * observer.sh: Likewise.
1887 * features/feature_to_c.sh: Likewise.
1888 * regformats/regdat.sh: Likewise.
1889
1890 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1891
1892 Switch the license of all .c files to GPLv3.
1893 Switch the license of all .h files to GPLv3.
1894 Switch the license of all .cc files to GPLv3.
1895
1896 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1897
1898 * configure.ac: Switch license to GPLv3.
1899
1900 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1901
1902 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
1903 determine the file's FPU type.
1904
1905 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1906
1907 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
1908 (mips_n32n64_push_dummy_call): Always increment float_argreg along
1909 with argreg. Use mips_n32n64_fp_arg_chunk_p.
1910
1911 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1912
1913 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
1914 Fix formatting.
1915 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
1916 (elf_lookup_lib_symbol): Fix formatting.
1917
1918 2007-08-21 Michael Snyder <msnyder@access-company.com>
1919
1920 * dbxread.c (read_dbx_symtab): Guard null deref.
1921 Break up long line.
1922
1923 * valops.c (find_overload_match): Guard against NULL.
1924
1925 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1926
1927 * MAINTAINERS (Patch Champions): Remove self.
1928
1929 2007-08-21 Chris Smith <chris.smith@st.com>
1930
1931 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
1932 line.
1933
1934 2007-08-18 Michael Snyder <msnyder@access-company.com>
1935
1936 * stabsread.c (dbx_lookup_type): Memory leak.
1937
1938 * event-loop.c (delete_async_signal_handler): Move pointer null
1939 test to before pointer dereference.
1940
1941 * ui-out.c (append_header_to_list): Possible cut and paste error.
1942
1943 * MAINTAINERS: white space tweak.
1944
1945 2007-08-17 Michael Snyder <msnyder@access-company.com>
1946
1947 * stack.c (print_frame): Memory leak.
1948
1949 * completer.c (filename_completer): Avoid memory leak.
1950 Remove unnecessary nested block.
1951
1952 * c-exp.y (parse_number): Memory leak.
1953
1954 * completer.c (location_completer): Must free 'fn_list', except
1955 in the one case where it is returned (as 'list').
1956
1957 * varobj.c (value_of_root): Memory leak.
1958
1959 * gdbtypes.h (virtual_base_list): Remove export decl.
1960 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
1961 (virtual_base_index): Memory leak.
1962 (virtual_base_index_skip_primaries): Ditto.
1963
1964 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
1965
1966 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
1967 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
1968 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
1969 (xtensa_read_register): New function.
1970 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
1971 (xtensa_insn_kind): New types.
1972 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
1973 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
1974 (xtensa_verify_config, xtensa_pseudo_register_read)
1975 (xtensa_pseudo_register_write, xtensa_extract_return_value)
1976 (xtensa_store_return_value)
1977 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
1978 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
1979 (xtensa_frame_this_id, xtensa_frame_prev_register)
1980 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
1981 (call0_frame_cache, call0_frame_get_reg_at_entry)
1982 (call0_classify_opcode, call0_track_op)
1983 (call0_analyze_prologue, call0_frame_cache): New functions.
1984
1985 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
1986
1987 * breakpoint.c (bpstat_free): New.
1988 (bpstat_clear): Use bpstat_free.
1989 (delete_breakpoint): Document why we cannot
1990 remove bpstats from stop_bpstat.
1991 * breakpoint.h (bpstat_free): Declare.
1992
1993 2007-08-16 Michael Snyder <msnyder@access-company.com>
1994
1995 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
1996
1997 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1998 Joel Brobecker <brobecker@adacore.com>
1999
2000 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
2001
2002 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
2003 Joel Brobecker <brobecker@adacore.com>
2004
2005 * ada-lang.c (possible_user_operator_p): Alternative fix to last
2006 checkin guarding against NULL.
2007
2008 2007-08-14 Michael Snyder <msnyder@access-company.com>
2009
2010 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
2011 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
2012 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
2013 go at beginning of new line.
2014
2015 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
2016 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
2017 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
2018 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
2019 tui-winsource.h, tui.c, tui.h: Function declarations and
2020 definitions, wrap long lines.
2021
2022 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
2023 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
2024 Reformat block comments to GNU standard.
2025
2026 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
2027 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
2028 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
2029 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
2030 tui.c, tui.h: Comment reformatting to coding standard (capitals,
2031 spaces after periods, etc).
2032
2033 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
2034 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
2035 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
2036 tui-winsource.h: Whitespace changes, fix pointer declarations
2037 to be consistant.
2038
2039 2007-08-14 Joel Brobecker <brobecker@adacore.com>
2040 Michael Snyder <msnyder@access-company.com>
2041
2042 * ada-lang.c (field_alignment): Guard against NULL.
2043
2044 2007-08-14 Joel Brobecker <brobecker@adacore.com>
2045
2046 * MAINTAINERS (Global Maintainers): Add self.
2047
2048 2007-08-14 Michael Snyder <msnyder@access-company.com>
2049
2050 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
2051
2052 * ada-lang.c (possible_user_operator_p): Guard against NULL.
2053
2054 * varobj.c (cplus_describe_child): Guard against null.
2055 Use "NULL" instead of "0" to initialize pointers.
2056
2057 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
2058
2059 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
2060 to match any gdbarch with matching OSABI. Set default ABI and FPU
2061 after running the OSABI handler.
2062
2063 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
2064
2065 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
2066 * config/i386/linux.mt (TDEPFILES): ...to here.
2067
2068 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
2069
2070 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
2071 the 'silent' parameter and code to implement that.
2072 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
2073 prototype.
2074 * win32-nat.c: Adjust.
2075 * solib.c: Adjust.
2076
2077 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
2078
2079 * breakpoint.c (update_breakpoints_after_exec): Don't
2080 set address to zero.
2081
2082 2007-08-13 Michael Snyder <msnyder@access-company.com>
2083
2084 * valops.c: Whitespace clean-up.
2085
2086 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
2087
2088 * event-top.c (command_line_handler): Memory leak.
2089
2090 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
2091 No need to make copy.
2092
2093 * source.c (find_source_lines): Require symtab 's'.
2094
2095 2007-08-11 Michael Snyder <msnyder@access-company.com>
2096
2097 * completer.c: Spelling fix in comments.
2098
2099 2007-08-10 Michael Snyder <msnyder@access-company.com>
2100
2101 * gdbtypes.c: Coding standard cleanup.
2102 * gdbtypes.c: Comment/whitespace cleanup.
2103
2104 * stabsread.c (read_huge_number): Attempt to compute value before
2105 values that it depends on.
2106
2107 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
2108 (decode_objc): Use "NULL" instead of 0.
2109 (find_method): Ditto.
2110 (decode_all_digits): Ditto.
2111 (decode_dollar): Ditto.
2112
2113 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
2114
2115 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
2116
2117 * solib-svr4.c (enable_break): Don't free tmp_pathname until
2118 after closing bfd.
2119
2120 * completer.c: Comment/whitespace cleanup.
2121
2122 2007-08-10 Joel Brobecker <brobecker@adacore.com>
2123
2124 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
2125
2126 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
2127
2128 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
2129 allocated file descriptors.
2130
2131 2007-08-10 Joel Brobecker <brobecker@adacore.com>
2132
2133 * Makefile.in: Minor cleanup throughout; add some missing variables,
2134 add some missing rules, remove some rules that are no longer needed,
2135 and fix the dependencies in several rules.
2136
2137 2007-08-10 Ludovic Courtès <ludo@gnu.org>
2138
2139 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
2140 (scm_lang_h, scm_tags_h): New.
2141 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
2142 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
2143 * defs.h (enum language): Add `language_scm'.
2144
2145 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
2146 opening.
2147
2148 2007-08-09 Ludovic Courtès <ludo@gnu.org>
2149
2150 * MAINTAINERS (Write After Approval): Add myself.
2151
2152 2007-08-09 Michael Snyder <msnyder@access-company.com>
2153
2154 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
2155
2156 2007-08-09 Joel Brobecker <brobecker@adacore.com>
2157
2158 * solib-som.c (som_relocate_section_addresses): Stop saving
2159 the $CODE$ section in the so_list structure.
2160
2161 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
2162
2163 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
2164 (xtensa_register_group_t): Add entries for coprocessors.
2165 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
2166 (xtensa_add_reggroups): Likewise.
2167 (xtensa_register_reggroup_p): Likewise.
2168 (xtensa_coprocessor_register_group): New function.
2169 (xtensa_cp): New.
2170
2171 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2172
2173 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
2174
2175 2007-08-08 Michael Snyder <msnyder@access-company.com>
2176
2177 * target.c (target_read_string): Guard against null.
2178
2179 * varobj.c (value_of_root): Move alloc after return to avoid leak.
2180
2181 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
2182 (tui_set_layout_for_display_command): Mem leak.
2183
2184 * top.c (command_line_input): Memory leak.
2185
2186 * solib-svr4.c (open_symbol_file_object): Memory leak.
2187 (svr4_current_sos): Ditto.
2188 (enable_break): Ditto.
2189
2190 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
2191
2192 * dwarf2read.c (add_partial_symbol): Memory leak.
2193
2194 2007-08-06 Michael Snyder <msnyder@access-company.com>
2195
2196 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
2197
2198 2007-08-05 Jim Blandy <jimb@codesourcery.com>
2199
2200 * macroexp.c (init_buffer): Remove testing code that overrides the
2201 caller's length guess.
2202 (gather_arguments): Use a larger initial size, now that the vector
2203 growth code has been exercised.
2204
2205 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
2206
2207 * solib-target.c (solib_target_relocate_section_addresses): Add
2208 orig_delta to addr_high.
2209
2210 2007-08-04 Michael Snyder <msnyder@access-company.com>
2211
2212 * remote-fileio.c (remote_fileio_func_write): Memory leak.
2213
2214 * breakpoint.c (print_one_breakpoint): Off by one error.
2215
2216 * tracepoint.c (add_register): Off by one error.
2217 (stringify_collection_list): Free malloc buffer.
2218
2219 2007-08-03 Michael Snyder <msnyder@access-company.com>
2220
2221 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
2222 stop memory leak, straighten out cleanups.
2223
2224 * jv-lang.c (java_link_class_type): Guard against NULL.
2225
2226 2007-08-02 Michael Snyder <msnyder@access-company.com>
2227
2228 * gdbtypes.c (create_set_type): Test should only be done within
2229 the preceeding if block. Otherwise, variable is uninitialized.
2230
2231 * gdbtypes.c (check_typedef): Guard NULL.
2232
2233 2007-08-01 Michael Snyder <msnyder@access-company.com>
2234
2235 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
2236 avoid dereference in lookup_cmd_1.
2237
2238 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
2239 clean up long lines.
2240 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
2241 (tui_alloc_win_info): Ditto.
2242 (tui_add_content_elements): Ditto.
2243 * tui/tui-file.c (tui_file_magic): Ditto.
2244
2245 2007-07-31 Michael Snyder <msnyder@access-company.com>
2246
2247 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
2248 True and false paths are mutually exclusive.
2249
2250 * event-top.c (command_line_handler): Add pedantic return.
2251
2252 * f-valprint.c (info_common_command): Bail out to prevent null
2253 pointer deref. Break up a long line.
2254
2255 * exec.c (xfer_memory): Remove redundant condition from 'if'.
2256
2257 * symfile.c (reread_separate_symbols): Free xmalloced memory.
2258
2259 * printcmd.c (build_address_symbolic): Remove dead code and dead
2260 variable.
2261
2262 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
2263
2264 * linespec.c (minsym_found): Advance to the next line if possible.
2265
2266 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
2267
2268 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
2269 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
2270 solib-svr4.o, and add solib-target.o
2271
2272 2007-07-27 Michael Snyder <msnyder@access-company.com>
2273
2274 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
2275
2276 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
2277
2278 * MAINTAINERS (Write After Approval): Add myself.
2279
2280 2007-07-26 Maciej W. Rozycki <macro@mips.com>
2281
2282 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
2283 for include files.
2284
2285 2007-07-25 Maciej W. Rozycki <macro@mips.com>
2286
2287 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
2288
2289 2007-07-24 Michael Snyder <msnyder@access-company.com>
2290
2291 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
2292 'buffer' must cover both branches that call strcmp (Coverity).
2293
2294 * stack.c (print_frame_args): Check return value of lookup_symbol.
2295
2296 * ax-gdb.c (find_field): Guard against null ptr.
2297
2298 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
2299
2300 * regformats/reg-spu.dat: Fix order of npc, id registers.
2301
2302 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
2303
2304 * target.c (memory_xfer_partial): Accesses to unmapped overlay
2305 sections should always go to the executable file.
2306
2307 2004-07-20 Chris Dearman <chris@mips.com>
2308
2309 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
2310 prologue instructions.
2311
2312 2007-07-20 Maciej W. Rozycki <macro@mips.com>
2313
2314 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
2315 a direct test.
2316
2317 2007-07-20 Chris Dearman <chris@mips.com>
2318 Maciej W. Rozycki <macro@mips.com>
2319
2320 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
2321 description.
2322
2323 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
2324 Daniel Jacobowitz <dan@codesourcery.com>
2325
2326 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
2327 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
2328 printf.
2329 * NEWS: Mention gdbserver DLL support.
2330
2331 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
2332
2333 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
2334
2335 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
2336
2337 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
2338 warning bug.
2339
2340 2007-07-13 Kevin Buettner <kevinb@redhat.com>
2341
2342 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
2343 instruction case.
2344
2345 2007-07-12 Kevin Buettner <kevinb@redhat.com>
2346
2347 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
2348 (mep_analyze_prologue): Add case for BRA instruction.
2349
2350 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
2351
2352 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
2353
2354 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
2355
2356 * breakpoint.c: Include "top.h".
2357 (breakpoint_1): Don't set convenience variable $_ if server prefix
2358 is used.
2359 (_initialize_breakpoint): Describe this behaviour in command help.
2360
2361 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
2362
2363 * solib-target.c (library_list_start_segment): Cast address to
2364 CORE_ADDR.
2365
2366 2007-07-06 Mark Kettenis <kettenis@gnu.org>
2367
2368 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
2369 for terminated processes.
2370
2371 2007-07-05 Michael Snyder <msnyder@access-company.com>
2372
2373 * event-top.c (cli_command_loop): Prompt string can (and should)
2374 be freed after call to readline (Coverity). Also move local var
2375 declarations into block where they are used.
2376
2377 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
2378 should) be freed after call to readline (Coverity). Also move
2379 local var declarations into block where they are used.
2380
2381 2007-07-03 Andreas Schwab <schwab@suse.de>
2382
2383 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
2384 /proc/../stat.
2385
2386 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
2387 Thiago Bauermann <bauerman@br.ibm.com>
2388 Joseph S. Myers <joseph@codesourcery.com>
2389 Daniel Jacobowitz <dan@codesourcery.com>
2390
2391 * remote.c (remote_check_symbols): Use
2392 gdbarch_convert_from_func_ptr_addr.
2393 * infcall.c (find_function_addr): Handle function descriptors
2394 without debugging information.
2395 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
2396 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
2397 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
2398 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
2399 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
2400 allow SEC_CODE and SEC_DATA.
2401 (enable_break): Update calls. Pass current_target to solib_add.
2402 Use gdbarch_convert_from_func_ptr_addr.
2403
2404 2007-07-03 Ilko Iliev <iliev@ronetix.at>
2405 Daniel Jacobowitz <dan@codesourcery.com>
2406
2407 * symfile.c (print_transfer_performance): Avoid integer overflow.
2408 Use larger units.
2409
2410 2007-07-03 Markus Deuling <deuling@de.ibm.com>
2411
2412 * cp-namespace.c (lookup_symbol_file): Add block to
2413 lookup_symbol_global call.
2414 * Makefile.in (solist_h): Add dependency on symtab header.
2415 (symtab.o): Add dependency on solist header.
2416 * solib.c (solib_global_lookup): New function.
2417 * solib-svr4.c (scan_dyntag): Likewise.
2418 (elf_locate_base): Call helper routine scan_dyntag.
2419 (elf_lookup_lib_symbol): New function.
2420 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
2421 * solist.h (symtab.h): New include.
2422 (struct target_so_ops): New member lookup_lib_global_symbol.
2423 (solib_global_lookup): New prototype.
2424 * symtab.c: New include solist.h.
2425 (lookup_objfile_from_block): New function.
2426 (lookup_global_symbol_from_objfile): New function.
2427 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
2428 (lookup_symbol_global): Call library-specific lookup procedure.
2429 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
2430
2431 * NEWS: Document framework.
2432
2433 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2434
2435 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
2436 to NULL.
2437
2438 * cli/cli-script.c (build_command_line): Update NULL check.
2439
2440 2007-07-02 Michael Snyder <msnyder@access-company.com>
2441
2442 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
2443
2444 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2445
2446 * Makefile.in (XMLFILES): Add library-list.dtd.
2447 (ALLDEPFILES): Add solib-target.o.
2448 (solib-target.o): New rule.
2449 * remote.c (PACKET_qXfer_libraries): New constant.
2450 (remote_protocol_features): Add qXfer:libraries:read.
2451 (remote_wait): Recognize library stop replies.
2452 (remote_async_wait): Likewise. Fix typo.
2453 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
2454 (init_remote_async_ops): Fix typo.
2455 (_initialize_remote): Register "set remote library-info-packet".
2456 * solib-som.c (som_current_sos): Set addr_low and addr_high.
2457 * solib-target.c: New file.
2458 * solib.c (solib_map_sections): Use addr_low and addr_high instead
2459 of textsection.
2460 (info_sharedlibrary_command): Likewise.
2461 (solib_add_library, solib_remove_library): New.
2462 * solist.h (struct so_list): Replace textsection with addr_low and
2463 addr_high.
2464 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
2465 * NEWS: Describe new qXfer:libraries:read and shared library
2466 event support.
2467 * features/library-list.dtd: New.
2468
2469 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2470
2471 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
2472 (start_remote): Use STOP_QUIETLY_REMOTE.
2473 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
2474 support on a SOLIB_ADD definition. Update breakpoints_inserted.
2475 Update to match shared library event breakpoint support. Only
2476 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
2477 (normal_stop): Handle TARGET_WAITKIND_LOADED.
2478 * fork-child.c (startup_inferior): Do not set
2479 inferior_ignoring_startup_exec_events
2480 * inferior.h (inferior_ignoring_startup_exec_events): Delete
2481 declaration.
2482 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
2483
2484 2007-07-02 Markus Deuling <deuling@de.ibm.com>
2485
2486 * breakpoint.c (insert_bp_location): Remove dead code
2487 (DISABLE_UNSETTABLE_BREAK).
2488 (disable_breakpoints_in_shlibs)
2489 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
2490
2491 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2492
2493 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
2494 Call insert_bp_location.
2495
2496 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
2497
2498 * core-regset.c (fetch_core_registers): Work around gcc 3.4
2499 alias warning bug.
2500
2501 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2502
2503 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
2504 objfiles.
2505
2506 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2507
2508 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
2509 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
2510 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
2511 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
2512 to display_gdb_prompt.
2513
2514 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2515
2516 PR symtab/2161
2517 * target.c (memory_xfer_partial): Do not continue past targets with
2518 all memory.
2519
2520 2007-06-30 Andreas Schwab <schwab@suse.de>
2521
2522 * m68k-tdep.c (m68k_ps_type): New.
2523 (m68k_init_types): New.
2524 (m68k_register_type): Use m68k_ps_type for PS register.
2525 (_initialize_m68k_tdep): Call m68k_init_types.
2526
2527 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
2528 from the generic m68k arch.
2529
2530 2007-06-28 Michael Snyder <msnyder@access-company.com>
2531
2532 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
2533 (Coverity).
2534
2535 * linux-thread-db.c (thread_db_get_thread_local_address): Add
2536 gdb_assert before using return value of find_thread_pid (Coverity).
2537
2538 * source.c (unset_substitute_path_command): Plug leak (Coverity).
2539
2540 * cli/cli-script.c (build_command_line): Add null pointer guard
2541 (Coverity).
2542
2543 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
2544
2545 * linux-thread-db.c (thread_db_attach): Delete.
2546 (thread_db_detach): Typo fix. Call target_mourn_inferior
2547 instead of fixing up proc_handle.
2548 (have_threads_callback, have_threads): New functions.
2549 (thread_db_wait): Remove dead proc_handle.pid check. Only
2550 translate PTIDs if we have registered threads. Check for new
2551 threads if we have none.
2552 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
2553 (find_new_threads_callback): Only enable event reporting if TID == 0.
2554 (same_ptid_callback): New.
2555 (thread_db_get_thread_local_address): Check for new threads.
2556 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
2557 or to_post_startup_inferior.
2558
2559 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2560
2561 * infrun.c (adjust_pc_after_break): Do not assume software single-step
2562 is always active if SOFTWARE_SINGLE_STEP_P is true.
2563 (resume): Use gdbarch_software_single_step[_p] instead of
2564 SOFTWARE_SINGLE_STEP[_P].
2565 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
2566
2567 * gdbarch.sh (software_single_step): Remove target macro.
2568 * gdbarch.h, gdbarch.c: Regenerate.
2569
2570 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2571
2572 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
2573 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
2574 (struct gdbarch_swap, struct gdbarch_swap_registration,
2575 struct gdbarch_swap_registry, gdbarch_swap_registry,
2576 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
2577 current_gdbarch_swap_in_hack): Remove.
2578 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
2579 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
2580 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
2581 (deprecated_current_gdbarch_select_hack): Likewise.
2582 * gdbarch.h, gdbarch.c: Regenerate.
2583
2584 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2585
2586 * infrun.c (clear_proceed_status): Clean up stop_registers.
2587 (normal_stop): Allocate regcache for stop_registers.
2588 (struct inferior_status): Remove stop_registers member.
2589 (save_inferior_status): Do not save stop_registers.
2590 (restore_inferior_status): Do not restore stop_registers.
2591 (discard_inferior_status): Do not discard stop_registers.
2592 (build_infrun): Remove.
2593 (_initialize_infrun): Do not swap stop_registers.
2594
2595 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2596
2597 * remote.c (remote_address_masked): If remote_address_size is zero,
2598 default to target address size.
2599 (build_remote_gdbarch_data): Remove.
2600 (_initialize_remote): Do not swap remote_address_size.
2601
2602 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2603
2604 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
2605 builtin_type_char, builtin_type_short, builtin_type_int,
2606 builtin_type_long, builtin_type_signed_char,
2607 builtin_type_unsigned_char, builtin_type_unsigned_short,
2608 builtin_type_unsigned_int, builtin_type_unsigned_long,
2609 builtin_type_float, builtin_type_double, builtin_type_long_double,
2610 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2611 builtin_type_bool, builtin_type_long_long,
2612 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2613 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
2614 variable declaration with compatibility macro.
2615 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
2616 builtin_type_char, builtin_type_short, builtin_type_int,
2617 builtin_type_long, builtin_type_signed_char,
2618 builtin_type_unsigned_char, builtin_type_unsigned_short,
2619 builtin_type_unsigned_int, builtin_type_unsigned_long,
2620 builtin_type_float, builtin_type_double, builtin_type_long_double,
2621 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2622 builtin_type_bool, builtin_type_long_long,
2623 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2624 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
2625 (build_gdbtypes): Remove.
2626 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
2627 opaque-type-resolution command here. Do not call
2628 deprecated_register_gdbarch_swap.
2629
2630 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2631
2632 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
2633 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
2634 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
2635
2636 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
2637 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
2638 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
2639 (build_parse): Remove.
2640 (_initialize_parse): Do not call build_parse. Do not register
2641 msym_ types for gdbarch-swapping.
2642
2643 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
2644 instead of creating private type.
2645
2646 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
2647 (_initialize_xcoffread): Do not initialized them.
2648 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
2649
2650 * mdebugread.c (nodebug_func_symbol_type): Remove.
2651 (nodebug_var_symbol_type): Remove.
2652 (_initialize_mdebugread): Do not initialize them.
2653 (parse_symbol): Use builtin nodebug_ type instead of them.
2654 (parse_procedure): Likewise.
2655
2656 2007-06-21 Chris Dearman <chris@mips.com>
2657
2658 * printcmd.c (do_one_display): If display/i, start with an initial
2659 line feed to avoid bad layout if there is a branch delay slot.
2660
2661 2007-06-21 Nigel Stephens <nigel@mips.com>
2662 Maciej W. Rozycki <macro@mips.com>
2663
2664 * disasm.c (gdb_print_insn): Return the number of branch delay
2665 slot instructions too.
2666 * disasm.h (gdb_print_insn): Update prototype.
2667 * printcmd.c (branch_delay_insns): New variable to record the
2668 number of delay slot instructions after disassembling a branch.
2669 (print_formatted): Record the number of branch delay slot
2670 instructions.
2671 (do_examine): When disassembling, if the last instruction
2672 disassembled has any branch delay slots, then bump the count so
2673 that they get disassembled too.
2674 * tui/tui-disasm.c (tui_disassemble): Update the call to
2675 gdb_print_insn().
2676 * NEWS: Document the new behaviour.
2677
2678 2007-06-21 Andreas Schwab <schwab@suse.de>
2679
2680 * regcache.c (write_pc_pid): Restore missing else.
2681
2682 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
2683
2684 * regcache.c (regcache_print): Use get_current_regcache ()
2685 instead of current_regcache.
2686
2687 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
2688
2689 PR 4606
2690 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
2691 instead of bfd_make_section_anyway.
2692 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
2693 when clearing SEC_LOAD.
2694
2695 2007-06-19 Joseph Myers <joseph@codesourcery.com>
2696
2697 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
2698 registers for big-endian.
2699
2700 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2701
2702 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
2703 * disasm.c (dump_insns, gdb_print_insn): Likewise.
2704 * gdbarch.c, gdbarch.h: Regenerate.
2705
2706 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2707
2708 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
2709 gdbarch_believe_pcc_promotion.
2710 * stabsread.c (define_symbol): Likewise.
2711 Remove unnecessary definition.
2712 * coffread.c (process_coff_symbol): Remove unnecessary code.
2713 * gdbarch.c, gdbarch.h: Regenerate.
2714
2715 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
2716
2717 * configure.ac: Do not use ${objdir}.
2718 * configure: Regenerated.
2719
2720 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
2721
2722 * gdbarch.sh (deprecated_register_size): Remove.
2723 * gdbarch.h, gdbarch.c: Regenerate.
2724
2725 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
2726 by INT_REGISTER_SIZE.
2727 (thumb_get_next_pc, arm_return_in_memory): Likewise.
2728 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
2729 * ia64-tdep.c (ia64_gdbarch_init): Do not call
2730 set_gdbarch_deprecated_register_size.
2731
2732 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2733
2734 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
2735 gdbarch_deprecated_fp_regnum.
2736 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2737 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
2738 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2739 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
2740 (comment).
2741 * gdbarch.c, gdbarch.h: Regenerate.
2742
2743 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2744
2745 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
2746 gdbarch_extract_return_value.
2747 * value.c (generic_use_struct_convention): Likewise (comment).
2748 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
2749 * arch-utils.c (legacy_return_value): Likewise.
2750 * arch-utils.h (legacy_return_value): Likewise (comment).
2751 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
2752 gdbarch_store_return_value.
2753 * stack.c (return_command): Likewise (comment).
2754 * arch-utils.h (legacy_return_value): Likewise (comment).
2755 * arch-utils.c (legacy_return_value): Likewise.
2756 * gdbarch.c, gdbarch.h: Regenerate.
2757
2758 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2759
2760 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
2761 gdbarch_deprecated_use_struct_convention.
2762 * arch-utils.c (legacy_return_value): Likewise.
2763 * gdbarch.c, gdbarch.h: Regenerate.
2764
2765 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2766
2767 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
2768 gdbarch_deprecated_function_start_offset.
2769 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
2770 * linespec.c (minsym_found): Likewise.
2771 * infrun.c (handle_inferior_event): Likewise.
2772 * infcall.c (find_function_addr): Likewise.
2773 * cli/cli-cmds.c (disassemble_command): Likewise.
2774 * gdbarch.c, gdbarch.h: Regenerate.
2775
2776 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2777
2778 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
2779 gdbarch_deprecated_reg_struct_has_addr.
2780 * infcall.c (call_function_by_hand): Likewise.
2781 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
2782 * gdbarch_deprecated_reg_struct_has_addr_p.
2783 * infcall.c (call_function_by_hand): Likewise.
2784 * gdbarch.c, gdbarch.h: Regenerate.
2785
2786 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2787
2788 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2789 * sh-tdep.c (sh_extract_struct_value_address): Remove.
2790 (sh_gdbarch_init): Remove
2791 set_gdbarch_deprecated_extract_struct_value_address.
2792 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
2793 (sh64_gdbarch_init): Remove
2794 set_gdbarch_deprecated_extract_struct_value_address.
2795 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
2796 (ia64_gdbarch_init): Remove
2797 set_gdbarch_deprecated_extract_struct_value_address.
2798 * frv-tdep.c (frv_extract_struct_value_address): Remove.
2799 (frv_gdbarch_init): Remove
2800 set_gdbarch_deprecated_extract_struct_value_address.
2801 * gdbarch.c, gdbarch.h: Regenerate.
2802
2803 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2804
2805 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
2806 * v850-tdep.c (v850_unwind_sp): Likewise.
2807 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
2808 * stack.c (frame_info): Likewise.
2809 * stabsread.c (define_symbol): Likewise.
2810 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2811 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
2812 (sh_unwind_sp): Likewise.
2813 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
2814 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
2815 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
2816 (rs6000_frame_cache): Likewise.
2817 * rs6000-nat.c (store_register): Likewise.
2818 * remote-mips.c (mips_wait): Likewise.
2819 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2820 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2821 (ppc64_sysv_abi_push_dummy_call): Likewise.
2822 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2823 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2824 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2825 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2826 * m32r-rom.c (m32r_supply_register): Likewise.
2827 * frame.c (frame_sp_unwind): Likewise.
2828 * mips-tdep.c (mips_insn16_frame_cache)
2829 (mips_insn32_frame_cache): Likewise (comment).
2830 * m68klinux-nat.c (supply_gregset): Likewise.
2831 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2832 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
2833 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2834 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2835 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
2836 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
2837 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
2838 (cris_register_type, crisv32_register_type)
2839 (cris_dwarf2_frame_init_reg): Likewise.
2840 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2841 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
2842 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2843 * libunwind-frame.c (libunwind_frame_cache): Likewise.
2844
2845 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
2846 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
2847 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
2848 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
2849 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
2850 * v850-tdep.c (v850_unwind_pc): Likewise.
2851 * stack.c (frame_info): Likewise.
2852 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
2853 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
2854 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
2855 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
2856 (sh_dsp_show_regs): Likewise.
2857 * shnbsd-tdep.c (shnbsd_supply_gregset)
2858 (shnbsd_collect_gregset): Likewise.
2859 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
2860 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
2861 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
2862 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
2863 (6000_register_reggroup_p, rs6000_unwind_pc)
2864 (rs6000_frame_cache): Likewise.
2865 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
2866 (rs6000_store_inferior_registers): Likewise.
2867 * remote-mips.c (mips_wait, mips_load): Likewise.
2868 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2869 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2870 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2871 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2872 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
2873 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2874 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
2875 (store_ppc_registers, fill_gregset): Likewise.
2876 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
2877 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
2878 * mipsnbsd-nat.c (getregs_supplies): Likewise.
2879 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2880 * m68klinux-nat.c (supply_gregset): Likewise.
2881 * irix5-nat.c (fill_gregset): Likewise.
2882 * i386-tdep.c (i386_unwind_pc): Likewise.
2883 * i386-linux-nat.c (i386_linux_resume): Likewise.
2884 * frame.c (get_prev_frame_1): Likewise.
2885 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2886 * dbug-rom.c (dbug_supply_register): Likewise.
2887 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
2888 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
2889 (cris_register_type, crisv32_register_type, crisv32_register_name)
2890 (cris_dwarf2_frame_init_reg, find_step_target)
2891 (cris_software_single_step, cris_supply_gregset)
2892 (cris_regnums): Likewise.
2893 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2894 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2895 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
2896 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
2897 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2898
2899 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
2900 * dbug-rom.c (dbug_supply_register): Likewise.
2901 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
2902 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
2903 * win32-nat.c (win32_resume): Likewise.
2904 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
2905 * m68k-tdep.c (m68k_register_type): Likewise.
2906 * m68klinux-nat.c (supply_gregset): Likewise.
2907
2908 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
2909 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
2910 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
2911 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2912 (fv_reg_base_num, dr_reg_base_num): Likewise.
2913 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
2914 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
2915 (sh64_extract_return_value, sh64_store_return_value)
2916 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
2917 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
2918 * procfs.c (procfs_fetch_registers, procfs_store_registers)
2919 (invalidate_cache): Likewise.
2920 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2921 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
2922 (mipsnbsd_fill_fpreg): Likewise.
2923 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2924 (mipsnbsd_store_inferior_registers): Likewise.
2925 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
2926 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
2927 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
2928 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
2929 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
2930 (fill_fpregset): Likewise.
2931 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
2932 * i386-tdep.h (struct_return): Likewise (comment).
2933 * i386-nto-tdep.c (i386nto_register_area): Likewise.
2934 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
2935 (go32_store_registers): Likewise.
2936 * alpha-tdep.c (alpha_next_pc): Likewise.
2937 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2938 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
2939 (alphabsd_store_inferior_registers): Likewise.
2940 * core-regset.c (fetch_core_registers): Likewise.
2941 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2942
2943 * gdbarch.c, gdbarch.h: Regenerate.
2944
2945 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
2946
2947 * coffread.c (coff_sym_fns): Add default_symfile_segments.
2948 * dbxread.c (start_psymtab): Check HAVE_ELF.
2949 (aout_sym_fns): Likewise.
2950 * elfread.c (elf_symfile_segments): New.
2951 (elf_sym_fns): Add elf_symfile_segments.
2952 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
2953 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
2954 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
2955 * somread.c (som_sym_fns): Use default_symfile_segments.
2956 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
2957 (init_objfile_sect_indices): Call symfile_find_segment_sections.
2958 (default_symfile_segments): New function.
2959 (syms_from_objfile): Update call to find_sym_fns.
2960 (symfile_get_segment_data, free_symfile_segment_data): New.
2961 (symfile_map_offsets_to_segments): New.
2962 (symfile_find_segment_sections): New.
2963 * symfile.h (struct symfile_segment_data): New.
2964 (struct sym_fns): Add sym_segments.
2965 (default_symfile_segments, symfile_get_segment_data)
2966 (free_symfile_segment_data): New prototypes.
2967 (symfile_map_offsets_to_segments): Likewise.
2968 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
2969 * Makefile.in (COMMON_OBS): Remove elfread.o.
2970 (elf_internal_h): New.
2971 (elfread.o): Update.
2972 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
2973 compiled.
2974 * config.in, configure: Regenerated.
2975 * NEWS: Mention qOffsets changes.
2976
2977 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2978
2979 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
2980 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2981 Replace global variable declaration with compatibility macro.
2982 (struct builtin_m2_type): New data type.
2983 (builtin_m2_type): Add prototype.
2984 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
2985 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2986 Remove global variables.
2987 (m2_language_arch_info): Use builtin_m2_type instead of variables.
2988 (build_m2_types): New function.
2989 (m2_type_data): New variable.
2990 (builtin_m2_type): New function.
2991 (_initialize_m2_language): Do not build data types. Register
2992 m2_type_data per-gdbarch data.
2993
2994 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2995
2996 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
2997 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2998 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2999 builtin_type_f_real_s8, builtin_type_f_real_s16,
3000 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
3001 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
3002 variable declaration with compatibility macro.
3003 (struct builtin_f_type): New data type.
3004 (builtin_f_type): Add prototype.
3005 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
3006 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
3007 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
3008 builtin_type_f_real_s8, builtin_type_f_real_s16,
3009 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
3010 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
3011 (f_language_arch_info): Use builtin_f_type instead of variables.
3012 (build_fortran_types): Build builtin_f_type structure instead of
3013 setting global type variables.
3014 (f_type_data): New variable.
3015 (builtin_f_type): New function.
3016 (_initialize_f_language): Do not call build_fortran_types. Do not
3017 swap global type variables. Register f_type_data per-gdbarch data.
3018
3019 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3020
3021 * f-lang.c (_initialize_f_language): Do not initialize or
3022 swap builtin_type_string.
3023
3024 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3025
3026 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
3027 value_of_builtin_frame_reg): Remove.
3028 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
3029 inactive call to value_of_builtin_frame_reg.
3030
3031 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3032
3033 * gdbarch.sh (bfd_vma_bit): Remove.
3034 * gdbarch.c, gdbarch.h: Regenerate.
3035
3036 * gdbtypes.h (builtin_bfd_vma_type): Remove.
3037 * gdbtypes.h (builtin_bfd_vma_type): Remove.
3038 (build_gdbtypes): Do not initialize it.
3039 (_initialize_gdbtypes): Do not swap it.
3040
3041 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3042
3043 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
3044 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
3045 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
3046 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
3047 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
3048 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
3049 builtin_type_vec64, builtin_type_vec128): Remove.
3050 (init_simd_type): Remove.
3051 (init_vector_type): Make global.
3052 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
3053 (build_gdbtypes): Do not build vector types.
3054 (_initialize_gdbtypes): Do not swap vector types.
3055 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
3056 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
3057 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
3058 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
3059 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
3060 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
3061 builtin_type_vec64, builtin_type_vec128): Remove declarations.
3062 (init_vector_type): Add prototype.
3063
3064 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
3065 i386_sse_type members.
3066 (i386_mmx_type, i386_sse_type): Change from variables to functions.
3067 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
3068 (i386_init_types): Do not build vector types.
3069 (i386_mmx_type, i386_sse_type): New functions.
3070 (i386_register_type): Call them instead of using global variables.
3071 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
3072 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
3073 of using global variable.
3074
3075 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
3076 and ppc_builtin_type_vec128 members.
3077 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
3078 (rs6000_builtin_type_vec128): Likewise.
3079 (rs6000_register_type): Call them instead of using builtin_type_vec64
3080 and builtin_type_vec128.
3081 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
3082
3083 * spu-tdep.c (struct gdbarch_tdep): New data type.
3084 (spu_builtin_type_vec128): Remove variable.
3085 (spu_builtin_type_vec128): New function.
3086 (spu_register_type): Call it instead of using global variable.
3087 (spu_gdbarch_init): Allocate tdep structure.
3088 (spu_init_vector_type): Remove function.
3089 (_initialize_spu_tdep): Do not call it.
3090
3091 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3092
3093 * amd64-tdep.c (struct amd64_register_info): Remove.
3094 (amd64_register_info): Remove.
3095 (amd64_register_names): New static variable.
3096 (AMD64_NUM_REGS): Use amd64_register_names instead of
3097 amd64_register_info.
3098 (amd64_register_name): Likewise.
3099 (amd64_register_type): Do not refer to amd64_register_info.
3100
3101 * s390-tdep.c (struct s390_register_info): Remove.
3102 (s390_register_info): Remove.
3103 (s390_register_name): Do not refer to s390_register_info.
3104 (s390_register_type): Likewise.
3105
3106 * sparc64-tdep.c (struct sparc64_register_info): Remove.
3107 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
3108 (sparc64_register_names, sparc64_pseudo_register_names): New.
3109 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
3110 sparc64_register_names and sparc64_pseudo_register_names instead of
3111 sparc64_register_info and sparc64_pseudo_register_info.
3112 (sparc64_register_name): Likewise.
3113 (sparc64_register_type): Do not refer to sparc64_register_info
3114 and sparc64_pseudo_register_info.
3115
3116 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3117
3118 * c-lang.c (cplus_builtin_types): Remove.
3119 (enum cplus_primitive_types): New data type.
3120 (cplus_language_arch_info): New function.
3121 (cplus_language_defn): Set la_language_arch_info member. Do not set
3122 la_builtin_type_vector and string_char_type members.
3123
3124 * f-lang.c (f_builtin_types): Remove.
3125 (enum f_primitive_types): New data type.
3126 (f_language_arch_info): New function.
3127 (f_language_de): Set la_language_arch_info member. Do not set
3128 la_builtin_type_vector and string_char_type members.
3129
3130 * m2-lang.c (m2_builtin_types): Remove.
3131 (enum m2_primitive_types): New data type.
3132 (m2_language_arch_info): New function.
3133 (m2_language_defn): Set la_language_arch_info member. Do not set
3134 la_builtin_type_vector and string_char_type members.
3135
3136 * objc-lang.c (objc_builtin_types): Remove.
3137 (objc_language): Set la_language_arch_info member. Do not set
3138 la_builtin_type_vector and string_char_type members.
3139
3140 * p-lang.c (pascal_builtin_types): Remove.
3141 (enum pascal_primitive_types): New data type.
3142 (pascal_language_arch_info): New function.
3143 (pascal_language_defn): Set la_language_arch_info member. Do not set
3144 la_builtin_type_vector and string_char_type members.
3145
3146 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3147
3148 * regcache.c (struct regcache): Add ptid_t member.
3149 (regcache_xmalloc): Initialize it.
3150 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
3151 (regcache_dup): Likewise.
3152 (regcache_dup_no_passthrough): Likewise.
3153 (current_regcache): Make static.
3154 (registers_ptid): Remove variable.
3155 (get_thread_regcache): New function.
3156 (get_current_regcache): New function.
3157 (registers_changed): Implement by freeing current regcache.
3158 (regcache_raw_read): Do not refer to current_regcache. Set
3159 inferior_ptid to regcache->ptid while calling target routines.
3160 (regcache_raw_write): Likewise.
3161 (regcache_raw_supply): Do not refer to current_regcache.
3162 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
3163 (write_pc_pid): Likewise.
3164 (build_regcache): Remove.
3165 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
3166 or deprecated_register_gdbarch_swap. Do not initialize
3167 registers_ptid.
3168 * regcache.h (get_current_regcache): Add prototype.
3169 (get_thread_regcache): Likewise.
3170 (current_regcache): Remove declaration.
3171
3172 * corelow.c (core_open): Replace current_regcache by
3173 get_current_regcache ().
3174 * frame.c (frame_pop): Likewise.
3175 (put_frame_register): Likewise.
3176 (get_current_frame, create_new_frame): Likewise.
3177 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
3178 * stack.c (return_command): Likewise.
3179 * infcall.c (call_function_by_hand): Likewise.
3180 * infrun.c (resume): Likewise.
3181 (save_inferior_status, restore_inferior_status): Likewise.
3182 * linux-fork.c (fork_load_infrun_state): Likewise.
3183 (fork_save_infrun_state): Likewise.
3184 * win32-nat.c (win32_resume): Likewise.
3185 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
3186 * monitor.c (monitor_wait): Likewise.
3187 * remote.c (remote_wait): Likewise.
3188 * remote-mips.c (mips_wait): Likewise.
3189
3190 * bsd-kvm.c (bsd_kvm_open): Likewise
3191 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
3192 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
3193 * i386-linux-nat.c (i386_linux_resume): Likewise.
3194 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
3195 (ia64_linux_stopped_data_address): Likewise.
3196
3197 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
3198 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
3199 * mep-tdep.c (current_me_module, current_options): Likewise.
3200 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
3201
3202 * linux-nat.c (linux_nat_do_thread_registers): Use thread
3203 regcache instead of current_regcache. Call target_fetch_registers.
3204 (linux_nat_corefile_thread_callback): Update call site.
3205 (linux_nat_do_registers): Likewise.
3206 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
3207 of current_regcache.
3208 (procfs_make_note_section): Likewise.
3209 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
3210 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
3211 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
3212 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
3213
3214 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3215
3216 * regcache.c (read_register, read_register_pid): Remove.
3217 (write_register, write_register_pid): Likewise.
3218 * regcache.h (read_register, read_register_pid): Remove prototype.
3219 (write_register, write_register_pid): Likewise.
3220
3221 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3222
3223 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
3224 (write_pc): Likewise. Remove default implementation, add predicate.
3225 * gdbarch.c, gdbarch.h: Regenerate.
3226 * regcache.c (read_pc_pid): Use current regcache instead of calling
3227 read_register_pid.
3228 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
3229 case inline.
3230 (generic_target_write_pc): Remove.
3231 * inferior.h (generic_target_write_pc): Remove.
3232 * frv-tdep.c (frv_gdbarch_init): Do not install it.
3233 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3234 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3235 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
3236 * sh-tdep.c (sh_gdbarch_init): Likewise.
3237 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
3238
3239 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
3240 argument. Use REGCACHE instead of calling read_register_pid.
3241 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
3242 * hppa-tdep.c (hppa_read_pc): Likewise.
3243 * hppa-tdep.h (hppa_read_pc): Likewise.
3244 * ia64-tdep.c (ia64_read_pc): Likewise.
3245 * m32r-tdep.c (m32r_read_pc): Likewise.
3246 * mep-tdep.c (mep_read_pc): Likewise.
3247 * mn10300-tdep.c (mn10300_read_pc): Likewise.
3248 * spu-tdep.c (spu_read_pc): Likewise.
3249
3250 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
3251 argument. Use REGCACHE instead of calling write_register_pid.
3252 * avr-tdep.c (avr_write_pc): Likewise.
3253 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
3254 * hppa-tdep.c (hppa_write_pc): Likewise.
3255 * hppa-tdep.h (hppa_write_pc): Likewise.
3256 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
3257 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
3258 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
3259 * ia64-tdep.c (ia64_write_pc): Likewise.
3260 * ia64-tdep.h (ia64_write_pc): Likewise.
3261 * m32r-tdep.c (m32r_write_pc): Likewise.
3262 * m88k-tdep.c (m88k_write_pc): Likewise.
3263 * mep-tdep.c (mep_write_pc): Likewise.
3264 * mips-tdep.c (mips_write_pc): Likewise.
3265 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
3266 * mn10300-tdep.c (mn10300_write_pc): Likewise.
3267 * sparc-tdep.c (sparc_write_pc): Likewise.
3268 * spu-tdep.c (spu_write_pc): Likewise.
3269
3270 * mips-tdep.c (read_signed_register): Remove.
3271 (read_signed_register_pid): Likewise.
3272 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
3273 Use REGCACHE instead of calling read_signed_register_pid.
3274
3275 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3276
3277 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
3278 * gdbarch.c, gdbarch.h: Regenerate.
3279 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
3280 (push_dummy_code): Likewise. Pass it to callee.
3281 (call_function_by_hand): Pass current regcache to push_dummy_code.
3282
3283 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
3284 argument. Use it instead of current_regcache.
3285
3286 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
3287 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
3288
3289 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3290
3291 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
3292 * gdbarch.c, gdbarch.h: Regenerate.
3293 * infrun.c (handle_inferior_event): Pass current frame to
3294 gdbarch_get_longjmp_target.
3295
3296 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
3297 Read registers from FRAME instead of using read_register.
3298 Use get_frame_arch instead of current_gdbarch.
3299 * arm-tdep.c (arm_get_longjmp_target): Likewise.
3300 * i386-tdep.c (i386_get_longjmp_target): Likewise.
3301 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3302 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
3303 (mips64_linux_get_longjmp_target): Likewise.
3304 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
3305
3306 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3307
3308 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
3309 * gdbarch.c, gdbarch.h: Regenerate.
3310 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
3311 * arch-utils.h (generic_skip_trampoline_code): Likewise.
3312 * infrun.c (handle_inferior_event): Pass current frame to
3313 gdbarch_skip_trampoline_code and skip_language_trampoline.
3314
3315 * language.c (unk_lang_trampoline): Add FRAME argument.
3316 (skip_language_trampoline): Add FRAME argument. Pass it to
3317 skip_trampoline callback.
3318 * language.h: Add forward declaration of struct frame_info.
3319 (struct language_defn): Add FRAME argument to skip_trampoline.
3320 (skip_language_trampoline): Add FRAME argument.
3321 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
3322 to skip_trampoline callback.
3323 * cp-abi.h: Add forward declaration of struct frame_info.
3324 (cplus_skip_trampoline): Add FRAME argument.
3325 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
3326 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
3327 to gdbarch_skip_trampoline_code.
3328 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
3329 to gdbarch_skip_trampoline_code.
3330
3331 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
3332 * symtab.h (find_solib_trampoline_target): Likewise.
3333 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
3334 find_solib_trampoline_target.
3335
3336 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
3337 from FRAME instead of calling read_register.
3338
3339 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
3340 argument. Read registers from FRAME instead of using read_register.
3341 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
3342 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
3343
3344 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
3345 argument.
3346
3347 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
3348
3349 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
3350 registers from FRAME instead of using read_signed_register.
3351
3352 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
3353 argument.
3354 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
3355 instead of using read_register.
3356 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
3357 ppc64_standard_linkage_target.
3358 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
3359 Pass it to find_solib_trampoline_target. Read registers from FRAME
3360 instead of using read_register.
3361
3362 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
3363 argument.
3364
3365 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3366
3367 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
3368 FRAME argument.
3369 * gdbarch.c, gdbarch.h: Regenerate.
3370 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
3371
3372 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
3373 registers from FRAME instead of using read_register.
3374 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3375 to alpha_next_pc. Use get_frame_pc instead of read_pc.
3376 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
3377 argument by FRAME.
3378
3379 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
3380 from FRAME instead of using read_register.
3381 (thumb_get_next_pc): Likewise.
3382 (arm_get_next_pc): Likewise.
3383 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3384 to arm_get_next_pc. Use get_frame_pc instead of read_register.
3385 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
3386 argument by FRAME.
3387
3388 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
3389 from FRAME instead of using read_register.
3390 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3391 to find_step_target.
3392
3393 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
3394 from FRAME instead of using read_register / read_signed_register.
3395 (extended_mips16_next_pc): Likewise.
3396 (mips16_next_pc): Likewise.
3397 (mips_next_pc): Likewise.
3398 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3399 to mips_next_pc. Use get_frame_pc instead of read_pc.
3400 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
3401 argument by FRAME.
3402
3403 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
3404 of current frame. Read registers from FRAME.
3405 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
3406 branch_dest. Use get_frame_pc instead of read_pc.
3407 (rs6000_software_single_step): Likewise.
3408 (bl_to_blrl_insn_p): Do not call branch_dest.
3409 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
3410 argument by FRAME.
3411
3412 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
3413 Read registers from FRAME instead of current regcache.
3414 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
3415 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
3416 * sparc-tdep.c (sparc_address_from_register): Remove.
3417 (sparc_analyze_control_transfer): Pass FRAME argument instead of
3418 GDBARCH. Pass FRAME to step_trap callback.
3419 (sparc_step_trap): Add FRAME argument.
3420 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3421 to sparc_analyze_control_transfer. Read registers from FRAME instead
3422 of calling sparc_address_from_register.
3423 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
3424 step_trap callback.
3425 (sparc_address_from_register): Remove prototype.
3426 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
3427 (sparcnbsd_step_trap): Add FRAME argument.
3428
3429 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
3430 by FRAME. Read registers from FRAME instead of REGCACHE.
3431
3432 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3433
3434 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
3435 instead of calling read_register.
3436
3437 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
3438 calling write_register.
3439
3440 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
3441 calling write_register.
3442
3443 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
3444 instead of calling read_register.
3445 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
3446 instead of calling read_register and write_register.
3447
3448 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
3449 instead of current_regcache.
3450
3451 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
3452 of calling write_register.
3453 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
3454 parameter instead of current_regcache.
3455
3456 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
3457 instead of calling read_register.
3458 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
3459 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
3460 (mips_n32n64_push_dummy_call): Likewise.
3461 (mips_o32_push_dummy_call): Likewise.
3462 (mips_o64_push_dummy_call): Likewise.
3463
3464 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
3465 parameter instead of current_regcache.
3466
3467 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
3468 Use it instead of read_register and write_register.
3469 (xtensa_register_read_masked): Likewise.
3470 (xtensa_pseudo_register_read): Update call.
3471 (xtensa_pseudo_register_write): Likewise.
3472 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
3473 instead of calling read_register.
3474 (xtensa_push_dummy_call): Update comment.
3475
3476 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3477
3478 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
3479 by frame_unwind_register_signed calls.
3480 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
3481 frame allocations when called with NULL NEXT_FRAME parameter.
3482 (read_next_frame_reg): Remove.
3483
3484 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
3485 instead of reading the FPSCR register.
3486 (sh_frame_cache): Pass unwound FPSCR register value to
3487 sh_analyze_prologue.
3488 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
3489
3490 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
3491 instead of reading the CTBP register.
3492 (v850_frame_cache): Pass unwound CTBP register value to
3493 v850_analyze_prologue.
3494
3495 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3496
3497 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
3498 * sh-tdep.c (sh_show_regs): Likewise.
3499 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
3500 (sh_generic_show_regs): Add FRAME parameter. Use register
3501 values from that frame instead of calling read_register.
3502 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
3503 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
3504 sh_dsp_show_regs): Likewise.
3505 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
3506 sh64_show_regs): Likewise.
3507
3508 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3509
3510 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
3511 current regcache instead of calling read_register.
3512
3513 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3514
3515 * mep-tdep.c (current_me_module): Read from current regcache
3516 instead of calling read_register.
3517 (current_options): Likewise.
3518
3519 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3520
3521 * cris-tdep.c (cris_stopped_data_address): Read register values
3522 from current frame instead of calling read_register.
3523 * frv-tdep.c (frv_stopped_data_address): Likewise.
3524
3525 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3526
3527 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
3528 instead of write_register (PC_REGNUM, ...).
3529
3530 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3531
3532 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
3533 explaining why the PC adjustment code is necessary.
3534
3535 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
3536
3537 * m68k-tdep.h (enum m68k_flavour): New.
3538 (struct gdbarch_tdep): New fields
3539 float_return, flavour and fpregs_present.
3540 * m68k-tdep.c (m68k_register_type): Use
3541 fpregs_present and conditionalize floating
3542 registers type on flavour.
3543 (m68k_register_names): New.
3544 (m68k_register_name): Use the above.
3545 (m68k_convert_register_p): Consult fpregs_present.
3546 (m68k_register_to_value, m68k_value_to_register):
3547 Use register_type to obtain the type of floating
3548 point registers.
3549 (m68k_svr4_extract_return_value): Check tdep->float_return.
3550 Use register_type to get the type of floating
3551 point regiters.
3552 (m68k_svr4_store_return_value): Likewise.
3553 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
3554 (m68k_analyze_register_saves): Likewise.
3555 (m68k_gdbarch_init): Extract infromation
3556 from XML description, if present. Guess coldfire by
3557 looking at the file, if present. Conditionalize
3558 setting of long double format. Set decr_pc_after_break
3559 to 2 on coldfire and fido. Enable XML-driven
3560 register description.
3561 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
3562 size of tdep->fpreg_type, as opposed to hardcoded value.
3563 * Makefile.in (m68k-tdep.o): Update dependencies.
3564
3565 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3566
3567 * NEWS: Mention "info spu" commands and qXfer:spu:read and
3568 qXfer:spu:write remote packet types.
3569
3570 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3571
3572 * xml-tdesc.c (tdesc_start_target): New.
3573 (target_attributes): New.
3574 (tdesc_elements): Use it.
3575 * features/gdb-target.dtd: Add #FIXED version attribute for
3576 <target>.
3577
3578 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
3579
3580 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
3581
3582 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
3583
3584 * fork-child.c (fork_inferior): Update comment.
3585
3586 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3587
3588 * features/Makefile: Generate regformats for mips-linux and
3589 mips64-linux.
3590 * features/sort-regs.xsl: Correct typo.
3591 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
3592 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
3593 files.
3594
3595 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3596
3597 * config/mips/linux.mh (TDEP_XML): New.
3598 * features/mips-linux.xml, features/mips64-linux.xml: New files.
3599 * mips-linux-nat.c (mips_linux_register_addr): Handle
3600 MIPS_RESTART_REGNUM.
3601 (mips64_linux_register_addr): Likewise.
3602 (super_xfer_partial, mips_linux_xfer_partial): New.
3603 (_initialize_mips_linux_nat): Add them to the target_ops.
3604 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
3605 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
3606 (mips_linux_o32_sigframe_init)
3607 (mips_linux_n32n64_sigframe_init): Likewise.
3608 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
3609 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
3610 "org.gnu.gdb.mips.linux" feature.
3611 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
3612 (mips_linux_restart_reg_p): New prototype.
3613 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
3614 initialization routine.
3615 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
3616
3617 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3618
3619 * Makefile.in (mips-tdep.o): Update.
3620 * mips-tdep.c (struct register_alias, mips_o32_aliases)
3621 (mips_n32_n64_aliases, mips_register_aliases): New.
3622 (mips_register_name): Call tdesc_register_name.
3623 (mips_tdesc_register_reggroup_p): New.
3624 (mips_pseudo_register_type, value_of_mips_user_reg): New.
3625 (mips_gdbarch_init): Add target-described register support.
3626 Register aliases for register names.
3627 * target-descriptions.c (tdesc_register_name): Make global.
3628 (tdesc_register_in_reggroup_p): New function, broken out from
3629 tdesc_register_reggroup_p.
3630 (tdesc_register_reggroup_p): Use it.
3631 * target-descriptions.h (tdesc_register_name)
3632 (tdesc_register_in_reggroup_p): New prototypes.
3633 * NEWS: Correct formatting. Mention MIPS register support.
3634 * features/mips-cp0.xml, features/mips-fpu.xml,
3635 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
3636 features/mips64-cpu.xml: New files.
3637
3638 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3639
3640 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
3641 * valops.c (value_cast): Likewise.
3642 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
3643 * ui-out.c (ui_out_field_core_addr): Likewise.
3644 * tracepoint.c (tracepoints_info): Likewise.
3645 * symtab.c (print_msymbol_info): Likewise.
3646 * solib-irix.c (irix_current_sos)
3647 (irix_open_symbol_file_object): Likewise.
3648 * remote.c (build_remote_gdbarch_data): Likewise.
3649 * prologue-value.c (make_pv_area): Likewise.
3650 * procfs.c (info_mappings_callback): Likewise.
3651 * printcmd.c (print_scalar_formatted)
3652 (deprecated_print_address_numeric): Likewise.
3653 * memattr.c (mem_info_command): Likewise.
3654 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
3655 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
3656 * exec.c (print_section_info): Likewise.
3657 * dwarf2read.c (read_subrange_type): Likewise.
3658 * dwarf2loc.c (find_location_expression): Likewise.
3659 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
3660 (signed_address_type, execute_stack_op): Likewise.
3661 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
3662 * gdbarch.c, gdbarch.h: Regenerate.
3663
3664 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3665
3666 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
3667 * arch-utils.c (show_architecture): Likewise.
3668 * remote-mips.c (mips_open): Likewise
3669 * nto-tdep.c (nto_find_and_open_solib)
3670 (nto_init_solib_absolute_prefix): Likewise.
3671 * nto-procfs (procfs_open): Likewise.
3672 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
3673 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
3674 * gdbarch.c, gdbarch.h: Regenerate.
3675
3676 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3677
3678 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
3679 * gdbtypes.c (build_flt): Likewise.
3680 * gdbarch.c, gdbarch.h: Regenerate.
3681
3682 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3683
3684 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
3685 gdbarch_breakpoint_from_pc.
3686 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
3687 * remote.c (remote_insert_breakpoint)
3688 (remote_insert_hw_breakpoint): Likewise.
3689 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
3690 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
3691 * breakpoint.h (bp_target_info): Likewise (comment).
3692 * breakpoint.c (read_memory_nobpt): Likewise.
3693 * mem-break.c (default_memory_insert_breakpoint): Likewise.
3694 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
3695 * gdbarch.c, gdbarch.h: Regenerate.
3696
3697 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3698
3699 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
3700 * solib-svr4.c (svr4_truncate_ptr): Likewise.
3701 * solib-pa64.c (read_dynamic_info): Likewise.
3702 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
3703 * solib.c (info_sharedlibrary_command): Likewise.
3704 * s390-nat.c (SUBOFF): Likewise.
3705 * p-valprint.c (pascal_val_print): Likewise.
3706 * procfs.c (info_proc_mappings): Likewise.
3707 * printcmd.c (decode_format): Likewise.
3708 * nto-tdep.c (nto_truncate_ptr): Likewise.
3709 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
3710 (mips64_linux_get_longjmp_target): Likewise.
3711 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3712 * jv-valprint.c (java_value_print): Likewise.
3713 * jv-lang.c (get_java_object_header_size): Likewise.
3714 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
3715 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3716 (hppa_hpux_unwind_adjust_stub): Likewise.
3717 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3718 * gdbtypes.c (make_pointer_type, make_reference_type)
3719 (smash_to_memberptr_type): Likewise.
3720 * gdbarch.c, gdbarch.h: Regenerate.
3721
3722 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3723
3724 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
3725 (print_gp_register_row): Stop before printing a register bigger
3726 than the ABI register size.
3727 (mips_print_registers_info): Update call to mips_print_register.
3728
3729 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3730
3731 * expression.h (enum exp_opcode): Document a register name for
3732 OP_REGISTER.
3733 * parse.c (write_dollar_variable): Write the register name for
3734 OP_REGISTER.
3735 (operator_length_standard): Expect the register name following
3736 OP_REGISTER.
3737 * ada-lang.c (resolve_subexp): Likewise.
3738 * ax-gdb.c (gen_expr): Likewise.
3739 * eval.c (evaluate_subexp_standard): Likewise.
3740 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3741 Likewise.
3742 * tracepoint.c (encode_actions): Likewise.
3743
3744 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3745
3746 * utils.c (set_screen_size): Use INT_MAX for default columns.
3747
3748 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3749
3750 * remote.c (remote_protocol_features): Add qXfer:spu:read and
3751 qXfer:spu:write packet types.
3752
3753 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3754
3755 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
3756 * gdbarch.c, gdbarch.h: Regenerate.
3757
3758 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3759
3760 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
3761 gdbarch_stab_reg_to_regnum.
3762 * stabsread.c (define_symbol): Likewise.
3763 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
3764 gdbarch_ecoff_reg_to_regnum.
3765 * mdebugread.c (parse_symbol): Likewise.
3766 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
3767 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
3768 gdbarch_dwarf_reg_to_regnum.
3769 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
3770 * coffread.c (process_coff_symbol): Likewise.
3771 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
3772 gdbarch_dwarf2_reg_to_regnum.
3773 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
3774 (locexpr_describe_location): Likewise.
3775 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
3776 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
3777 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
3778 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
3779 * gdbarch.c, gdbarch.h: Regenerate.
3780
3781 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3782
3783 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
3784 gdbarch_smash_text_address.
3785 * somread.c (som_symtab_read): Likewise.
3786 * elfread.c (record_minimal_symbol): Likewise.
3787 * dbxread.c (process_one_symbol): Likewise.
3788 * coffread.c (coff_symtab_read): Likewise.
3789 * gdbarch.c, gdbarch.h: Regenerate.
3790
3791 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3792
3793 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
3794 * findvar.c (value_from_register): Likewise.
3795 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
3796 * valops.c (value_assign): Likewise.
3797 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
3798 gdbarch_convert_register_p.
3799 * findvar.c (value_from_register): Likewise.
3800 * valops.c (value_assign): Likewise.
3801 * gdbarch.c, gdbarch.h: Regenerate.
3802
3803 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3804
3805 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
3806 gdbarch_register_sim_regno.
3807 * sim-regno.h (sim_regno): Likewise (comment).
3808 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
3809 * gdbarch.c, gdbarch.h: Regenerate.
3810
3811 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3812
3813 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
3814 gdbarch_virtual_frame_pointer.
3815 * tracepoint.c (encode_actions): Likewise.
3816 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
3817 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
3818 * gdbarch.c, gdbarch.h: Regenerate.
3819
3820 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3821
3822 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
3823 * p-lang.c (pascal_create_fundamental_type): Likewise.
3824 * objc-lang.c (objc_create_fundamental_type): Likewise.
3825 * mdebugread.c (_initialize_mdebugread): Likewise.
3826 * m2-lang.c (m2_create_fundamental_type)
3827 (_initialize_m2_language): Likewise.
3828 * gdbtypes.c (build_gdbtypes): Likewise.
3829 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3830 * doublest.c (floatformat_from_length): Likewise.
3831 * c-lang.c (c_create_fundamental_type): Likewise.
3832 * ada-lang.c (ada_create_fundamental_type)
3833 (ada_language_arch_info): Likewise.
3834 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
3835 * value.c (unpack_double): Likewise (comment).
3836 * gdbtypes.c (build_gdbtypes): Likewise.
3837 * doublest.c (floatformat_from_length): Likewise.
3838 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
3839 * valarith.c (value_binop): Likewise.
3840 * p-lang.c (pascal_create_fundamental_type): Likewise.
3841 * objc-lang.c (objc_create_fundamental_type): Likewise.
3842 * mdebugread.c (_initialize_mdebugread): Likewise.
3843 * m2-lang.c (m2_create_fundamental_type): Likewise.
3844 * gdbtypes.c (build_gdbtypes): Likewise.
3845 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3846 * doublest.c (floatformat_from_length): Likewise.
3847 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
3848 * c-lang.c (c_create_fundamental_type): Likewise.
3849 * ada-lex.l (processReal): Likewise.
3850 * ada-lang.c (ada_create_fundamental_type)
3851 (ada_language_arch_info): Likewise.
3852 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
3853 * value.c (unpack_double): Likewise (comment).
3854 * gdbtypes.c (build_gdbtypes): Likewise.
3855 * doublest.c (floatformat_from_length): Likewise.
3856 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
3857 gdbarch_long_double_bit.
3858 * p-lang.c (pascal_create_fundamental_type): Likewise.
3859 * objc-lang.c (objc_create_fundamental_type): Likewise.
3860 * m2-lang.c (m2_create_fundamental_type): Likewise.
3861 * gdbtypes.c (build_gdbtypes): Likewise.
3862 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3863 * doublest.c (floatformat_from_length): Likewise.
3864 * c-lang.c (c_create_fundamental_type): Likewise.
3865 * ada-lex.l (processReal): Likewise.
3866 * ada-lang.c (ada_create_fundamental_type)
3867 (ada_language_arch_info): Likewise.
3868 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
3869 gdbarch_long_double_format.
3870 * gdbtypes.c (build_gdbtypes): Likewise.
3871 * doublest.c (floatformat_from_length): Likewise.
3872 * gdbarch.c, gdbarch.h: Regenerate.
3873
3874 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3875
3876 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
3877 * ada-lang.c (ada_create_fundamental_type)
3878 (ada_language_arch_info): Likewise.
3879 * c-lang.c (c_create_fundamental_type): Likewise.
3880 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3881 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3882 * m2-lang.c (m2_create_fundamental_type): Likewise.
3883 * objc-lang.c (objc_create_fundamental_type): Likewise.
3884 * p-lang.c (pascal_create_fundamental_type): Likewise.
3885 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
3886 * c-exp.y (parse_number): Likewise.
3887 * objc-exp.y (parse_number): Likewise.
3888 * ada-lex.l (processInt): Likewise.
3889 * f-exp.y (parse_number): Likewise.
3890 * p-exp.y (parse_number): Likewise.
3891 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
3892 (gdbtypes_post_init, build_gdbtypes): Likewise.
3893 * p-lang.c (pascal_create_fundamental_type): Likewise.
3894 * parse.c (build_parse): Likewise.
3895 * xcoffread.c (_initialize_xcoffread): Likewise.
3896 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
3897 (read_range_type): Likewise.
3898 * objc-lang.c (objc_create_fundamental_type): Likewise.
3899 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
3900 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
3901 (m2_create_fundamental_type): Likewise.
3902 * c-lang.c (c_create_fundamental_type): Likewise.
3903 * coffread.c (coff_read_enum_type): Likewise.
3904 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
3905 * dwarf2read.c (new_symbol): Likewise.
3906 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
3907 * c-exp.y (parse_number): Likewise.
3908 * objc-exp.y (parse_number): Likewise.
3909 * ada-lex.l (processInt): Likewise.
3910 * f-exp.y (parse_number): Likewise.
3911 * p-exp.y (parse_number): Likewise.
3912 * valarith.c (value_binop): Likewise.
3913 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
3914 * ada-lang.c (ada_create_fundamental_type)
3915 (ada_language_arch_info): Likewise.
3916 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3917 * symfile.c (TARGET_LONG_BYTES): Likewise.
3918 * p-lang.c (pascal_create_fundamental_type): Likewise.
3919 * objc-lang.c (objc_create_fundamental_type): Likewise.
3920 * m2-lang.c (m2_create_fundamental_type): Likewise.
3921 * f-lang.c (f_create_fundamental_type): Likewise.
3922 * c-lang.c (c_create_fundamental_type): Likewise.
3923 * coffread.c (decode_base_type): Likewise.
3924 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
3925 * c-exp.y (parse_number): Likewise.
3926 * objc-exp.y (parse_number): Likewise.
3927 * p-exp.y (parse_number): Likewise.
3928 * ada-lang.c (ada_create_fundamental_type)
3929 (ada_language_arch_info): Likewise.
3930 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
3931 * stabsread.c (read_range_type): Likewise.
3932 * p-lang.c (pascal_create_fundamental_type): Likewise.
3933 * objc-lang.c (objc_create_fundamental_type): Likewise.
3934 * m2-lang.c (m2_create_fundamental_type): Likewise.
3935 * f-lang.c (f_create_fundamental_type): Likewise.
3936 * c-lang.c (c_create_fundamental_type): Likewise.
3937 * gdbarch.c, gdbarch.h: Regenerate.
3938
3939 2007-06-12 Andreas Schwab <schwab@suse.de>
3940
3941 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
3942 (struct frame_unwind): Add dealloc_cache.
3943 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
3944
3945 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
3946 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
3947 (libunwind_frame_unwind): Set dealloc_cache.
3948 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
3949
3950 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3951 Markus Deuling <deuling@de.ibm.com>
3952
3953 * remote.c (remote_write_qxfer): New function.
3954 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
3955 (remote_read_qxfer): Do not cache empty objects.
3956 (_initialize_remote): Add PACKET_qXfer_spu_read and
3957 PACKET_qXfer_spu_write.
3958
3959 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3960
3961 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
3962 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
3963
3964 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
3965 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
3966 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
3967 * spu-tdep.c (infospucmdlist): New variable.
3968 (spu_register_name): Handle additional pseudo registers.
3969 (spu_register_type): Likewise.
3970 (spu_pseudo_register_read): Likewise.
3971 (spu_pseudo_register_write): Likewise.
3972 (spu_pseudo_register_read_spu): New function.
3973 (spu_pseudo_register_write_spu): Likewise.
3974 (info_spu_event_command): New function.
3975 (info_spu_signal_command): Likewise.
3976 (info_spu_mailbox_list): Likewise.
3977 (info_spu_mailbox_command): Likewise.
3978 (spu_mfc_get_bitfield): Likewise.
3979 (info_spu_dma_cmdlist): Likewise.
3980 (info_spu_dma_command): Likewise.
3981 (info_spu_proxydma_command): Likewise.
3982 (info_spu_command): Likewise.
3983 (_initialize_spu_tdep): Install "info spu" commands.
3984
3985 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3986
3987 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
3988 accessing non-seekable spufs files.
3989
3990 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3991
3992 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
3993 gdbarch_skip_trampoline_code.
3994 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3995 * objc-lang.c (objc_skip_trampoline)
3996 (objc_submethod_helper_data): Likewise.
3997 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
3998 * infrun.c (handle_inferior_event): Likewise.
3999 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
4000 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
4001 gdbarch_in_solib_return_trampoline.
4002 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
4003 * infrun.c (handle_inferior_event): Likewise.
4004 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
4005 * gdbarch.c, gdbarch.h: Regenerate.
4006
4007 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4008
4009 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
4010 * symtab.c (find_function_start_sal, in_prologue): Likewise.
4011 * linespec.c (minsym_found): Likewise.
4012 * infrun.c (step_into_function): Likewise.
4013 * gdbarch.c, gdbarch.h: Regenerate.
4014
4015 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4016
4017 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
4018 * valops.c (value_allocate_space_in_inferior): Likewise.
4019 * gdbarch.c, gdbarch.h: Regenerate.
4020
4021 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4022
4023 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
4024 gdbarch_memory_insert_breakpoint.
4025 * mem-break.c (memory_insert_breakpoint): Likewise.
4026 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
4027 gdbarch_memory_remove_breakpoint.
4028 * mem-break.c (memory_remove_breakpoint): Likewise.
4029 * gdbarch.c, gdbarch.h: Regenerate.
4030
4031 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4032
4033 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
4034 gdbarch_fetch_tls_load_module_address.
4035 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
4036 gdbarch_fetch_tls_load_module_address_p.
4037 * gdbarch.c, gdbarch.h: Regenerate.
4038
4039 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4040
4041 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
4042 gdbarch_decr_pc_after_break.
4043 * tracepoint.c (trace_dump_command): Likewise.
4044 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
4045 * linux-thread-db.c (check_event): Likewise.
4046 * linux-nat.c (cancel_breakpoints_callback): Likewise.
4047 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
4048 * frame.h: Likewise (comment).
4049 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
4050 * aix-thread.c (aix_thread_wait): Likewise.
4051 * gdbarch.c, gdbarch.h: Regenerate.
4052
4053 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4054
4055 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
4056 gdbarch_address_class_type_flags.
4057 * dwarf2read.c (read_tag_pointer_type): Likewise.
4058 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
4059 gdbarch_address_class_type_flags_p.
4060 * dwarf2read.c (read_tag_pointer_type): Likewise.
4061 * gdbarch.c, gdbarch.h: Regenerate.
4062
4063 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4064
4065 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
4066 * value.c (value_as_address): Likewise (comment).
4067 * remote-mips.c (common_breakpoint): Likewise.
4068 * regcache.c (read_pc_pid): Likewise.
4069 * printcmd.c (do_one_display): Likewise.
4070 * monitor.c (monitor_write_memory, monitor_read_memory)
4071 (monitor_insert_breakpoint): Likewise.
4072 * mips-tdep.c (heuristic_proc_start): Likewise.
4073 * infrun.c (insert_step_resume_breakpoint_at_frame)
4074 (insert_step_resume_breakpoint_at_caller): Likewise.
4075 * buildsym.c (record_line): Likewise.
4076 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
4077 (arm_get_next_pc): Likewise.
4078 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
4079 (store_regs): Likewise.
4080 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
4081 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
4082 * gdbarch.c, gdbarch.h: Regenerate.
4083
4084 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4085
4086 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
4087 * tracepoint.c (scope_info): Likewise.
4088 * target.c (debug_print_register): Likewise.
4089 * stack.c (frame_info): Likewise.
4090 * sh-tdep.c (sh_register_reggroup_p): Likewise.
4091 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
4092 (sh64_media_print_registers_info)
4093 (sh64_compact_print_registers_info): Likewise.
4094 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
4095 * remote-sim.c (gdbsim_fetch_register): Likewise.
4096 * remote.c (packet_reg): Likewise (comment).
4097 * reggroups.c (default_register_reggroup_p): Likewise.
4098 * regcache.c (regcache_dump): Likewise.
4099 * printcmd.c (address_info): Likewise.
4100 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
4101 * mt-dep.c (mt_registers_info): Likewise.
4102 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
4103 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
4104 (mips_read_fp_register_double, mips_print_fp_register)
4105 (mips_print_register, print_gp_register_row, mips_print_registers_info)
4106 (mips_register_sim_regno): Likewise.
4107 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
4108 * inf-ptrace.c (inf_ptrace_fetch_register)
4109 (inf_ptrace_store_register): Likewise.
4110 * infcmd.c (default_print_registers_info): Likewise.
4111 * ia64-linux-nat.c (ia64_linux_fetch_register)
4112 (ia64_linux_store_register): Likewise.
4113 * i386-linux-nat.c (fetch_register, store_register): Likewise.
4114 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
4115 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
4116 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
4117 (hppa_hpux_store_register): Likewise.
4118 * findvar.c (locate_var_value): Likewise.
4119 * dwarf2loc.c (locexpr_describe_location): Likewise.
4120 * dwarf2-frame.c (execute_cfa_program): Likewise.
4121 * arm-tdep.c (arm_push_dummy_call): Likewise.
4122 * arch-utils.c (legacy_register_sim_regno): Likewise.
4123 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
4124 * alpha-nat.c (fetch_osf_core_registers): Likewise.
4125 * mi/mi-main.c (mi_cmd_data_list_register_names)
4126 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
4127 (mi_cmd_data_write_register_values): Likewise.
4128 * gdbarch.c, gdbarch.h: Regenerate.
4129
4130 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
4131
4132 * target-memory.c (blocks_to_erase): Correct off-by-one error.
4133
4134 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
4135
4136 * remote.c (process_g_packet): Don't check size.
4137 * gdbarch.sh: Remove register_bytes_ok.
4138 * gdbarch.c: Regenerated.
4139 * gdbarch.h: Regenerated.
4140 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
4141 (m68k_register_bytes_ok): Remove.
4142 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
4143
4144 2007-06-06 Andreas Schwab <schwab@suse.de>
4145
4146 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
4147 (destroy_addr_space_name): Define.
4148 (libunwind_load): Get address of destroy_addr_space function.
4149 (libunwind_frame_cache): Destroy unw_addr_space_t object before
4150 returning unsuccessfully.
4151 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
4152 returning.
4153 (libunwind_sigtramp_frame_sniffer): Likewise.
4154 (libunwind_get_reg_special): Likewise.
4155
4156 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4157
4158 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
4159 gdbarch_fetch_pointer_argument.
4160 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
4161 * gdbarch.c, gdbarch.h: Regenerate.
4162
4163 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4164
4165 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
4166 gdbarch_have_nonsteppable_watchpoint.
4167 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
4168 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
4169 gdbarch_cannot_step_breakpoint.
4170 * infrun.c (resume): Likewise.
4171 * gdbarch.c, gdbarch.h: Regenerate.
4172
4173 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4174
4175 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
4176 * stack.c (print_frame_args): Likewise.
4177 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
4178 * stack.c (print_args_stub, frame_info): Likewise.
4179 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
4180 * stack.c (print_args_stub, frame_info): Likewise.
4181 * gdbarch.c, gdbarch.h: Regenerate.
4182
4183 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4184
4185 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
4186 gdbarch_coff_make_msymbol_special.
4187 * coffread.c (coff_symtab_read): Likewise.
4188 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
4189 gdbarch_elf_make_msymbol_special.
4190 * elfread.c (elf_symtab_read): Likewise.
4191 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
4192 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
4193 * gdbarch.c, gdbarch.h: Regenerate.
4194
4195 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4196
4197 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
4198 gdbarch_frame_red_zone_size.
4199 * gdbarch.c, gdbarch.h: Regenerate.
4200
4201 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4202
4203 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
4204 * infcall.c (call_function_by_hand): Likewise.
4205 * gcore.c (derive_stack_segment): Likewise.
4206 * frame.c (frame_id_inner): Likewise.
4207 * arch-utils.c (core_addr_lessthan): Likewise (comment).
4208 * ada-lang.c (ensure_lval): Likewise.
4209 * gdbarch.c, gdbarch.h: Regenerate.
4210
4211 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4212
4213 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
4214 gdbarch_address_to_pointer.
4215 * findvar.c (store_typed_address): Likewise.
4216 * gdbtypes.c (make_pointer_type): Likewise (comment).
4217 * procfs.c (procfs_address_to_host_pointer): Likewise.
4218 * std-regs.c (value_of_builtin_frame_reg): Likewise.
4219 (value_of_builtin_frame_fp_reg): Likewise.
4220 (value_of_builtin_frame_pc_reg): Likewise.
4221 * utils.c (paddress): Likewise (comment).
4222 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
4223 gdbarch_pointer_to_address.
4224 * findvar.c (extract_typed_address): Likewise.
4225 * gdbtypes.c (make_pointer_type): Likewise (comment).
4226 * valops.c (value_cast): Likewise (comment).
4227 * gdbarch.c, gdbarch.h: Regenerate.
4228
4229 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4230
4231 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
4232 * infrun.c (handle_inferior_event): Likewise.
4233 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
4234 gdbarch_get_longjmp_target_p.
4235 * breakpoint.c (breakpoint_re_set): Likewise.
4236 * infrun.c (handle_inferior_event): Likewise.
4237 * gdbarch.c, gdbarch.h: Regenerate.
4238
4239 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
4240
4241 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
4242 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
4243 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
4244 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
4245 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
4246 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
4247 find_stub_with_shl_get, cover_find_stub_with_shl_get,
4248 initialize_hp_cxx_exception_support, child_enable_exception_callback,
4249 current_ex_event, child_get_current_exception_event): Remove.
4250 (hppa_hpux_inferior_created): Remove.
4251 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
4252
4253 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
4254 (deprecated_exception_support_initialized): Remove.
4255 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
4256 (deprecated_exception_support_initialized): Remove.
4257 (breakpoint_init_inferior): Remove handling of non-zero
4258 deprecated_exception_catchpoints_are_fragile.
4259
4260 * symtab.h (deprecated_hp_som_som_object_present): Remove.
4261 * symtab.c (deprecated_hp_som_som_object_present): Remove.
4262 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
4263 deprecated_hp_som_som_object_present.
4264 * eval.c (evaluate_subexp_standard): Likewise.
4265 * valops.c (value_cast): Likewise.
4266
4267 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
4268 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
4269 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
4270
4271 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
4272
4273 * objfiles.h (ImportEntry, ExportEntry): Remove types.
4274 (struct objfile): Remove import_list, import_list_size,
4275 export_list, export_list_size members.
4276 (is_in_import_list): Remove prototype.
4277 * objfiles.c (is_in_import_list): Remove.
4278 * somread.c (init_import_symbols, init_export_symbols): Remove.
4279 (som_symfile_read): Do not call init_import_symbols. Do not
4280 set objfile->export_list and objfile->export_list_size.
4281
4282 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
4283
4284 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
4285 Use the original objfile if necessary.
4286
4287 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
4288
4289 * defs.h (ldirname): New prototype.
4290 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
4291 missing.
4292 * utils.c (ldirname): New function.
4293 * xml-tdesc.c (file_read_description_xml): Use ldirname.
4294
4295 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4296
4297 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
4298
4299 2007-06-01 Joel Brobecker <brobecker@adacore.com>
4300
4301 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
4302
4303 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4304
4305 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
4306
4307 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4308
4309 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
4310 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
4311 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
4312 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
4313 (ppc_linux_in_sigtramp, insn_is_sigreturn,
4314 ppc_linux_at_sigtramp_return_path): Remove.
4315
4316 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4317
4318 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
4319 (xtensa_register_write_masked, xtensa_register_read_masked)
4320 (xtensa_extract_return_value, xtensa_store_return_value
4321 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
4322 TARGET_BYTE_ORDER by gdbarch_byte_order.
4323 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
4324 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
4325 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
4326 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
4327 (sh64_push_dummy_call, sh64_extract_return_value)
4328 (sh64_store_return_value, sh64_register_convert_to_virtual)
4329 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
4330 (sh64_pseudo_register_write, sh64_do_fp_register)
4331 (sh64_frame_prev_register): Likewise.
4332 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
4333 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
4334 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
4335 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
4336 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
4337 * ppc-linux-nat.c (store_register): Likewise.
4338 * nto-tdep.c (nto_find_and_open_solib)
4339 (nto_init_solib_absolute_prefix): Likewise.
4340 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
4341 (mips_convert_register_p, mips_eabi_push_dummy_call)
4342 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
4343 (mips_o32_push_dummy_call, mips_o32_return_value)
4344 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
4345 (mips_read_fp_register_single, mips_read_fp_register_double)
4346 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
4347 (mips_breakpoint_from_pc): Likewise.
4348 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
4349 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
4350 (mips_linux_o32_sigframe_init): Likewise.
4351 * m32r-tdep.c (m32r_memory_insert_breakpoint)
4352 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
4353 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
4354 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
4355 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
4356 * coffread.c (process_coff_symbol): Likewise.
4357 * arm-tdep.c (convert_from_extended, convert_to_extended)
4358 (gdb_print_insn_arm): Likewise.
4359
4360 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4361
4362 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
4363 * i386-tdep.c (i386_dbx_reg_to_regnum)
4364 (i386_svr4_reg_to_regnum): Likewise.
4365 * inf-ptrace.c (inf_ptrace_fetch_registers)
4366 (inf_ptrace_store_registers): Likewise.
4367 * corelow.c (get_core_registers): Likewise.
4368 * i386-linux-nat.c (supply_gregset, fill_gregset)
4369 (i386_linux_fetch_inferior_registers)
4370 (i386_linux_store_inferior_registers): Likewise.
4371 * remote.c (init_remote_state,packet_reg_from_regnum)
4372 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
4373 (remote_prepare_to_store,store_registers_using_G)
4374 (remote_store_registers,remote_arch_state): Likewise.
4375 * tracepoint.c (encode_actions): Likewise.
4376 * mi/mi-main.c (mi_cmd_data_list_register_names)
4377 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
4378 (mi_cmd_data_write_register_values): Likewise.
4379 * tui/tui-regs.c (tui_show_register_group)
4380 (tui_show_register_group): Likewise.
4381 * xtensa-tdep.h (FP_ALIAS): Likewise.
4382 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
4383 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
4384 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
4385 * win32-nat.c (do_win32_fetch_inferior_registers)
4386 (do_win32_store_inferior_registers,fetch_elf_core_registers
4387 * user-regs.h: Likewise (comment).
4388 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4389 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4390 * target-descriptions.h: Likewise (comment).
4391 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
4392 * target.c (debug_print_register): Likewise.
4393 * stack.c (frame_info): Likewise.
4394 * stabsread.c (define_symbol): Likewise.
4395 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
4396 (sh64_media_print_registers_info)
4397 (sh64_compact_print_registers_info): Likewise.
4398 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4399 * rs6000-nat.c (fetch_register,store_register): Likewise.
4400 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
4401 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
4402 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
4403 * remote-m32r-sdi.c (m32r_fetch_registers)
4404 (m32r_store_registers): Likewise.
4405 * reggroups.c (default_register_reggroup_p): Likewise.
4406 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
4407 (regcache_restore,regcache_dump): Likewise.
4408 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
4409 * mips-tdep.c (mips_xfer_register,mips_register_name)
4410 (mips_register_reggroup_p,mips_pseudo_register_read)
4411 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
4412 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
4413 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
4414 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
4415 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
4416 (print_gp_register_row,mips_print_registers_info)
4417 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4418 (mips_register_sim_regno): Likewise.
4419 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
4420 (mips_linux_n32n64_sigframe_init): Likewise.
4421 * mips-linux-nat.c (mips_linux_register_addr)
4422 (mips64_linux_register_addr): Likewise.
4423 * findvar.c (value_of_register): Likewise.
4424 * infcmd.c (default_print_registers_info,registers_info)
4425 (print_vector_info,print_float_info): Likewise.
4426 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
4427 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4428 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4429 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
4430 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
4431 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
4432 (ia64_cannot_store_register,ia64_linux_fetch_registers)
4433 (ia64_linux_store_registers): Likewise.
4434 * hpux-thread.c (hpux_thread_fetch_registers)
4435 (hpux_thread_store_registers): Likewise.
4436 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
4437 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
4438 (h8300_register_type): Likewise.
4439 * dwarf2-frame.c (dwarf2_frame_cache)
4440 (dwarf2_frame_state_alloc_regs): Likewise.
4441 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
4442 (cris_cannot_store_register,crisv32_cannot_fetch_register)
4443 (crisv32_cannot_store_register,cris_register_name): Likewise.
4444 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
4445 * arch-utils.c (legacy_register_sim_regno)
4446 (legacy_virtual_frame_pointer): Likewise.
4447 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
4448 * arm-tdep.h: Likewise (comment).
4449 * frv-tdep.c (frv_register_sim_regno): Likewise.
4450 * m68klinux-nat.c (old_fetch_inferior_registers)
4451 (old_store_inferior_registers): Likewise.
4452 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
4453 * irix5-nat.c (fetch_core_registers): Likewise.
4454 * hppa-tdep.c (hppa_frame_cache): Likewise.
4455 * hppa-linux-nat.c (hppa_linux_register_addr)
4456 (hppa_linux_fetch_inferior_registers)
4457 (hppa_linux_store_inferior_registers): Likewise.
4458 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
4459 (hppa_hpux_store_inferior_registers): Likewise.
4460 * amd64-nat.c (amd64_native_gregset_reg_offset)
4461 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
4462 * dbug-rom.c (dbug_regname): Likewise.
4463 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
4464 (HARD_PAGE_REGNUM (comment)): Likewise.
4465 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
4466 * i386-tdep.c (i386_dbx_reg_to_regnum)
4467 (i386_svr4_reg_to_regnum): Likewise.
4468 * mi/mi-main.c (mi_cmd_data_list_register_names)
4469 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
4470 (mi_cmd_data_write_register_values): Likewise.
4471 * gdbarch.c, gdbarch.h: Regenerate.
4472 * tui/tui-regs.c (tui_show_register_group): Likewise.
4473 * xtensa-tdep.h (FP_ALIAS): Likewise.
4474 * user-regs.h: Likewise (comment).
4475 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4476 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4477 * target-descriptions.h: Likewise (comment).
4478 * target.c (debug_print_register): Likewise.
4479 * stack.c (frame_info): Likewise.
4480 * stabsread.c (define_symbol): Likewise.
4481 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
4482 (sh64_compact_print_registers_info): Likewise.
4483 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4484 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
4485 (regcache_restore,regcache_dump): Likewise.
4486 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
4487 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4488 (mips_stab_reg_to_regnum): Likewise.
4489 * findvar.c (value_of_register): Likewise.
4490 * infcmd.c (default_print_registers_info,registers_info)
4491 (print_vector_info,print_float_info): Likewise.
4492 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4493 * h8300-tdep.c (h8300_register_type): Likewise.
4494 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
4495 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
4496 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
4497 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
4498 * parse.c: Remove comment.
4499 * gdbarch.c, gdbarch.h: Regenerate
4500
4501 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4502
4503 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
4504 gdbarch_cannot_fetch_register.
4505 * alpha-nat.c (fetch_osf_core_registers): Likewise.
4506 * hppa-linux-nat.c (fetch_register): Likewise.
4507 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4508 * m68klinux-nat.c (fetch_register): Likewise.
4509 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
4510 Likewise.
4511 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
4512 gdbarch_cannot_store_register.
4513 * hppa-linux-nat.c (store_register): Likewise.
4514 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
4515 * regcache.c (regcache_raw_write): Likewise.
4516 * m68klinux-nat.c (store_register): Likewise.
4517 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
4518 * gdbarch.c, gdbarch.h: Regenerate.
4519
4520 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4521
4522 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
4523 * gdbarch.c, gdbarch.h: Regenerate.
4524
4525 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4526
4527 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
4528 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
4529 * gdbarch.c, gdbarch.h: Regenerate.
4530
4531 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4532
4533 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
4534 * ax-gdb.c (gen_bitfield_ref): Likewise.
4535 * mi/mi-main.c (get_register): Likewise.
4536 * findvar.c (default_value_from_register, extract_signed_integer)
4537 (extract_unsigned_integer, extract_long_unsigned_integer)
4538 (store_signed_integer, store_unsigned_integer): Likewise.
4539 * regcache.c (regcache_dump): Likewise.
4540 * value.c (lookup_internalvar, value_of_internalvar)
4541 (set_internalvar): Likewise.
4542 * defs.h: Likewise.
4543 * valprint.c (print_binary_chars, print_octal_chars)
4544 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
4545 * infcmd.c (default_print_registers_info): Likewise.
4546 * arch-utils.c (selected_byte_order, show_endian): Likewise.
4547 * stabsread.c (define_symbol): Likewise.
4548 * doublest.c (floatformat_from_length, floatformat_from_type)
4549 (extract_typed_floating, store_typed_floating): Likewise.
4550 * gdbarch.c, gdbarch.h: Regenerate.
4551
4552 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4553
4554 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
4555 gdbarch_call_dummy_location.
4556 * infcall.c (call_function_by_hand): Likewise.
4557 * inferior.h: Change comment.
4558 * arch-utils.c: Change comment.
4559 * gdbarch.c, gdbarch.h: Regenerate.
4560
4561 2007-05-28 Joel Brobecker <brobecker@adacore.com>
4562
4563 * solib-aix5.c: Delete.
4564 * Makefile.in (solib-aix5.o): Delete rule.
4565
4566 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
4567
4568 * breakpoint.h (enum bpstat_what_main_action): Remove
4569 BPSTAT_WHAT_THROUGH_SIGTRAMP.
4570 * infrun.c (process_event_stop_test): Do not check for it.
4571
4572 2007-05-22 Chris Dearman <chris@mips.com>
4573 Maciej W. Rozycki <macro@mips.com>
4574
4575 * ser-unix.c (show_serial_hwflow): New function.
4576 (hardwire_raw): Add hardware flow control support.
4577 (_initialize_ser_hardwire): Add "set/show remoteflow".
4578 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
4579 * NEWS: Document the new command.
4580
4581 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4582
4583 * config/i386/tm-linux.h (sys_quotactl): Do not define.
4584 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
4585 define for i[[3456]]86-*-linux* native configurations.
4586 * config.in, configure: Regenerate.
4587
4588 2007-05-19 Joel Brobecker <brobecker@adacore.com>
4589
4590 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
4591 a core file. Add comment in the function description.
4592
4593 2007-05-18 Caroline Tice <ctice@apple.com>
4594
4595 * c-valprint.c (c_value_print): If the initialized field of the
4596 value struct is 0, print out "[uninitialized]" before the value.
4597 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
4598 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
4599 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
4600 ctx->initialized appropriately. Verify no location op follows
4601 DW_OP_GNU_uninit.
4602 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
4603 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
4604 set_value_initialized.
4605 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
4606 (decode_locdesc): Add case for DW_OP_GNU_uninit.
4607 * value.c (struct value): New field, initialized.
4608 (allocate_value): Initialize new field.
4609 (set_value_initialized): New function.
4610 (value_initialized): New function.
4611 * value.h (value_initialized): New extern declaration.
4612 (set_value_initialized): Likewise.
4613
4614 2007-05-18 Caroline Tice <ctice@apple.com>
4615
4616 * MAINTAINERS (Write After Approval): Add self.
4617
4618 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4619
4620 * gdbtypes.c (make_reference_type): Preserve the type chain
4621 and set the length of all the variants of the pointer type.
4622
4623 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4624
4625 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
4626 and set the length of all the variants of the pointer type.
4627
4628 2007-05-17 Maciej W. Rozycki <macro@mips.com>
4629
4630 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
4631 comment.
4632 (mips_o64_push_dummy_call): Reformat a comment.
4633
4634 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
4635
4636 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
4637 (score_prologue_frame_base_address): Return fp to keep gdb print
4638 local variables correctly when debugging information is stabs.
4639
4640 (score_analyze_prologue): For software watchpoint, fetch all the
4641 instructions from range [startaddr, pc] once and identify them locally
4642 to reduce memory access.
4643 (score_malloc_and_get_memblock, score_free_memblock)
4644 (score_adjust_memblock_ptr): New functions.
4645 (score_fetch_inst): Fetch single instruction or mutiple instructions.
4646
4647 (score_target_can_use_watch, score_stopped_by_watch)
4648 (score_target_insert_watchpoint, score_target_remove_watchpoint)
4649 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
4650 New functions for remote & local hw-watchpoint and hw-breakpoint.
4651
4652 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
4653
4654 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
4655 declarations as well.
4656
4657 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4658
4659 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
4660 * config/arm/tm-embed.h: Delete file.
4661
4662 * arm-tdep.h (arm_software_single_step): Declare.
4663 * arm-tdep.c (arm_software_single_step): Make global.
4664 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
4665 from here to ...
4666 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
4667 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
4668 * armobsd-tdep.c (armobsd_init_abi): ... here ...
4669 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
4670
4671 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
4672 allow defines to be overriden by TM file.
4673 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
4674 change default to {0xbe,0xbe}.
4675 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
4676 arm_obsd_thumb_be_breakpoint): New global variables.
4677 (armobsd_init_abi): Override tdep->thumb_breakpoint and
4678 tdep->thumb_breakpoint_size.
4679 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
4680 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
4681 tdep->thumb_breakpoint_size.
4682
4683 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
4684
4685 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4686
4687 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
4688 saved-gpreg-size".
4689
4690 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
4691 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
4692 (mips_stack_argsize_string, mips_stack_argsize): Delete.
4693 (mips_abi_regsize): Simplify.
4694 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4695 (mips_n32n64_return_value, mips_o32_push_dummy_call)
4696 (mips_o32_return_value, mips_o64_push_dummy_call)
4697 (mips_o64_return_value): Propogate constant register sizes. Use the
4698 ABI register size instead of mips_stack_argsize.
4699 (mips_dump_tdep): Don't print mips_stack_argsize.
4700 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
4701 settings.
4702
4703 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4704
4705 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
4706 * config/mips/tm-linux.h: Delete.
4707 * mips-linux-tdep.c (mips_svr4_so_ops): New.
4708 (mips_linux_in_dynsym_resolve_code): Make static. Use
4709 svr4_in_dynsym_resolve_code.
4710 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
4711 set_solib_ops.
4712 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
4713 global.
4714 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
4715 * Makefile.in (mips-linux-tdep.o): Update.
4716 * solib.c (set_solib_ops): New.
4717 (current_target_so_ops): Update comment.
4718 * solib.h (set_solib_ops): New prototype.
4719
4720 2007-05-16 Chris Dearman <chris@mips.com>
4721
4722 * printcmd.c (do_examine): Fix typos in a comment.
4723
4724 2007-05-16 Richard Sandiford <richard@codesourcery.com>
4725
4726 * configure.ac: Allow sysroots to be relocated under $prefix as
4727 well as $exec_prefix.
4728 * configure: Regenerate.
4729
4730 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4731
4732 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
4733 (offsetof): Do not define.
4734 (find_stub_with_shl_get): Use numerical value 3 instead of
4735 symbolic value TYPE_PROCEDURE.
4736
4737 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4738
4739 * gdb_proc_service.h (paddr_t): Delete typedef.
4740 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
4741 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
4742 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
4743 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
4744 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
4745 * Makefile.in (proc-service.o): Update.
4746
4747 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4748
4749 * Makefile.in (mips-tdep.o): Update.
4750 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
4751 unwinder.
4752
4753 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4754
4755 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
4756 instead of store_typed_address.
4757 * value.c (pack_long): New.
4758 (value_from_longest): Use it.
4759 * value.h (pack_long): New prototype.
4760
4761 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4762
4763 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
4764 DW_EH_PE_signed if appropriate.
4765
4766 2007-05-14 Paul Brook <paul@codesourcery.com>
4767 Daniel Jacobowitz <dan@codesourcery.com>
4768
4769 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
4770 function.
4771 (dwarf_decode_lines): Check for line info without a file.
4772
4773 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4774
4775 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
4776 as hexadecimal.
4777
4778 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4779
4780 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
4781 STRUCTOP_STRUCT.
4782 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
4783 STRUCTOP_STRUCT.
4784 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
4785
4786 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4787
4788 * gdbarch.sh (read_sp): Remove.
4789 * gdbarch.c, gdbarch.h: Regenerate.
4790 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
4791
4792 * avr-tdep.c (avr_read_sp): Remove.
4793 (avr_unwind_sp): New function.
4794 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
4795 * mips-tdep.c (mips_read_sp): Remove.
4796 (mips_unwind_sp): New function.
4797 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
4798 * score-tdep.c (score_read_unsigned_register): Remove.
4799 (score_read_sp): Remove.
4800 (score_unwind_sp): New function.
4801 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
4802
4803 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
4804
4805 * buildsym.c (start_subfile): Handle absolute pathnames
4806 while comparing subfile names.
4807
4808 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4809
4810 * hppa-hpux-tdep.c: Include "regcache.h".
4811 * hppa-linux-tdep.c: Likewise.
4812 * hppa-tdep.c: Include "gdb_stdint.h".
4813 (find_unwind_entry): Cast host pointer to uintptr_t before passing
4814 it to paddr_nz.
4815 * Makefile.in: Update dependencies.
4816
4817 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4818
4819 * blockframe.c: Remove obsolete comments.
4820 * alpha-nat.c (fetch_osf_core_registers): Update comment.
4821 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
4822 * hppa-tdep.h (enum hppa_regnum): Likewise.
4823 * mips-tdep.h: Likewise.
4824 * m68hc11-tdep.c: Likewise.
4825
4826 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4827
4828 * inferior.h (read_sp): Remove prototype.
4829 * regcache.c (read_sp): Remove.
4830 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
4831 * infcall.c (call_function_by_hand): Likewise.
4832 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
4833 of calling read_sp.
4834 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4835
4836 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4837
4838 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
4839 instead of read_register and read_register_pid.
4840
4841 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
4842 argument instead of PTID. Use regcache functions instead of
4843 read_register_pid.
4844 (ia64_linux_insert_watchpoint): Update call.
4845 (ia64_linux_stopped_data_address): Use regcache functions
4846 instead of read_register_pid and write_register_pid.
4847
4848 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4849
4850 * libunwind-frame.h (struct regcache): Add forward declaration.
4851 (libunwind_get_reg_special): Add REGCACHE argument.
4852 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
4853 argument. Pass it to unw_init_remote_p.
4854
4855 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
4856 libunwind_get_reg_special.
4857 (ia64_access_reg): Remove "write" case.
4858 (ia64_access_fpreg): Likewise. Read from next_frame passed
4859 as callback argument instead of from current_regcache.
4860 (ia64_access_rse_reg): Remove "write" case. Read from regcache
4861 passed as callback argument instead of from current_regcache.
4862 (ia64_access_rse_fpreg): New function.
4863 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
4864
4865 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4866
4867 * NEWS: Mention SPU overlay support.
4868
4869 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4870
4871 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
4872
4873 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4874
4875 * breakpoint.c (remove_breakpoint): Do not remove software
4876 breakpoints in unmapped overlay sections.
4877
4878 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4879
4880 * spu-tdep.c: Include "observer.h".
4881 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
4882 (spu_overlay_data): New variable.
4883 (struct spu_overlay_table): New type.
4884 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
4885 spu_overlay_new_objfile): New functions.
4886 (spu_gdbarch_init): Install spu_overlay_update.
4887 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
4888 allocate spu_overlay_data objfile data.
4889
4890 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4891
4892 * gdbarch.sh (overlay_update): New gdbarch function.
4893 (struct obj_section): Add forward declaration.
4894 * gdbarch.c, gdbarch.h: Regenerate.
4895
4896 * symfile.c (simple_overlay_update): Make global.
4897 (target_overlay_update): Remove variable.
4898 (overlay_is_mapped): Call gdbarch_overlay_update instead of
4899 target_overlay_update.
4900 (overlay_load_command): Likewise.
4901 * symfile.h (struct obj_section): Add forward declaration.
4902 (simple_overlay_update): Add prototype.
4903
4904 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
4905
4906 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4907
4908 * observer.sh: Add "struct objfile" forward declaration.
4909 * target.h (deprecated_target_new_objfile_hook): Remove.
4910 * symfile.c (deprecated_target_new_objfile_hook): Remove.
4911 (clear_symtab_users): Call observer_notify_new_objfile.
4912 (symbol_file_add_with_addrs_or_offsets): Likewise.
4913 * rs6000-nat.c: Include "observer.h".
4914 (vmap_ldinfo): Call observer_notify_new_objfile.
4915 (xcoff_relocate_core): Likewise.
4916 * remote.c (remote_new_objfile_chain): Remove.
4917 (remote_new_objfile): Do not call remote_new_objfile_chain.
4918 (_initialize_remote): Use observer_attach_new_objfile.
4919 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
4920 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
4921 (_initialize_tui_hooks): Use observer_attach_new_objfile.
4922 * aix-thread.c: Include "observer.h".
4923 (target_new_objfile_chain): Remove.
4924 (new_objfile): Do not call target_new_objfile_chain.
4925 (_initialize_aix_thread): Use observer_attach_new_objfile.
4926 * hpux-thread.c: Include "observer.h"
4927 (target_new_objfile_chain): Remove.
4928 (hpux_thread_new_objfile): Make static. Do not call
4929 target_new_objfile_chain.
4930 (_initialize_hpux_thread): Use observer_attach_new_objfile.
4931 * linux-thread-db.c: Include "observer.h".
4932 (target_new_objfile_chain): Remove.
4933 (thread_db_new_objfile): Do not call target_new_objfile_chain.
4934 (_initialize_thread_db): Use observer_attach_new_objfile.
4935 * sol-thread.c: Include "observer.h".
4936 (target_new_objfile_chain): Remove.
4937 (sol_thread_new_objfile): Make static. Do not call
4938 target_new_objfile_chain.
4939 (_initialize_sol_thread): Use observer_attach_new_objfile.
4940 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
4941 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
4942 $(observer_h).
4943
4944 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4945
4946 * gdbarch.sh (remote_translate_xfer_address): Remove.
4947 * gdbarch.h, gdbarch.c: Regenerate.
4948 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
4949 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
4950 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
4951 call gdbarch_remote_translate_xfer_address.
4952 * frv-tdep.c (frv_gdbarch_init): Do not call
4953 set_gdbarch_remote_translate_xfer_address.
4954 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
4955 (ia64_gdbarch_init): Do not install it.
4956
4957 2007-05-11 Bob Wilson <bob.wilson@acm.org>
4958
4959 * NEWS: Mention change in handling the -tui option.
4960
4961 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
4962
4963 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
4964 typo.
4965
4966 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4967
4968 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
4969 (breakpoint_inserted_here_p): Call it.
4970 (software_breakpoint_inserted_here_p): Likewise.
4971
4972 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
4973
4974 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
4975 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
4976 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
4977 (inf_ptrace_store_register): Likewise.
4978 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
4979 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
4980
4981 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
4982
4983 * linux-nat.c (linux_trad_target): Adapt parameter list.
4984 * linux-nat.h (linux_trad_target): Likewise.
4985
4986 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
4987
4988 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
4989 (mips_linux_cannot_store_register): Likewise.
4990 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
4991 Return (CORE_ADDR) -1 for registers that cannot be fetched or
4992 stored via ptrace. Use GDBARCH instead of current_gdbarch.
4993 (mips64_linux_register_addr): Likewise.
4994 (mips_linux_register_u_offset): Adapt parameter list. Pass
4995 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
4996
4997 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4998 * config/mips/nm-linux.h: Delete file.
4999
5000 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
5001
5002 * remote.c (remote_detach): Error out if remote can't detach.
5003
5004 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
5005
5006 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
5007 instruction's opcode in the "opcode" variable and declares new
5008 variable "closing_insn".
5009
5010 2007-05-10 Chris Dearman <chris@mips.com>
5011 Maciej W. Rozycki <macro@mips.com>
5012
5013 * cli/cli-setshow.c (do_setshow_command): Remove trailing
5014 whitespace when setting a var_filename.
5015
5016 2007-05-09 Bob Wilson <bob.wilson@acm.org>
5017
5018 * main.c (captured_main): Recognize -tui option and print an error
5019 message when the TUI is not configured.
5020
5021 2007-05-09 Andreas Schwab <schwab@suse.de>
5022
5023 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
5024 set removed members.
5025 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
5026
5027 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
5028
5029 * gdbarch.sh (deprecated_store_struct_return): Remove.
5030 * gdbarch.c, gdbarch.h: Regenerate.
5031 * frv-tdep.c (frv_store_struct_return): Remove.
5032 (frv_gdbarch_init): Do not install it.
5033
5034 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
5035
5036 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
5037 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
5038 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
5039
5040 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
5041
5042 * spu-linux-nat.c: Include "gdb_stdint.h".
5043 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
5044 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
5045 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
5046 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
5047 (spu_child_wait): Mark up string for translation.
5048
5049 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
5050 Luis Machado <luisgpm@br.ibm.com>
5051
5052 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
5053 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
5054 BC_INSTRUCTION): Define.
5055 (deal_with_atomic_sequence): New function.
5056 (rs6000_software_single_step): Call deal_with_atomic_sequence.
5057 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
5058 gdbarch_software_single_step routine.
5059
5060 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
5061
5062 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
5063 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
5064 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
5065 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
5066 spu_child_post_attach, spu_fetch_inferior_registers,
5067 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
5068 memory addresses as ULONGEST, not CORE_ADDR.
5069
5070 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
5071
5072 * gdbarch.sh: Add skip_permanent_breakpoint callback.
5073 * gdbarch.h, gdbarch.c: Regenerate.
5074
5075 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
5076 (resume): Call gdbarch_skip_permanent_breakpoint instead of
5077 SKIP_PERMANENT_BREAKPOINT. Inline default case.
5078
5079 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
5080 Add REGCACHE argument. Use it instead of read/write_register.
5081 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
5082
5083 * config/pa/tm-hppah.h: Delete file.
5084 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
5085 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
5086
5087 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
5088
5089 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
5090 * NEWS: Mention improved C++ thunk support.
5091 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
5092 * cp-abi.c (cplus_skip_trampoline): New.
5093 * cp-abi.h (cplus_skip_trampoline): New prototype.
5094 (struct cp_abi_ops): Add skip_trampoline member.
5095 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
5096 (init_gnuv3_ops): Set skip_trampoline.
5097
5098 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
5099
5100 * rs6000-tdep.c (struct frame_extra_info): Delete.
5101
5102 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
5103
5104 * linux-thread-db.c: Update some FIXME comments.
5105 (thread_db_xfer_partial): Delete.
5106 (init_thread_db_ops): Do not set to_xfer_partial.
5107
5108 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5109
5110 * inftarg.c, infptrace.c: Remove files.
5111 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
5112 (inftarg.o, infptrace.o): Remove rules.
5113 * gdbcore.h (register_addr): Remove prototype.
5114 * inferior.h (kill_inferior, store_inferior_registers,
5115 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
5116 call_ptrace, pre_fork_inferior): Remove prototypes.
5117 * target.h (child_xfer_memory, child_pid_to_exec_file,
5118 child_core_file_to_sym_file, child_post_attach,
5119 child_post_startup_inferior, child_acknowledge_created_inferior,
5120 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
5121 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
5122 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
5123 child_follow_fork, child_reported_exec_events_per_exec_call,
5124 child_has_exited, child_thread_alive): Remove prototypes.
5125
5126 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5127
5128 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
5129 (sparc_store_inferior_registers): Likewise.
5130 * sparc-nat.c (fetch_inferior_registers): Rename to ...
5131 (sparc_fetch_inferior_registers): ... this.
5132 (store_inferior_registers): Rename to ...
5133 (sparc_store_inferior_registers): ... this.
5134 (sparc_target): Update callback names.
5135 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
5136 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
5137
5138 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5139
5140 * linux-nat.c (child_post_attach): Rename to ...
5141 (linux_child_post_attach): ... this. Make static.
5142 (child_follow_fork): Rename to ...
5143 (linux_child_follow_fork): ... this. Make static.
5144 (child_insert_fork_catchpoint): Rename to ...
5145 (linux_child_insert_fork_catchpoint): ... this. Make static.
5146 (child_insert_vfork_catchpoint): Rename to ...
5147 (linux_child_insert_vfork_catchpoint): ... this. Make static.
5148 (child_insert_exec_catchpoint): Rename to ...
5149 (linux_child_insert_exec_catchpoint): ... this. Make static.
5150 (child_pid_to_exec_file): Rename to ...
5151 (linux_child_pid_to_exec_file): ... this. Make static.
5152 Add prototype.
5153 (linux_handle_extended_wait): Update call.
5154 (linux_xfer_partial): Update callback routine names.
5155
5156 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5157
5158 * configure.host (alpha*-*-osf[12]*): Remove support.
5159 * NEWS: Mention removed configurations.
5160
5161 * config/alpha/alpha-osf1.mh: Delete file.
5162 * config/alpha/alpha-osf2.mh: Delete file.
5163 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
5164 and infptrace.o.
5165 * config/alpha/nm-osf.h: Delete file.
5166 * config/alpha/nm-osf2.h: Delete file.
5167 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
5168 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
5169 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
5170
5171 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
5172 (register_addr, kernel_u_size): Remove.
5173 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
5174
5175 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5176
5177 * regcache.c (regcache_invalidate): New function.
5178 (register_cached): Remove.
5179 (set_register_cached): Remove.
5180 (deprecated_registers_fetched): Remove.
5181 (registers_changed): Use regcache_invalidate instead
5182 of set_register_cached.
5183 (regcache_raw_read): Update comment.
5184
5185 * regcache.h (regcache_invalidate): Add prototype.
5186 (register_cached): Remove.
5187 (set_register_cached): Remove.
5188 (deprecated_registers_fetched): Remove.
5189
5190 * findvar.c (value_of_register): Do not call register_cached.
5191 * frame.c (frame_register): Likewise.
5192 * tui/tui-regs.c (tui_get_register): Likewise.
5193
5194 * remote.c (fetch_register_using_p): Do not call set_register_cached.
5195 (process_g_packet): Likewise.
5196 (remote_fetch_registers): Likewise.
5197 * remote-sim.c (gdbsim_fetch_register): Likewise.
5198 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
5199 by regcache_invalidate.
5200 (mt_pseudo_register_write): Likewise.
5201 * sh-tdep.c (sh_pseudo_register_write): Likewise.
5202
5203 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
5204 call by loop over regcache_raw_supply (..., NULL).
5205
5206 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5207
5208 * target.h (struct target_ops): Add REGCACHE parameter to
5209 to_prepare_to_store.
5210 (target_prepare_to_store): Likewise.
5211 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
5212 (update_current_target): Adapt prepare_to_store de_fault rule.
5213
5214 * regcache.c (regcache_raw_write): Pass regcache to
5215 target_prepare_to_store.
5216
5217 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
5218 Do not call CHILD_PREPARE_TO_STORE.
5219 * gnu-nat.c (gnu_prepare_to_store): Likewise.
5220 * procfs.c (procfs_prepare_to_store): Likewise.
5221
5222 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
5223 * go32-nat.c (go32_prepare_to_store): Likewise.
5224 * monitor.c (monitor_prepare_to_store): Likewise.
5225 * nto-procfs.c (procfs_prepare_to_store): Likewise.
5226 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
5227 * remote-mips.c (mips_prepare_to_store): Likewise.
5228 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
5229 * win32-nat.c (win32_prepare_to_store): Likewise.
5230
5231 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
5232 Use it instead of current_regcache.
5233
5234 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
5235 parameter. Pass it on to next target.
5236 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
5237
5238 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5239
5240 * target.h (struct regcache): Add forward declaration.
5241 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
5242 and to_store_registers target operations.
5243 (target_fetch_registers, target_store_registers): Update.
5244
5245 * regcache.c (regcache_raw_read): Replace register_cached by
5246 regcache_valid_p. Pass regcache to target_fetch_registers.
5247 (regcache_raw_write): Pass regcache to target_store_registers.
5248
5249 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
5250 store_regs, store_wmmx_regs): Replace register_cached by
5251 regcache_valid_p.
5252
5253 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
5254 to target_fetch_registers calls.
5255 * corelow.c (core_open): Likewise.
5256 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
5257 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
5258 ps_lsetfpregs): Likewise.
5259 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
5260 ps_lsetfpregs): Likewise.
5261 * win32-nat.c (win32_resume): Likewise.
5262 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
5263 to target_store_registers call.
5264 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5265
5266 * inferior.h (store_inferior_registers): Update prototype.
5267 (fetch_inferior_registers): Likewise.
5268 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
5269 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
5270 Update function pointer signatures.
5271
5272 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
5273 use it instead of current_regcache, update calls.
5274 (aix_thread_store_registers): Likewise.
5275 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
5276 (alphabsd_store_inferior_registers): Likewise.
5277 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
5278 (amd64bsd_store_inferior_registers): Likewise.
5279 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
5280 (amd64_linux_store_inferior_registers): Likewise.
5281 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
5282 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
5283 fetch_wmmx_regs, store_wmmx_regs): Likewise.
5284 (arm_linux_fetch_inferior_registers): Likewise.
5285 (arm_linux_store_inferior_registers): Likewise.
5286 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
5287 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
5288 (store_register, store_regs, store_fp_register, store_fp_regs,
5289 armnbsd_store_registers): Likewise.
5290 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
5291 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
5292 (bsd_uthread_store_registers): Likewise.
5293 * corelow.c (get_core_registers): Likewise.
5294 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
5295 go32_store_registers): Likewise.
5296 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
5297 (hppabsd_store_registers): Likewise.
5298 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
5299 (hppa_hpux_fetch_inferior_registers): Likewise.
5300 (hppa_hpux_store_register): Likewise.
5301 (hppa_hpux_store_inferior_registers): Likewise.
5302 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
5303 (hppa_linux_fetch_inferior_registers): Likewise.
5304 (hppa_linux_store_inferior_registers): Likewise.
5305 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
5306 (hpux_thread_store_registers): Likewise.
5307 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
5308 (i386bsd_store_inferior_registers): Likewise.
5309 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
5310 gnu_store_registers): Likewise.
5311 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
5312 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
5313 Likewise.
5314 (i386_linux_fetch_inferior_registers): Likewise.
5315 (i386_linux_store_inferior_registers): Likewise.
5316 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
5317 (ia64_linux_fetch_registers): Likewise.
5318 (ia64_linux_store_register): Likewise.
5319 (ia64_linux_store_registers): Likewise.
5320 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
5321 (inf_child_store_inferior_registers): Likewise.
5322 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
5323 (inf_ptrace_fetch_registers): Likewise.
5324 (inf_ptrace_store_register): Likewise.
5325 (inf_ptrace_store_registers): Likewise.
5326 * infptrace.c (fetch_register, store_register): Likewise.
5327 (fetch_inferior_registers, store_inferior_registers): Likewise.
5328 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
5329 (m32r_linux_fetch_inferior_registers): Likewise.
5330 (m32r_linux_store_inferior_registers): Likewise.
5331 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
5332 (m68kbsd_store_inferior_registers): Likewise.
5333 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
5334 store_register, old_store_inferior_registers, fetch_regs, store_regs,
5335 fetch_fpregs, store_fpregs): Likewise.
5336 (m68k_linux_fetch_inferior_registers): Likewise.
5337 (m68k_linux_store_inferior_registers): Likewise.
5338 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
5339 (m88kbsd_store_inferior_registers): Likewise.
5340 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
5341 (mips64obsd_store_inferior_registers): Likewise.
5342 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
5343 (mips64_linux_regsets_store_registers): Likewise.
5344 (mips64_linux_fetch_registers): Likewise.
5345 (mips64_linux_store_registers): Likewise.
5346 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
5347 (mipsnbsd_store_inferior_registers): Likewise.
5348 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
5349 (monitor_fetch_registers, monitor_store_registers): Likewise.
5350 * nto-procfs.c (procfs_fetch_registers): Likewise.
5351 (procfs_store_registers): Likewise.
5352 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
5353 fetch_register, supply_vrregset, fetch_altivec_registers,
5354 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
5355 (store_altivec_register, store_spe_register, store_register,
5356 fill_vrregset, store_altivec_registers, store_ppc_registers,
5357 ppc_linux_store_inferior_registers): Likewise.
5358 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
5359 (ppcnbsd_store_inferior_registers): Likewise.
5360 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
5361 (ppcobsd_store_registers): Likewise.
5362 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5363 * remote.c (fetch_register_using_p, process_g_packet,
5364 fetch_registers_using_g, remote_fetch_registers): Likewise.
5365 (store_register_using_P, store_registers_using_G,
5366 remote_store_registers): Likewise.
5367 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
5368 m32r_store_register, m32r_store_register): Likewise.
5369 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
5370 * remote-sim.c (gdbsim_fetch_register): Likewise.
5371 (gdbsim_store_register): Likewise.
5372 * rs6000-nat.c (fetch_register, store_register): Likewise.
5373 (rs6000_fetch_inferior_registers): Likewise.
5374 (rs6000_store_inferior_registers): Likewise.
5375 * s390-nat.c (fetch_regs, store_regs): Likewise.
5376 (fetch_fpregs, store_fpregs): Likewise.
5377 (s390_linux_fetch_inferior_registers): Likewise.
5378 (s390_linux_store_inferior_registers): Likewise.
5379 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
5380 (shnbsd_store_inferior_registers): Likewise.
5381 * sol-thread.c (sol_thread_fetch_registers): Likewise.
5382 (sol_thread_store_registers): Likewise.
5383 * sparc-nat.c (fetch_inferior_registers): Likewise.
5384 (store_inferior_registers): Likewise.
5385 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
5386 (spu_store_inferior_registers): Likewise.
5387 * target.c (debug_print_register): Likewise.
5388 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
5389 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
5390 (vaxbsd_store_inferior_registers): Likewise.
5391 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
5392 (win32_fetch_inferior_registers): Likewise.
5393 (win32_store_inferior_registers): Likewise.
5394
5395 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5396
5397 * gdbcore.h (struct regcache): Add forward declaration.
5398 (struct core_fns): Add REGCACHE argument to core_read_registers
5399 callback.
5400 * corelow.c (get_core_register_section): Add REGCACHE argument,
5401 use it instead of current_regcache, pass it to core_read_registers
5402 callback.
5403 (get_core_registers): Add current_regcache as parameter to
5404 get_core_register_section calls.
5405
5406 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
5407 use it instead of current_regcache.
5408 * armnbsd-nat.c (fetch_core_registers): Likewise.
5409 (fetch_elfcore_registers): Likewise.
5410 * core-regset.c (fetch_core_registers): Likewise.
5411 * cris-tdep.c (fetch_core_registers): Likewise.
5412 * irix5-nat.c (fetch_core_registers): Likewise.
5413 * m68klinux-nat.c (fetch_core_registers): Likewise.
5414 * mips-linux-tdep.c (fetch_core_registers): Likewise.
5415 * win32-nat.c (fetch_elf_core_registers): Likewise.
5416
5417 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5418
5419 * gregset.h (struct regcache): Add forward declaration.
5420 (supply_gregset): Add REGCACHE parameter, make GREGS const.
5421 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
5422 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
5423 (fill_gregset): Add REGCACHE parameter.
5424 (fill_fpregset): Likewise.
5425 (fill_fpxregset): Likewise.
5426
5427 Update all definitions accordingly:
5428 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
5429 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
5430 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
5431 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
5432 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
5433 (supply_gregset): Add REGCACHE parameter, use it instead of
5434 current_regcache. Make GREGSETP parameter const, adapt casts.
5435 (supply_fpregset): Add REGCACHE parameter, use it instead of
5436 current_regcache. Make FPREGSETP parameter const, adapt casts.
5437 (fill_gregset): Add REGCACHE parameter, use it instead of
5438 current_regcache.
5439 (fill_fpregset): Likewise.
5440
5441 Update all callers to pass in current_regcache as the new argument:
5442 * core-regset.c: Include "regcache.h".
5443 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
5444 * procfs.c: Include "regcache.h".
5445 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
5446 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
5447 (procfs_do_thread_registers): Likewise.
5448 (procfs_make_note_section): Likewise.
5449 * proc-service.c: Include "regcache.h".
5450 (ps_lgetregs): Update fill_gregset call.
5451 (ps_lsetregs): Update supply_gregset call.
5452 (ps_lgetfpregs): Update fill_fpregset call.
5453 (ps_lsetfpregs): Update supply_fpregset call.
5454 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
5455 supply_fpregset calls.
5456 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
5457 (ps_lgetregs): Update fill_gregset call.
5458 (ps_lsetregs): Update supply_gregset call.
5459 (ps_lgetfpregs): Update fill_fpregset call.
5460 (ps_lsetfpregs): Update supply_fpregset call.
5461
5462 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
5463 fill_fpregset, and fill_fpxregset calls.
5464 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
5465 (store_regs): Update fill_gregset call.
5466 (fetch_fpregs): Update supply_fpregset call.
5467 (store_fpregs): Update fill_fpregset call.
5468 (fetch_fpxregs): Update supply_fpxregset call.
5469 (store_fpxregs): Update fill_fpxregset call.
5470 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
5471 (store_regs): Update fill_gregset call.
5472 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
5473 (store_regs): Update fill_gregset call.
5474 (fetch_fpregs): Update supply_fpregset call.
5475 (store_fpregs): Update fill_fpregset call.
5476 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
5477 * s390-nat.c (fetch_regs): Update supply_gregset call.
5478 (store_regs): Update fill_gregset call.
5479 (fetch_fpregs): Update supply_fpregset call.
5480 (store_fpregs): Update fill_fpregset call.
5481
5482 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
5483 dependencies.
5484
5485 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5486
5487 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
5488 it instead of current_regcache.
5489 (parse_register_dump): Add REGCACHE parameter, pass it to
5490 supply_register callback.
5491 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
5492 parse_register_dump.
5493 (monitor_dump_regs): Add REGCACHE parameter, pass it to
5494 parse_register_dump and dumpregs callback.
5495 (monitor_wait): Pass current_regcache to parse_register_dump and
5496 monitor_dump_regs.
5497 (monitor_fetch_register): Pass current_regcache to
5498 monitor_supply_register.
5499 (monitor_fetch_registers): Pass current_regcache to
5500 monitor_dump_regs.
5501 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
5502 supply_register and dumpregs callbacks.
5503 (monitor_supply_register, monitor_dump_reg_block): Update
5504 prototypes.
5505 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
5506 it to monitor_supply_register.
5507 * dink32-rom.c (dink32_supply_register): Likewise.
5508 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
5509 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
5510 instead of current_regcache.
5511
5512 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5513
5514 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
5515 Add REGCACHE parameter. Use it instead of current_regcache.
5516 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
5517 i386nto_supply_gregset and i386nto_supply_fpregset.
5518 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
5519 of current_regcache.
5520
5521 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
5522 nto_supply_ helper functions.
5523 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
5524
5525 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
5526
5527 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
5528 supply_greget, supply_fpregset, supply_altregset, supply_regset,
5529 and regset_fill member function pointers.
5530 (nto_dummy_supply_regset): Adapt prototype.
5531
5532 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5533
5534 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
5535 instead of current_regcache. Make REGS const.
5536 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
5537 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
5538 prototypes.
5539 * shnbsd-nat.c: Include "regcache.h".
5540 (shnbsd_fetch_inferior_registers): Pass current_regcache to
5541 shnbsd_supply_reg.
5542 (shnbsd_store_inferior_registers): Pass current_regcache to
5543 shnbsd_fill_reg.
5544 * Makefile.in (shbsd-nat.o): Update dependencies.
5545
5546 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5547
5548 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
5549 instead of current_regcache.
5550 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
5551 Make GREGSETP const, remove superfluous casts.
5552 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5553 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
5554 superfluous casts.
5555 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5556 (supply_64bit_reg): Likewise
5557 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
5558 Make GREGSETP const, adapt casts accordingly.
5559 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5560 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
5561 casts accordingly.
5562 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5563 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
5564 helper routines.
5565 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
5566 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
5567 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
5568 Adapt prototypes.
5569 * mips-linux-nat.c: Include "regcache.h".
5570 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5571 current_regcache to mips{64}_(supply|fill)_ helper routines.
5572 (mips64_linux_regsets_fetch_registers): Likewise.
5573 (mips64_linux_regsets_store_registers): Likewise.
5574
5575 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
5576 REGCACHE argument; replace current_regcache. Make REGS const.
5577 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
5578 replace current_regcache.
5579 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
5580 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
5581 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
5582 mipsnbsd_store_inferior_registers): Pass current_regcache to
5583 mipsnbsd_(supply|fill)_... helper routines.
5584
5585 * Makefile.in (mips-linux-nat.o): Update dependencies.
5586
5587 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5588
5589 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
5590 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
5591 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
5592 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
5593 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
5594 * i386gnu-nat.c (store_fpregs): Likewise.
5595 * i386v4-nat.c (fill_fpregset): Likewise.
5596 * go32-nat.c (store_register, go32_store_registers): Likewise.
5597
5598 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5599
5600 * cris-tdep.c (supply_gregset): Rename to ...
5601 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
5602 instead of current_regcache.
5603 (fetch_core_registers): Update call. Pass current_regcache.
5604
5605 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5606
5607 * arnmnbsd-nat.c (supply_gregset): Rename to ...
5608 (arm_supply_gregset): ... this. Add REGCACHE parameter.
5609 Use it instead of current_regcache.
5610 (supply_fparegset): Rename to ...
5611 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
5612 Use it instead of current_regcache.
5613 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
5614 (fetch_core_registers, fetch_elfcore_registers): Likewise.
5615
5616 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5617
5618 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
5619 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
5620 use it instead of current_regcache.
5621 * alpha-tdep.h (struct regcache): Add forward declaration.
5622 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
5623 alpha_fill_fp_regs): Update prototypes.
5624
5625 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
5626 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
5627 * alpha-linux-nat.c: Include "regcache.h".
5628 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5629 current_regcache to alpha_supply/fill_ routines.
5630
5631 * alphabsd-tdep.c: Include "regcache.h".
5632 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
5633 pass it to alpha_supply_ routines. Make REGS const.
5634 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
5635 pass it to alpha_fill_ routines.
5636 * alphabsd-tdep.h (struct regcache): Add forward declaration.
5637 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
5638 alphabsd_fill_fpreg): Update prototypes.
5639
5640 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
5641 fill_fpregset, alphabsd_fetch_inferior_registers,
5642 alphabsd_store_inferior_registers): Pass current_regcache to
5643 alphabsd_supply/fill_ routines.
5644
5645 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
5646 dependencies.
5647
5648 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5649
5650 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
5651 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
5652 instead of current_regcache.
5653 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
5654 REGCACHE parameter, pass it to supply_ routines.
5655 (aix_thread_fetch_registers): Pass current_regcache to
5656 fetch_regs_user_thread and fetch_regs_kernel_thread.
5657
5658 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
5659 Add REGCACHE parameter, use it instead of current_regcache.
5660 Call regcache_valid_p instead of register_cached.
5661 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
5662 Also, pass REGCACHE to fill_ routines.
5663 (aix_thread_store_registers): Pass current_regcache to
5664 store_regs_user_thread and store_regs_kernel_thread.
5665
5666 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5667
5668 * m32r-linux-nat.c (supply_gregset): Do not modify contents
5669 pointed to by GREGSETP.
5670
5671 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5672
5673 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
5674 of regcache_raw_read_signed.
5675 (fill_fpregset): Use regcache_raw_collect instead of
5676 regcache_raw_read.
5677
5678 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5679
5680 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
5681 point arguments, test explicitly for use of the EABI32 ABI
5682 instead of inferring this condition from tests on register
5683 sizes.
5684
5685 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5686
5687 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
5688 prior to allocating its location.
5689
5690 2007-05-02 Maciej W. Rozycki <macro@mips.com>
5691
5692 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
5693 based on mips_abi_regsize() whose result is known in advance.
5694 (mips_o64_push_dummy_call): Likewise.
5695
5696 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
5697
5698 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
5699 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
5700
5701 * mips-linux-nat.c: Include "gregset.h".
5702 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
5703 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
5704 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
5705 fill_fpregset): Move to mips-linux-nat.c.
5706
5707 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
5708
5709 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5710
5711 * regcache.c (deprecated_read_register_gen): Remove, inline ...
5712 (read_register): ... here.
5713 (deprecated_write_register_gen): Remove, inline ...
5714 (write_register): ... here.
5715 * regcache.h (deprecated_read_register_gen): Remove prototype.
5716 (deprecated_write_register_gen): Likewise.
5717
5718 * remote-sim.c (gdbsim_store_register): Replace call to
5719 deprecated_read_register_gen with regcache_cooked_read.
5720 * target.c (debug_print_register): Replace calls to
5721 deprecated_read_register_gen and read_register with
5722 regcache_cooked_read.
5723
5724 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5725
5726 * hpux-thread.c (hpux_thread_store_registers): Use
5727 regcache_raw_collect, not regcache_raw_read.
5728 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
5729 not regcache_raw_write.
5730
5731 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5732
5733 * gdbarch.sh: Remove deprecated_register_byte.
5734 * gdbarch.c, gdbarch.h: Regenerate.
5735 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
5736 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
5737
5738 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
5739 * regcache.c (regcache_valid_p): Allow to query cooked registers in
5740 read-only register caches. Make REGCACHE parameter const.
5741 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
5742
5743 * mi/mi-main.c (old_regs): Remove.
5744 (mi_setup_architecture_data, _initialize_mi_main): Remove.
5745 (register_changed_p): Reimplement to compare two register caches.
5746 (mi_cmd_data_list_changed_registers): Update caller.
5747 * mi/mi-main.h (mi_setup_architecture_data): Remove.
5748 * mi/mi-interp.c (mi_interpreter_init): Do not call
5749 mi_setup_architecture_data.
5750
5751 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5752
5753 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
5754 inline definition at the places the macros are used.
5755 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
5756
5757 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5758
5759 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
5760 "gdb_string.h".
5761 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
5762 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
5763 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
5764 (rs6000_aix_regset_from_core_section): New function.
5765 (rs6000_aix_init_osabi): Register it.
5766 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
5767 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
5768 * rs6000-nat.c (CoreRegs): Do not define type.
5769 (fetch_core_registers, rs6000_core_fns): Remove.
5770 (_initialize_core_rs6000): Do not register it. Rename to ...
5771 (_initialize_rs6000_nat): ... this.
5772 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
5773
5774 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5775
5776 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
5777 (dwarf2_read_address): Sign extend return address as required by
5778 target architecture.
5779
5780 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5781
5782 * solib-frv.c (lm_base): Bail out if the main executable has
5783 not been relocated.
5784
5785 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5786
5787 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
5788 of FPCR register in fpregset.
5789
5790 2007-04-27 Maciej W. Rozycki <macro@mips.com>
5791
5792 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
5793 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
5794
5795 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5796
5797 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
5798 * rs6000-nat.c (rs6000_wait): New function.
5799 (_initialize_core_rs6000): Install it as to_wait target method.
5800 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
5801
5802 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5803
5804 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
5805 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
5806 * rs6000-nat.c (super_create_inferior): New variable.
5807 (rs6000_create_inferior): Make static. Adapt argument list. Call
5808 original version of create_inferior via super_create_inferior.
5809 (_initialize_core_rs6000): Install to_create_inferior target method.
5810
5811 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5812
5813 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
5814 (aix_thread_xfer_partial): ... this.
5815 (init_aix_thread_ops): Install to_xfer_partial instead
5816 of deprecated_xfer_memory target method.
5817
5818 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
5819 and inftarg.o, add inf-ptrace.o.
5820 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
5821 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
5822 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
5823 (fetch_inferior_registers): Rename to ...
5824 (rs6000_fetch_inferior_registers): ... this. Make static.
5825 (store_inferior_registers): Rename to ...
5826 (rs6000_store_inferior_registers): ... this. Make static.
5827 (read_word, child_xfer_memory): Remove.
5828 (rs6000_xfer_partial): New function.
5829 (kernel_u_size): Remove.
5830 (_initialize_core_rs6000): Add inf_ptrace-based target.
5831 * Makefile.in (rs6000-nat.o): Update dependencies.
5832
5833 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5834
5835 * inf-ptrace.c: Include "gdb_stdint.h".
5836 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
5837 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
5838 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
5839 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
5840 (inf_ptrace_store_register): Likewise.
5841 * Makefile.in (inf-ptrace.o): Update dependencies.
5842
5843 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5844
5845 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
5846 * configure.tgt (rs6000-*-*): Likewise.
5847 * config/rs6000/aix4.mh: Delete file.
5848 * config/rs6000/aix4.mt: Delete file.
5849 * config/rs6000/rs6000.mh: Delete file.
5850 * config/rs6000/rs6000.mt: Delete file.
5851
5852 * config/powerpc/nm-aix.h: Delete file.
5853 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
5854
5855 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5856
5857 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
5858 Remove obsolete part of comment.
5859 (store_regs_user_thread): Use uint32_t temporaries when calling
5860 fill_sprs32.
5861 (store_regs_kernel_thread): Likewise. Add assertion to verify
5862 correct size of struct ptsprs members.
5863 (aix_thread_xfer_memory): Fix type of myaddr.
5864 (aix_thread_extra_thread_info): Fix compiler warning.
5865 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
5866 (fetch_register, store_register): Adapt callers.
5867
5868 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5869
5870 * vec.h (vec_free): Rename to vec_free_. Adapt users.
5871
5872 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5873
5874 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
5875 and "regcache.h".
5876 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
5877 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
5878 (alpha_linux_regset_from_core_section): New function.
5879 (alpha_linux_init_abi): Install it.
5880 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
5881 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
5882 <sys/procfs.h>, and "gregset.h".
5883 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
5884 Move from config/alpha/nm-linux.h.
5885 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
5886 from alpha-nat.c.
5887 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
5888 * alpha-nat.c: Remove #ifdef __linux__ section.
5889 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
5890 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
5891 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
5892 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
5893 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
5894 (NATDEPFILES): Remove alpha-nat.o.
5895 * config/alpha/nm-linux.h: Delete file.
5896 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
5897 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5898 (alpha-linux-tdep.o): Likewise.
5899
5900 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5901
5902 * mips-linux-nat.c: No longer include "gdbcore.h".
5903 (mips_linux_register_addr): Move from mips-linux-tdep.c.
5904 (mips64_linux_register_addr): Likewise.
5905 (mips_linux_register_u_offset): Call mips_linux_register_addr or
5906 mips64_linux_register_addr instead of register_addr.
5907 * mips-linux-tdep.c (mips_linux_register_addr,
5908 mips64_linux_register_addr): Move to mips-linux-nat.c.
5909 (register_addr): Remove.
5910 (register_addr_data, init_register_addr_data): Remove.
5911 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
5912 (set_mips_linux_register_addr): Remove.
5913 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
5914 * Makefile.in (mips-linux-nat.o): Update dependencies.
5915
5916 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5917
5918 * linux-nat.c (linux_register_u_offset): Remove.
5919 (linux_target_install_ops): New function.
5920 (linux_target): Use it.
5921 (linux_trad_target): New function.
5922 * linux-nat.h (linux_trad_target): Declare.
5923
5924 * alpha-linux-nat.c: Include "gdbcore.h".
5925 (alpha_linux_register_u_offset): New function.
5926 (_initialize_alpha_linux_nat): Use linux_trad_target.
5927
5928 * mips-linux-nat.c: Include "gdbcore.h".
5929 (mips_linux_register_u_offset): New function.
5930 (_initialize_mips_linux_nat): Use linux_trad_target.
5931
5932 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5933 * config/arm/nm-linux.h: Delete file.
5934
5935 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
5936 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
5937
5938 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5939 * config/ia64/nm-linux.h: Delete file.
5940
5941 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5942 * config/m32r/nm-linux.h: Delete file.
5943
5944 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5945 * config/m68k/nm-linux.h: Delete file.
5946
5947 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5948 * config/pa/nm-linux.h: Delete file.
5949
5950 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5951 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
5952 * config/powerpc/nm-linux.h: Delete file.
5953
5954 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
5955 * config/s390/nm-linux.h: Delete file.
5956
5957 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5958 * config/sparc/linux64.mh (NAT_FILE): Likewise.
5959 * config/sparc/nm-linux.h: Delete file.
5960
5961 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5962 (mips-linux-nat.o): Likewise.
5963
5964 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5965
5966 * core-aout.c: Delete file.
5967 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
5968 (core-aout.o): Delete rule.
5969 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
5970
5971 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
5972
5973 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
5974 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
5975 KERNEL_U_ADDR): Remove.
5976
5977 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
5978 (cannot_fetch_register, cannot_store_register): Remove.
5979 (fetch_register): Inline cannot_fetch_register and register_addr.
5980 (store_register): Inline cannot_store_register and register_addr.
5981 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
5982 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5983 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
5984 Remove.
5985
5986 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
5987 (fetch_register): Inline register_addr.
5988 (store_register): Inline register_addr.
5989 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
5990 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5991 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
5992
5993 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
5994 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
5995 REGISTER_U_ADDR): Remove.
5996
5997 * hppa-linux-nat.c (register_addr): Rename to ...
5998 (hppa_linux_register_addr): ... this. Make static.
5999 (fetch_register, store_register): Adapt callers.
6000 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
6001
6002 * ppc-linux-nat.c (kernel_u_size): Remove.
6003 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
6004
6005 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
6006 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
6007 (NAT_FILE): Remove.
6008 * config/vax/nm-vax.h: Delete file.
6009
6010 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
6011
6012 * MAINTAINERS (Write After Approval): Add myself.
6013
6014 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
6015
6016 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
6017 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
6018 (m68k_linux_sigcontext_reg_offset): Fix typo.
6019 (target_is_uclinux): New.
6020 (m68k_linux_inferior_created): New.
6021 (m68k_linux_get_sigtramp_info): Check for uClinux or
6022 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
6023 uClinux.
6024 (_initialize_m68k_linux_tdep): Register
6025 m68k_linux_inferior_created.
6026
6027 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
6028
6029 * win32-nat.c (win32_detach): Remove delete_command call.
6030 Resume inferior with win32_resume instead of win32_continue.
6031
6032 2007-04-19 Jerome Guitton <guitton@adacore.com>
6033
6034 * ser-mingw.c (fd_is_file): New function.
6035 (file_select_thread): New function.
6036 (ser_console_wait_handle): Add special handling for files.
6037
6038 2007-04-18 Denis Pilat <denis.pilat@st.com>
6039
6040 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
6041 when missing from DW_TAG_subrange_type. Remove the handling of null
6042 return from die_type.
6043
6044 2007-04-18 Maciej W. Rozycki <macro@mips.com>
6045
6046 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
6047 change to rearrange some brackets.
6048 (mips_n32n64_push_dummy_call): Likewise.
6049 (mips_o32_push_dummy_call): Likewise.
6050 (mips_o64_push_dummy_call): Likewise.
6051
6052 2007-04-18 Denis Pilat <denis.pilat@st.com>
6053
6054 * infcmd.c (post_create_inferior): Start with a call to
6055 target_terminal_ours.
6056
6057 2007-04-17 Maciej W. Rozycki <macro@mips.com>
6058
6059 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
6060 brackets.
6061 (mips_n32n64_push_dummy_call): Likewise. Reformat some
6062 expressions.
6063 (mips_o32_push_dummy_call): Likewise.
6064 (mips_o64_push_dummy_call): Likewise.
6065
6066 2007-04-17 Maciej W. Rozycki <macro@mips.com>
6067
6068 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
6069 comment.
6070
6071 2007-04-17 Maciej W. Rozycki <macro@mips.com>
6072
6073 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
6074 comment.
6075 (mips_o32_push_dummy_call): Likewise.
6076
6077 2007-04-17 Andreas Schwab <schwab@suse.de>
6078
6079 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
6080 sal to be bigger than the end of the function.
6081
6082 2007-04-17 Maciej W. Rozycki <macro@mips.com>
6083 Nigel Stephens <nigel@mips.com>
6084
6085 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
6086 argument alignment requirements when calculating stack space
6087 required. When aligning an arg register to eight bytes
6088 boundary, align stack_offset too. Write floating-point
6089 arguments to the appropriate integer register if need go there.
6090 (mips_o64_push_dummy_call): Likewise.
6091
6092 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
6093
6094 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
6095 "sig" arguments, add "regcache" argument.
6096 * gdbarch.c, gdbarch.h: Regenerate.
6097
6098 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
6099 (handle_inferior_event): Call remove_single_step_breakpoints directly
6100 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
6101
6102 * alpha-tdep.c (alpha_software_single_step): Update argument list.
6103 Remove handling of !insert_breakpoints_p case.
6104 * arm-tdep.c (arm_software_single_step): Likewise.
6105 * cris-tdep.c (cris_software_single_step): Likewise.
6106 * mips-tdep.c (mips_software_single_step): Likewise.
6107 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
6108 * sparc-tdep.c (sparc_software_single_step): Likewise.
6109 * spu-tdep.c (spu_software_single_step): Likewise.
6110
6111 * alpha-tdep.h (alpha_software_single_step): Update prototype.
6112 * mips-tdep.h (mips_software_single_step): Likewise.
6113 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
6114 * sparc-tdep.h (sparc_software_single_step): Likewise.
6115
6116 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
6117
6118 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
6119 when removing single-step breakpoints.
6120
6121 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
6122
6123 * varobj.h (varobj_set_frozen): New
6124 (varobj_get_frozen): New.
6125 (varobj_update): New parameter explicit.
6126 * varobj.c (struct varobj): New fields frozen
6127 and not_fetched.
6128 (varobj_set_frozen, varobj_get_frozen): New.
6129 (install_new_value): Don't fetch values for
6130 frozen variable object, or children thereof. Allow
6131 a frozen variable object to have non-fetched value.
6132 (varobj_update): Allow updating child variables.
6133 Don't traverse frozen children.
6134 (new_variable): Initialize the frozen field.
6135 (c_value_of_variable): Return NULL for frozen
6136 variable without any value yet.
6137 * mi/mi-cmd-var.c (varobj_update_one): New parameter
6138 'explicit'.
6139 (mi_cmd_var_create): Output the 'frozen' field,
6140 as soon as testsuite is adjusted to expect that field.
6141 (mi_cmd_var_set_frozen): New.
6142 (mi_cmd_var_update): Pass the 'explicit' parameter to
6143 varobj_update_one.
6144 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
6145 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
6146
6147 2007-04-13 Paul Brook <paul@codesourcery.com>
6148
6149 * target-descriptions.c (tdesc_named_type): Add ieee_single and
6150 ieee_double.
6151 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
6152
6153 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6154
6155 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
6156 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
6157 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
6158 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
6159 * Makefile.in: Remove references to deleted files.
6160 * README: Do not mention deleted ROM monitor interfaces.
6161 * defs.h (enum language): Delete language_scm.
6162 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
6163 (dump_subexp_body_standard): Likewise.
6164 * parse.c (operator_length_standard): Likewise.
6165 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
6166 * remote-mips.c: Do not include remote-utils.h.
6167 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
6168 throughout.
6169 * value.c: Do not include scm-lang.h.
6170 (unpack_long): Delete scm_unpack call.
6171 * config/h8300/h8300.mt, config/mips/embed.mt,
6172 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
6173 config/sh/embed.mt, config/sh/linux.mt: Remove references to
6174 deleted files.
6175 * NEWS: Mention removed files.
6176
6177 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6178
6179 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
6180 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
6181
6182 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6183
6184 * NEWS: Mention removal of HP aCC support.
6185
6186 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6187
6188 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
6189 first entry for static executables.
6190 (breakpoint_addr): Delete unused variable.
6191 (elf_locate_base): Search for _r_debug in static executables.
6192 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
6193 also.
6194
6195 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6196
6197 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
6198 (bpstat_what, print_one_breakpoint, allocate_bp_location)
6199 (mention): Remove bp_through_sigtramp support.
6200 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
6201
6202 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6203
6204 * breakpoint.c (bpstat_what): Give step-resume higher priority than
6205 shlib events.
6206
6207 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6208
6209 * infrun.c: Doc fixes.
6210 (handle_inferior_event): Clarify debug message.
6211 (insert_step_resume_breakpoint_at_sal): Print a debug message.
6212
6213 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
6214
6215 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
6216
6217 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
6218
6219 * config/m68k/tm-monitor.h: Delete file.
6220 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
6221 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
6222 call moved to ...
6223 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
6224 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
6225
6226 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
6227
6228 * gdbarch.sh (software_single_step): Change the return type
6229 from void to int and reformatted some comments to <= 80
6230 columns.
6231 * gdbarch.c, gdbarch.h: Regenerated.
6232 * alpha-tdep.c (alpha_software_single_step): Likewise.
6233 * alpha-tdep.h (alpha_software_single_step): Likewise.
6234 * arm-tdep.c (arm_software_single_step): Likewise.
6235 * cris-tdep.c (cris_software_single_step): Likewise.
6236 * mips-tdep.c (mips_software_single_step): Likewise.
6237 * mips-tdep.h (mips_software_single_step): Likewise.
6238 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
6239 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
6240 * sparc-tdep.c (sparc_software_single_step): Likewise.
6241 * sparc-tdep.h (sparc_software_single_step): Likewise.
6242 * spu-tdep.c (spu_software_single_step): Likewise.
6243 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
6244 and act accordingly.
6245
6246 2007-04-11 Steve Ellcey <sje@cup.hp.com>
6247
6248 * configure.ac (build_warnings): Add -Wno-char-subscripts.
6249 * configure: Regenerate.
6250 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
6251
6252 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6253
6254 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
6255
6256 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6257
6258 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
6259 macros.
6260 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
6261 distinct on the TYPE_STUB_SUPPORTED debug targets.
6262 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
6263
6264 2007-04-11 Joel Brobecker <brobecker@adacore.com>
6265
6266 * sparc-tdep.c (X_RS2): New macro.
6267 (sparc_skip_stack_check): New function.
6268 (sparc_analyze_prologue): Adjust PC past stack probing
6269 sequence if necessary.
6270
6271 2007-04-10 Andreas Schwab <schwab@suse.de>
6272
6273 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
6274 register.
6275
6276 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6277
6278 * breakpoint.c (gdb_breakpoint_query): Really return an
6279 enum gdb_rc.
6280 (gdb_breakpoint): Likewise.
6281 * thread.c (gdb_list_thread_ids): Likewise.
6282 (gdb_thread_select): Likewise.
6283 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
6284 (mi_cmd_thread_list_ids): Remove bogus initialization.
6285
6286 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6287
6288 * Makefile.in (SFILES): Remove hpacc-abi.c.
6289 (COMMON_OBS): Remove hpacc-abi.o.
6290 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
6291 (hpacc-abi.o, hpread.o): Delete rules.
6292 * somread.c: Delete extern declarations from hpread.c.
6293 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
6294 (som_symfile_finish): Do not call hpread_symfile_finish.
6295 (som_symfile_init): Do not call hpread_symfile_init.
6296 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
6297 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
6298 * hpacc-abi.c, hpread.c: Deleted.
6299
6300 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6301
6302 * solib-svr4.c (enable_break): Simplify return value.
6303 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
6304
6305 2007-04-10 Andreas Schwab <schwab@suse.de>
6306
6307 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
6308 l_ld_size, l_next_size, l_prev_size, l_name_size.
6309
6310 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
6311 to extract addresses from link map.
6312 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
6313 (LM_NEXT): Likewise.
6314 (LM_NAME): Likewise.
6315 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
6316 (elf_locate_base): Likewise.
6317 (open_symbol_file_object): Likewise.
6318 (svr4_fetch_objfile_link_map): Likewise.
6319 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
6320 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
6321 l_ld_size.
6322 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
6323 (svr4_lp64_fetch_link_map_offsets): Likewise.
6324
6325 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
6326 removed members. Set l_ld_offset to -1 if not present.
6327
6328 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
6329
6330 Pass stderr of program run with "target remote |"
6331 via gdb_stderr.
6332 * serial.c (serial_open): Set error_fd to -1.
6333 * serial.h (struct serial): New field error_fd.
6334 (struct serial_opts): New field avail.
6335 * ser-pipe.c (pipe_open): Create another pair
6336 of sockets. Pass stderr to gdb.
6337 * ser-mingw.c (pipe_windows_open): Pass
6338 PEX_STDERR_TO_PIPE to pex_run. Initialize
6339 sd->error_fd.
6340 (pipe_avail): New.
6341 (_initialize_ser_windows): Hook pipe_avail.
6342 * ser-base.c (generic_readchar): Check if there's
6343 anything in stderr channel and route that to gdb_stderr.
6344
6345 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
6346
6347 * dbxread.c (read_ofile_symtab): Move current_objfile
6348 clearing to after end_stabs.
6349
6350 2007-04-01 Andreas Schwab <schwab@suse.de>
6351
6352 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
6353 gdbarch instead of current_gdbarch.
6354
6355 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
6356
6357 * varobj.c (varobj_create): Keep varobj value
6358 NULL when evaluating the type.
6359
6360 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
6361
6362 * NEWS: Mention new Windows CE support.
6363
6364 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
6365
6366 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
6367 the obsoletion stanza.
6368 * NEWS: Mention deleted targets.
6369
6370 * config/sh/tm-wince.h: Remove.
6371 * config/sh/wince.mt: Remove.
6372 * config/mips/tm-wince.h: Remove.
6373 * config/mips/wince.mt: Remove.
6374
6375 * wince.c: Remove.
6376 * wince-stub.c: Remove.
6377 * wince-stub.h: Remove.
6378 * Makefile.in (wince.o): Remove rule.
6379 (wince-stub.o): Likewise.
6380
6381 * mips-tdep.c (mips_next_pc): Make static.
6382 * mips-tdep.h (mips_next_pc): Remove declaration.
6383 * arm-tdep.c (arm_pc_is_thumb): Make static.
6384 (thumb_get_next_pc): Likewise.
6385 (arm_get_next_pc): Likewise.
6386 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
6387 (arm_pc_is_thumb): Likewise.
6388 (thumb_get_next_pc): Likewise.
6389 (arm_get_next_pc): Likewise.
6390
6391 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6392
6393 * MAINTAINERS: Remove d10v entry.
6394 * Makefile.in (SFILES): Remove dwarfread.c.
6395 (COMMON_OBS): Remove dwarfread.o.
6396 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
6397 (remote-est.o, rom68k-rom.o): Delete.
6398 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
6399 target est, target rom68k, and DWARF 1.
6400 * configure.tgt: Mark d10v as removed.
6401 * dwarf2read.c: Doc update.
6402 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
6403 and lnsize.
6404 (elf_locate_sections): Do not set them.
6405 (elf_symfile_read): Do not call dwarf_build_psymtabs.
6406 * symfile.h (dwarf_build_psymtabs): Delete prototype.
6407 * config/m68k/monitor.mt (TDEPFILES): Prune.
6408 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
6409 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
6410
6411 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6412
6413 * doublest.c (convert_floatformat_to_doublest): Use
6414 floatformat_classify.
6415 (floatformat_is_nan): Rename to...
6416 (floatformat_classify): ...this. Return more information.
6417 * doublest.h (enum float_kind): New.
6418 (floatformat_is_nan): Replace prototype...
6419 (floatformat_classify): ...with this one.
6420 * valprint.c (print_floating): Use floatformat_classify. Handle
6421 infinity.
6422
6423 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6424
6425 * README: Mention ISO C library requirement.
6426
6427 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6428
6429 * Makefile.in (SFILES): Remove nlmread.c.
6430 (COMMON_OBS): Remove nlmread.o.
6431 (nlmread.o): Delete rule.
6432 * README: Delete reference to remote-st.c.
6433 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
6434 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
6435 GDB_OSABI_LYNXOS.
6436 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
6437 (_initialize_i386_tdep): Do not reference them.
6438 * nlmread.c: Delete file.
6439 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
6440 * target.c: Doc update.
6441 * thread.c: Delete commented include.
6442 * config/alpha/tm-alpha.h: Doc update.
6443
6444 2007-03-30 Chris Dearman <chris@mips.com>
6445
6446 * utils.c (string_to_core_addr): Comment typo.
6447
6448 2007-03-30 Chris Dearman <chris@mips.com>
6449
6450 * mips-tdep.c: Comment typo.
6451
6452 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
6453
6454 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
6455 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6456 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6457 * config/powerpc/nm-ppc64-linux.h: Remove file.
6458 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
6459 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
6460 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
6461 * infptrace.c (call_ptrace): Likewise.
6462 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
6463 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
6464 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
6465 (store_register): Likewise.
6466
6467 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6468
6469 * Makefile.in (varobj.o): Add missing dependency.
6470
6471 2007-03-29 Michael Snyder <msnyder@access-company.com>
6472
6473 * MAINTAINERS: Update my email address.
6474
6475 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6476
6477 Add support for exception handling with multiple versions of
6478 the Ada runtime:
6479 * ada-lang.c: Update general comments on how Ada exception catchpoints
6480 are implemented.
6481 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
6482 (__gnat_raise_nodefer_with_msg): Delete.
6483 (ada_unhandled_exception_name_addr_ftype): New type.
6484 (exception_support_info): New type.
6485 (ada_unhandled_exception_name_addr): Add forward declaration.
6486 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6487 (default_exception_support_info): New constant.
6488 (exception_support_info_fallback): Likewise.
6489 (exception_info): New global variable.
6490 (ada_exception_support_info_sniffer): New function.
6491 (ada_executable_changed_observer): Likewise.
6492 (ada_unhandled_exception_name_addr_from_raise): Renamed from
6493 ada_unhandled_exception_name_addr.
6494 (ada_unhandled_exception_name_addr): Reimplement to match the
6495 latest Ada runtime implementation.
6496 (error_breakpoint_runtime_sym_not_found): Delete.
6497 (ada_exception_sym_name): Get the exception sym name from
6498 exception_info rather than hardcoding it.
6499 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
6500 Update error handling.
6501 * Makefile.in (ada-lang.o): Add dependency on observer.h.
6502
6503 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6504
6505 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
6506 (remote-st.o, uw-thread.o): Delete.
6507 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
6508 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6509 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
6510 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
6511 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
6512 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
6513 rs6000-*-lynxos* to an obsoletion stanza.
6514 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6515 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
6516 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
6517 i[34567]86-*-netware*.
6518 * NEWS: Mention deleted targets.
6519
6520 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
6521 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
6522 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
6523 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
6524 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
6525 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
6526 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
6527 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
6528 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
6529 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
6530 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
6531 config/rs6000/tm-rs6000ly.h: Delete files.
6532
6533 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6534
6535 * defs.h (deprecated_registers_changed_hook): Delete declaration.
6536 * interps.c (clear_interpreter_hooks): Do not clear
6537 deprecated_registers_changed_hook.
6538 * regcache.c (registers_changed): Do not call it.
6539 * top.c (deprecated_registers_changed_hook): Do not define it.
6540 * mi/mi-interp.c (mi_command_loop): Do not clear it.
6541 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
6542 (tui_remove_hooks): Do not remove it.
6543 (tui_selected_frame_level_changed_hook): Check for negative level.
6544 Use get_selected_frame.
6545 (tui_registers_changed_hook): Deleted.
6546
6547 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6548
6549 * stabsread.c (add_undefined_type): Add extra parameter.
6550 Now handles nameless types separately.
6551 (struct nat): New type.
6552 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
6553 New static variables.
6554 (read_type): Update calls to add_undefined_type.
6555 (add_undefined_type_noname): New function.
6556 (add_undefined_type_1): Renames from add_undefined_type.
6557 (cleanup_undefined_types_noname): New function.
6558 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
6559 (cleanup_undefined_types): New handles nameless types separately.
6560 (_initialize_stabsread): Initialize our new static constants.
6561
6562 2007-03-29 Denis Pilat <denis.pilat@st.com>
6563
6564 * configure.ac: Test for signal.h.
6565 * configure, config.in: Regenerate.
6566
6567 2007-03-29 Denis Pilat <denis.pilat@st.com>
6568
6569 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
6570 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
6571
6572 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
6573
6574 * arm-wince-tdep.c: New.
6575 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
6576 (MT_CFLAGS): Delete.
6577 (TM_CLIBS): Delete.
6578 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
6579 solib-legacy.o, solib-svr4.o, and remove wince.o.
6580 * configure.tgt (arm*-*-mingw32ce*): Add.
6581 * signals/signals.c [HAVE_SIGNAL_H]: Check.
6582 (do_target_signal_to_host): Silence 'not used' warning.
6583 * config/arm/tm-wince.h: Remove.
6584
6585 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
6586
6587 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
6588 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
6589
6590 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
6591 * config/ia64/tm-linux.h: Remove file.
6592 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
6593 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
6594 legacy_pc_in_sigtramp.
6595 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
6596 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
6597 Remove func_name argument.
6598 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
6599
6600 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
6601 * target.c (update_current_target): Add to_have_steppable_watchpoint.
6602 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
6603 (HAVE_STEPPABLE_WATCHPOINT): Define.
6604
6605 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
6606 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
6607 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
6608 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
6609 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
6610 target_insert_watchpoint, target_remove_watchpoint): Remove.
6611 (FETCH_INFERIOR_REGISTERS): Define.
6612 * ia64-linux-nat.c (ia64_register_addr): Make static.
6613 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
6614 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
6615 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
6616 (ia64_linux_stopped_data_address): Make static. Add target_ops.
6617 (ia64_linux_stopped_by_watchpoint): Make static.
6618 (ia64_linux_can_use_hw_breakpoint): New function.
6619 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
6620 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
6621 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
6622
6623 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
6624
6625 * linespec.c: Include language.h.
6626 (find_methods): Add language parameter. Call
6627 lookup_symbol_in_language. Pass language down.
6628 (add_matching_methods): Likewise. Call
6629 lookup_symbol_in_language.
6630 (add_constructors): Likewise.
6631 (find_method): Pass sym_class to collect_methods.
6632 (collect_methods): Add sym_class parameter. Pass language
6633 down.
6634 * symtab.c (lookup_symbol): Rename to ...
6635 (lookup_symbol_in_language): ... this. Add language
6636 parameter. Use passed language instead of current_language.
6637 (lookup_symbol): New as wrapper around
6638 lookup_symbol_in_language.
6639 (lookup_symbol_aux): Add language parameter. Use passed
6640 language instead of current_language.
6641 (search_symbols): Indent.
6642 * symtab.h (enum language): Forward declare.
6643 (lookup_symbol_in_language): Declare.
6644 (lookup_symbol): Update description.
6645 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
6646 * ada-lang.c (restore_language): Remove.
6647 (lookup_symbol_in_language): Remove.
6648
6649 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
6650
6651 * breakpoint.c (bpstat_num): Add int *num parameter.
6652 * breakpoint.h (bpstat_num): Likewise.
6653 * infcmd.c (continue_command): Adjust to new bpstat_num
6654 interface.
6655 (program_info): Likewise.
6656
6657 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6658
6659 * config/sh/tm-sh.h: Remove file.
6660 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
6661 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
6662 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6663 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
6664
6665 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6666
6667 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
6668 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
6669 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
6670 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
6671 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
6672 sequence if target_shortname is "remote".
6673
6674 2007-03-27 Anton Blanchard <anton@samba.org>
6675
6676 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
6677 instead of wordsize when looking for the LR in a stack frame.
6678
6679 2007-03-27 Andreas Schwab <schwab@suse.de>
6680 Daniel Jacobowitz <dan@codesourcery.com>
6681
6682 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
6683 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
6684 argument. Update all callers.
6685 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
6686 (dwarf2_frame_set_eh_frame_regnum): Rename to...
6687 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
6688 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
6689 (dwarf2_frame_set_adjust_regnum): ...this.
6690 (dwarf2_frame_eh_frame_regnum): Delete prototype.
6691 * rs6000-tdep.c: Include "dwarf2-frame.h".
6692 (rs6000_adjust_frame_regnum): Define.
6693 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
6694 Register rs6000_adjust_frame_regnum.
6695
6696 * Makefile.in (rs6000-tdep.o): Update dependencies.
6697
6698 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
6699
6700 * Makefile.in: Add support for a "pdf" target.
6701
6702 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
6703
6704 * amd64-tdep.c (amd64_init_frame_cache): New function.
6705 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
6706
6707 2007-03-26 Nigel Stephens <nigel@mips.com>
6708 Maciej W. Rozycki <macro@mips.com>
6709
6710 * ui-out.c (ui_out_field_core_addr): Truncate address to
6711 TARGET_ADDR_BIT size before printing.
6712
6713 2007-03-22 Nigel Stephens <nigel@mips.com>
6714 Maciej W. Rozycki <macro@mips.com>
6715
6716 * remote-mips.c (mips_xfer_memory): Update prototype.
6717
6718 2007-03-22 Joel Brobecker <brobecker@adacore.com>
6719
6720 * symfile.h: #include "symtab.h"
6721
6722 2007-03-22 Denis Pilat <denis.pilat@st.com>
6723
6724 * utils.c (pagination_on_command, pagination_off_command):
6725 Remove useless prototypes.
6726
6727 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
6728
6729 Fix PR pascal/2232.
6730 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
6731 instead of TYPE_NAME for object base class name.
6732
6733
6734 2007-03-19 Kevin Buettner <kevinb@redhat.com>
6735
6736 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
6737 Specify frame type in calls to frame_func_unwind().
6738
6739 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
6740
6741 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
6742 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
6743 (refine_prologue_limit): Delete.
6744 (skip_prologue): Don't call it. Use extract_unsigned_integer.
6745 Assume lim_pc is set. Correct check for incomplete prologues.
6746 Do not skip clobbers of the frame pointer.
6747 * symtab.c (skip_prologue_using_sal): Fail if there is only one
6748 sal.
6749
6750 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6751
6752 * frame.c (frame_pop): Check to see whether there's a frame to
6753 which we can pop first.
6754
6755 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6756
6757 * MAINTAINERS (Write After Approval): Add myself.
6758
6759 2007-03-09 Markus Deuling <deuling@de.ibm.com>
6760
6761 * infrun.c (breakpoints_failed): Remove unnecessary variable.
6762 (handle_inferior_event): Remove unnecessary braces.
6763 * breakpoint.c (bpstat_what): Remove wrong comment.
6764
6765 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
6766
6767 * spu-tdep.c (spu_in_function_epilogue_p): New function.
6768 (spu_gdbarch_init): Install it.
6769
6770 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6771
6772 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
6773 object types, not 0.
6774
6775 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6776
6777 * spu-tdep.c (spu_frame_align): New function.
6778 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
6779
6780 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6781
6782 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
6783 (spu_software_single_step): Likewise.
6784 (spu_read_pc, spu_write_pc): New functions.
6785 (spu_gdbarch_init): Install them.
6786
6787 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6788
6789 * cli/cli-dump.c (struct callback_data): load_offset needs to
6790 have signed long type.
6791
6792 2007-03-07 Joel Brobecker <brobecker@adacore.com>
6793
6794 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
6795 Revert the previous change that had some unexpected side-effects
6796 on mips32.
6797 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
6798 function to get the address of the calling instruction.
6799
6800 2007-03-07 Denis Pilat <denis.pilat@st.com>
6801
6802 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
6803 get_selected_frame by deprecated_safe_get_selected_frame.
6804
6805 2007-03-02 Mark Kettenis <kettenis@gnu.org>
6806
6807 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
6808 "gdb_string.h". Don't include "nbsd-tdep.h".
6809 (SIZEOF_STRUCT_REG): Remove.
6810 (SHNBSD_SIZEOF_GREGS): New.
6811 (shnbsd_supply_gregset, shnbsd_collect_gregset)
6812 (shnbsd_regset_from_core_section): New functions.
6813 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
6814 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
6815 shnbsd_supply_gregset, shnbsd_collect_gregset.
6816 (shnbsd_gregset): New variable.
6817 (shnbsd_init_abi): Set regset_from_core_section.
6818 (GDB_OSABI_NETBSD_CORE): New define.
6819 (shnbsd_core_osabi_sniffer): New function.
6820 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
6821 * Makefile.in (shnbsd-tdep.o): Update dependencies.
6822 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
6823 nbsd-tdep.o.
6824 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
6825
6826 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6827
6828 * gdbtypes.c (replace_type): Fix typo that caused us to not update
6829 length of the types referenced by the new type CV ring.
6830
6831 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6832
6833 * frame.c (frame_pop, frame_observer_target_changed): Call
6834 reinit_frame_cache.
6835 (flush_cached_frames): Rename to reinit_frame_cache and delete
6836 old implementation.
6837 * frame.h (flush_cached_frames): Delete prototype and update comment.
6838
6839 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
6840 reinit_frame_cache instead of flush_cached_frames. Do not call
6841 select_frame after reinit_frame_cache.
6842 * corelow.c (core_open): Likewise.
6843 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
6844 * infrun.c (prepare_to_proceed, context_switch)
6845 (handle_inferior_event): Likewise.
6846 * linux-fork.c (fork_load_infrun_state): Likewise.
6847 * ocd.c (ocd_start_remote): Likewise.
6848 * remote-e7000.c (e7000_start_remote): Likewise.
6849 * remote-mips.c (device): Likewise.
6850 * thread.c (switch_to_thread): Likewise.
6851 * tracepoint.c (finish_tfind_command): Likewise.
6852 * gdbarch.c: Regenerated.
6853
6854 2007-02-28 Jerome Guitton <guitton@adacore.com>
6855 Joel Brobecker <brobecker@adacore.com>
6856
6857 * gdbtypes.c (check_typedef): Do not replace stub type if
6858 the resolved type is not defined in the same objfile.
6859
6860 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6861
6862 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
6863
6864 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6865
6866 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
6867 symbol for Ada units when the symbol is defined using 't' rather
6868 than 'Tt' as symbol descriptor.
6869
6870 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6871
6872 * config/mips/tm-nbsd.h: Delete file.
6873 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6874 * config/sh/tm-nbsd.h: Delete file.
6875 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
6876
6877 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6878
6879 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
6880 unused WRONG_PARAM value since it was recently deleted.
6881
6882 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
6883
6884 * varobj.c (varobj_update): Free temporary vectors.
6885
6886 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6887
6888 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
6889 * config/powerpc/tm-linux.h: Delete file.
6890 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
6891 (PROCESS_LINENUMBER_HOOK): Do not undefine.
6892 (TEXT_SEGMENT_BASE): Do not redefine.
6893 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
6894 from config/rs6000/tm-rs6000.h.
6895 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6896 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
6897 (TEXT_SEGMENT_BASE): Remove.
6898 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
6899 (rs6000_in_solib_return_trampoline): Remove.
6900 (SKIP_TRAMPOLINE_CODE): Remove.
6901 (rs6000_skip_trampoline_code): Remove.
6902 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
6903 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6904 (FP0_REGNUM): Remove.
6905 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
6906 (rs6000_set_host_arch_hook): Remove.
6907 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
6908 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
6909 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
6910 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
6911 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
6912 * rs6000-nat.c: Include "rs6000-tdep.h".
6913 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
6914 (set_host_arch): Rename to ...
6915 (rs6000_create_inferior): ... this. Make public.
6916 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
6917 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
6918 (rs6000_create_inferior): Remove.
6919 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
6920 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
6921 set_gdbarch_in_solib_return_trampoline, and
6922 set_gdbarch_skip_trampoline_code.
6923 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
6924 from config/rs6000/tm-rs6000.h.
6925
6926 2007-02-27 Joel Brobecker <brobecker@adacore.com>
6927
6928 * buildsym.c (record_producer): Do nothing if no producer is provided.
6929
6930 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
6931
6932 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
6933 to check changelist is non-NULL. Call error if the frontend tries
6934 to update a non-root variable.
6935
6936 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
6937
6938 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6939
6940 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
6941 (dwarf2_frame_sniffer): Update.
6942 (dwarf2_signal_frame_this_id): New function.
6943 (dwarf2_signal_frame_unwind): Use it.
6944 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
6945 * frame.c (frame_func_unwind): Add this_type argument.
6946 (get_frame_func): Update.
6947 (frame_unwind_address_in_block): Add this_type argument and check it.
6948 Fix a typo.
6949 (get_frame_address_in_block): Update.
6950 * frame.h (enum frame_type): Move higher in the file.
6951 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
6952 argument.
6953
6954 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
6955 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
6956 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
6957 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
6958 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
6959 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
6960 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
6961 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
6962 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
6963 frame_func_unwind and frame_unwind_address_in_block to specify
6964 the frame type. Use frame_unwind_address_in_block instead of
6965 frame_pc_unwind in sniffers.
6966
6967 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6968
6969 * frame.c (deprecated_selected_frame): Rename to...
6970 (selected_frame): ...this. Make static.
6971 (get_selected_frame, select_frame): Update.
6972 * frame.h (deprected_select_frame): Delete.
6973 (deprecated_safe_get_selected_frame): Update comments.
6974
6975 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
6976 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
6977 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
6978 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
6979 tui/tui.c: Replace references to deprecated_selected_frame.
6980
6981 2007-02-27 Fred Fish <fnf@specifix.com>
6982
6983 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
6984 directly decrement the stack pointer, accumulate their operand into
6985 the stack offset, and mark the function as not being frameless.
6986
6987 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6988
6989 * arch-utils.c (selected_byte_order): New.
6990 * arch-utils.h (selected_byte_order): New prototype.
6991 * remote-sim.c (gdbsim_open): Use selected_byte_order.
6992
6993 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6994
6995 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
6996 (default_symfile_offsets): Check VMA here. Update section VMAs.
6997
6998 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6999
7000 * remote.c (init_remote_state): Add special handling for placeholder
7001 registers.
7002
7003 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7004
7005 * Makefile.in (XMLFILES): Include $(TDEP_XML).
7006 (filenames_h): New variable.
7007 (clean): Clean up xml-builtin.c and stamp-xml.
7008 (arm-linux-nat.o): Update.
7009 * config/arm/linux.mh (TDEP_XML): Define.
7010 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
7011 (arm_linux_has_wmmx_registers): New.
7012 (GET_THREAD_ID): Fix typo.
7013 (IWMMXT_REGS_SIZE): Define.
7014 (fetch_wmmx_regs, store_wmmx_regs): New.
7015 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
7016 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
7017 (super_xfer_partial, arm_linux_xfer_partial): New.
7018 (_initialize_arm_linux_nat): Use them.
7019 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
7020 (xml_builtin_xfer_partial): New function.
7021 * xml-support.h (xml_builtin_xfer_partial): New prototype.
7022 * NEWS: Update mention of iWMMXt support.
7023
7024 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7025
7026 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
7027 if there are no FPA registers.
7028 (arm_dwarf_reg_to_regnum): New function.
7029 (arm_register_type, arm_register_name): Return minimal values for
7030 unsupported registers.
7031 (arm_register_sim_regno): Handle iWMMXt registers.
7032 (arm_gdbarch_init): Record missing FPA registers if indicated by
7033 a target description. Recognize iWMMXt registers. Only register
7034 "info float" for FPA. Use ARM_NUM_REGS. Register
7035 arm_dwarf_reg_to_regnum.
7036 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
7037 constants.
7038 (struct gdbarch_tdep): Add have_fpa_registers.
7039 * features/xscale-iwmmxt.xml: Update capitalization.
7040 * regformats/arm-with-iwmmxt.dat: Regenerated.
7041
7042 2007-02-24 Kevin Buettner <kevinb@redhat.com>
7043
7044 * NEWS (New targets): Add entry for the Toshiba Media Processor.
7045
7046 2007-02-23 Kevin Buettner <kevinb@redhat.com>
7047
7048 * MAINTAINERS (mep): New target.
7049
7050 2007-02-23 Kevin Buettner <kevinb@redhat.com>
7051
7052 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
7053 Richard Sandiford:
7054 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
7055 (mep-tdep.o): New rule.
7056 * configure.tgt (mep-*-*): New target.
7057 * mep-tdep.c: New file.
7058 * config/mep/mep.mt: New file.
7059
7060 2007-02-22 Markus Deuling <deuling@de.ibm.com>
7061
7062 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
7063 BREAKPOINT_HIT and STOP_UNKNOWN.
7064
7065 2007-02-22 Markus Deuling <deuling@de.ibm.com>
7066
7067 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
7068
7069 2007-02-20 Joel Brobecker <brobecker@adacore.com>
7070
7071 * gdb_expat.h (XMLCALL): Define if not already defined.
7072
7073 2007-02-20 Andreas Schwab <schwab@suse.de>
7074
7075 * Makefile.in (symfile.o): Update dependencies.
7076
7077 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
7078
7079 * MAINTAINERS: Disable -Werror for cris simulator. Build
7080 sparc64-solaris2.10 instead of the broken sparc-elf.
7081 * solib-frv.c: Include "solib.h".
7082 * Makefile.in (solib-frv.o): Update.
7083 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
7084 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
7085 (xtensa_frame_this_id, xtensa_frame_prev_register)
7086 (xtensa_push_dummy_call): Use %p.
7087
7088 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7089
7090 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
7091 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
7092 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
7093 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
7094 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
7095 (sparc-linux-tdep.o): Update.
7096
7097 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
7098
7099 * xtensa-tdep.h (xtensa_reg_mask_t): New.
7100 (xtensa_mask_t): Change mask field to be a separate array.
7101 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
7102 (xtensa_pseudo_register_write, xtensa_unwind_pc)
7103 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
7104 (xtensa_breakpoint_from_pc): Remove implicit type casting.
7105 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
7106 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
7107 (mask14, mask15): Rename to
7108 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
7109 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
7110 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
7111 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
7112 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
7113 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
7114 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
7115 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
7116 (xtensa_submask14, xtensa_submask15): New.
7117 (rmap): Follow strict aliasing rules doing static initialization.
7118
7119 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
7120
7121 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
7122 handling from here...
7123 (tdesc_register_type): ...to here.
7124 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
7125 * features/arm-core.xml: Use code_ptr and data_ptr.
7126
7127 2007-02-13 Denis Pilat <denis.pilat@st.com>
7128
7129 * varobj.h (enum varobj_update_error): New enum.
7130 * varobj.c (struct varobj_root): Add is_valid member.
7131 (varobj_get_type): Check for invalid varobj.
7132 (varobj_get_attributes): Likewise.
7133 (variable_editable):Likewise.
7134 (varobj_update): Likewise. Use varobj_update_error.
7135 (new_root_variable): Set root varobj as valid by default.
7136 (varobj_invalidate): New function.
7137 * symfile.c (clear_symtab_users): Use varobj_invalidate.
7138 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
7139 Use varobj_update_error.
7140
7141 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
7142
7143 Fix PR pascal/2223.
7144 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
7145 Pascal language marker.
7146 * dwarf2read.c (set_cu_language): Likewise.
7147
7148 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
7149
7150 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
7151 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
7152 instead of target_terminal_init since inferior_ptid isn't set yet.
7153
7154 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
7155
7156 * MAINTAINERS (Write After Approval): Add myself.
7157
7158 2007-02-09 Fred Fish <fnf@specifix.com>
7159
7160 Based on work by Apple Computer, Inc.
7161 * event-top.c (async_request_quit): Call quit() whenever either
7162 quit_flag is set or immediate_quit is set.
7163
7164 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
7165
7166 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
7167 type to a pointer to const struct block.
7168 (ada_lookup_symbol_list): Don't cast away constness when calling
7169 remove_out_of_scope_renamings.
7170
7171 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
7172
7173 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
7174 address of 'filename'; it is always non null.
7175
7176 2007-02-09 Joel Brobecker <brobecker@adacore.com>
7177
7178 * exec.c (add_to_section_table): Do not discard empty sections.
7179
7180 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7181
7182 * features/Makefile, features/arm-with-iwmmxt.xml,
7183 features/gdbserver-regs.xsl, features/number-regs.xsl,
7184 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
7185 * regformats/arm-with-iwmmxt.dat: Generate.
7186 * NEWS: Mention iWMMXt.
7187
7188 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7189
7190 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
7191 (xml-tdesc.o): Update.
7192 * xml-support.c: Add a comment.
7193 (gdb_xml_enums_boolean): New variable.
7194 (gdb_xml_parse_attr_enum): Use strcasecmp.
7195 * xml-support.h (gdb_xml_enums_boolean): Declare.
7196 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
7197 next_regnum, and current_union.
7198 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
7199 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
7200 (field_attributes, union_children, reg_attributes, union_attributes)
7201 (vector_attributes, feature_attributes, feature_children): New.
7202 (target_children): Make static. Add <feature>.
7203 (tdesc_elements): Make static.
7204 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
7205 (struct tdesc_feature, tdesc_feature_p): New types.
7206 (struct target_desc): Add features member.
7207 (struct tdesc_arch_data, tdesc_data): New.
7208 (target_find_description): Clarify error message. Warn about
7209 ignored register descriptions.
7210 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
7211 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
7212 (tdesc_data_cleanup, tdesc_numbered_register)
7213 (tdesc_numbered_register_choices, tdesc_find_register)
7214 (tdesc_register_name, tdesc_register_type)
7215 (tdesc_remote_register_number, tdesc_register_reggroup_p)
7216 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
7217 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
7218 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
7219 (tdesc_create_feature, tdesc_record_type): New.
7220 (free_target_description): Free features.
7221 (_initialize_target_descriptions): Initialize tdesc_data.
7222 * arch-utils.c (default_remote_register_number): New.
7223 * arch-utils.h (default_remote_register_number): New prototype.
7224 * target-descriptions.h (set_tdesc_pseudo_register_name)
7225 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
7226 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
7227 (tdesc_numbered_register, tdesc_numbered_register_choices)
7228 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
7229 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
7230 (tdesc_create_reg): Declare.
7231 * gdbarch.sh (remote_register_number): New entry.
7232 * gdbarch.c, gdbarch.h: Regenerate.
7233 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
7234 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
7235
7236 * arm-tdep.c (arm_register_aliases): New.
7237 (arm_register_name_strings): Rename to...
7238 (arm_register_names): ...this. Make const. Delete the old version.
7239 (current_option, arm_register_byte): Delete.
7240 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
7241 (value_of_arm_user_reg): New.
7242 (arm_gdbarch_init): Verify any described registers. Call
7243 tdesc_use_registers. Don't use arm_register_byte. Create aliases
7244 for standard register names.
7245 (_initialize_arm_tdep): Do not adjust arm_register_names.
7246 * user-regs.c (struct user_reg): Add baton member.
7247 (append_user_reg, user_reg_add_builtin, user_regs_init)
7248 (user_reg_add, value_of_user_reg): Use a baton for user
7249 register functions.
7250 * std-regs.c: Update.
7251 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
7252 (user_reg_add): Add baton argument.
7253 * NEWS: Mention target description register support.
7254 * features/arm-core.xml, features/arm-fpa.xml: New.
7255 * eval.c (evaluate_subexp_standard): Allow ptype $register
7256 when the program is not running.
7257
7258 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
7259
7260 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
7261
7262 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
7263
7264 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
7265 info->disassembler_options to "any".
7266
7267 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7268
7269 * varobj.c (install_new_value): Only call value_get_print_value
7270 if changeable.
7271
7272 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7273
7274 Reported by timeless@gmail.com:
7275 * gdb/target.c (target_flash_erase): Do not return void value.
7276 (target_flash_done): Likewise.
7277 * gdb/cli/cli-cmds.c (source_command): Likewise.
7278
7279 2007-02-08 Fred Fish <fnf@specifix.com>
7280
7281 Based on work by Apple Computer, Inc.
7282 * event-top.c (handle_sigint): Set quit_flag.
7283 (async_request_quit): Don't set quit_flag. Avoid calling quit()
7284 if quit_flag has already been reset.
7285
7286 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7287
7288 * ser-mingw.c (pipe_windows_close): Move variable initialization back
7289 up.
7290
7291 2007-02-08 Fred Fish <fnf@specifix.com>
7292
7293 * defs.h (request_quit): Remove declaration.
7294 * utils.c (request_quit): Remove definition.
7295
7296 2007-02-08 Joel Brobecker <brobecker@gnat.com>
7297 Jan Kratochvil <jan.kratochvil@redhat.com>
7298 Daniel Jacobowitz <dan@codesourcery.com>
7299
7300 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
7301 (skip_prologue): Allow bl->blrl used by PIC code.
7302
7303 2007-02-08 Mark Kettenis <kettenis@gnu.org>
7304 Daniel Jacobowitz <dan@codesourcery.com>
7305
7306 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
7307 initialize tmp_obstack.
7308 * p-valprint.c (pascal_object_print_value_fields)
7309 (pascal_object_print_value): Likewise.
7310
7311 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7312
7313 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
7314
7315 2007-02-08 Mark Kettenis <kettenis@gnu.org>
7316
7317 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
7318 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
7319
7320 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
7321
7322 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
7323 (xml_cache): New.
7324 (tdesc_parse_xml): Cache expanded descriptions.
7325
7326 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
7327
7328 * Makefile.in (XMLFILES): New.
7329 (COMMON_OBS): Add xml-builtin.o.
7330 (xml-builtin.c, stamp-xml): New rules.
7331 (xml-tdesc.o): Update.
7332 * features/feature_to_c.sh: New file.
7333 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
7334 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
7335 (gdb_xml_start_element): Initialize scope after possibly reallocating
7336 scopes. Move cleanup later. Handle the XInclude description
7337 specially.
7338 (gdb_xml_end_element): Only parse the body if there is a current element.
7339 Call XML_DefaultCurrent if there is no element.
7340 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
7341 (struct xinclude_parsing_data, xinclude_start_include)
7342 (xinclude_end_include, xml_xinclude_default)
7343 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
7344 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
7345 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
7346 * xml-support.h (xml_fetch_another, xml_process_xincludes)
7347 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
7348 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
7349 XInclude directives. Use the compiled in DTD.
7350 (fetch_xml_from_file): Add baton argument. Treat it as a containing
7351 directory name. Do not warn here.
7352 (file_read_description_xml): Update call. Warn here instead. Pass
7353 a dirname as baton.
7354 (fetch_available_features_from_target): New.
7355 (target_read_description_xml): Use it.
7356 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
7357 to handle XInclude.
7358 * features/xinclude.dtd: New file.
7359
7360 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
7361
7362 * linux-thread-db.c (check_for_thread_db): Return early if we have
7363 no libthread_db support.
7364
7365 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
7366
7367 * mi/mi-parse.h: Include <sys/time.h>.
7368
7369 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
7370
7371 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
7372 instead of print_variable_value to print values.
7373
7374 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
7375
7376 * mi/mi-main.c: Numerous formatting changes.
7377 (mi_cmd_data_write_register_values): Replace clause inadvertantly
7378 removed in my previous change.
7379
7380 2007-02-03 Eli Zaretskii <eliz@gnu.org>
7381
7382 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
7383 Use 1000000L instead of 1000000.
7384
7385 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
7386
7387 Based on work by Apple Computer, Inc.
7388
7389 * configure.ac: Test for sys/resource.h and getrusage.
7390 * configure, config.in: Regenerate.
7391
7392 * mi/mi-main.c: Include <sys/resource.h> if present.
7393 (rusage): Declare if HAVE_GETRUSAGE.
7394 (current_command_ts, do_timings): New static variables.
7395 (timestamp, print_diff_now, print_diff, timeval_diff):
7396 New static timing functions.
7397 (mi_cmd_enable_timings): New function for new MI command.
7398 (captured_mi_execute_command, mi_execute_async_cli_command):
7399 Call timing functions.
7400
7401 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
7402 -enable-timings.
7403
7404 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
7405
7406 * mi/mi-parse.h: (mi_timestamp): New structure.
7407 (mi_parse): Add mi_timestamp* member.
7408
7409 2007-02-02 Denis Pilat <denis.pilat@st.com>
7410
7411 * thread.c (make_cleanup_restore_current_thread): New function.
7412 (info_threads_command): Use of make_cleanup_restore_current_thread
7413 to restore the current thread and the selected frame.
7414 (restore_selected_frame): New function.
7415 (struct current_thread_cleanup): Add frame_id field.
7416 (do_restore_current_thread_cleanup): Add restoring of the selected
7417 frame.
7418 (make_cleanup_restore_current_thread): Likewise.
7419 (thread_apply_all_command): backup the selected frame while
7420 entering the function and restore it at exit.
7421 (thread_apply_command): Likewise.
7422
7423 2007-02-02 Denis Pilat <denis.pilat@st.com>
7424
7425 * MAINTAINERS (Write After Approval): Add myself to the list.
7426
7427 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7428
7429 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
7430 (m32r_store_register): Ditto.
7431
7432 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
7433
7434 * ser-mingw.c (pipe_windows_open)
7435 (pipe_windows_read, pipe_windows_write): Declare
7436 variables at the top of the function.
7437
7438 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
7439
7440 * doublest.c (floatformat_from_length): Use the right element from
7441 gdbarch floatformats.
7442 (floatformat_from_type, extract_typed_floating)
7443 (store_typed_floating): Likewise.
7444 * doublest.h: Remove declarations for undefined floatformat arrays.
7445 * gdbarch.sh (float_format, double_format, long_double_format): Change
7446 to pairs.
7447 (pformat): Update for pairs.
7448 * gdbarch.c, gdbarch.h: Regenerated.
7449 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
7450 (floatformats_ieee_double_littlebyte_bigword)
7451 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
7452 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
7453 (floatformats_vax_d): New variables.
7454 (builtin_type_ieee_single, builtin_type_ieee_double)
7455 (builtin_type_arm_ext, builtin_type_ia64_spill)
7456 (builtin_type_ia64_quad): Replace arrays with individual types.
7457 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
7458 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
7459 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
7460 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
7461 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
7462 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
7463 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
7464 unused and endian-specific types.
7465 (recursive_dump_type): Update for floatformat pairs.
7466 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
7467 (build_gdbtypes): Use build_flt.
7468 (_initialize_gdbtypes): Update set of initialized types.
7469 * gdbtypes.h: Update declarations to match gdbtypes.c.
7470 (struct main_type): Store a pointer to two floatformats.
7471 * arch-utils.c (default_float_format, default_double_format): Delete.
7472 * arch-utils.h (default_float_format, default_double_format): Delete.
7473
7474 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
7475 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
7476 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
7477 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
7478 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
7479
7480 2007-01-29 Joel Brobecker <brobecker@adacore.com>
7481
7482 * target.c (maintenance_print_target_stack): New function.
7483 (initialize_targets): Add new "maintenance print target-stack"
7484 command.
7485
7486 2007-01-28 Mark Kettenis <kettenis@gnu.org>
7487
7488 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
7489
7490 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
7491
7492 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
7493 (struct dwarf2_loclist_baton): Likewise.
7494
7495 2007-01-27 Eli Zaretskii <eliz@gnu.org>
7496
7497 * cli/cli-script.c: Include breakpoint.h.
7498 (build_command_line): Require arguments only for if and while
7499 commands.
7500 (get_command_line, execute_user_command, execute_control_command):
7501 Fix wording of warning messages.
7502 (print_command_lines): Print breakpoint commands.
7503 (execute_control_command): Call commands_from_control_command to
7504 handle the `commands' command inside a body of a flow-control
7505 command.
7506 (read_next_line): Recognize the `commands' command and build a
7507 command line structure for it.
7508 (recurse_read_control_structure, read_command_lines): Handle
7509 `commands' similarly to `if' and `while'.
7510
7511 * breakpoint.c (get_number_trailer): Document the special meaning
7512 of NULL as the first argument PP.
7513 (commands_from_control_command): New function.
7514
7515 * breakpoint.h (commands_from_control_command): Add prototype.
7516
7517 * defs.h (commands_control): New enumerated value for enum
7518 command_control_type.
7519
7520 2007-01-26 Joel Brobecker <brobecker@adacore.com>
7521
7522 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
7523 (ada_exception_sal): Update accordingly.
7524
7525 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7526
7527 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
7528 * NEWS: Describe CHAR array vs. string identifcation rules.
7529
7530 2007-01-25 Paul Brook <paul@codesourcery.com>
7531
7532 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
7533
7534 2007-01-24 Jim Blandy <jimb@codesourcery.com>
7535
7536 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
7537 expression is empty, bother to return the 'optimized out' value we
7538 construct. (Thanks to Carl Burch.)
7539
7540 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7541
7542 * varobj.c (c_value_of_root, c_value_of_child)
7543 (cplus_describe_child): Don't call release_value.
7544
7545 2007-01-24 Thiemo Seufer <ths@mips.com>
7546
7547 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
7548 initialization.
7549
7550 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7551
7552 Refactor getting children name, value and type access
7553 for varobjs in C++.
7554 * varobj.c (get_type_deref): Remove.
7555 (adjust_value_for_child_access): New.
7556 (c_number_of_children): Use the above.
7557 (c_describe_child): Likewise.
7558 (enum accessibility): New.
7559 (match_accessibility): New function.
7560 (cplus_describe_child): New function.
7561 (cplus_name_of_child, cplus_value_of_child)
7562 (cplus_type_of_child): Reimplement in terms
7563 of cplus_describe_child.
7564 (cplus_number_of_children): Use
7565 adjust_value_for_child_access.
7566
7567 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7568
7569 Fix computation of the 'editable' attribute and
7570 value changeability for for references.
7571 * varobj.c (get_value_type): New function.
7572 (c_variable_editable): Use get_value_type.
7573 (varobj_value_is_changeable): Likewise.
7574
7575 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7576
7577 * source.c (find_and_open_source): Try rewriting the source
7578 path inside filename if dirname is NULL.
7579
7580 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7581
7582 * dwarf2read.c (add_partial_symbol): Create an extra partial
7583 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
7584 (new_symbol): Likewise for symbols.
7585
7586 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
7587
7588 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
7589
7590 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
7591
7592 * value.c (value_primitive_field): Copy the full 'location'
7593 contents, instead of assuming that copying ADDRESS will
7594 bring over everything in the union. Remove obsolete comment.
7595
7596 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
7597
7598 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
7599 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
7600 (m32c_m16c_pointer_to_address): Separate code from declarations.
7601
7602 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
7603
7604 * target.c (update_current_target): Correct typo.
7605
7606 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
7607
7608 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
7609 declaration.
7610
7611 2007-01-11 Andrew Cagney <cagney@redhat.com>
7612 Daniel Jacobowitz <dan@codesourcery.com>
7613 Jan Kratochvil <jan.kratochvil@redhat.com>
7614
7615 * dwarf2-frame.c (execute_cfa_program): New support of
7616 `DW_CFA_GNU_negative_offset_extended'.
7617
7618 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7619
7620 * NEWS: Mention flash support for "load" and new remote packets.
7621
7622 2007-01-21 Markus Deuling <deuling@de.ibm.com>
7623
7624 * breakpoint.c (delete_command): Skip redundant loop iterations.
7625
7626 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7627
7628 * gdbarch.sh (register_type): Update comment.
7629 * gdbarch.h: Regenerated.
7630 * arch-utils.c (generic_register_size): Call register_type.
7631 * ia64-tdep.c (ia64_extract_return_value): Likewise.
7632 * m32c-tdep.c (check_for_saved): Likewise.
7633 * mips-tdep.c (mips_print_register, print_gp_register_row)
7634 (mips_print_registers_info): Likewise.
7635 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
7636 Likewise.
7637 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
7638 (sh64_do_register, sh64_print_register)
7639 (sh64_media_print_registers_info): Likewise.
7640 * tui/tui-regs.c (tui_register_format): Likewise.
7641
7642 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7643
7644 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
7645
7646 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
7647 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
7648 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
7649 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7650 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
7651 (make_symbol_completion_list): Likewise.
7652
7653 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7654 Daniel Jacobowitz <dan@codesourcery.com>
7655
7656 * buildsym.c (end_symtab): Use preallocated symtab if available.
7657 Fill in SYMBOL_SYMTAB.
7658 * buildsym.h (struct subfile): Add symtab member.
7659 * dwarf2read.c (struct dwarf2_cu): Add line_header.
7660 (struct file_entry): Add symtab.
7661 (free_cu_line_header): New function.
7662 (read_file_scope): Use it. Save line_header in the cu. Process
7663 lines before DIEs.
7664 (add_file_name): Initialize new symtab member.
7665 (dwarf_decode_lines): Create symtabs for included files.
7666 (new_symbol): Set SYMBOL_SYMTAB.
7667 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
7668 (search_symbols): Likewise.
7669 * symtab.h (struct symbol): Add symtab member.
7670 (SYMBOL_SYMTAB): Define.
7671
7672 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7673
7674 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
7675
7676 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7677
7678 * arch-utils.c (show_endian): Correct reversed condition.
7679
7680 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7681
7682 * MAINTAINERS (Write After Approval): Add myself.
7683
7684 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
7685 Vladimir Prus <vladimir@codesourcery.com>
7686
7687 Fix 'selected frame' varobjs.
7688 * varobj.c (struct varobj): Remove the error field.
7689 (varobj_set_value): Don't check var->error.
7690 (install_new_value): Don't set var->error.
7691 (varobj_update): Always pass the new value
7692 of the root via install_new_value.
7693 (create_child): Don't set error field.
7694 (new_variable): Likewise.
7695 (c_value_of_root): Always reevaluate the value
7696 of selected frame varobjs in the selected frame.
7697 Don't call reinit_frame_cache.
7698
7699 2007-01-15 Joel Brobecker <brobecker@adacore.com>
7700
7701 * source.c (_initialize_source): Improve the help text of
7702 the substitute-path commands.
7703
7704 2007-01-14 Mark Kettenis <kettenis@gnu.org>
7705
7706 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
7707 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
7708 (frv_skip_prologue): Remove prototypes.
7709 (frv_adjust_breakpoint_address): Renamed from
7710 frv_gdbarch_adjust_breakpoint_address.
7711 (frv_gdbarch_init): Adjust.
7712
7713 2007-01-13 Mark Kettenis <kettenis@gnu.org>
7714
7715 * gdbarch.sh (deprecated_extract_return_value)
7716 (deprecated_store_return_value): Remove.
7717 (extract_return_value, store_return_value): Remove default values.
7718 * gdbarch.c, gdbarch.h: Regenerate.
7719 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
7720 (legacy_store_return_value): Remove.
7721 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
7722 Remove.
7723
7724 * mi/mi-main.c: Remove obsolete comment.
7725
7726 * regcache.c, regcache.h (deprecated_register_bytes)
7727 (deprecated_read_register_bytes)
7728 (deprecated_write_register_bytes): Remove.
7729
7730 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
7731 Don't forget to move destination pointer.
7732
7733 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7734
7735 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
7736
7737 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
7738
7739 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
7740 past entry function with recent newlib.
7741
7742 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
7743
7744 * gdb.texinfo (GDB/MI Variable Objects): Improve the
7745 introduction. Specify -var-update more exactly.
7746
7747 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
7748
7749 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
7750
7751 2007-01-10 Jim Blandy <jimb@codesourcery.com>
7752
7753 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
7754 the Global Maintainers' invitation to be a global maintainer.
7755
7756 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
7757
7758 * infrun.c (singlestep_pc): New variable.
7759 (resume): Set singlestep_pc.
7760 (context_switch): Add a debugging message. Flush the frame cache.
7761 (handle_inferior_event): Add debugging messages. Handle thread
7762 hops when a software single step has completed. Let context_switch
7763 handle flushing the frame cache.
7764
7765 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7766
7767 * NEWS: Mention target descriptions, "set tdesc filename",
7768 "unset tdesc filename", "show tdesc filename", and
7769 qXfer:features:read.
7770 * arch-utils.c (choose_architecture_for_target): New function.
7771 (gdbarch_info_fill): Call it.
7772 * target-descriptions.c (struct property): Make members non-const.
7773 (struct target_desc): Add arch member.
7774 (target_description_filename): New variable.
7775 (target_find_description): Try via XML first.
7776 (tdesc_architecture): New.
7777 (free_target_description, make_cleanup_free_target_description): New.
7778 (set_tdesc_property): Call xstrdup.
7779 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
7780 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
7781 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
7782 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
7783 * target-descriptions.h (tdesc_architecture)
7784 (make_cleanup_free_target_description, set_tdesc_architecture): New
7785 prototypes.
7786 * Makefile.in (SFILES): Add xml-tdesc.c.
7787 (COMMON_OBS): Add xml-tdesc.o.
7788 (target-descriptions.o): Update.
7789 (xml-tdesc.o): New rule.
7790 * xml-tdesc.c, xml-tdesc.h: New files.
7791 * remote.c (PACKET_qXfer_features): New enum.
7792 (remote_protocol_features): Add qXfer:features:read.
7793 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
7794 (_initialize_remote): Register qXfer:features:read.
7795 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
7796 * features/gdb-target.dtd: New file.
7797
7798 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7799
7800 * copyright.sh: Clarify error.
7801
7802 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7803
7804 * symtab.c (matching_bfd_sections): Fix VMA matching for
7805 prelinked objects.
7806
7807 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7808
7809 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
7810 nested symbols.
7811
7812 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7813
7814 Updated copyright notices for most files.
7815
7816 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7817
7818 * copyright.sh (prunes): Add step-line.inp and step-line.c.
7819
7820 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7821
7822 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
7823 exec_prefix.
7824 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
7825 '${prefix}'.
7826 * configure, config.in: Regenerate.
7827 * defs.h (debug_file_directory): Declare.
7828 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
7829 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
7830 relocate it if DEBUGDIR_RELOCATABLE.
7831 * symfile.c (debug_file_directory): Make non-static.
7832 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
7833 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
7834 (_initialize_symfile): Don't initialize debug_file_directory here.
7835
7836 2007-01-09 Jim Blandy <jimb@codesourcery.com>
7837
7838 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
7839 statements.
7840
7841 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7842
7843 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
7844 frame_unwind_register to recurse.
7845 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
7846 (alpha_heuristic_frame_prev_register): Likewise.
7847 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
7848 * m32c-tdep.c (m32c_prev_register): Likewise.
7849 * frame.c (frame_register_unwind_location): Remove FIXME.
7850
7851 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7852 Eli Zaretskii <eliz@gnu.org>
7853
7854 * copyright.sh: New file.
7855
7856 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7857
7858 * configure.ac: Check for XML_StopParser.
7859 * xml-support.c (gdb_xml_body_text): Check for an error.
7860 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
7861 (gdb_xml_end_element_wrapper): Likewise.
7862 * config.in, configure: Regenerated.
7863
7864 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7865
7866 * varobj.c (install_new_value): Always update print_value.
7867 (value_get_print_value): Immediately return NULL for missing
7868 values.
7869
7870 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7871
7872 * configure.ac: Tighten pattern for extracting value of
7873 DEPRECATED_TM_FILE from the target makefile fragment.
7874 * configure: Regenerated.
7875
7876 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7877
7878 * linux-nat.c (struct simple_pid_list): Add status.
7879 (add_to_pid_list): Record the PID's status.
7880 (linux_record_stopped_pid): Likewise. Make static.
7881 (pull_pid_from_list): Return the saved status.
7882 (linux_nat_handle_extended): Deleted.
7883 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
7884 Make static. Handle non-SIGSTOP for a new thread's first signal.
7885 (flush_callback): Handle unexpected pending signals.
7886 (linux_nat_wait): Update calls to changed functions.
7887 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
7888 Remove prototypes for newly static functions.
7889
7890 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7891
7892 * gdbarch.sh (value_from_register): New gdbarch function.
7893 * gdbarch.c, gdbarch.h: Regenerate.
7894 * findvar.c (default_value_from_register): New function.
7895 (value_from_register): Use gdbarch_value_from_register.
7896 * value.h (default_value_from_register): Declare.
7897 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
7898 spu_value_to_register): Remove.
7899 (spu_value_from_register): New function.
7900 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7901 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7902 Call set_gdbarch_value_from_register.
7903 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
7904 s390_value_to_register): Remove.
7905 (s390_value_from_register): New function.
7906 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7907 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7908 Call set_gdbarch_value_from_register.
7909
7910 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7911
7912 * NEWS: Add "set sysroot" and "show sysroot".
7913 * solib.c (solib_absolute_prefix): Delete. Replace
7914 all uses with gdb_sysroot.
7915 (_initialize_solib): Add "set sysroot" and "show sysroot".
7916 Make "solib-absolute-prefix" an alias to it.
7917
7918 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7919
7920 * frame.c (get_frame_register_bytes): New function.
7921 (put_frame_register_bytes): Likewise.
7922 * frame.h (get_frame_register_bytes): Declare.
7923 (put_frame_register_bytes): Likewise.
7924 * findvar.c (value_from_register): Always construct lval_register
7925 values. Use get_frame_register_bytes.
7926 * valops.c (value_assign): Use get_frame_register_bytes and
7927 put_frame_register_bytes.
7928
7929 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7930
7931 * MAINTAINERS: Update Stan Shebs' email address.
7932
7933 2007-01-07 Joel Brobecker <brobecker@adacore.com>
7934
7935 * ada-lang.c (is_known_support_routine): Improve the implementation.
7936
7937 2007-01-06 Joel Brobecker <brobecker@adacore.com>
7938
7939 * ada-lang.c: Add include of source.h.
7940 (is_known_support_routine): Improve the check verifying that the file
7941 associated to this frame exists.
7942 * Makefile.in (ada-lang.o): Add dependency on source.h.
7943
7944 2007-01-07 Jim Blandy <jimb@codesourcery.com>
7945
7946 * ax-general.c (ax_const_l): Select proper opcode for the given
7947 value.
7948
7949 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
7950
7951 * varobj.c (c_value_of_root): Don't select frame if variable
7952 object is out of scope.
7953
7954 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7955
7956 * varobj.c (struct varobj): New member print_value.
7957 (install_new_value): Compare last printed value with current one
7958 instead of contents.
7959 (new_variable): Initialize var->print_value to NULL.
7960 (free_variable): Free var->print_value.
7961 (value_get_print_value): New function derived from
7962 c_value_of_variable.
7963 (c_value_of_variable): Use value_get_print_value.
7964
7965 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7966
7967 * i386-tdep.c (i386_analyze_stack_align): Add comment.
7968
7969 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7970
7971 * NEWS: Add entries for new catch commands.
7972
7973 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7974
7975 * dwarf2read.c (partial_die_info): Add field has_byte_size.
7976 (add_partial_symbol): Correct identification of external references.
7977 (process_structure_scope): Likewise.
7978 (read_partial_die): Handle DW_AT_byte_size attribute.
7979
7980 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
7981
7982 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
7983
7984 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7985
7986 * varobj.c (get_type_deref): Fix variable objects for references to
7987 pointers.
7988
7989 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7990
7991 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
7992 with no symbols.
7993
7994 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7995
7996 * memory-map.c (struct_memory_map_parsing_data): Remove most
7997 members. Make property_name an array.
7998 (free_memory_map_parsing_data, memory_map_start_element)
7999 (memory_map_end_element, memory_map_character_data): Delete.
8000 (memory_map_start_memory, memory_map_end_memory)
8001 (memory_map_start_property, memory_map_end_property): New functions.
8002 (property_attributes, memory_children, memory_type_enum)
8003 (memory_attributes, memory_map_children, memory_map_elements): New.
8004 (parse_memory_map): Rewrite.
8005 * xml-support.c (debug_xml): New.
8006 (xml_get_required_attribute, xml_get_integer_attribute)
8007 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
8008 Delete.
8009 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
8010 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
8011 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
8012 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
8013 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
8014 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
8015 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
8016 New.
8017 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
8018 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
8019 (enum gdb_xml_element_flag, struct gdb_xml_element)
8020 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
8021 (struct gdb_xml_enum): New.
8022 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
8023 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
8024 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
8025 (xml_get_required_attribute, xml_get_integer_attribute)
8026 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
8027 * Makefile.in (xml_support_h, xml-support.o): Update.
8028
8029 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8030
8031 * Makefile.in (eval.o): Update dependencies.
8032 * eval.c: Include "ui-out.h" and "exceptions.h".
8033 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
8034 Use value_zero if an error occurs when avoiding side effects.
8035 * varobj.c (c_value_of_root): Initialize new_val.
8036
8037 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8038
8039 * varobj.c (varobj_list_children): Stop if the number of children is
8040 unknown.
8041 (c_number_of_children):
8042
8043 2007-01-04 Mark Kettenis <kettenis@gnu.org>
8044
8045 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
8046 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
8047 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
8048 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
8049 sizeof, instead of hardcoded constants.
8050
8051 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8052
8053 * CONTRIBUTE: Use sourceware.org.
8054
8055 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8056
8057 * buildsym.c (start_subfile): Handle producer.
8058 (record_producer): New function.
8059 * buildsym.h (struct subfile): Include producer.
8060 (record_producer): New prototype.
8061 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
8062 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
8063 armcc_cfa_offsets_reversed.
8064 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
8065 (dwarf2_frame_find_quirks): New function.
8066 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
8067 (decode_frame_entry_1): Record the CIE version. Record the
8068 augmentation. Skip armcc augmentations.
8069 * dwarf2read.c (read_file_scope): Save the producer.
8070 * symtab.h (struct symtab): Rename unused version member to
8071 producer.
8072
8073 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8074
8075 * configure.ac (build_warnings): Use -Wall and
8076 -Wdeclaration-after-statement.
8077 * configure: Regenerated.
8078
8079 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
8080
8081 Simplify access to variours properties of child
8082 variable objects in C.
8083 * varobj.c (value_struct_element_index): New function.
8084 (c_describe_child): New function.
8085 (c_name_of_child, c_value_of_child)
8086 (c_type_of_child): Rewrite to use c_describe_child.
8087
8088 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
8089
8090 gdb/
8091 * varobj.c: Include "vec.h".
8092 (varobj_p): New typedef, declare vector of those.
8093 (struct varobj): Use vector for the 'children' member.
8094 (child_exists): Remove.
8095 (save_child_in_parent): Remove.
8096 (remove_child_from_parent): Remove.
8097 (struct varobj_child): Remove.
8098 (struct vstack): Remove.
8099 (vpush, vpop): Remove.
8100 (varobj_list_children): Adjust to work work vector.
8101 (varobj_update): Likewise. Use vectors for
8102 working stack and result.
8103 (delete_variable_1): Likewise.
8104 * Makefile.in (varobj.o): Update dependencies.
8105
8106 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
8107
8108 Port from Apple's version.
8109 gdb/
8110 * varobj.c (type_changeable): Rename to...
8111 (varobj_value_is_changeable_p): ...this. Adjust all callers.
8112 (is_root_p): New function. Use it everywhere.
8113
8114 2007-01-04 Jim Blandy <jimb@codesourcery.com>
8115
8116 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
8117 then plain 'fixup'.
8118
8119 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8120
8121 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
8122
8123 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8124
8125 * hpread.c (hpread_type_lookup): Fix compilation failure.
8126
8127 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
8128
8129 * NEWS: New port to S+core.
8130 * MAINTAINERS (Write After Approval, Responsible Maintainers):
8131 Add myself.
8132
8133 * Makefile.in: Add dependencies for S+core files.
8134 * configure.tgt (score*, score-*-*): Add S+core target.
8135 * config/score/embed.mt: New file.
8136 * score-tdep.c: New file.
8137 * score-tdep.h: New file.
8138
8139 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8140
8141 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
8142 the appropriate type rather than a bogus void type.
8143
8144 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8145
8146 * ada-lang.h (ada_find_printable_frame): Remove.
8147 (ada_exception_catchpoint_p, ada_decode_exception_location)
8148 (ada_decode_assert_location): Add declaration.
8149 * ada-lang.c: Add include of annotate.h and valprint.h.
8150 (exception_catchpoint_kind): New enum.
8151 (function_name_from_pc, is_known_support_routine)
8152 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
8153 (ada_exception_name_addr_1, ada_exception_name_addr)
8154 (print_it_exception, print_one_exception, print_mention_exception)
8155 (print_it_catch_exception, print_one_catch_exception)
8156 (print_mention_catch_exception, catch_exception_breakpoint_ops)
8157 (print_it_catch_exception_unhandled)
8158 (print_one_catch_exception_unhandled)
8159 (print_mention_catch_exception_unhandled, print_it_catch_assert)
8160 (print_one_catch_assert, print_mention_catch_assert)
8161 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
8162 (ada_get_next_arg, catch_ada_exception_command_split)
8163 (ada_exception_sym_name, ada_exception_sym_name)
8164 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
8165 (ada_parse_catchpoint_condition, ada_exception_sal)
8166 (ada_decode_exception_location)
8167 (ada_decode_assert_location): New function.
8168 (catch_exception_unhandled_breakpoint_ops): New global variable.
8169 (catch_assert_breakpoint_ops): New global variable.
8170 * breakpoint.c: Add include of ada-lang.h.
8171 (print_one_breakpoint): Do not print the condition for Ada
8172 exception catchpoints.
8173 (create_ada_exception_breakpoint): New function.
8174 (catch_ada_exception_command, catch_assert_command): New function.
8175 (catch_command_1): Add support for the new "catch exception" and
8176 "catch assert" commands.
8177 (_initialize_breakpoint): Add help description for the new catch
8178 commands.
8179 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
8180 valprint.h.
8181 (breakpoint.o): Add dependency on ada-lang.h.
8182
8183 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
8184
8185 * coffread.c (cs_to_section): If bfd_section is found, always
8186 return its section index.
8187 (coff_symtab_read): Determine the minimal_symbol_type using the
8188 bfd_section flags.
8189
8190 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8191 Daniel Jacobowitz <dan@codesourcery.com>
8192
8193 * Makefile.in (top.o): Update.
8194 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
8195 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
8196 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
8197 New.
8198 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
8199
8200 2007-01-03 Mark Kettenis <kettenis@gnu.org>
8201
8202 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
8203 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
8204
8205 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
8206
8207 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
8208 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
8209 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
8210 greater than or equal to zero.
8211 * m2-typeprint.c (m2_array): Likewise.
8212 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
8213 * gdbtypes.c (copy_type_recursive): Correct == typo.
8214 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
8215 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
8216 greater than zero.
8217 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
8218 (default_macro_scope): Remove unused variable.
8219 * prologue-value.h (pv_area_find_reg): Don't name an argument
8220 "register".
8221 * remote-fileio.c (remote_fio_func_map): Add missing braces.
8222 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
8223 type.
8224 (cleanup_sigint_signal_handler): Remove casts.
8225 * valprint.c (val_print): Use a volatile local for the modified
8226 argument.
8227 * varobj.c (languages): Remove extra array dimension.
8228 (varobj_create): Correct access to languages array.
8229 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
8230 missing braces.
8231 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
8232 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
8233 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
8234 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
8235 (mi_cmd_data_write_memory): Likewise.
8236 * signals/signals.c (target_signal_to_string): Cast to int before
8237 comparing.
8238 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
8239 Update all callers.
8240
8241 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
8242
8243 * NEWS: Mention pointer to member improvements.
8244 * Makefile.in (gnu-v3-abi.o): Delete special rule.
8245 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
8246 * ada-valprint.c (ada_print_scalar): Update for new type codes.
8247 * c-typeprint.c (c_print_type): Update for new type codes.
8248 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
8249 (c_type_print_base): Likewise.
8250 (c_type_print_args): Rewrite.
8251 * c-valprint.c (c_val_print): Update for new type codes. Remove
8252 support for references to members. Treat methods like functions.
8253 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
8254 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
8255 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
8256 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
8257 (struct cp_abi_ops): Add corresponding members.
8258 * cp-valprint.c (cp_print_class_method): Delete.
8259 (cp_find_class_member): New function.
8260 (cp_print_class_member): Use it. Simplify support for bogus
8261 member pointers.
8262 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
8263 lookup_methodptr_type.
8264 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
8265 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
8266 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
8267 pointer support.
8268 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
8269 references returned by user defined operators.
8270 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
8271 (f_type_print_varspec_suffix): Remove support for member pointers.
8272 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
8273 and adjusted.
8274 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
8275 (lookup_methodptr_type): New.
8276 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
8277 (recursive_dump_type): Update for new types.
8278 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
8279 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
8280 (lookup_memberptr_type, lookup_methodptr_type)
8281 (smash_to_memberptr_type): New prototypes.
8282 (smash_to_method_type): Formatting fix.
8283 (lookup_member_type, smash_to_member_type): Delete prototypes.
8284 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
8285 Do not rely on debug information for the vptr or the method's
8286 enclosing type. Handle function descriptors for IA64.
8287 (gnuv3_virtual_fn_field): Rewrite using the new functions.
8288 (gnuv3_find_method_in, gnuv3_print_method_ptr)
8289 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
8290 (gnuv3_method_ptr_to_value): New.
8291 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
8292 * hpread.c (hpread_type_lookup): Update for new types.
8293 * infcall.c (value_arg_coerce): Likewise.
8294 * m2-typeprint.c (m2_print_type): Remove explicit support
8295 for member pointers.
8296 * m2-valprint.c (m2_val_print): Likewise.
8297 * p-typeprint.c (pascal_type_print_varspec_prefix)
8298 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
8299 * p-valprint.c (pascal_val_print): Likewise.
8300 (pascal_object_print_class_method, pascal_object_print_class_member):
8301 Delete.
8302 * p-lang.h (pascal_object_print_class_method)
8303 (pascal_object_print_class_member): Delete prototypes.
8304 * stabsread.c (read_type): Update for new types.
8305 * typeprint.c (print_type_scalar): Likewise.
8306 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
8307 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
8308 argument. Construct a pointer to member if the address of a
8309 function or data member is requested.
8310 (value_cast_pointers): Don't modify the input value.
8311 (value_cast): Adjust pointer to member handling for new types.
8312 Allow null pointer to member constants. Don't modify the input
8313 value.
8314 (value_ind): Remove pointer to member check. Handle function
8315 descriptors for function pointers.
8316 (value_struct_elt, value_find_oload_method_list, check_field):
8317 Remove pointer to member checks.
8318 * value.c (unpack_long): Allow pointers to data members.
8319 (value_from_longest): Allow member pointers.
8320 * value.h (value_aggregate_elt): Add want_address.
8321 * varobj.c (c_variable_editable): Remove check for members.
8322 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
8323 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
8324 in virtual tables.
8325 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
8326 * c-lang.h (cp_print_class_method): Delete prototype.
8327 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
8328 * mips-tdep.c (mips_gdbarch_init): Likewise.
8329 * gdbarch.c, gdbarch.h: Regenerated.
8330
8331 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8332
8333 * rs6000-tdep.c (rs6000_use_struct_convention)
8334 (rs6000_extract_return_value, rs6000_store_return_value)
8335 (rs6000_extract_struct_value_address): Remove.
8336 (rs6000_return_value): New function.
8337 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
8338 store_return_value, deprecated_extract_struct_value_address and
8339 deprecated_use_struct_convention. Use rs6000_return_value
8340 instead.
8341
8342 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
8343
8344 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
8345 -display-disable, -display-enable, -display-insert and
8346 -display-list.
8347
8348 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8349
8350 * breakpoint.c (remove_breakpoint): Remove dead code.
8351
8352 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
8353
8354 * varobj.c: Include block.h.
8355 (c_value_of_root): Check scope within nested statements.
8356
8357 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8358
8359 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
8360 regcache_cooked_write_signed instead of
8361 deprecated_write_register_bytes.
8362
8363 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8364
8365 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
8366
8367 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8368
8369 Followed the Start of New Year Procedure:
8370 * ChangeLog-2006: New file, containing all the entries for 2006.
8371 * ChangeLog: Removed all 2006 entries, and changed the reference
8372 to the previous ChangeLog to point to ChangeLog 2006.
8373 * top.c (print_gdb_version): Update copyright year.
8374
8375 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8376
8377 * Makefile.in (remote-sds.o): Remove.
8378 * remote-sds.c: Delete.
8379
8380 For older changes see ChangeLog-2006.
8381 \f
8382 Local Variables:
8383 mode: change-log
8384 left-margin: 8
8385 fill-column: 74
8386 version-control: never
8387 coding: utf-8
8388 End: