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