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