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