1 2008-01-15 Michael Snyder <msnyder@specifix.com>
3 * corelow.c (core_xfer_partial): Comment, cut/paste error.
5 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
7 * win32-nat.c (win32_create_inferior): Restore code calling
8 CloseHandle on ProcessInformation structure.
10 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
12 * configure.ac: Check for void * as 3 argument of ptrace.
13 * configure: regenerate.
15 2008-01-11 Markus Deuling <deuling@de.ibm.com>
17 * alpha-tdep.c (alpha_heuristic_proc_start)
18 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
19 current_gdbarch by gdbarch.
21 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
22 current architecture by frame_info. Update alpha_heuristic_proc_start
25 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
26 get_frame_arch to get at the current architecture by frame_info. Update
27 alpha_sigtramp_register_address call.
29 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
30 current_gdbarch by gdbarch. Update caller.
31 (convert_to_extended, convert_from_extended): Add endianess parameter
32 for comparison. Update caller.
33 (arm_extract_return_value, arm_store_return_value): Use
34 get_regcache_arch to get at the current architecture.
36 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
37 current_gdbarch by gdbarch. Update caller.
38 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
39 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
41 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
42 gdbarch as parameter. Update caller.
43 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
44 current_gdbarch by gdbarch. Update caller.
46 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
47 update caller. Replace current_gdbarch by gdbarch.
49 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
50 the current architecture. Replace current_gdbarch by gdbarch.
51 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
52 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
53 expression. Add gdbarch as parameter and replace current_gdbarch with
56 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
58 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
59 current_gdbarch by gdbarch. Update caller.
61 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
63 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
66 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
67 caller. Relace current_gdbarch by gdbarch.
68 (altivec_register_p, spe_register_p): Likewise.
69 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
71 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
72 altivec_register_p and spe_register_p.
74 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
75 caller. Replace current_gdbarch by gdbarch.
76 (score_analyze_prologue): use get_frame_arch to get at the current
79 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
80 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
81 current_gdbarch by gdbarch. Update caller.
82 (sparc_frame_cache): Use get_frame_arch to get at the current
84 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
85 sparc_analyze_prologue.
87 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
90 2008-01-11 Markus Deuling <deuling@de.ibm.com>
92 * exec.c: #include "arch-utils.h"
93 (print_section_info): Use gdbarch_from_bfd to get at the
94 current architecture. Replace current_gdbarch. Fix indention. Replace
95 deprecated_print_address_numeric by paddress.
96 * Makefile.in (exec.o) Add dependency to arch-utils.h.
98 * valprint.c (val_print_string): Replace
99 deprecated_print_address_numeric.
100 * tracepoint.c (trace_mention, scope_info): Likewise.
101 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
102 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
103 (maintenance_check_symtabs): Likewise.
104 * symfile.c (list_overlays_command): Likewise.
105 * stack.c (frame_info, print_block_frame_labels): Likewise.
106 * printcmd.c (print_address, print_address_demangle)
107 (address_info): Likewise.
108 * corefile.c (memory_error): Likewise.
109 * infcmd.c (jump_command): Likewise.
110 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
111 (mention, delete_breakpoint): Likewise.
112 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
113 * dwarf2read.c (dump_die): Likewise.
114 * ada-valprint.c (ada_val_print_1): Likewise.
115 * f-valprint.c (f_val_print): Likewise.
116 * linux-fork.c (info_forks_command): Likewise.
117 * m32r-com.c (m32r_load_section, m32r_load)
118 (m32r_upload_command): Likewise.
120 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
122 2008-01-11 Markus Deuling <deuling@de.ibm.com>
124 * gdbarch.sh (skip_prologue): Add gdbarch
126 * gdbarch.{c,h}: Regenerate.
128 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
129 * amd64-tdep.c (amd64_skip_prologue): Likewise.
130 * avr-tdep.c (avr_skip_prologue): Likewise.
131 * cris-tdep.c (cris_skip_prologue): Likewise.
132 * frv-tdep.c (frv_skip_prologue): Likewise.
133 * h8300-tdep.c (h8300_skip_prologue): Likewise.
134 * hppa-tdep.c (hppa_skip_prologue): Likewise.
135 * i386-tdep.c (i386_skip_prologue): Likewise.
136 * ia64-tdep.c (ia64_skip_prologue): Likewise.
137 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
138 * m32r-tdep.c (m32r_skip_prologue): Likewise.
139 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
140 * m68k-tdep.c (m68k_skip_prologue): Likewise.
141 * m88k-tdep.c (m88k_skip_prologue): Likewise.
142 * mep-tdep.c (mep_skip_prologue): Likewise.
143 * mips-tdep.c (mips_skip_prologue): Likewise.
144 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
145 * mt-tdep.c (mt_skip_prologue): Likewise.
146 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
147 * score-tdep.c (score_skip_prologue): Likewise.
148 * sh64-tdep.c (sh64_skip_prologue): Likewise.
149 * sh-tdep.c (sh_skip_prologue): Likewise.
150 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
151 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
152 * spu-tdep.c (spu_skip_prologue): Likewise.
153 * v850-tdep.c (v850_skip_prologue): Likewise.
154 * vax-tdep.c (vax_skip_prologue): Likewise.
155 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
156 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
158 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
159 current_gdbarch by gdbarch.
160 * m32c-tdep.c (m32c_skip_prologue): Likewise.
161 * s390-tdep.c (s390_skip_prologue): Likewise.
163 2008-01-10 Doug Evans <dje@google.com>
165 * defs.h (struct continuation_arg): Fix typo in comment.
166 * target.c (target_translate_tls_address): Fix comment spelling error.
168 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
170 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
171 (DOUBLEST_SCAN_FORMAT): Likewise.
172 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
173 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
174 * c-exp.y (parse_number): Likewise.
175 * jv-exp.y (parse_number): Likewise.
176 * objc-exp.y (parse_number): Likewise.
177 * p-exp.y (parse_number): Likewise.
179 2008-01-09 Joel Brobecker <brobecker@adacore.com>
181 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
182 (check_typedef): Likewise.
184 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
186 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
187 seen_double_big_d, treat the new H, D, and DD modifiers as length
190 2008-01-08 Joel Brobecker <brobecker@adacore.com>
192 * dwarf2read.c (read_enumeration_type): Add comment.
194 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
196 * config.in: Regenerate.
198 2008-01-08 Joel Brobecker <brobecker@adacore.com>
200 * ada-lang.c (ada_convert_actual): Renames convert_actual.
202 (ada_convert_actuals): Delete.
203 * ada-lang.h (ada_convert_actual): Add declaration.
204 (ada_convert_actuals): Remove declaration.
205 * infcall.c: #include "ada-lang.h".
206 (value_arg_coerce): Add new parameter sp. Update function
207 documetnation. Add handling of Ada function call parameters.
208 * Makefile.in (infcall.o): Update dependencies.
210 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
212 * ada-lang.c (ensure_lval): Fix value lval kind.
213 (convert_actual): Add handling for arguments passed by reference.
215 2008-01-08 Doug Evans <dje@google.com>
217 * dbxread.c (read_dbx_symtab): Fix indentation.
219 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
221 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
222 (valarith.o): Depend on dfp.h.
223 (valops.o): Likewise.
224 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
225 (set_decnumber_context): New function.
226 (decimal_check_errors): Likewise.
227 (decimal_from_number): Likewise.
228 (decimal_to_number): Likewise.
229 (decimal_from_string): Use set_decnumber_context and
230 decimal_check_errors.
231 (decimal_from_integral): New function.
232 (decimal_from_floating): Likewise.
233 (decimal_to_double): Likewise.
234 (promote_decimal): Likewise.
235 (decimal_binop): Likewise.
236 (decimal_is_zero): Likewise.
237 (decimal_compare): Likewise.
238 (decimal_convert): Likewise.
239 * dfp.h (decimal_from_integral): New prototype.
240 (decimal_from_floating): Likewise.
241 (decimal_to_double): Likewise.
242 (decimal_binop): Likewise.
243 (decimal_is_zero): Likewise.
244 (decimal_compare): Likewise.
245 (decimal_convert): Likewise.
246 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
247 call to value_from_decfloat.
248 * valarith.c: Include dfp.h.
249 (value_args_as_decimal): New function.
250 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
251 (value_logical_not): Likewise.
252 (value_equal): Likewise.
253 (value_less): Likewise.
254 (value_pos): Likewise.
255 (value_neg): Formatting fix.
256 * valops.c: Include dfp.h.
257 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
258 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
259 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
260 (value_from_decfloat): Remove expect_type argument.
261 * value.h (value_from_decfloat): Update prototype.
263 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
265 Ignore change in name of dynamic linker during
266 execution on Solaris. This also unbreaks pending breakpoints.
268 * solist.h (struct target_so_ops): New field same.
269 * solib-svr4.c (svr4_same): New.
270 (_initialize_svr4_solib): Register svr4_same.
271 * solib.c (update_solib_list): Use ops->same, if available.
273 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
275 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
276 when using MS-DOS paths.
278 2008-01-05 Pedro Alves <pedro@codesourcery.com>
280 * NEWS: Mention --pid and --core command line behaviour changes.
282 2008-01-05 Pedro Alves <pedro@codesourcery.com>
284 * main.c (captured_main): Remove 'count' varible and the
285 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
286 --pid options were issued simultaneously. If an explicit pid
287 option was passed, don't fallback to core file. Detect extra
288 arguments better in the presence of explicit pid or core
291 2008-01-05 Joel Brobecker <brobecker@adacore.com>
293 * ada-lang.c (ada_which_variant_applies): Correctly compute
294 the value of the discriminant when the variant record is packed.
296 2008-01-04 Joel Brobecker <brobecker@adacore.com>
298 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
299 that are used to differentiate homonyms.
301 2008-01-04 Jerome Guitton <guitton@adacore.com>
303 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
304 when the type is an anonymous pointer type.
305 (ada_check_typedef): Avoid a seg fault when the type is null.
306 * ada-typeprint.c (print_array_type): Add support for pointer
309 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
311 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
313 2008-01-04 Joel Brobecker <brobecker@adacore.com>
315 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
316 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
318 2008-01-04 Joel Brobecker <brobecker@adacore.com>
320 * ada-exp.y (chop_separator): New function.
321 (write_selectors): Rewrite to re-use chop_separator.
322 (ada_nget_field_index, get_symbol_field_type): New functions.
323 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
326 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
328 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
329 of SYMBOL_VALUE when working with function symbols.
331 2008-01-03 Joel Brobecker <brobecker@adacore.com>
333 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
334 expressions. These expressions do not need to be rewriten.
336 2008-01-03 Joel Brobecker <brobecker@adacore.com>
338 * dwarf2read.c (read_enumeration_type): Flag type as stub if
339 the given die is a declaration.
341 2008-01-03 Joel Brobecker <brobecker@adacore.com>
343 * ada-lang.c (ada_array_bound_from_type): Make non-static.
344 Handle properly the case when the index type is an enumerated type.
345 Do not return the subtype of the bounds type, just return the
346 bounds type directly - this is not needed and is more consistent
347 with what we do for arrays when no XA parallel type exists.
349 2008-01-03 Joel Brobecker <brobecker@adacore.com>
351 * ada-lang.c (static_unwrap_type): Add forward declaration.
352 (template_to_static_fixed_type): Fields of dynamic types sometimes
353 also need to be unwrapped. Take this into account.
354 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
355 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
356 * ada-typeprint.c (ada_print_type): Get the typename from
357 the original type, not the base type.
359 2008-01-03 Jerome Guitton <guitton@adacore.com>
361 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
362 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
363 Update calls to ada_to_fixed_type.
364 (ada_template_to_fixed_record_type_1): Ditto, but without looking
366 (ada_to_fixed_type): Add check_tag parameter; do not look for
367 tag if null. When looking for a tag, use a fixed record type.
368 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
369 * ada-valprint.c (printable_val_type, ada_value_print): Update
370 calls to ada_to_fixed_type.
372 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
374 * doublest.c (convert_floatformat_to_doublest): Call
375 floatformat_to_doublest instead of floatformat_to_double and use
377 (convert_doublest_to_floatformat): Call floatformat_from_doublest
378 instead of floatformat_from_double and use DOUBLEST variables.
380 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
382 * MAINTAINERS (Write After Approval): Add self.
384 2008-01-03 Joel Brobecker <brobecker@adacore.com>
386 * symfile.c (set_initial_language): Make non-static.
387 * symfile.h (set_initial_language): Add declaration.
388 * language.c: #include "symfile.h".
389 (set_language): Call set_initial_language if the frame language
390 could not be determined.
392 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
394 * eval.c (evaluate_subexp_for_address): Provide frame address to
395 locate_var_value only if it will be needed.
397 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
399 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
401 2008-01-02 Joel Brobecker <brobecker@adacore.com>
403 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
404 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
405 This is needed to make sure that any other treatment applied
406 to the resulting value does not fail for spurious reason,
407 such as trying to take the address of this value.
409 2008-01-02 Joel Brobecker <brobecker@adacore.com>
411 * ada-lang.c (ada_value_equal): Dereference reference types when
414 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
416 Updated copyright notices for most files.
418 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
420 * win32-nat.c (psapi_module_handle): Remove static.
421 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
422 return first module found if base_address is zero. Don't initialize
423 psapi function pointers here. Convert to cygwin paths when
425 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
426 executable name. Use get_module_name when that fails or when
428 (_initialize_psapi): New function. Initialize psapi stuff before it is
429 needed or issue a warning if it is not found. Move psapi_module_handle
432 2008-01-01 Joel Brobecker <brobecker@adacore.com>
434 * ada-lang.c (ada_remove_trailing_digits): New function.
435 (ada_remove_po_subprogram_suffix): New function.
436 (ada_decode): Improve. Move the description of the algorithm
437 directly inside the code, instead of in the function global
440 2008-01-01 Joel Brobecker <brobecker@adacore.com>
442 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
443 and always print the dereferenced value.
445 2008-01-01 Joel Brobecker <brobecker@adacore.com>
447 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
448 of the case where the first argument is a reference.
449 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
451 2008-01-01 Joel Brobecker <brobecker@adacore.com>
453 Implement support for Ada interface types.
455 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
456 (ada_is_ignored_field): Ignore fields that are a dispatch table
459 2008-01-01 Joel Brobecker <brobecker@adacore.com>
461 * top.c (print_gdb_version): Update copyright year.
463 2008-01-01 Joel Brobecker <brobecker@adacore.com>
465 * ChangeLog-2007: New ChangeLog rotation.
466 * ChangeLog: Reset for 2008.
467 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
470 For older changes see ChangeLog-2007.
476 version-control: never