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