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