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