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