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