Print PHDRS clause for debugging.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
2
3 * varobj.c (c_value_of_variable): Use xstrdup.
4
5 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
6
7 Update stored rendition of varobj value when format changes.
8 * varobj.c (varobj_set_display_format): Recomputed
9 print_value.
10 (c_value_of_variable): Return print_value.
11
12 2008-02-03 Doug Evans <dje@google.com>
13
14 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
15 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
16 * valops.c (value_one): New function.
17 * value.h (value_one): Declare.
18
19 Fix argument promotion for binary arithmetic ops for C.
20 * valarith.c (unop_result_type): New fn.
21 (binop_result_type): New fn.
22 (value_binop): Move result type computation to binop_result_type.
23 (value_pos, value_neg, value_complement): Move result type
24 computation to unop_result_type.
25
26 PR 2384
27 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
28 Return basetype, fieldno if found. All callers updated.
29 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
30 objfile.
31 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
32 * symfile.h (fill_in_vptr_fieldno): Delete.
33
34 2008-02-02 Doug Evans <dje@google.com>
35
36 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
37
38 * typeprint.c (*): Whitespace cleanup.
39
40 2008-02-02 Mark Kettenis <kettenis@gnu.org>
41 Luis Machado <luisgpm@br.ibm.com>
42 Thiago Jung Bauermann <bauerman@br.ibm.com>
43
44 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
45 don't fit into registerson the stack the way GCC does.
46
47 2008-02-01 Joel Brobecker <brobecker@adacore.com>
48
49 * symtab.c (symbol_set_names): Do not add an entry in the demangling
50 hash table for Ada symbols. Just store the linkage name as is,
51 and leave the demangled_name as NULL.
52
53 2007-02-01 Joel Brobecker <brobecker@adacore.com>
54
55 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
56 in the global scope.
57 (new_symbol): Likewise.
58
59 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
60
61 * breakpoint.c (break_command_1): Return void.
62 (break_command_really): Return void. Rethrow
63 exceptions instead of returning.
64 (gdb_breakpoint): Remove the error_message parameter.
65 Return void. Rename to set_breakpoint.
66 * gdb.h (gdb_breakpoint): Rename and move to...
67 * breakpoint.h (set_breakpoint): ...here.
68 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
69 event hooks even if exception is thrown. Adjust to
70 gdb_breakpoint interface changes.
71
72
73 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
74
75 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
76 float in both first and second word in the doubleword, to support
77 old and new ABIs.
78
79 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
80
81 Properly rethrow exception. This fixes errors
82 about non-existent functions for -break-insert.
83 * breakpoint.c (break_command_really): Use throw_exception
84 for rethrowing. If rethrowing, don't print the exception.
85
86 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
87
88 * NEWS: Mention Decimal Floating Point support.
89
90 2008-01-31 Joel Brobecker <brobecker@adacore.com>
91
92 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
93 value type to builtin_type_void_func_ptr.
94
95 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
96
97 * s390-tdep.c (is_float_singleton, is_float_like,
98 alignment_of, s390_return_value): Make checks for
99 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
100
101 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
102 Thiago Jung Bauermann <bauerman@br.ibm.com>
103
104 * infcmd.c (default_print_registers_info): Also print hex
105 raw contents for TYPE_CODE_DECFLOAT registers.
106 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
107 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
108 (rs6000_register_name): Add support for DFP pseudo-registers.
109 (rs6000_pseudo_register_type): Likewise.
110 rs6000_pseudo_register_reggroup_p): Likewise.
111 (ppc_pseudo_register_read): New function.
112 (ppc_pseudo_register_write): Likewise.
113 (rs6000_pseudo_register_read): Likewise.
114 (rs6000_pseudo_register_write): Likewise.
115 (e500_pseudo_register_read): Move checks to
116 rs6000_pseudo_register_read.
117 (e500_pseudo_register_write): Move checks to
118 rs6000_pseudo_register_write.
119 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
120 rs6000_pseudo_register_read and rs6000_pseudo_register_write
121 in gdbarch if SPE or DFP is available. Adjust gdbarch's
122 num_pseudo_regs to account for DFP pseudo regs.
123
124 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
125
126 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
127 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
128 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
129 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
130 e500_pseudo_register_read, e500_pseudo_register_write): Use
131 IS_SPE_PSEUDOREG macro.
132 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
133 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
134 Remove initialization of tdep->ppc_ev31_regnum.
135
136 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
137
138 * printcmd.c (print_formatted): Handle references as for unformatted
139 prints.
140
141 2008-01-30 Joel Brobecker <brobecker@adacore.com>
142
143 * eval.c (evaluate_subexp_standard): Add handling of user
144 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
145
146 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
147
148 * eval.c (evaluate_subexp_standard): Support
149 BINOP_INTDIV opcode.
150
151 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
152
153 * valarith.c (value_binop): Add floating-point BINOP_MIN and
154 BINOP_MAX cases.
155 For BINOP_EXP, use length and signedness of left operand only for
156 result, as for shifts.
157 For integral operands to BINOP_EXP, use new integer_pow and
158 uinteger_pow functions so as to get full range of results.
159 (integer_pow): New function.
160 (uinteger_pow): New function.
161
162 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
163
164 Use vector for varobj_list_children interface.
165 * gdb/varobj.c (varobj_list_children): Return vector
166 of varobjs.
167 * gdb/varobj.h (varobj_list_children): Adjust
168 prototype.
169 (varobj_p): Declare. Declare vector thereof.
170 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
171 for varobj_list_children change.
172 * Makefile.in (varobj_h): Update dependencies.
173
174 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
175
176 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
177 TYPE_CODE_DECFLOAT arguments.
178 (ppc64_sysv_abi_push_dummy_call) Likewise.
179 (get_decimal_float_return_value): New function.
180 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
181 values by calling get_decimal_float_return_value.
182 (ppc64_sysv_abi_return_value): Likewise.
183
184 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
185
186 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
187 for preprocessor macro information. Formatting changes.
188
189 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
190
191 * remote.c (struct remote_state): Add cached_wait_status.
192 (remote_exec_file): New variable.
193 (PACKET_vAttach, PACKET_vRun): New constants.
194 (extended_remote_restart): Do not query for status.
195 (struct start_remote_args): New.
196 (remote_start_remote): Take it as a second argument. Check
197 whether the target is running. Issue an error for non-running
198 non-extended targets. Cache the wait status. Set inferior_ptid
199 here.
200 (remote_open_1): Prompt to disconnect non-running targets. Make
201 sure the target is marked running. Do not set inferior_ptid here.
202 Update call to remote_start_remote. Do not call remote_check_symbols
203 if the target is not running.
204 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
205 argument. Handle a non-running target.
206 (remote_detach): Use it.
207 (extended_remote_detach): New.
208 (remote_disconnect): Fix typo. Use remoute_mourn_1.
209 (extended_remote_attach_1, extended_remote_attach)
210 (extended_async_remote_attach): New.
211 (remote_vcont_resume): Remove unused variable.
212 (remote_wait, remote_async_wait): Use any cached wait status.
213 (putpkt_binary, getpkt): Clear any cached wait status.
214 (extended_remoute_mourn_1): New.
215 (extended_remote_mourn): Use it.
216 (extended_async_remote_mourn, extended_remote_run): New.
217 (extended_remote_create_inferior_1): New.
218 (extended_remote_create_inferior): Use it.
219 (extended_remote_async_create_inferior): Likewise.
220 (remote_xfer_partial): Skip for non-executing targets.
221 (init_extended_remote_ops): Set to_detach and to_attach.
222 (init_extended_async_remote_ops): Likewise. Use
223 extended_async_remote_mourn.
224 (_initialize_remote): Register vAttach, vRun, and
225 set remote exec-file.
226 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
227
228 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
229
230 * Makefile.in (symfile.o): Update.
231 * NEWS: Mention exec tracing support.
232 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
233 exec events.
234 * infcmd.c (kill_if_already_running, detach_command)
235 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
236 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
237 (follow_exec): Do not check may_follow_exec. Do not mourn and push
238 targets. Apply the sysroot path to the loaded executable. Use
239 no_shared_libraries.
240 * linux-nat.c (linux_child_follow_fork): Print fork following
241 messages if verbose.
242 (kill_wait_callback): Kill again before waiting a second time.
243 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
244 no_shared_libraries.
245
246 2008-01-29 Joel Brobecker <brobecker@adacore.com>
247
248 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
249
250 2008-01-29 Joel Brobecker <brobecker@adacore.com>
251
252 * nto-tdep.h: Remove #include "defs.h".
253 * nto-tdep.c: Add #include "defs.h".
254 * Makefile.in (nto_tdep_h): Update dependencies.
255 (nto-tdep.o): Likewise.
256
257 2008-01-29 Joel Brobecker <brobecker@adacore.com>
258
259 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
260 and use it.
261 (proceed, start_remote): Update call to wait_for_inferior.
262 * inferior.h (wait_for_inferior): Update declaration.
263 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
264 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
265 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
266 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
267
268 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
269
270 * varobj (adjust_value_for_child_access): Added checking for
271 returned value from gdb_value_ind.
272 (c_describe_child): Likewise.
273 (cplus_describe_child): Fixed a typo.
274
275 2008-01-29 Jim Blandy <jimb@red-bean.com>
276
277 * MAINTAINERS: Update my info.
278
279 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
280
281 Use multiple locations for hardware watchpoints.
282 This eliminates the need to traverse value chain, doing
283 various checks, in three different places.
284
285 * breakpoint.h (struct bp_location): New fields
286 lengths and watchpoint_type.
287 (struct breakpoint): Remove the val_chain field.
288 * breakpoint.c (is_hardware_watchpoint): New.
289 (free_valchain): Remove.
290 (update_watchpoint): New.
291 (insert_bp_location): For hardware watchpoint, just
292 directly insert it.
293 (insert_breakpoints): Call update_watchpoint_locations
294 on all watchpoints. If we have failed to insert
295 any location of a hardware watchpoint, remove all inserted
296 locations.
297 (remove_breakpoint): For hardware watchpoints, directly
298 remove location.
299 (watchpoints_triggered): Iterate over locations.
300 (bpstat_stop_status): Use only first location of
301 a resource watchpoint.
302 (delete_breakpoint): Don't call free_valchain.
303 (print_one_breakpoint): Don't print all
304 locations for watchpoints.
305 (breakpoint_re_set_one): Use update_watchpoint for
306 watchpoints.
307
308 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
309
310 Don't reset watchpoint block on solib load.
311
312 * breakpoint.c (insert_bp_location): For watchpoints,
313 recompute condition.
314 (breakpoint_re_set_one): Instead of recomputing value
315 and condition for watchpoints, just reset value and
316 let insert_breakpoints/insert_bp_location recompute it.
317 Don't do anything about disabled watchpoint.
318
319 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
320
321 * valarith.c (value_binop): Handle unsigned integer
322 division by zero.
323
324 2008-01-28 Kevin Buettner <kevinb@redhat.com>
325
326 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
327 instruction pattern that appears frequently in position
328 independent code. Fix bug in code which looks for "fmov" and
329 backtracks if no "fmov" is found.
330
331 2008-01-28 Doug Evans <dje@google.com>
332
333 * dbxread.c (read_dbx_symtab): Fix indentation.
334 Reformat comments to 80 columns.
335 Move local var def closer to only use.
336
337 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
338
339 * fork-child.c (SHELL_FILE): Remove #ifndef.
340 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
341
342 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
343
344 * i386-tdep.c (i386_skip_noop): New function.
345 (i386_analyze_prologue): Call i386_skip_noop function.
346
347 2008-01-24 Michael Snyder <msnyder@specifix.com>
348
349 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
350 * win32-nat.c (win32_xfer_partial): Ditto.
351 * target.c (default_xfer_partial): Minor whitespace adjustment.
352
353 2008-01-24 Pedro Alves <pedro@codesourcery.com>
354
355 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
356 strip bit 1 even if pc doesn't point to thumb code.
357
358 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
359
360 * remote.c (remote_wait): Handle SIGINT between packets.
361 (remote_async_wait): Likewise.
362
363 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
364 Chris Demetriou <cgd@google.com>
365
366 * thread.c (add_thread_silent): Renamed
367 from add_thread.
368 (print_thread_events): New variable definition.
369 (show_print_thread_events): New function.
370 (_initialize_thread): Add "set print thread-events" and
371 "show print thread-events" commands.
372 (add_thread): Announce new thread.
373 * gdbthread.h (add_thread_silent): Declare.
374 (print_thread_events): New variable declaration.
375 * inf-ttrace.c (inf_ttrace_wait): Don't
376 inform about new thread, as add_thread is always
377 called too, and will take care of that.
378 * infrun.c (handle_inferior_event): Likewise.
379 * procfs.c (procfs_wait): Likewise.
380 * remote.c (remote_currthread): Likewise.
381 * sol-thread.c (sol_thread_wait): Likewise.
382 * win32-nat.c (get_win32_debug_event): Likewise.
383 * linux-thread-db.c (attach_thread): Likewise.
384 Remove the verbose parameter.
385 (check_event): Make detach_thread be verbose
386 only if print_thread_events is set.
387 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
388 about new thread. This is called only from
389 linux-thread-db.c:attach_thread, which will take care.
390 Remove the verbose parameter.
391 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
392
393 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
394
395 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
396
397 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
398
399 * breakpoint.c (break_command_really): New parameter
400 ignore_count.
401 (break_command_1): Pass 0 as
402 ignore_count to break_command_really.
403 (gdb_breakpoint): Pass ignore_count to
404 break_command_really.
405
406 2008-01-21 Kevin Buettner <kevinb@redhat.com>
407
408 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
409 sigcontext struct via pointer.
410 (struct sigframe comment): Update to show new field `psc'.
411
412 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
413
414 * infrun.c (handle_inferior_event): If
415 we failed to remove breakpoints, error,
416 don't try to increment PC by hand.
417
418 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
419
420 Add NetBSD/hppa target and host support.
421
422 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
423 (hppabsd_gregset): Move to ...
424 (hppabsd_regset_from_core_section): Rename
425 hppaobsd_regset_from_core_section and move to ...
426 (hppabsd_find_global_pointer): Update comment.
427 (hppabsd_init_abi): Make global. Do not register
428 hppabsd_regset_from_core_section.
429 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
430 move to ...
431 (_initialize_hppabsd_tdep): Move to ...
432 * hppaobsd-tdep.c: ... here. New file.
433 * hppnbsd-tdep.c: New file.
434 * hppnbsd-nat.c: New file.
435 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
436 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
437 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
438 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
439 * configure.host (hppa*-*-netbsd*): New entry.
440 * configure.tgt (hppa*-*-netbsd*): New entry.
441 (hppa*-*-openbsd*): Update.
442 * NEWS (New native configuration): Mention NetBSD/hppa.
443 (New targets): Mention NetBSD/hppa.
444
445 2008-01-18 Markus Deuling <deuling@de.ibm.com>
446
447 * gdbarch.sh (function_list): Add new property bits_big_endian to
448 gdbarch structure.
449 * gdbarch.{c,h}: Regenerate.
450
451 * value.c (struct value): Replace BITS_BIG_ENDIAN by
452 gdbarch_bits_big_endian (comment).
453 (unpack_field_as_long, modify_field): Likewise.
454 * value.h: Likewise (comment).
455 * valops.c (value_slice): Likewise.
456 * valarith.c (value_subscript, value_bit_index): Likewise.
457 * gdbtypes.h (field): Likewise (comment).
458 * eval.c (evaluate_subexp_standard): Likewise.
459 * dwarf2read.c (dwarf2_add_field): Likewise.
460 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
461 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
462
463 * defs.h (BITS_BIG_ENDIAN): Remove.
464
465 2008-01-18 Markus Deuling <deuling@de.ibm.com>
466
467 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
468 function calls.
469 * m2-exp.y (yylex): Likewise.
470 * objc-exp.y (yylex): Likewise.
471
472 * defs.h (DEPRECATED_STREQN): Remove.
473
474 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
475
476 * MAINTAINERS: Update my email address.
477
478 2008-01-17 Jim Blandy <jimb@codesourcery.com>
479
480 * README: Mention gdbserver/README.
481
482 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
483
484 * valarith.c (value_binop): Handle BINOP_INTDIV
485 for unsigned and signed integers.
486
487 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
488
489 * s390-tdep.c (s390_gdbarch_init): Set default long double
490 type to 128-bit IEEE quad.
491
492 2008-01-17 Joel Brobecker <brobecker@adacore.com>
493
494 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
495
496 2008-01-16 Mark Kettenis <kettenis@gnu.org>
497
498 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
499
500 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
501 * value.c: All callers changed.
502
503 2008-01-16 Markus Deuling <deuling@de.ibm.com>
504
505 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
506 DEPRECATED_STREQ by its expression.
507 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
508 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
509 (scan_xcoff_symtab): Likewise.
510 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
511 * f-lang.c (find_common_for_function): Likewise.
512 * objc-exp.y (parse_number): Likewise.
513
514 * defs.h (DEPRECATED_STREQ): Remove.
515
516 2008-01-16 Markus Deuling <deuling@de.ibm.com>
517
518 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
519 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
520 get_frame_arch to get at the current_architecture. Update AM33_MODE
521 call.
522 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
523 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
524 architecture.
525 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
526
527 2008-01-16 Markus Deuling <deuling@de.ibm.com>
528
529 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
530 parameter.
531 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
532
533 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
534 current_gdbarch by gdbarch. Update caller.
535
536 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
537 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
538 the current architecture. Update calls of
539 amd64_native_gregset_supplies_p.
540 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
541 (amd64bsd_store_inferior_registers): Likewise.
542
543 2008-01-16 Markus Deuling <deuling@de.ibm.com>
544
545 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
546 Replace current_gdbarch by gdbarch. Update caller.
547
548 2008-01-16 Markus Deuling <deuling@de.ibm.com>
549
550 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
551 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
552 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
553 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
554 (stabsect_build_psymtabs): Fix indentation.
555
556 2008-01-15 Michael Snyder <msnyder@specifix.com>
557
558 * corelow.c (core_xfer_partial): Comment, cut/paste error.
559
560 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
561
562 * win32-nat.c (win32_create_inferior): Restore code calling
563 CloseHandle on ProcessInformation structure.
564
565 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
566
567 * configure.ac: Check for void * as 3 argument of ptrace.
568 * configure: regenerate.
569
570 2008-01-11 Markus Deuling <deuling@de.ibm.com>
571
572 * alpha-tdep.c (alpha_heuristic_proc_start)
573 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
574 current_gdbarch by gdbarch.
575
576 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
577 current architecture by frame_info. Update alpha_heuristic_proc_start
578 call.
579
580 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
581 get_frame_arch to get at the current architecture by frame_info. Update
582 alpha_sigtramp_register_address call.
583
584 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
585 current_gdbarch by gdbarch. Update caller.
586 (convert_to_extended, convert_from_extended): Add endianess parameter
587 for comparison. Update caller.
588 (arm_extract_return_value, arm_store_return_value): Use
589 get_regcache_arch to get at the current architecture.
590
591 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
592 current_gdbarch by gdbarch. Update caller.
593 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
594 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
595
596 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
597 gdbarch as parameter. Update caller.
598 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
599 current_gdbarch by gdbarch. Update caller.
600
601 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
602 update caller. Replace current_gdbarch by gdbarch.
603
604 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
605 the current architecture. Replace current_gdbarch by gdbarch.
606 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
607 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
608 expression. Add gdbarch as parameter and replace current_gdbarch with
609 it. Update caller.
610 (M6811_TDEP): Remove.
611 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
612 architecture.
613 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
614 current_gdbarch by gdbarch. Update caller.
615
616 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
617 update caller.
618 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
619 by gdbarch.
620
621 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
622 caller. Relace current_gdbarch by gdbarch.
623 (altivec_register_p, spe_register_p): Likewise.
624 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
625 parameter.
626 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
627 altivec_register_p and spe_register_p.
628
629 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
630 caller. Replace current_gdbarch by gdbarch.
631 (score_analyze_prologue): use get_frame_arch to get at the current
632 architecture.
633
634 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
635 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
636 current_gdbarch by gdbarch. Update caller.
637 (sparc_frame_cache): Use get_frame_arch to get at the current
638 architecture.
639 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
640 sparc_analyze_prologue.
641
642 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
643 parameter.
644
645 2008-01-11 Markus Deuling <deuling@de.ibm.com>
646
647 * exec.c: #include "arch-utils.h"
648 (print_section_info): Use gdbarch_from_bfd to get at the
649 current architecture. Replace current_gdbarch. Fix indention. Replace
650 deprecated_print_address_numeric by paddress.
651 * Makefile.in (exec.o) Add dependency to arch-utils.h.
652
653 * valprint.c (val_print_string): Replace
654 deprecated_print_address_numeric.
655 * tracepoint.c (trace_mention, scope_info): Likewise.
656 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
657 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
658 (maintenance_check_symtabs): Likewise.
659 * symfile.c (list_overlays_command): Likewise.
660 * stack.c (frame_info, print_block_frame_labels): Likewise.
661 * printcmd.c (print_address, print_address_demangle)
662 (address_info): Likewise.
663 * corefile.c (memory_error): Likewise.
664 * infcmd.c (jump_command): Likewise.
665 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
666 (mention, delete_breakpoint): Likewise.
667 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
668 * dwarf2read.c (dump_die): Likewise.
669 * ada-valprint.c (ada_val_print_1): Likewise.
670 * f-valprint.c (f_val_print): Likewise.
671 * linux-fork.c (info_forks_command): Likewise.
672 * m32r-com.c (m32r_load_section, m32r_load)
673 (m32r_upload_command): Likewise.
674
675 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
676
677 2008-01-11 Markus Deuling <deuling@de.ibm.com>
678
679 * gdbarch.sh (skip_prologue): Add gdbarch
680 as parameter.
681 * gdbarch.{c,h}: Regenerate.
682
683 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
684 * amd64-tdep.c (amd64_skip_prologue): Likewise.
685 * avr-tdep.c (avr_skip_prologue): Likewise.
686 * cris-tdep.c (cris_skip_prologue): Likewise.
687 * frv-tdep.c (frv_skip_prologue): Likewise.
688 * h8300-tdep.c (h8300_skip_prologue): Likewise.
689 * hppa-tdep.c (hppa_skip_prologue): Likewise.
690 * i386-tdep.c (i386_skip_prologue): Likewise.
691 * ia64-tdep.c (ia64_skip_prologue): Likewise.
692 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
693 * m32r-tdep.c (m32r_skip_prologue): Likewise.
694 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
695 * m68k-tdep.c (m68k_skip_prologue): Likewise.
696 * m88k-tdep.c (m88k_skip_prologue): Likewise.
697 * mep-tdep.c (mep_skip_prologue): Likewise.
698 * mips-tdep.c (mips_skip_prologue): Likewise.
699 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
700 * mt-tdep.c (mt_skip_prologue): Likewise.
701 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
702 * score-tdep.c (score_skip_prologue): Likewise.
703 * sh64-tdep.c (sh64_skip_prologue): Likewise.
704 * sh-tdep.c (sh_skip_prologue): Likewise.
705 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
706 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
707 * spu-tdep.c (spu_skip_prologue): Likewise.
708 * v850-tdep.c (v850_skip_prologue): Likewise.
709 * vax-tdep.c (vax_skip_prologue): Likewise.
710 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
711 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
712
713 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
714 current_gdbarch by gdbarch.
715 * m32c-tdep.c (m32c_skip_prologue): Likewise.
716 * s390-tdep.c (s390_skip_prologue): Likewise.
717
718 2008-01-10 Doug Evans <dje@google.com>
719
720 * defs.h (struct continuation_arg): Fix typo in comment.
721 * target.c (target_translate_tls_address): Fix comment spelling error.
722
723 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
724
725 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
726 (DOUBLEST_SCAN_FORMAT): Likewise.
727 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
728 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
729 * c-exp.y (parse_number): Likewise.
730 * jv-exp.y (parse_number): Likewise.
731 * objc-exp.y (parse_number): Likewise.
732 * p-exp.y (parse_number): Likewise.
733
734 2008-01-09 Joel Brobecker <brobecker@adacore.com>
735
736 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
737 (check_typedef): Likewise.
738
739 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
740
741 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
742 seen_double_big_d, treat the new H, D, and DD modifiers as length
743 modifiers.
744
745 2008-01-08 Joel Brobecker <brobecker@adacore.com>
746
747 * dwarf2read.c (read_enumeration_type): Add comment.
748
749 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
750
751 * config.in: Regenerate.
752
753 2008-01-08 Joel Brobecker <brobecker@adacore.com>
754
755 * ada-lang.c (ada_convert_actual): Renames convert_actual.
756 Make non-static.
757 (ada_convert_actuals): Delete.
758 * ada-lang.h (ada_convert_actual): Add declaration.
759 (ada_convert_actuals): Remove declaration.
760 * infcall.c: #include "ada-lang.h".
761 (value_arg_coerce): Add new parameter sp. Update function
762 documetnation. Add handling of Ada function call parameters.
763 * Makefile.in (infcall.o): Update dependencies.
764
765 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
766
767 * ada-lang.c (ensure_lval): Fix value lval kind.
768 (convert_actual): Add handling for arguments passed by reference.
769
770 2008-01-08 Doug Evans <dje@google.com>
771
772 * dbxread.c (read_dbx_symtab): Fix indentation.
773
774 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
775
776 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
777 (valarith.o): Depend on dfp.h.
778 (valops.o): Likewise.
779 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
780 (set_decnumber_context): New function.
781 (decimal_check_errors): Likewise.
782 (decimal_from_number): Likewise.
783 (decimal_to_number): Likewise.
784 (decimal_from_string): Use set_decnumber_context and
785 decimal_check_errors.
786 (decimal_from_integral): New function.
787 (decimal_from_floating): Likewise.
788 (decimal_to_double): Likewise.
789 (promote_decimal): Likewise.
790 (decimal_binop): Likewise.
791 (decimal_is_zero): Likewise.
792 (decimal_compare): Likewise.
793 (decimal_convert): Likewise.
794 * dfp.h (decimal_from_integral): New prototype.
795 (decimal_from_floating): Likewise.
796 (decimal_to_double): Likewise.
797 (decimal_binop): Likewise.
798 (decimal_is_zero): Likewise.
799 (decimal_compare): Likewise.
800 (decimal_convert): Likewise.
801 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
802 call to value_from_decfloat.
803 * valarith.c: Include dfp.h.
804 (value_args_as_decimal): New function.
805 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
806 (value_logical_not): Likewise.
807 (value_equal): Likewise.
808 (value_less): Likewise.
809 (value_pos): Likewise.
810 (value_neg): Formatting fix.
811 * valops.c: Include dfp.h.
812 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
813 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
814 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
815 (value_from_decfloat): Remove expect_type argument.
816 * value.h (value_from_decfloat): Update prototype.
817
818 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
819
820 Ignore change in name of dynamic linker during
821 execution on Solaris. This also unbreaks pending breakpoints.
822
823 * solist.h (struct target_so_ops): New field same.
824 * solib-svr4.c (svr4_same): New.
825 (_initialize_svr4_solib): Register svr4_same.
826 * solib.c (update_solib_list): Use ops->same, if available.
827
828 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
829
830 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
831 when using MS-DOS paths.
832
833 2008-01-05 Pedro Alves <pedro@codesourcery.com>
834
835 * NEWS: Mention --pid and --core command line behaviour changes.
836
837 2008-01-05 Pedro Alves <pedro@codesourcery.com>
838
839 * main.c (captured_main): Remove 'count' varible and the
840 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
841 --pid options were issued simultaneously. If an explicit pid
842 option was passed, don't fallback to core file. Detect extra
843 arguments better in the presence of explicit pid or core
844 arguments.
845
846 2008-01-05 Joel Brobecker <brobecker@adacore.com>
847
848 * ada-lang.c (ada_which_variant_applies): Correctly compute
849 the value of the discriminant when the variant record is packed.
850
851 2008-01-04 Joel Brobecker <brobecker@adacore.com>
852
853 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
854 that are used to differentiate homonyms.
855
856 2008-01-04 Jerome Guitton <guitton@adacore.com>
857
858 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
859 when the type is an anonymous pointer type.
860 (ada_check_typedef): Avoid a seg fault when the type is null.
861 * ada-typeprint.c (print_array_type): Add support for pointer
862 to packed arrays.
863
864 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
865
866 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
867
868 2008-01-04 Joel Brobecker <brobecker@adacore.com>
869
870 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
871 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
872
873 2008-01-04 Joel Brobecker <brobecker@adacore.com>
874
875 * ada-exp.y (chop_separator): New function.
876 (write_selectors): Rewrite to re-use chop_separator.
877 (ada_nget_field_index, get_symbol_field_type): New functions.
878 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
879 expressions.
880
881 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
882
883 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
884 of SYMBOL_VALUE when working with function symbols.
885
886 2008-01-03 Joel Brobecker <brobecker@adacore.com>
887
888 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
889 expressions. These expressions do not need to be rewriten.
890
891 2008-01-03 Joel Brobecker <brobecker@adacore.com>
892
893 * dwarf2read.c (read_enumeration_type): Flag type as stub if
894 the given die is a declaration.
895
896 2008-01-03 Joel Brobecker <brobecker@adacore.com>
897
898 * ada-lang.c (ada_array_bound_from_type): Make non-static.
899 Handle properly the case when the index type is an enumerated type.
900 Do not return the subtype of the bounds type, just return the
901 bounds type directly - this is not needed and is more consistent
902 with what we do for arrays when no XA parallel type exists.
903
904 2008-01-03 Joel Brobecker <brobecker@adacore.com>
905
906 * ada-lang.c (static_unwrap_type): Add forward declaration.
907 (template_to_static_fixed_type): Fields of dynamic types sometimes
908 also need to be unwrapped. Take this into account.
909 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
910 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
911 * ada-typeprint.c (ada_print_type): Get the typename from
912 the original type, not the base type.
913
914 2008-01-03 Jerome Guitton <guitton@adacore.com>
915
916 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
917 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
918 Update calls to ada_to_fixed_type.
919 (ada_template_to_fixed_record_type_1): Ditto, but without looking
920 for the tag.
921 (ada_to_fixed_type): Add check_tag parameter; do not look for
922 tag if null. When looking for a tag, use a fixed record type.
923 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
924 * ada-valprint.c (printable_val_type, ada_value_print): Update
925 calls to ada_to_fixed_type.
926
927 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
928
929 * doublest.c (convert_floatformat_to_doublest): Call
930 floatformat_to_doublest instead of floatformat_to_double and use
931 DOUBLEST variables.
932 (convert_doublest_to_floatformat): Call floatformat_from_doublest
933 instead of floatformat_from_double and use DOUBLEST variables.
934
935 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
936
937 * MAINTAINERS (Write After Approval): Add self.
938
939 2008-01-03 Joel Brobecker <brobecker@adacore.com>
940
941 * symfile.c (set_initial_language): Make non-static.
942 * symfile.h (set_initial_language): Add declaration.
943 * language.c: #include "symfile.h".
944 (set_language): Call set_initial_language if the frame language
945 could not be determined.
946
947 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
948
949 * eval.c (evaluate_subexp_for_address): Provide frame address to
950 locate_var_value only if it will be needed.
951
952 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
953
954 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
955
956 2008-01-02 Joel Brobecker <brobecker@adacore.com>
957
958 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
959 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
960 This is needed to make sure that any other treatment applied
961 to the resulting value does not fail for spurious reason,
962 such as trying to take the address of this value.
963
964 2008-01-02 Joel Brobecker <brobecker@adacore.com>
965
966 * ada-lang.c (ada_value_equal): Dereference reference types when
967 comparing arrays.
968
969 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
970
971 Updated copyright notices for most files.
972
973 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
974
975 * win32-nat.c (psapi_module_handle): Remove static.
976 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
977 return first module found if base_address is zero. Don't initialize
978 psapi function pointers here. Convert to cygwin paths when
979 appropriate.
980 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
981 executable name. Use get_module_name when that fails or when
982 !__CYGWIN__.
983 (_initialize_psapi): New function. Initialize psapi stuff before it is
984 needed or issue a warning if it is not found. Move psapi_module_handle
985 here.
986
987 2008-01-01 Joel Brobecker <brobecker@adacore.com>
988
989 * ada-lang.c (ada_remove_trailing_digits): New function.
990 (ada_remove_po_subprogram_suffix): New function.
991 (ada_decode): Improve. Move the description of the algorithm
992 directly inside the code, instead of in the function global
993 description.
994
995 2008-01-01 Joel Brobecker <brobecker@adacore.com>
996
997 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
998 and always print the dereferenced value.
999
1000 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1001
1002 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
1003 of the case where the first argument is a reference.
1004 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
1005
1006 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1007
1008 Implement support for Ada interface types.
1009
1010 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
1011 (ada_is_ignored_field): Ignore fields that are a dispatch table
1012 of a tagged type.
1013
1014 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1015
1016 * top.c (print_gdb_version): Update copyright year.
1017
1018 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1019
1020 * ChangeLog-2007: New ChangeLog rotation.
1021 * ChangeLog: Reset for 2008.
1022 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
1023 ChangeLog-2007.
1024
1025 For older changes see ChangeLog-2007.
1026 \f
1027 Local Variables:
1028 mode: change-log
1029 left-margin: 8
1030 fill-column: 74
1031 version-control: never
1032 coding: utf-8
1033 End:
This page took 0.051394 seconds and 4 git commands to generate.