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