* target-reloc.h (relocate_section): Check the symbol table index
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e8f781e2
TT
12010-03-03 Tom Tromey <tromey@redhat.com>
2
3 PR mi/11098:
4 * varobj.c (install_new_value): Handle case where new print_value
5 is NULL.
6
a0e0ef55
TT
72010-03-03 Dainis Jonitis <jonitis@gmail.com>
8
9 PR gdb/11345:
10 * printcmd.c (printf_command): Print end of format string using
11 printf_filtered.
12
a58d7472
TT
132010-03-02 Tom Tromey <tromey@redhat.com>
14
15 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
16 * defs.h (read_command_lines_1): Add missing 'void'.
17 * cli/cli-script.c (recurse_read_control_structure): Add missing
18 'void'.
19 (read_next_line): Likewise.
20 (read_command_lines_1): Likewise.
21
ce50d78b
UW
222010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
23
24 * spu-tdep.c (spu_analyze_prologue): Track instruction to
25 store backchain as part of prologue.
26
7e9af34a
DJ
272010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
28
29 * progspace.c (update_address_spaces): Update inferior address spaces
30 also.
31
01637564
DE
322010-03-02 Doug Evans <dje@google.com>
33
34 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
35 lowpc,highpc args to addrmap_set_empty.
36
1ba53b71
L
372010-03-02 H.J. Lu <hongjiu.lu@intel.com>
38
39 * amd64-tdep.c (amd64_byte_names): New.
40 (amd64_word_names): Likewise.
41 (amd64_dword_names): Likewise.
42 (amd64_pseudo_register_name): Likewise.
43 (amd64_pseudo_register_read): Likewise.
44 (amd64_pseudo_register_write): Likewise.
45 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
46 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
47 set_gdbarch_pseudo_register_write and
48 set_tdesc_pseudo_register_name. Don't call
49 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
50
51 * i386-tdep.c (i386_num_mmx_regs): Removed.
52 (i386_num_pseudo_regs): Likewise.
53 (i386_byte_names): New.
54 (i386_word_names): Likewise.
55 (i386_byte_regnum_p): Likewise.
56 (i386_word_regnum_p): Likewise.
57 (i386_mmx_regnum_p): Updated.
58 (i386_pseudo_register_name): Make it global. Handle byte and
59 word pseudo-registers.
60 (i386_pseudo_register_read): Likewise.
61 (i386_pseudo_register_write): Likewise.
62 (i386_pseudo_register_type): Handle byte, word and dword
63 pseudo-registers
64 (i386_register_reggroup_p): Don't include pseudo
65 registers, except for MXX, in any register groups. Don't
66 include pseudo byte, word, dword registers in general_reggroup.
67 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
68 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
69 pseudo-registers after word pseudo-registers. Call
70 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
71
72 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
73 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
74 eax_regnum.
75 (i386_byte_regnum_p): New.
76 (i386_word_regnum_p): Likewise.
77 (i386_dword_regnum_p): Likewise.
78 (i386_pseudo_register_name): Likewise.
79 (i386_pseudo_register_read): Likewise.
80 (i386_pseudo_register_write): Likewise.
81
a6f5ef51
L
822010-03-01 H.J. Lu <hongjiu.lu@intel.com>
83
84 * target-descriptions.c (tdesc_type): Remove
85 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
86 (tdesc_predefined_types): Likewise.
87 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
88 if flag name is empty.
89 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
90
91 * features/i386/32bit-core.xml: Define i386_eflags.
92 * features/i386/64bit-core.xml: Likewise.
93
94 * features/i386/32bit-sse.xml: Define i386_mxcsr.
95 * features/i386/64bit-sse.xml: Likewise.
96
97 * features/i386/amd64-linux.c: Regenerated.
98 * features/i386/amd64.c: Likewise.
99 * features/i386/i386-linux.c: Likewise.
100 * features/i386/i386.c: Likewise.
101
f5dff777
DJ
1022010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
103
104 * gdbtypes.c (append_composite_type_field_raw): New.
105 (append_composite_type_field_aligned): Use the new function.
106 * gdbtypes.h (append_composite_type_field_raw): Declare.
107 * target-descriptions.c (struct tdesc_type_field): Add start and end.
108 (struct tdesc_type_flag): New type.
109 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
110 kind. Add size to u.u. Add u.f for flags.
111 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
112 (tdesc_free_type): Likewise.
113 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
114 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
115 (tdesc_add_bitfield, tdesc_add_flag): New.
116 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
117 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
118 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
119 current_type. Add current_type_size and current_type_is_flags.
120 (tdesc_start_union): Clear the new fields.
121 (tdesc_start_struct, tdesc_start_flags): New.
122 (tdesc_start_field): Handle struct fields, including bitfields.
123 (field_attributes): Make type optional. Add start and end.
124 (union_children): Rename to struct_union_children.
125 (union_attributes): Rename to struct_union_attributes. Add optional
126 size.
127 (flags_attributes): New.
128 (feature_children): Add struct and flags.
129 * features/gdb-target.dtd: Add flags and struct to features.
130 Make field type optional. Add field start and end.
131
90884b2b
L
1322010-03-01 H.J. Lu <hongjiu.lu@intel.com>
133
134 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
135 (amd64_linux_read_description): Likewise.
136 (_initialize_amd64_linux_nat): Set to_read_description to
137 amd64_linux_read_description.
138
139 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
140 (amd64_linux_register_name): Removed.
141 (amd64_linux_register_type): Likewise.
142 (amd64_linux_core_read_description): New.
143 (amd64_linux_init_abi): Set target description to
144 tdesc_amd64_linux if needed. Support orig_rax in target
145 description. Don't call set_gdbarch_register_name nor
146 set_gdbarch_register_type. Call
147 set_gdbarch_core_read_description.
148 (_initialize_amd64_linux_tdep): Call
149 initialize_tdesc_amd64_linux.
150
151 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
152
153 * amd64-tdep.c: Include "features/i386/amd64.c".
154 (amd64_register_names): Removed.
155 (amd64_register_name): Likewise.
156 (amd64_register_type): Likewise.
157 (amd64_init_abi): Set num_core_regs and register_names. Set
158 target description to tdesc_amd64 if needed. Don't call
159 set_gdbarch_register_name nor set_gdbarch_register_type.
160 (_initialize_amd64_tdep): New.
161
162 * i386-linux-nat.c (i386_linux_read_description): New.
163 (_initialize_i386_linux_nat): Set to_read_description to
164 i386_linux_read_description.
165
166 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
167 (i386_linux_register_name): Removed.
168 (i386_linux_core_read_description): New.
169 (i386_linux_read_description): Likewise.
170 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
171 Set target description to tdesc_i386_linux if needed. Support
172 orig_eax. Set register_reggroup_p. Call
173 set_gdbarch_core_read_description.
174 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
175
176 * i386-linux-tdep.h (tdesc_i386_linux): New.
177
178 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
179 with I387_NUM_REGS.
180
181 * i386-tdep.c: Include "features/i386/i386.c".
182 (i386_register_names): Make it const.
183 (i386_mmx_names): Likewise.
184 (i386_num_register_names): Removed.
185 (i386_register_name): Likewise.
186 (i386_eflags_type): Likewise.
187 (i386_mxcsr_type): Likewise.
188 (i386_sse_type): Likewise.
189 (i386_register_type): Likewise.
190 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
191 (i386_pseudo_register_name): New.
192 (i386_pseudo_register_type): Likewise.
193 (i386_mmx_type): Make it static.
194 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
195 I387_NUM_REGS. Set num_core_regs and register_names. Don't
196 call set_gdbarch_register_name nor set_gdbarch_register_type.
197 Set register_reggroup_p. Set target description to tdesc_i386
198 if needed. Call set_tdesc_pseudo_register_type,
199 set_tdesc_pseudo_register_name and tdesc_use_registers.
200 (_initialize_i386_tdep): Call initialize_tdesc_i386.
201 initialize_tdesc_x86_64.
202
203 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
204 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
205 register_names, tdesc and register_reggroup_p.
206 (I386_NUM_FREGS): Removed.
207 (i386_eflags_type): Likewise.
208 (i386_mxcsr_type): Likewise.
209 (i386_mmx_type): Likewise.
210 (i386_sse_type): Likewise.
211 (i386_register_name): Likewise.
212 (i386_regnum): Add I386_MXCSR_REGNUM.
213 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
214
215 * i387-tdep.h (I387_NUM_REGS): New.
216
217 * regformats/i386/i386-linux.dat: Generated.
218 * regformats/i386/i386.dat: Likewise.
219 * regformats/i386/amd64-linux.dat: Likewise.
220 * regformats/i386/amd64.dat: Likewise.
221
222 * regformats/reg-i386-linux.dat: Removed.
223 * regformats/reg-i386.dat: Likewise.
224 * regformats/reg-x86-64-linux.dat: Likewise.
225 * regformats/reg-x86-64.dat: Likewise.
226
d0d0ab16
CV
2272010-03-01 Corinna Vinschen <vinschen@redhat.com>
228
229 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
230 cygwin_conv_path API rather than the deprecated
231 cygwin_conv_to_full_posix_path.
232 * windows-nat.c:
233 (GetModuleFileNameExA): Undefine for Cygwin.
234 (GetModuleFileNameExW): Define for Cygwin.
235 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
236 Call GetModuleFileNameExW and convert path to POSIX using
237 cygwin_conv_path.
238 (windows_make_so): Always define p. Drop unused variable m.
239 Don't use Win32 functions to check file existance, rather use
240 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
241 Use canonicalize_file_name to get full path.
242 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
243 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
244 use correct target buffer size in call to WideCharToMultiByte.
245 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
246 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
247 (windows_create_inferior): Convert all paths and arguments to wchar_t
248 and use CreateProcessW on Cygwin.
249 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
250 (bad_GetModuleFileNameExA): Undefine for Cygwin.
251 (bad_GetModuleFileNameExW): Define for Cygwin.
252 (_initialize_loadable): Load GetModuleFileNameExW into
253 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
254
dc00d89f
PM
2552010-02-28 Phil Muldoon <pmuldoon@redhat.com>
256
257 PR python/11036
258 * python/py-frame.c (frapy_read_var): Add block argument and logic
259 to cope with user provided blocks.
260
0e095b7e
JK
2612010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
262
263 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
264 New comment.
265
2f9e05b4
CV
2662010-02-28 Corinna Vinschen <vinschen@redhat.com>
267
268 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
269 (COMMON_OBS): ... to here since it's used unconditionally.
270 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
271 (SFILES): To here.
272
eb195664
DD
2732010-02-26 David Daney <ddaney@caviumnetworks.com>
274
275 * mips-linux-tdep.c: Update struct sigframe comments.
276 (SIGFRAME_CODE_OFFSET): Delete macro.
277 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
278 this_frame's sp.
279 (mips_linux_n32n64_sigframe_init): Same.
280
97b0f3e2
KB
2812010-02-26 Kevin Buettner <kevinb@redhat.com>
282
283 * remote-mips.c (mips_load): Don't use pseudo-register when
284 invalidating regcache.
285
4069ebbe
DJ
2862010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
287
288 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
289
05071a4d
PA
2902010-02-26 Pedro Alves <pedro@codesourcery.com>
291
292 * NEWS: Add "New targets" section, and mention ARM Symbian
293 support.
294
6063c216
UW
2952010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
296
297 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
298 add ADDR_SIZE member.
299 (allocate_piece_closure): Update.
300 (copy_pieced_value_closure): Likewise.
301 (dwarf2_evaluate_loc_desc): Likewise.
302 (read_pieced_value): Use DWARF address size instead of
303 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
304
5107b149
PM
3052010-02-26 Phil Muldoon <pmuldoon@redhat.com>
306 Tom Tromey <tromey@redhat.com>
307
308 * python/py-type.c (typy_lookup_typename): Add in block argument.
309 If provided restrict lookup to specified blocks.
310 (gdbpy_lookup_type): Likewise.
311 (typy_lookup_type): Likewise.
312
78664fa3
PA
3132010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
314
315 Symbian config
316
317 gdb/
318 * arm-symbian-tdep.c: New.
319 * configure.tgt (arm*-*-symbianelf*): New target.
320 (*-*-symbianelf*): New OS.
321 * osabi.c (gdb_osabi_names): Add Symbian.
322 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
323 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
324 (ALLDEPFILES): Add arm-symbian-tdep.c.
325
eb73e134
DJ
3262010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
327
328 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
329
46ef47e5
PA
3302010-02-24 Pedro Alves <pedro@codesourcery.com>
331
332 * mi/mi-main.c (mi_cmd_execute): Fix typo.
333
f3e9a817
PM
3342010-02-24 Phil Muldoon <pmuldoon@redhat.com>
335 Tom Tromey <tromey@redhat.com>
336 Thiago Jung Bauermann <bauerman@br.ibm.com>
337
338 * python/python.c (_initialize_python): Call
339 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
340 gdbpy_initialize_blocks.
341 * python/python-internal.h: Declare struct symbol, block and
342 symtab_and_line. Declare block_object_type and
343 symbol_object_type
344 (gdbpy_lookup_symbol gdbpy_block_for_pc)
345 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
346 (symbol_to_symbol_object, block_to_block_object)
347 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
348 (gdbpy_initialize_blocks ): Declare.
349 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
350 (frapy_select): Add methods.
351 (frapy_read_var): Add symbol branch.
352 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
353 py-block.
354 (SUBDIR_PYTHON_SRCS): Likewise.
355 (py-symbol.o): New rule.
356 (py-symtab.o): Likewise.
357 (py-block.o): Likewise.
358 * python/py-symbol.c: New file.
359 * python/py-symtab.c: Likewise.
360 * python/py-block.c: Likewise.
361
24291992
PA
3622010-02-24 Pedro Alves <pedro@codesourcery.com>
363
364 PR gdb/11321
365
366 * inferior.h (prepare_for_detach): Declare.
367 (struct inferior) <detaching>: New field.
368 * infrun.c (prepare_for_detach): New.
369 (handle_inferior_event) <random signal>: Don't stop if detaching.
370 * target.c (target_detach): Call prepare_for_detach.
371
fc1cf338
PA
3722010-02-24 Pedro Alves <pedro@codesourcery.com>
373
374 Per-process displaced stepping queue.
375
376 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
377 (displaced_step_gdbarch, displaced_step_closure,
378 (displaced_step_original, displaced_step_copy): Move globals to
379 this...
380 (struct displaced_step_inferior_state): ... new structure.
381 (displaced_step_inferior_states): New global.
382 (get_displaced_stepping_state, add_displaced_stepping_state)
383 (remove_displaced_stepping_state, infrun_inferior_exit): New
384 functions.
385 (displaced_step_clear): Add displaced_step_inferior_state
386 parameter, and adjust to handle it.
387 (displaced_step_clear_cleanup): Parameter is now a
388 displaced_step_inferior_state. Adjust.
389 (displaced_step_prepare): Adjust.
390 (displaced_step_fixup, displaced_step_fixup)
391 (infrun_thread_ptid_changed, resume): Adjust.
392 (init_wait_for_inferior): Don't call displaced_step_clear.
393 (infrun_thread_stop_requested): Rewrite.
394 (_initialize_infrun): Install infrun_inferior_exit as
395 inferior_exit observer.
396
0723dbf5
PA
3972010-02-24 Pedro Alves <pedro@codesourcery.com>
398
399 * inferior.h (ptid_match): Declare.
400 * infrun.c (ptid_match): New.
401 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
402 (handle_notification): Add debug output.
403 * linux-nat.c (ptid_match): Delete.
404
09de9781
DM
4052010-02-24 David S. Miller <davem@davemloft.net>
406
407 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
408 * syscalls/sparc-linux.xml: New.
409 * syscalls/sparc64-linux.xml: New.
410 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
411 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
412 (sparc32_linux_get_syscall_number): New function.
413 (sparc32_linux_init_abi): Set syscall XML file name and hook up
414 syscall number fetcher.
415 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
416 (sparc64_linux_get_syscall_number): New function.
417 (sparc64_linux_init_abi): Set syscall XML file name and hook up
418 syscall number fetcher.
419
a79b8f6e
VP
4202010-02-24 Vladimir Prus <vladimir@codesourcery.com>
421
422 Multiexec MI
423
424 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
425 * inferior.c (add_inferior_silent): Notify inferior_added
426 observer.
427 (delete_inferior_1): Notify inferior_removed observer.
428 (exit_inferior_1): Pass inferior, not pid, to observer.
429 (inferior_appeared): Likewise.
430 (add_inferior_with_spaces): New.
431 (add_inferior_command): Use the above.
432 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
433 Declare.
434
435 * inflow.c (inflow_inferior_exit): Likewise.
436 * jit.c (jit_inferior_exit_hook): Likewise.
437
438 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
439 remove-inferior.
440 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
441 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
442 (report_initial_inferior): New.
443 (mi_inferior_removed): Register the above. Make sure
444 inferior_added observer is called on the first inferior.
445 (mi_new_thread, mi_thread_exit): Thread group is now identified by
446 inferior number, not pid.
447 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
448 affected.
449 * mi/mi-main.c (current_context): New.
450 (proceed_thread_callback): Use typed closure.
451 Proceed everything if pid is 0. Most implementation split into
452 (proceed_thread): ... this.
453 (run_one_inferior): New.
454 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
455 Adjust for multiexec behaviour.
456 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
457 (mi_cmd_execute): Handle the 'thread-group' option here.
458 Do some extra checks.
459 * mi-parse.c (mi_parse): Handle the --all and --thread-group
460 options.
461 * mi-parse.h (struct mi_parse): New fields all and thread_group.
462
115d30f9
VP
4632010-02-24 Vladimir Prus <vladimir@codesourcery.com>
464
465 Make -exec-run a proper MI commands.
466
467 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
468 * mi/mi-cmds.c (mi_cmds): Adjust.
469 * mi/mi-main.c (mi_cmd_exec_run): New.
470
06cd862c
PA
4712010-02-24 Pedro Alves <pedro@codesourcery.com>
472 Stan Shebs <stan@codesourcery.com>
473
474 * tracepoint.h (set_traceframe_number)
475 (cleanup_restore_current_traceframe): Declare.
476 * tracepoint.c (set_traceframe_number): New.
477 (struct current_traceframe_cleanup): New.
478 (do_restore_current_traceframe_cleanup)
479 (restore_current_traceframe_cleanup_dtor)
480 (make_cleanup_restore_current_traceframe): New.
481 * infrun.c: Include tracepoint.h.
482 (fetch_inferior_event): Switch out and in of tfind mode.
483
ab92d69b
PA
4842010-02-24 Pedro Alves <pedro@codesourcery.com>
485
486 * breakpoint.c (breakpoint_init_inferior): Also delete
487 bp_shlib_event breakpoints.
488 * solib-frv.c (enable_break): Remove call to
489 remove_solib_event_breakpoints.
490 * solib-svr4.c (enable_break): Ditto.
491 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
492 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
493 * solib-som.c (som_solib_create_inferior_hook): Ditto.
494 * solib-spu.c (spu_enable_break): Ditto.
495
e707a91d
PA
4962010-02-23 Harald Koenig <H.Koenig@science-computing.de>
497
498 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
499
cfce2ea2
PA
5002010-02-23 Harald Koenig <H.Koenig@science-computing.de>
501
502 * varobj.c (varobj_update): Avoid non-constants in initializers.
503
05566b3b
TT
5042010-02-23 Tom Tromey <tromey@redhat.com>
505
506 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
507 handle big-endian values.
508 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
509
85d721b8
PA
5102010-02-22 Pedro Alves <pedro@codesourcery.com>
511
512 PR9605
513
514 gdb/
515 * breakpoint.c (insert_bp_location): If inserting the read
516 watchpoint failed, fallback to an access watchpoint.
517 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
518 if the value changed, if not watching the same memory for writes.
519 (watchpoint_locations_match): Add comment.
520 (update_global_location_list): Copy the location's watchpoint type.
521 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
522 handle read watchpoints here.
523 (i386_insert_watchpoint): Read watchpoints aren't supported.
524 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
525 packets.
526 * target.h (target_insert_watchpoint): Update description.
527
48ea67a7
TT
5282010-02-19 Tom Tromey <tromey@redhat.com>
529
530 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
531 * m2-typeprint.c (m2_print_type): Update.
532 * gdbtypes.c (recursive_dump_type): Update.
533 (copy_type_recursive): Update.
534 * c-typeprint.c (c_type_print_varspec_prefix): Update.
535 (c_type_print_base): Update.
536 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
537 Remove.
538 (struct cplus_struct_type) <ntemplate_args>: Remove.
539 <struct template_arg>: Remove.
540 <is_dynamic>: Move earlier.
541 (TYPE_TEMPLATE_ARGS): Remove.
542 (TYPE_NTEMPLATE_ARGS): Remove.
543 (TYPE_TEMPLATE_ARG): Remove.
544
48e32051
TT
5452010-02-19 Tom Tromey <tromey@redhat.com>
546
547 PR c++/8693, PR c++/9496:
548 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
549 * c-exp.y (lex_one_token): Rename from yylex. Don't call
550 write_dollar_variable. Don't try to classify NAME tokens.
551 (token_and_value): New type.
552 (token_fifo, popping, name_obstack): New globals.
553 (classify_name): New function.
554 (classify_inner_name): Likewise.
555 (yylex): Likewise.
556 (VARIABLE): Now has type sval.
557 (exp : VARIABLE): Call write_dollar_variable.
558 (qualified_name): Use TYPENAME, not typebase. Add production for
559 multiple "::" instances.
560 (variable): Use name_not_typename.
561 (qualified_type): Remove.
562 (typebase): Update.
563
672d9c23
JK
5642010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
565
566 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
567 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
568 found by bfd_get_section_by_name.
569 * symfile.h (struct section_addr_info) <sectindex>: New comment.
570
bfbf3774
JB
5712010-02-19 Joel Brobecker <brobecker@adacore.com>
572
573 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
574 7.0 section" into "Changes in 7.1".
575
6756b09b 5762010-02-19 Joel Brobecker <brobecker@adacore.com>
577
578 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
579 * version.in: Bump version to 7.1.50.20100219-cvs.
580
202b96c1
PA
5812010-02-18 Harald Koenig <H.Koenig@science-computing.de>
582
583 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
584 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
585
de2e5182
TT
5862010-02-17 Tom Tromey <tromey@redhat.com>
587
588 * NEWS: Add Python API Improvements section.
589
7280022e
DJ
5902010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
591
592 * NEWS: Correct typo.
593
6f451e5e
TT
5942010-02-17 Tom Tromey <tromey@redhat.com>
595
596 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
597
012836ea
JK
5982010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
599
600 * symfile.c (build_section_addr_info_from_objfile): Include sections
601 only if they are SEC_ALLOC or SEC_LOAD.
602
d182d057
L
6032010-02-17 H.J. Lu <hongjiu.lu@intel.com>
604
605 PR shlibs/11293
606 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
607 of ULONGEST for address size.
608
4eef138c
TT
6092010-02-17 Tom Tromey <tromey@redhat.com>
610
611 * NEWS: Add C++ improvements section.
612
548a926a
UW
6132010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
614
615 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
616 PyThreadState_Swap): Avoid "statement with no effect" warning.
617
ad3a0e5b
JK
6182010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
619
620 * solib-svr4.c (enable_break <target_auxv_search>): New variable
621 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
622
243e2c5d
TG
6232010-02-17 Tristan Gingold <gingold@adacore.com>
624 Petr Hluzín <petr.hluzin@gmail.com>
625
626 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
627 gdb_assert. Fix info->size for SIG prologue.
628
275f2e57
DJ
6292010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
630
631 * infcmd.c (show_inferior_tty_command): Check for NULL.
632 Correct output message.
633
791dfb64
DJ
6342010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
635
636 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
637 FUNCTION contains parentheses. Improve removal of a trailing
638 single quote.
639
14d1346b
DJ
6402010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
641
642 * gcore.c (do_bfd_delete_cleanup): New function.
643 (gcore_command): Use it. Discard the cleanup after success.
644 (gcore_copy_callback): Delete dead code.
645
e76ab67f
DJ
6462010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
647
648 * symfile.c (addr_info_make_relative): Always use
649 find_lowest_section.
650
71dee663
SW
6512010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
652
653 * NEWS: Added entry for namespace fixes.
654
a9854bd5
TT
6552010-02-15 Tom Tromey <tromey@redhat.com>
656
657 * dwarf2read.c (guess_structure_name): Allocate name on the
658 objfile obstack.
659
fd9e29b5
TT
6602010-02-15 Tom Tromey <tromey@redhat.com>
661
662 * c-typeprint.c (c_type_print_base): Reverse order of test.
663
4e1fc9c9
JK
6642010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
665
666 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
667 initialize it from ELF BFD. Extend the prelink condition by it.
668
74164c56
JK
6692010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
670
671 * defs.h (parse_pid_to_attach): New.
672 * utils.c (parse_pid_to_attach): New.
673 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
674 * gnu-nat.c (gnu_attach): Likewise.
675 * nto-procfs.c (procfs_attach): Likewise.
676 * procfs.c (procfs_attach): Likewise.
677 * windows-nat.c (windows_attach): Likewise.
678 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
679 * inf-ttrace.c (inf_ttrace_attach): Likewise.
680 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
681 check.
682
bf6adea8
MM
6832010-02-14 Masaki Muranaka <monaka@monami-software.com>
684
685 * MAINTAINERS: Add myself for write after approval privileges.
686
28f34a8f
JK
6872010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
688
689 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
690 block.
691
701ed6dc
JK
6922010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
693
694 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
695 only if INFO_VERBOSE.
696
e5829bee
MS
6972010-02-12 Tomas Holmberg <th@virtutech.com>
698
699 * mi/mi-main.c: Added the --reverse flag to the following MI
700 commands: exec-continue, exec-finish, exec-next, exec-step,
701 exec-next-instruction, exec-step-instruction. This is to
702 support reverse execution over the MI interface to gdb.
703
081dfbf7
PA
7042010-02-12 Pedro Alves <pedro@codesourcery.com>
705
706 * tracepoint.c (_initialize_tracepoint): Specify that the address
707 range of `tfind outsize' is exclusive, and that the address range
708 of `tfind range' is inclusive, in the commands' help strings.
709
ecc13e53
JB
7102010-02-12 Joel Brobecker <brobecker@adacore.com>
711
712 Spurious "dll not found" error messages on x64-windows.
713 * windows-nat.c: Add include of complaints.h.
714 (handle_unload_dll): Change dll-not-found error into a complaint.
715
15c3d785
PA
7162010-02-12 Pedro Alves <pedro@codesourcery.com>
717
718 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
719 bp_tracepoint and bp_fast_tracepoint, not
720 bp_loc_software_breakpoint.
721 (update_global_location_list): Tracepoints are never duplicates of
722 anything.
723
fd9b8c24
PA
7242010-02-12 Pedro Alves <pedro@codesourcery.com>
725
726 * breakpoint.c (break_command_really): Change return type to int.
727 Return false if no breakpoint was created, true otherwise.
728 (trace_command): Don't set the tracepoint count if no tracepoint
729 was created.
730 (ftrace_command): Ditto.
731 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
732 created in the breakpoints table.
733
5c0d192f
JK
7342010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
735 Ulrich Weigand <uweigand@de.ibm.com>
736
737 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
738
5d5b640e
PA
7392010-02-11 Pedro Alves <pedro@codesourcery.com>
740
741 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
742 the offset value isn't of integral type.
743
e5a0a904
JK
7442010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
745
746 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
747 New.
748
be636754
PA
7492010-02-11 Pedro Alves <pedro@codesourcery.com>
750
751 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
752 non-subscriptable types.
753 * valarith.c (binop_types_user_defined_p): New, abstracted out
754 from ...
755 (binop_user_defined_p): ... this.
756 * value.h (binop_types_user_defined_p): Declare.
757
10ef8d6a
PA
7582010-02-11 Pedro Alves <pedro@codesourcery.com>
759
760 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
761 Merge uploaded TSVs before merging uploaded tracepoints.
762
b1028c8e
PA
7632010-02-11 Pedro Alves <pedro@codesourcery.com>
764
765 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
766
7a93fb82 7672010-02-11 Vladimir Prus <vladimir@codesourcery.com>
84d90c10 768
7a93fb82
VP
769 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
770 whitespace character after a dot in comment.
771 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
772 Likewise.
773 (list_args_or_locals): For the 'all' (that is
774 -stack-list-variables) case, always output list of tuples.
775 Output 'arg' field if variable is argument.
84d90c10 776
92981e24
TT
7772010-02-10 Tom Tromey <tromey@redhat.com>
778
779 * parser-defs.h (parser_debug): Declare.
780 * parse.c (_initialize_parse): Install "debug parser" set/show
781 command.
782 (parser_debug): New global.
783 (show_parserdebug): New function.
784 * c-exp.y (c_parse): Set yydebug.
785
9fd3625f
L
7862010-02-10 H.J. Lu <hongjiu.lu@intel.com>
787
788 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
789 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
790 (tdesc_predefined_types): Add i387_ext, i386_eflags and
791 i386_mxcsr.
792 (tdesc_find_type): New.
793 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
794 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
795
796 * target-descriptions.h (tdesc_find_type): New.
797
2fe842e5
MS
7982010-02-10 Michael Snyder <msnyder@vmware.com>
799
800 * gdb-gdb.py: Comment fix.
801
f18b4cab
TG
8022010-02-09 Tristan Gingold <gingold@adacore.com>
803
804 * machoread.c (macho_symfile_relocate): New function.
805 (macho_sym_fns): Use macho_symfile_relocate instead of
806 default_symfile_relocate.
807 (macho_oso_data): New type.
808 (current_oso): New variable.
809 (macho_add_oso_symfile): Do not compute section_addr_info, but
810 instead set vma of sections.
811 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
812 Set and clear current_oso.
813
31dbc1c5
JB
8142010-02-09 Joel Brobecker <brobecker@adacore.com>
815
816 Wrong type description for tagged type parameter.
817 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
818 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
819 reference to a tagged type.
820
399f313b
TG
8212010-02-09 Tristan Gingold <gingold@adacore.com>
822
823 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
824 brothers of the parent.
825
714f19d5
TT
8262010-02-08 Tom Tromey <tromey@redhat.com>
827
828 PR c++/8017:
829 * value.h: Update.
830 * valops.c (search_struct_field): Make 'name' const.
831 (search_struct_method): Likewise.
832 (find_method_list): Make 'method' const.
833 (value_struct_elt): Make 'name' and 'err' const.
834 (value_find_oload_method_list): Make 'method' const.
835 (find_overload_match): Make 'name' const.
836 * eval.c (evaluate_subexp_standard): New locals function,
837 function_name.
838 <OP_FUNCALL>: Handle OP_SCOPE specially.
839
de0a0249
UW
8402010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
841
842 * infrun.c (handle_inferior_event): Do not look up regcache
843 for exited processes.
844
83b10087
CM
845Mon Feb 8 13:17:10 2010 Chris Moller <moller@mollerware.com>
846
847 PR gdb/10728
848 * valarith.c (value_ptrdiff): Added a test for a zero type length,
849 warn if found, and assume length = 1.
850
99903ae3
CM
8512010-02-08 Chris Moller <cmoller@redhat.com>
852
853 PR gdb/9067
854 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
855 cp_print_static_field) Fix use of obstacks.
856
e3e9f5a2
PA
8572010-02-08 Pedro Alves <pedro@codesourcery.com>
858
859 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
860 resumed LWPs as resumed.
861 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
862 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
863 of throwing an internal error. If an LWP of a process we're not
864 waiting for reports a signal, don't force collecting a SIGSTOP,
865 and if it was breakpoint hit in non-stop mode, cancel it. Don't
866 go through all LWPs cancelling breakpoints in non-stop mode.
867 (resume_stopped_resumed_lwps): New.
868 (linux_nat_wait): Use it.
869
46763423
L
8702010-02-07 H.J. Lu <hongjiu.lu@intel.com>
871
872 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
873 i386/amd64 and i386/amd64-linux.
874 (i386/i386-expedite): New.
875 (i386/i386-linux-expedite): Likewise.
876 (i386/amd64-expedite):Likewise.
877 (i386/amd64-linux-expedite): Likewise.
878 ($(outdir)/i386/i386-linux.dat): Likewise.
879 ($(outdir)/i386/amd64.dat): Likewise.
880 ($(outdir)/i386/amd64-linux.dat): Likewise.
881
882 * features/i386/32bit-core.xml: New.
883 * features/i386/32bit-linux.xml: Likewise.
884 * features/i386/32bit-sse.xml: Likewise.
885 * features/i386/64bit-core.xml: Likewise.
886 * features/i386/64bit-linux.xml: Likewise.
887 * features/i386/64bit-sse.xml: Likewise.
888 * features/i386/i386-linux.xml: Likewise.
889 * features/i386/i386.xml: Likewise.
890 * features/i386/amd64-linux.xml: Likewise.
891 * features/i386/amd64.xml: Likewise.
892 * features/i386/i386-linux.c: Likewise.
893 * features/i386/i386.c: Likewise.
894 * features/i386/amd64-linux.c: Likewise.
895 * features/i386/amd64.c: Likewise.
896
82856980
SW
8972010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
898
899 PR c++/7935:
900 * cp-support.h: Added char* alias element to using_direct data
901 struct.
902 (cp_add_using): Added char* alias argument.
903 (cp_add_using_directive): Ditto.
904 * cp-namespace.c: Updated with the above changes.
905 (cp_lookup_symbol_imports): Check for aliases.
906 * dwarf2read.c (read_import_statement): Figure out local alias
907 for the import and pass it on to cp_add_using.
908 (read_namespace): Pass alias argument to cp_add_using.
909
d18b8b7a
HZ
9102010-02-05 Hui Zhu <teawater@gmail.com>
911
912 * defs.h (gdb_bfd_errmsg): New extern.
913 * exec.c (exec_file_attach): Change bfd_errmsg to
914 gdb_bfd_errmsg.
915 * utils.c (AMBIGUOUS_MESS1): New macro.
916 (AMBIGUOUS_MESS2): New macro.
917 (gdb_bfd_errmsg): New function.
918
48379de6
DE
9192010-02-04 Doug Evans <dje@google.com>
920
921 * solib-svr4.c (enable_break): Add comment.
922
4ee73e90
AG
9232010-02-04 Anthony Green <green@moxielogic.com>
924
925 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
926 gracefully.
927
1a334831
TT
9282010-02-04 Tom Tromey <tromey@redhat.com>
929
930 * valops.c (search_struct_field): Account for
931 value_embedded_offset. Fix check for virtual base past the end of
932 the object. Use value_copy when making a slice of the value.
933
1180b2c8
L
9342010-02-04 H.J. Lu <hongjiu.lu@intel.com>
935
936 PR tui/9622
937 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
938 only if gdb_stdout is a tty.
939
c3f08eb7
L
9402010-02-04 H.J. Lu <hongjiu.lu@intel.com>
941
942 * target-descriptions.c: Include "osabi.h".
943 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
944 OSABI.
945
2d33f7b8
TG
9462010-02-04 Tristan Gingold <gingold@adacore.com>
947
948 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
949 (macho_symtab_read): Adjust calls to macho_add_oso.
950 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
951 (macho_symfile_read): Adjust call to macho_oso_symfile.
952 (macho_new_init): Move this function after declarations.
953 (macho_symfile_init): Ditto.
954 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
955 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
956
11334b82
VP
9572010-02-04 Vladimir Prus <vladimir@codesourcery.com>
958
959 Include MI command in remotelog.
960
961 * mi/mi-main.c (mi_execute_command): Call target_log_command.
962
ff97be06
L
9632010-02-03 H.J. Lu <hongjiu.lu@intel.com>
964
965 * remote.c (remote_state): Remove gdbarch.
966 (init_remote_state): Don't set gdbarch.
967 (remote_query_supported): Pass target_gdbarch instead of
968 rs->gdbarch to gdbarch_qsupported.
969
75cebea9
L
9702010-02-03 H.J. Lu <hongjiu.lu@intel.com>
971
972 * gdbarch.sh: Add qsupported.
973
974 * gdbarch.c: Regenerated.
975 * gdbarch.h: Likewise.
976
977 * remote.c (remote_state): Add gdbarch.
978 (init_remote_state): Set gdbarch.
979 (remote_query_supported): Support gdbarch_qsupported.
980
c1dec97b
DJ
9812010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
982
983 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
984 __FreeBSD_kernel_version.
985
ac8035ab
TG
9862010-02-03 Tristan Gingold <gingold@adacore.com>
987
988 * symfile.h (struct sym_fns): Add sym_relocate field.
989 (default_symfile_relocate): New prototype.
990 (symfile_relocate_debug_section): First argument is now an objfile.
991 * symfile.c (default_symfile_relocate): Rename from
992 symfile_relocate_debug_section, first argument is now an objfile.
993 (symfile_relocate_debug_section): New function.
994 * coffread.c (coff_sym_fns): Set sym_relocate field.
995 * somread.c (som_sym_fns): Ditto.
996 * mipsread.c (ecoff_sym_fns): Ditto.
997 * machoread.c (macho_sym_fns): Ditto.
998 * elfread.c (elf_sym_fns): Ditto.
999 * dwarf2read.c (dwarf2_read_section): Ditto.
1000 * xcoffread.c (xcoff_sym_fns): Ditto.
1001 * dbxread.c (aout_sym_fns): Ditto.
1002 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
1003 (elfstab_build_psymtabs): Ditto.
1004
be52b756
L
10052010-02-03 H.J. Lu <hongjiu.lu@intel.com>
1006
1007 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
1008
9c3c02fd
TT
10092010-02-02 Tom Tromey <tromey@redhat.com>
1010
1011 * valops.c (value_cast_structs): Try downcasting using the RTTI
1012 type.
1013
f23f4c59
TT
10142010-02-02 Tom Tromey <tromey@redhat.com>
1015
1016 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
1017 (gnuv2_baseclass_offset): Now static.
1018 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
1019 * gnu-v2-abi.h: Remove.
1020
0cc2414c
TT
10212010-02-02 Tom Tromey <tromey@redhat.com>
1022
1023 * m2-typeprint.c (m2_record_fields): Don't use
1024 TYPE_DECLARED_TYPE.
1025 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
1026 (struct main_type) <flag_declared_class>: New field.
1027 (struct cplus_struct_type) <declared_type>: Remove.
1028 <ntemplate_args>: Move earlier.
1029 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
1030 (DECLARED_TYPE_TEMPLATE): Remove.
1031 (TYPE_DECLARED_TYPE): Remove.
1032 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
1033 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
1034 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
1035 TYPE_DECLARED_TYPE.
1036
edf3d5f3
TT
10372010-02-02 Tom Tromey <tromey@redhat.com>
1038
1039 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
1040 * valops.c (search_struct_field): Compute nbases after calling
1041 CHECK_TYPEDEF.
1042 (check_field): Call CHECK_TYPEDEF.
1043 * cp-valprint.c (cp_print_value): Pass correct address to
1044 baseclass_offset. Fix check for virtual base past the end of the
1045 object. Don't offset address passed to cp_print_value_fields or
1046 apply_val_pretty_printer.
1047 (cp_print_value_fields): Fix call to val_print.
1048 (cp_print_value_fields_rtti): New function.
1049 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
1050 * p-valprint.c (pascal_object_print_value_fields): Fix call to
1051 val_print.
1052 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
1053 offset to address.
1054 * language.h (struct language_defn) <la_val_print>: Document.
1055 * c-lang.h (cp_print_value_fields_rtti): Declare.
1056
e4b7f41c
JK
10572010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1058
1059 PR libc/11214:
1060 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
1061 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
1062 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
1063
7618e12b
DJ
10642010-02-01 Michael Matz <matz@suse.de>
1065 Daniel Jacobowitz <dan@codesourcery.com>
1066
e4b7f41c 1067 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
1068 functions use a frame pointer.
1069
b381ea14
JK
10702010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1071
1072 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
1073 by a conditional setting DYN_ADDR. Use DYN_ADDR.
1074 * config/djgpp/fnchange.lst: Add translations for
1075 symbol-without-target_section.exp and symbol-without-target_section.c.
1076
0e05dfcb
DJ
10772010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1078
1079 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
1080 (remote_breakpoint_for_pc): Correct invalid_p check.
1081 * gdbarch.c: Regenerated.
1082
f9d67f43
DJ
10832010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1084
1085 * arm-tdep.c (arm_find_mapping_symbol): New function, from
1086 arm_pc_is_thumb.
1087 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
1088 (extend_buffer_earlier): New function.
1089 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
1090 (arm_adjust_breakpoint_address): New function.
1091 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
1092
177321bd
DJ
10932010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1094
1095 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
1096 (arm_linux_thumb2_le_breakpoint): New constants.
1097 (arm_linux_init_abi): Set thumb2_breakpoint and
1098 thumb2_breakpoint_size.
1099 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
1100 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
1101 Implement support for single stepping through IT blocks if
1102 a 32-bit Thumb breakpoint instruction is available.
1103 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
1104 is available, use it when needed.
1105 (arm_remote_breakpoint_from_pc): New function.
1106 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
1107 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
1108 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
1109
a1dcb23a
DJ
11102010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1111
1112 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
1113 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
1114 * gdbarch.c, gdbarch.h: Regenerated.
1115 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
1116 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
1117 gdbarch_remote_breakpoint_from_pc.
1118
2b009048
DJ
11192010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1120
1121 * infrun.c (prepare_to_proceed): Handle other signals which might
1122 match a breakpoint.
1123 (handle_inferior_event): Move the check for unusual breakpoint
1124 signals earlier.
1125
e4e2711a
JB
11262010-01-29 Paul Hilfinger <hilfinger@adacore.com>
1127
1128 amd64 - function returning record with field straddling 2 registers.
1129 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
1130 a record of length <= 16 in which a field straddles the two
1131 eightbytes.
1132
cba6fab5
JB
11332010-01-29 Joel Brobecker <brobecker@adacore.com>
1134
1135 Implement return values on amd64-windows.
1136 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
1137 (amd64_windows_return_value): New function.
1138 (amd64_windows_init_abi): Call set_gdbarch_return_value with
1139 amd64_windows_return_value.
1140
3af6ddfe
JB
11412010-01-29 Joel Brobecker <brobecker@adacore.com>
1142
1143 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 1144 parameter registers.
3af6ddfe
JB
1145 * i386-tdep.h (struct gdbarch_tdep): Add new field
1146 integer_param_regs_saved_in_caller_frame.
1147 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
1148 tdep->integer_param_regs_saved_in_caller_frame to 1.
1149 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1150 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1151
80d19a06
JB
11522010-01-29 Joel Brobecker <brobecker@adacore.com>
1153
1154 amd64-windows: memory args passed by pointer during function calls.
1155 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1156 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1157 where tdep->memory_args_by_pointer is non-zero.
1158 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
1159 tdep->memory_args_by_pointer to 1.
1160
ba581dc1
JB
11612010-01-29 Joel Brobecker <brobecker@adacore.com>
1162
4966b6c2 1163 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
1164 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1165 amd64-tdep.c.
1166 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1167 call_dummy_integer_regs, and classify.
1168 * amd64-tdep.h (amd64_classify): Add declaration.
1169 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1170 (amd64_reg_class): Delete, moved to i386-tdep.h.
1171 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1172 Replace call to amd64_classify by call to tdep->classify.
1173 (amd64_push_arguments): Get the list of registers to use for
1174 passing integer parameters from the gdbarch tdep structure,
1175 rather than using a hardcoded one. Replace calls to amd64_classify
1176 by calls to tdep->classify.
1177 (amd64_push_dummy_call): Get the register number used for
1178 the "hidden" argument from tdep->call_dummy_integer_regs.
1179 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1180 and tdep->call_dummy_integer_regs. Set tdep->classify.
1181 * amd64-windows-tdep.c: Add include of gdbtypes.h.
1182 (amd64_windows_dummy_call_integer_regs): New static global.
1183 (amd64_windows_classify): New function.
1184 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
1185 tdep->call_dummy_integer_regs and tdep->classify.
1186
d37346f0
DJ
11872010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
1188
1189 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
1190 for the new regcache. All callers updated.
1191 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
1192 (get_thread_arch_regcache): Do not set aspace here.
1193 * regcache.h (regcache_xmalloc): Update declaration.
1194
1195 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
1196 regcache_xmalloc updated.
1197
7434dadd
JB
11982010-01-28 Joel Brobecker <brobecker@adacore.com>
1199
1200 Another -Wunused-function error in procfs.c (sparc-solaris)
1201 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
1202 Only define if SYS_syssgi is defined.
1203 (remove_dbx_link_breakpoint): Delete declaration. Move up.
1204 (dbx_link_addr, insert_dbx_link_bpt_in_file)
1205 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
1206 is itself defined.
1207
16d905e2
CF
12082010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
1209
1210 * windows-nat.c (windows_initialization_done): New variable.
1211 (get_windows_debug_event): Issue error when process dies before
1212 completely initializing.
1213 (do_initial_windows_stuff): Set flag to indicate when we are done with
1214 the initial steps of attaching to the child.
1215
cd55e50f
JK
12162010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1217
1218 * symtab.h (struct symbol <symtab>): New comment on NULL values.
1219
99cc78aa
DE
12202010-01-27 Doug Evans <dje@google.com>
1221
4c7dcb84
DE
1222 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
1223
99cc78aa
DE
1224 * breakpoint.c (bpstat_stop_status): Delete useless code.
1225
52334bf5
JK
12262010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1227
1228 * printcmd.c (display_uses_solib_p): Remove variable section. Access
1229 objfile via SYMBOL_SYMTAB.
1230
708ead4e
TT
12312010-01-26 Tom Tromey <tromey@redhat.com>
1232
1233 PR exp/7643:
1234 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
1235 coerce_array on result.
1236
b14e635e
SW
12372010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
1238
1239 * cp-namespace.c (cp_lookup_symbol_namespace): Added
1240 search_parent argument.
1241 (cp_add_using): Initialize 'searched' field.
1242 (reset_directive_searched): New function.
1243 * cp-support.h: Add 'searched' field to using_direct struct.
1244 (cp_lookup_symbol_imports): Ditto.
1245 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
1246 Perform recursive search.
1247 Implement non parent search.
1248 * valops.c (value_maybe_namespace_elt): Updated.
1249
8540c487
SW
12502010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
1251
1252 PR gdb/10929:
1253 * dwarf2read.c (read_lexical_block_scope): Create blocks for
1254 scopes which contain using directives even if they contain no
1255 declarations.
1256 * symtab.c (lookup_symbol_aux): Pass lowest level block to
1257 la_lookup_symbol_nonlocal.
1258 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
1259 cp_lookup_symbol_namespace.
1260 (cp_lookup_symbol_namespace): Perform an import lookup at every
1261 block level.
1262 (cp_lookup_symbol_imports): New function.
1263 (cp_lookup_symbol_in_namespace): New function.
1264
421d5d99
TT
12652010-01-25 Tom Tromey <tromey@redhat.com>
1266
1267 PR gdb/11049:
1268 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
1269 result.
1270
6bcc772d
RO
12712010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1272
1273 * configure.ac: Only use host_os part when disabling TUI on osf.
1274 Use test to check variables, prefix strings with x.
1275 * configure: Regenerate.
1276
1277 * solib-osf.c (osf_current_sos): Initialize tail.
1278
1c1238a5
TG
12792010-01-25 gingold <gingold@adacore.com>
1280
1281 * windows-nat.c (windows_continue): Use %x to print thread id.
1282 (get_windows_debug_event): Ditto.
1283
0b92b5bb
TT
12842010-01-22 Tom Tromey <tromey@redhat.com>
1285
1286 PR symtab/11199:
1287 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
1288 type and arguments. Use smash_to_methodptr_type.
1289 (read_structure_type): Call quirk_gcc_member_function_pointer
1290 later.
1291 * gdbtypes.h (smash_to_methodptr_type): Declare.
1292 * gdbtypes.c (smash_to_methodptr_type): New function.
1293 (lookup_methodptr_type): Use it.
1294
0d5392b8
TT
12952010-01-21 Tom Tromey <tromey@redhat.com>
1296
1297 PR symtab/11198:
1298 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
1299 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
1300 * glibc-tdep.c (find_minsym_and_objfile): Remove.
1301 (glibc_skip_solib_resolver): Use
1302 lookup_minimal_symbol_and_objfile.
1303
e6d088ec
KT
13042010-01-21 Kai Tietz <kai.tietz@onevision.com>
1305
1306 * inflow.c (check_syscall): Guard by #if clause for GO32 and
1307 WIN32 targets.
1308
b966cb8a
TT
13092010-01-20 Tom Tromey <tromey@redhat.com>
1310
1311 PR backtrace/10770:
1312 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
1313 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
1314 * dwarf2expr.c (new_dwarf_expr_context): Allocate
1315 dwarf_stack_values, not CORE_ADDRs.
1316 (execute_stack_op): Change DW_OP_div and comparison operators to
1317 use signed operands.
1318
3f81c18a
VP
13192010-01-20 Vladimir Prus <vladimir@codesourcery.com>
1320
1321 Per-inferior args and tty and environment.
1322
1323 * infcmd.c (inferior_args): Rename to ...
1324 (inferior_args_scratch): ... this.
1325 (inferior_io_terminal): Rename to ...
1326 (inferior_io_terminal_scratch): ... this.
1327 (inferior_argc, inferior_argv): Remove.
1328 (set_inferior_io_terminal, get_inferior_io_terminal): Store
1329 inside current_inferior().
1330 (set_inferior_tty_command, show_inferior_tty_command): New.
1331 (get_inferior_args, set_inferior_args): Store inside
1332 current_inferior().
1333 (notice_args_set): Likewise and rename to...
1334 (set_args_command): ... this.
1335 (set_inferior_args_vector): Likewise.
1336 (notice_args_read): Rename to...
1337 (show_args_command): ...new.
1338 (tty_command): Remove.
1339 (run_command_1): Don't free old args, as they are freed by
1340 set_inferior_arg now.
1341 (run_no_args_command): Likewise.
1342 (inferior_environ): Remove.
1343 (run_command_1): Use environment of the current inferior.
1344 (environment_info, set_environment_command)
1345 (unset_environment_command, path_info, path_command): Likewise.
1346 (_initialize_infcmd): Adjust for function and variable renames.
1347 Do not init inferior_environ.
1348 * inferior.h (set_inferior_arg): Adjust prototype.
1349 (struct inferior): New fields args, argc, argv, terminal, environment.
1350 (inferior_environ): Remove declaration.
1351 * inferior.c (free_inferior): Free new fields.
1352 (add_inferior_silent): Initialize 'environment' field.
1353 * main.c (captured_main): Set arguments only after the initial
1354 inferior has been created. Set set_inferior_io_terminal,
1355 not tty_command.
1356 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
1357 inferior.
1358 (_initialize_mi_cmd_env): Adjust for disappearance of global
1359 inferior_environ.
1360 * solib.c (solib_find): Use environment of the current inferior.
1361
d8b65138
JK
13622010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1363
1364 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
1365 HAVE_PYTHON.
1366 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
1367
692465f1
JB
13682010-01-20 Joel Brobecker <brobecker@adacore.com>
1369
1370 Get rid of ada-lang.c:function_name_from_pc.
1371 * ada-lang.c: Add "stack.h" #include.
1372 (function_name_from_pc): Delete.
1373 (is_known_support_routine): Replace call to function_name_from_pc
1374 by call to find_frame_funname.
1375 (ada_unhandled_exception_name_addr_from_raise): Likewise.
1376
95519e0e
TT
13772010-01-19 Tom Tromey <tromey@redhat.com>
1378
1379 PR c++/11026:
1380 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
1381 objfile obstack.
1382
95c11dc7
TT
13832010-01-19 Tom Tromey <tromey@redhat.com>
1384
1385 * top.c (stop_sig, float_handler, do_nothing): Remove.
1386
a0f49112
JK
13872010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1388
1389 * breakpoint.c (watchpoint_check): Check the call
1390 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
1391 Extend the comment.
1392 * config/djgpp/fnchange.lst: Add translations for
1393 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
1394 watchpoint-cond-gone-stripped.c.
1395
ceeb3d5a
TT
13962010-01-19 Tom Tromey <tromey@redhat.com>
1397
1398 PR c++/8000:
1399 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
1400 into parent scope, and enumerator into grandparent scope.
1401
2b71fc8e
JB
14022010-01-19 Joel Brobecker <brobecker@adacore.com>
1403
1404 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
1405
03564ed9
JB
14062010-01-19 Joel Brobecker <brobecker@adacore.com>
1407
1408 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
1409 i[34567]86-*-solaris2.1[0-9]*.
1410 * configure.tgt: Likewise.
1411
fb2e7cb4
JB
14122010-01-19 Joel Brobecker <brobecker@adacore.com>
1413
1414 * NEWS: Document the source command enhancement allowing it
1415 to load Python scripts. Document the "set/show script-extension"
1416 commands.
1417
1cb5e2a4
JB
14182010-01-19 Joel Brobecker <brobecker@adacore.com>
1419
1420 Add -Wunused-function to compile flags.
1421 * configure.ac: Add -Wunused-function to build_warnings.
1422 * configure: Regenerate.
1423
0ec6cd0c
JB
14242010-01-19 Joel Brobecker <brobecker@adacore.com>
1425
1426 "delete" ada-lex.c:input function, not used.
1427 * ada-lex.l: #define YY_NO_INPUT.
1428
b74845da
JB
14292010-01-19 Joel Brobecker <brobecker@adacore.com>
1430
1431 Delete free_named_symtabs and associated cleanup.
1432 * symfile.h (free_named_symtabs): Delete declaration.
1433 * symfile.c: Remove some commented out code (clear_symtab_users_once).
1434 (cashier_psymtab): Comment function out.
1435 Delete declaration.
1436 (free_named_symtabs): Delete.
1437 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
1438 * dbxread.c (end_psymtab): Likewise.
1439 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
1440 * exec.c (exec_close_1): Ditto.
1441 * xcoffread.c (xcoff_end_psymtab): Likewise.
1442
65c06092
JB
14432010-01-19 Joel Brobecker <brobecker@adacore.com>
1444
1445 * stack.c (print_block_frame_labels): Comment function out.
1446
d5cd6034
JB
14472010-01-19 Joel Brobecker <brobecker@adacore.com>
1448
1449 Delete unused or undefined functions.
1450 * breakpoint.c (ep_parse_optional_filename): Delete.
1451 * dcache.c (dcache_write_line): Remove declaration.
1452 * infrun.c (build_infrun): Remove declaration.
1453 * tracepoint.c (tracepoint_save_command): Remove declaration.
1454 * linux-nat.c (init_lwp_list): Delete. No longer used.
1455 * event-loop.c (check_async_signal_handlers): Delete declaration.
1456 * infrun.c (init_execution_control_state): Delete.
1457 (proceed): Update comment to avoid mentioning
1458 init_execution_control_state.
1459 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
1460 * ada-lang.c (ada_to_static_fixed_value): Delete.
1461 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
1462 * cp-namespace.c (cp_copy_usings): Delete.
1463 * xml-syscall.c (xml_number_of_syscalls): Delete.
1464 * progspace.c (find_program_space_by_num): Delete.
1465 * inflow.c (handle_sigio): Delete declaration.
1466 * hppa-tdep.c (hppa_alignof): Delete.
1467 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
1468 (mipsnbsd_core_osabi_sniffer): Delete.
1469
4e8f195d
TT
14702010-01-18 Tom Tromey <tromey@redhat.com>
1471
1472 PR c++/9680:
1473 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
1474 (CONST_CAST): New tokens.
1475 (exp): Add new productions.
1476 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
1477 reinterpret_cast.
1478 (is_cast_operator): New function.
1479 (yylex): Handle cast operators specially.
1480 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
1481 UNOP_REINTERPRET_CAST>: New cases.
1482 * expprint.c (print_subexp_standard): Likewise.
1483 (op_name_standard): Likewise.
1484 (dump_subexp_body_standard): Likewise.
1485 * parse.c (operator_length_standard): Likewise.
1486 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
1487 UNOP_REINTERPRET_CAST.
1488 * gdbtypes.c (class_types_same_p): New function.
1489 (is_ancestor): Use it.
1490 (is_public_ancestor): New function.
1491 (is_unique_ancestor_worker): Likewise.
1492 (is_unique_ancestor): Likewise.
1493 * gdbtypes.h (class_types_same_p, is_public_ancestor)
1494 (is_unique_ancestor): Declare.
1495 * valops.c (value_reinterpret_cast): New function.
1496 (dynamic_cast_check_1): Likewise.
1497 (dynamic_cast_check_2): Likewise.
1498 (value_dynamic_cast): Likewise.
1499 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
1500
d9c57d9f
JB
15012010-01-18 Joel Brobecker <brobecker@adacore.com>
1502
1503 Fix build failure when building without Python support.
1504 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
1505 is not defined.
1506
f80d3ff2
JB
15072010-01-18 Joel Brobecker <brobecker@adacore.com>
1508
1509 Use XVS field type instead of doing a parallel lookup.
1510 * ada-lang.c (ada_get_base_type): Follow the XVS field type
1511 if it is a reference type instead of doing a type lookup using
1512 the XVS field name.
1513
5bf03f13
JB
15142010-01-18 Joel Brobecker <brobecker@adacore.com>
1515
1516 Trust PAD types instead of using PAD___XVS.
1517 * ada-lang.c (trust_pad_over_xvs): New static variable.
1518 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
1519 parallel XVS type, follow the XVS type instead of the PAD type.
1520 (unwrap_value): Make sure that there is no parallel XVE type
1521 before returning the value as is.
1522 (set_ada_list, show_ada_list): New static variables.
1523 (set_ada_command, show_ada_command): New functions.
1524 (_initialize_ada_language): Add new "set/show ada" prefix commands.
1525 Add new "set/show ada trust-PAD-over-XVS" setting.
1526
973817a3
JB
15272010-01-18 Tom Tromey <tromey@redhat.com>
1528 Thiago Jung Bauermann <bauerman@br.ibm.com>
1529
1530 Allow "source" to load python scripts.
1531 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
1532 * python/python.c (source_python_script): New function.
1533 * python/python.h (source_python_script): Add declaration.
1534 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
1535 (script_ext_off, script_ext_soft, script_ext_strict)
1536 (script_ext_enums, script_ext_mode): New static constants.
1537 (show_script_ext_mode, find_and_open_script): New functions.
1538 (source_script): Enhance to handle Python scripts.
1539 (init_cli_cmds): Add set/show script-extension commands.
1540
98e03262
SS
15412010-01-16 Stan Shebs <stan@codesourcery.com>
1542
1543 * tracepoint.h (struct trace_status): Use unsigned long long
1544 instead of size_t.
1545 * tracepoint.c (trace_status_command): Fix printf directive.
1546 (trace_save_command): Check fwrite returns, fix printf directive.
1547 (trace_filename): New global.
1548 (tfile_open): Set it, check read returns.
1549 (tfile_close): Free trace_filename.
1550 (tfile_get_traceframe_address): Check read returns.
1551 (tfile_trace_find): Ditto.
1552 (tfile_fetch_registers): Ditto.
1553 (tfile_xfer_partial): Ditto.
1554 (tfile_get_trace_state_variable_value): Ditto.
1555
00bf0b85
SS
15562010-01-15 Stan Shebs <stan@codesourcery.com>
1557
1558 Add trace file support.
1559 * tracepoint.h (enum trace_stop_reason): New enum.
1560 (struct trace_status): New struct.
1561 (parse_trace_status): Declare.
1562 (struct uploaded_tp): Move here from remote.c,
1563 add fields for actions.
1564 (struct uploaded_tsv): New struct.
1565 * tracepoint.c (tfile_ops): New target vector.
1566 (trace_fd): New global.
1567 (tfile_open): New function.
1568 (tfile_close): New function.
1569 (tfile_files_info): New function.
1570 (tfile_get_trace_status): New function.
1571 (tfile_get_traceframe_address): New function.
1572 (tfile_trace_find): New function.
1573 (tfile_fetch_registers): New function.
1574 (tfile_xfer_partial): New function.
1575 (tfile_get_trace_state_variable_value): New function.
1576 (init_tfile_ops): New function.
1577 (_initialize_tracepoint): Call it, add tfile target.
1578 (trace_status): New global.
1579 (current_trace_status): New function.
1580 (trace_running_p): Remove, change all users to get from
1581 current_trace_status()->running.
1582 (get_trace_status): Remove.
1583 (trace_status_command): Call target_get_trace_status directly,
1584 report more detail including tracing stop reasons.
1585 (trace_find_command): Always allow tfind on a file.
1586 (trace_find_pc_command): Ditto.
1587 (trace_find_tracepoint_command): Ditto.
1588 (trace_find_line_command): Ditto.
1589 (trace_find_range_command): Ditto.
1590 (trace_find_outside_command): Ditto.
1591 (trace_frames_offset, cur_offset): Declare as off_t.
1592 (trace_regblock_size): Rename from reg_size, update users.
1593 (parse_trace_status): New function.
1594 (tfile_interp_line): New function.
1595 (disconnect_or_stop_tracing): Ensure current trace
1596 status before asking what to do.
1597 (stop_reason_names): New global.
1598 (trace_save_command): New command.
1599 (get_uploaded_tp): Move here from remote.c.
1600 (find_matching_tracepoint): Ditto.
1601 (merge_uploaded_tracepoints): New function.
1602 (parse_trace_status): Use stop_reason_names.
1603 (_initialize_tracepoint): Define tsave command.
1604 * target.h (target_ops): New fields to_save_trace_data,
1605 to_upload_tracepoints, to_upload_trace_state_variables,
1606 to_get_raw_trace_data, change to_get_trace_status
1607 to take a pointer to a status struct.
1608 (target_save_trace_data): New macro.
1609 (target_upload_tracepoints): New macro.
1610 (target_upload_trace_state_variables): New macro.
1611 (target_get_raw_trace_data): New macro.
1612 * target.c (update_current_target): Add new methods, change
1613 signature of to_get_trace_status.
1614 * remote.c (hex2bin): Make globally visible.
1615 (bin2hex): Ditto.
1616 (remote_download_trace_state_variable): Download name also.
1617 (remote_get_trace_status): Update parameter, use
1618 parse_trace_status.
1619 (remote_save_trace_data): New function.
1620 (remote_upload_tracepoints): New function.
1621 (remote_upload_trace_state_variables): New function.
1622 (remote_get_raw_trace_data): New function.
1623 (remote_start_remote): Use them.
1624 (_initialize_remote_ops): Add operations.
1625 * ax-gdb.c: Include breakpoint.h.
1626 * breakpoint.c (create_tracepoint_from_upload): Use
1627 break_command_really, return tracepoint, warn about unimplemented
1628 parts.
1629 * NEWS: Mention trace file addition.
1630
d904de5b
JK
16312010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1632
1633 Fix compilation warning on gcc-3.4.
1634 * exec.c (print_section_info): Move the `displacement' variable
1635 initialization to its declaration.
1636
64aa9731
JK
16372010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1638
1639 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
1640 comparison.
1641
ca1f5def 16422010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
1643
1644 "info tasks" broken by typedefs in ATCB type definitions.
1645 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
1646 ada_check_typedef before retrieving the length of the type for
1647 regular fields.
1648
12ab9e09
JB
16492010-01-15 Joel Brobecker <brobecker@adacore.com>
1650
1651 Do not use name-based lookup for unconstrained packed arrays.
1652 * ada-lang.c (find_parallel_type_by_descriptive_type):
1653 Limit the fallback to name-based lookups to the case where
1654 the type is a constrained packed array.
1655
c389c3dc
JB
16562010-01-15 Joel Brobecker <brobecker@adacore.com>
1657
1658 Enhance gdb-gdb.py to handle main_type.type_specific.
1659 * gdb-gdb.py: Print the type-specific part of struct main_type.
1660
7991dee7
JK
16612010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1662
1663 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
1664 * configure: Regenerate.
1665 * config.in: Regenerate.
1666 * utils.c: Include sys/resource.h.
1667 (dump_core, can_dump_core): New.
1668 (internal_vproblem): Update the comment. Check can_dump_core while
1669 setting dump_core_p. Replace two abort calls by dump_core calls.
1670
93c26624
JK
16712010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1672 Eli Zaretskii <eliz@gnu.org>
1673
1674 * NEWS: Document the PIE support.
1675
55235ad7
JK
16762010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1677
1678 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
1679 (check_is_pie_binary, _initialize_linux_tdep): Remove.
1680
41752192
JK
16812010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1682
1683 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
1684 Replace exec_entry_point call by bfd_get_start_address.
1685
9f2982ff
JK
16862010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1687
1688 Support Valgrind attachments broken by the PIE support.
1689 * auxv.c: Include gdbcore.h.
1690 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
1691 parameters ops, object and annex. Remove their assertions.
1692 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
1693 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
1694 (memory_xfer_auxv): ... here.
1695 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
1696 memory_xfer_auxv.
1697 * procfs.c (procfs_xfer_partial): Likewise.
1698 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
1699 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
1700 (svr4_solib_create_inferior_hook): Conditionalize the
1701 svr4_relocate_main_executable call.
1702
61f0d762
JK
17032010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1704
1705 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
1706 target_section. Find SECT in current_target_sections, gdb_assert it.
1707 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
1708 New variable abfd.
1709 * symtab.c (lookup_objfile_from_block): Return the binary file instead
1710 of separate debug info file.
1711
51bee8e9
JK
17122010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1713
1714 Support PIEs with no symfile_objfile.
1715 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
1716 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
1717
b8040f19
JK
17182010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1719
1720 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
1721 code part to ...
1722 (svr4_static_exec_displacement): ... a new function.
1723 (svr4_exec_displacement): New function.
1724 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
1725 new_offsets using alloca now. Remove variable old_chain and changed.
1726 Call objfile_relocate unconditionally now.
1727
eb90ce83
DE
17282010-01-14 Doug Evans <dje@google.com>
1729
1730 * gdbtypes.c (arch_flags_type): Fix comment.
1731 * gdbtypes.h (arch_composite_type): Fix comment.
1732
bdfed3bc
TG
17332009-01-14 Tristan Gingold <gingold@adacore.com>
1734
1735 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
1736 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
1737 to symbol_file_add_from_bfd. Add OSO as separate objfile.
1738 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
1739 macho_add_oso_symfile.
1740 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
1741
1596ad23
JB
17422010-01-14 Joel Brobecker <brobecker@adacore.com>
1743
1744 Tru64: Dead threads are never deleted.
1745 * dec-thread.c (dec_thread_ptid_is_alive): New function.
1746 (dec_thread_count_gdb_threads): Fix counter increment.
1747 (dec_thread_add_gdb_thread): Fix *listp increment.
1748 (resync_thread_list): Fix bug in deletion of dead threads that
1749 caused all threads to be deleted, instead of just the dead ones.
1750
be759fcf
PM
17512010-01-13 Phil Muldoon <pmuldoon@redhat.com>
1752
1753 PR python/10705
1754
1755 * python/python-internal.h: Add lazy_string_object_type
1756 definition.
1757 (create_lazy_string_object, gdbpy_initialize_lazy_string)
1758 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
1759 * python/py-value.c (valpy_lazy_string): New function.
1760 (convert_value_from_python): Add lazy string conversion.
1761 * python/py-prettyprint.c (pretty_print_one_value): Check if
1762 return is also a lazy string.
1763 (print_string_repr): Add lazy string printing branch.
1764 (print_children): Likewise.
1765 * python/py-lazy-string.c: New file. Implement lazy strings.
1766 * python/python.c (_initialize_python): Call
1767 gdbpy_initialize_lazy_string.
1768 * varobj.c (value_get_print_value): Add lazy string printing
1769 branch. Account for encoding.
1770 * c-lang.c (c_printstr): Account for new encoding argument. If
1771 encoding is NULL, find encoding suited for type, otherwise use
1772 user encoding.
1773 * language.h (language_defn): Add encoding argument.
1774 (LA_PRINT_STRING): Likewise.
1775 * language.c (unk_lang_printstr): Update to reflect new encoding
1776 argument to language_defn.
1777 * ada-lang.h (ada_printstr): Likewise.
1778 * c-lang.h (c_printstr): Likewise.
1779 * p-lang.h (pascal_printstr);
1780 * f-lang.c (f_printstr): Likewise.
1781 * m2-lang.c (m2_printstr): Likewise.
1782 * objc-lang.c (objc_printstr): Likewise.
1783 * p-lang.c (pascal_printstr): Likewise.
1784 * scm-lang.c (scm_printstr): Likewise.
1785 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
1786 encoding argument.
1787 * ada-valprint.c (ada_printstr): Likewise.
1788 * f-valprint.c (f_val_print): Likewise
1789 * m2-valprint.c (m2_val_print): Likewise.
1790 * p-valprint.c (pascal_val_print): Likewise.
1791 * expprint.c (print_subexp_standard): Likewise.
1792 * valprint.c (val_print_string): Likewise.
1793 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
1794 (SUBDIR_PYTHON_SRCS): Likewise.
1795 (py-lazy-string.o): New rule.
1796
1fe72117 17972010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
1798
1799 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
1800 uninitialized" warning from gcc on local `tree'.
1801
dc146f7c
VP
18022010-01-13 Vladimir Prus <vladimir@codesourcery.com>
1803
1804 Implement core awareness.
1805
1806 * bcache.c (compare_ints): Remove
1807 (print_percentage): Use compare_positive_ints.
1808 * defs.h (compare_positive_ints): Declare.
1809 * linux-nat.h (struct lin_lwp): New field core.
1810 (linux_nat_core_of_thread_1): Declare.
1811 * linux-nat.c (add_lwp): Init the 'core' field.
1812 (linux_nat_wait_1): Record the core.
1813 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
1814 (linux_nat_add_target): Register the above.
1815 * linux-thread-db.c (update_thread_core): New.
1816 (thread_db_find_new_threads): Update core information for
1817 every thread.
1818 * remote.c (struct private_thread_info): New.
1819 (free_private_thread_info, demand_private_info): New.
1820 (PACKET_qXfer_threads, use_osdata_threads): New.
1821 (struct thread_item, threads_parsing_context
1822 (start_thread, end_thread, thread_attributes)
1823 (thread_children, threads_children, threads_elements): New.
1824 (remote_threads_info): Try qXfer:threads before anything
1825 else.
1826 (remote_protocol_packets): Register qXfer:threads.
1827 (remote_open_1): Init use_osdata_threads.
1828 (struct stop_reply): New field 'core'.
1829 (remote_parse_stop_reply): Parse core number.
1830 (process_stop_reply): Record core number.
1831 (remote_xfer_partial): Handle qXfer:threads.
1832 (remote_core_of_thread): New.
1833 (init_remote_ops): Register remote_core_of_thread.
1834 (_initialize_remote): Register qXfer:read.
1835 * target.c (target_core_of_thread): New
1836 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
1837 (struct target_ops): New field to_core_of_threads.
1838 (target_core_of_thread): Declare.
1839 * gdbthread.h (struct thread_info): New field private_dtor.
1840 * thread.c (print_thread_info): Report the core.
1841 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
1842 * utils.c (compare_positive_ints): New.
1843 * features/threads.dtd: New.
1844 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
1845 * mi/mi-main.c (struct collect_cores_data, collect_cores)
1846 (do_nothing, free_vector_of_osdata_items)
1847 (splay_tree_int_comparator, free_splay_tree): New.
1848 (print_one_inferior_data): Implemented printing of selected
1849 inferiors. Collect and print cores.
1850 (output_cores): New.
1851 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
1852 thread groups together with --available.
1853
d30c5336
JK
18542010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1855
1856 * configure: Regenerate (for _STRUCTURED_PROC).
1857
02893727
JB
18582010-01-12 Joel Brobecker <brobecker@adacore.com>
1859
1860 Delete dead function.
1861 * ada-lang.c (extract_string): Delete. No longer used.
1862
46ed2d6f
JB
18632010-01-12 Joel Brobecker <brobecker@adacore.com>
1864
1865 Fix -Wunused warning in dec-thread.c.
1866 * dec-thread.c (dec_thread_count_gdb_threads)
1867 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
1868
606b8d1a
JB
18692010-01-12 Joel Brobecker <brobecker@adacore.com>
1870
1871 * ada-valprint.c (ada_print_floating): Remove trailing space.
1872
b4ba55a1
JB
18732010-01-12 Joel Brobecker <brobecker@adacore.com>
1874
1875 Add support for DW_AT_GNAT_descriptive_type.
1876 * gdbtypes.h (enum type_specific_kind): New enum.
1877 (struct main_type) [type_specific_field]: New component.
1878 [type_specific]: Add new component "gnat_stuff".
1879 (struct gnat_aux_type): New type.
1880 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
1881 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
1882 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
1883 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
1884 (TYPE_SPECIFIC_FIELD): New macros.
1885 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
1886 type does not hold any cplus-specific data.
1887 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
1888 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
1889 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
1890 cplus-specific data.
1891 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
1892 Set new component TYPE_SPECIFIC_FIELD (type).
1893 (gnat_aux_default): New constant.
1894 (allocate_gnat_aux_type): New function.
1895 (init_type): Add initialization the type-specific stuff for
1896 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
1897 (print_gnat_stuff): New function.
1898 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
1899 specific data. Adjust code that prints the contents of the
1900 type-specific union using the TYPE_SPECIFIC_FIELD value.
1901 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
1902 the type cplus stuff for Ada types.
1903 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
1904 Error out if these routines are called with an Ada type.
1905 (read_structure_type, read_array_type, read_subrange_type):
1906 Add call to set_descriptive_type.
1907 (set_die_type): Initialize the gnat-specific data if necessary.
1908 (need_gnat_info, die_descriptive_type, set_descriptive_type):
1909 New functions.
1910 * ada-lang.c (decode_constrained_packed_array_type): Use
1911 decode_constrained_packed_array_type instead of doing a standard
1912 lookup to locate a parallel type.
1913 (find_parallel_type_by_descriptive_type): New function.
1914 (ada_find_parallel_type_with_name): New function.
1915 (ada_find_parallel_type): Reimplement using
1916 ada_find_parallel_type_with_name.
1917 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
1918 to check if type has a cplus stuff.
1919 * linespec.c (total_number_of_methods): Likewise.
1920 * mdebugread.c (new_type): Likewise.
1921
b0f02ee9
JK
19222010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1923
1924 * NEWS: Document the 0b binary number prefix parsing.
1925
b260e109
JK
19262010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1927
1928 * objfiles.c (objfile_relocate1): Change the return type to int.
1929 Describe the new return value. Return non-zero if data changed.
1930 (objfile_relocate): New variable changed. Set it. Call
1931 breakpoint_re_set depending on CHANGED.
1932
b5cfddf5
JK
19332010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1934
1935 Implement binary numbers parsing.
1936 * c-exp.y (parse_number): New case 'b' and 'B'.
1937
e0ae4240
JK
19382010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1939 Tristan Gingold <gingold@adacore.com>
1940
1941 * solib.c (info_sharedlibrary_command): Replace
1942 objfile_has_partial_symbols and objfile_has_full_symbols calls by
1943 objfile_has_symbols.
1944
6e0e5977
JB
19452010-01-10 Joel Brobecker <brobecker@adacore.com>
1946
1947 * NEWS: Document the improvements made to the mips-irix port.
1948
7348c5e1
JB
19492010-01-09 Joel Brobecker <brobecker@adacore.com>
1950
1951 Fix the documentation of valprint.c:value_print.
1952 * valprint.c (value_print): Update the function description to
1953 mention that the syntax of the output follows the current_language,
1954 not necessarily C.
1955
567995e1
JK
19562010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1957
1958 Fix displacement of separate debug info files.
1959 * objfiles.c (objfile_relocate): Rename to ...
1960 (objfile_relocate1): ... here and make it static. Extend the comment.
1961 (objfile_relocate): New function.
1962 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
1963 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
1964 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
1965 allocated using alloca.
1966 * symfile.c (copy_section_addr_info): Remove.
1967 (build_section_addr_info_from_objfile): Make it global. New variables
1968 addr_bit and mask, use them.
1969 * symfile.h (build_section_addr_info_from_objfile): New prototype.
1970 (copy_section_addr_info): Remove.
1971
6d8eadbd
JB
19722010-01-09 Joel Brobecker <brobecker@adacore.com>
1973
1974 Signal unwinder for mips-irix N32.
1975 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
1976 tramp-frame.h.
1977 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
1978 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
1979 (SIGCONTEXT_LO_OFF): New macros.
1980 (mips_irix_n32_tramp_frame_init): New function.
1981 (mips_irix_n32_tramp_frame): New static constant.
1982 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
1983
27087a3d
JB
19842010-01-09 Joel Brobecker <brobecker@adacore.com>
1985
1986 Breakpoint in shared library does not work on mips-irix.
1987 * procfs.c: #include "observer.h".
1988 (procfs_inferior_created): New function, moving here the code
1989 which unsets the syssgi syscall-exit notifications.
1990 (procfs_create_inferior): Remove the code which unsets the syssgi
1991 syscall-exit notifications. It is too early to do this here.
1992 (_initialize_procfs): Attach the procfs_inferior_created observer.
1993
f08877ba
JB
19942010-01-09 Joel Brobecker <brobecker@adacore.com>
1995
1996 Wrong return convention for arrays (mips-irix).
1997 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
1998 128 bits or smaller are returned the same way as structs
1999 and unions of the the same size.
2000
e4b97d48
JB
20012010-01-09 Joel Brobecker <brobecker@adacore.com>
2002
2003 Cannot set the PC on mips-irix.
2004 * irix5-nat.c (fill_gregset): Check regno against the raw PC
2005 register number, no the cooked one.
2006
11377e68
JB
20072010-01-09 Joel Brobecker <brobecker@adacore.com>
2008
2009 Error while loading core file on mips-irix.
2010 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
2011 if debugging from a core file.
2012
b2391021
JB
20132010-01-09 Joel Brobecker <brobecker@adacore.com>
2014
2015 GDB hangs when attaching to process on mips-irix.
2016 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
2017 attaching to a process.
2018
f2ec0ecf
JB
20192010-01-09 Joel Brobecker <brobecker@adacore.com>
2020
2021 Use the correct breakpoint instruction on mips-irix.
2022 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
2023 containing the correct breakpoint instruction to use on mips-irix.
2024 Use it when the osabi is GDB_OSABI_IRIX.
2025
3c95f01c
JB
20262010-01-09 Joel Brobecker <brobecker@adacore.com>
2027
2028 -Wunused warning in procfs.c (mips-irix only).
2029 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
2030 throughout instead of using praddset and prdelset respectively.
2031
4b7703ad
JB
20322010-01-09 Joel Brobecker <brobecker@adacore.com>
2033
2034 GDB crash while stepping into function.
2035 * infrun.c (handle_inferior_event): Refetch the current frame
2036 after handling what.main_action, in case that pointer became
2037 dangling.
2038
12c89474
JB
20392010-01-09 Joel Brobecker <brobecker@adacore.com>
2040
2041 Fix build failure of solaris-hosted cross debuggers.
2042 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
2043
1a3fd262 20442010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
2045
2046 Fix build failure on sparc-solaris.
2047 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
2048
75242ef4
JK
20492010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2050
2051 Move some symfile code into subroutines.
2052 * symfile.h (relative_addr_info_to_section_offsets)
2053 (addr_info_make_relative): New prototypes.
2054 * symfile.c (default_symfile_offsets): Move a part to ...
2055 (relative_addr_info_to_section_offsets): ... this new function.
2056 (default_symfile_offsets): Call it.
2057 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
2058 this part to ...
2059 (addr_info_make_relative): ... this new function.
2060
268a4a75
JK
20612010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2062
2063 Add from_tty to solib_create_inferior_hook.
2064 * infcmd.c (post_create_inferior): Move solib_add after
2065 solib_create_inferior_hook. Pass from_tty to
2066 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
2067 0 from_tty and comment why.
2068 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
2069 * linux-nat.c (linux_child_follow_fork): Likewise.
2070 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
2071 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
2072 from_tty.
2073 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
2074 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2075 * solib-null.c (null_solib_create_inferior_hook): Likewise.
2076 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2077 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
2078 * solib-som.c (som_solib_create_inferior_hook): Likewise.
2079 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
2080 Pass it to svr4_so_ops.solib_create_inferior_hook.
2081 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
2082 from_tty.
2083 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
2084 solib_add.
2085 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
2086 enable_break.
2087 * solib-target.c (solib_target_solib_create_inferior_hook): New
2088 parameter from_tty.
2089 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
2090 it to ops->solib_create_inferior_hook.
2091 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
2092 Move solib_add after solib_create_inferior_hook, call it now with
2093 from_tty as 0. New comment there.
2094 * solib.h (solib_create_inferior_hook): New parameter from_tty.
2095 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
2096 Likewise.
2097
cf00dfa7
VP
20982010-01-08 Vladimir Prus <vladimir@codesourcery.com>
2099
2100 Fix multiexec race.
2101 * infrun.c (handle_inferior_event): Use get_thread_regcache
2102 with events ptid, not get_current_regcache.
2103
f91e5ac3
JB
21042009-01-08 Joel Brobecker <brobecker@adacore.com>
2105
2106 GDB crash with empty executable name (MinGW).
2107 * source.c (openp): Add assert that parameter string is not NULL.
2108 if parameter string is an empty string, then return with a failure
2109 immediately.
2110
92b9ce5b
JB
21112009-01-08 Joel Brobecker <brobecker@adacore.com>
2112
2113 Get rid of support for VAX Floats.
2114 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
2115 (ada_vax_float_print_function): Delete.
2116 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
2117 (ada_vax_float_print_function): Delete.
2118 * ada-typeprint.c (print_vax_floating_point_type): Delete.
2119 (ada_print_type): Remove support for VAX floats.
2120 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
2121
268a4a75 21222010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
2123
2124 * stabsread.c (read_args): Handle zero arguments.
2125
f0f20949
JB
21262009-01-08 Joel Brobecker <brobecker@adacore.com>
2127
2128 Cannot find in-tree libiconv.a after reconfigure.
2129 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
2130 that we can use, then cache the path to this archive.
2131 * configure: Regenerate.
2132
6b6218c5
SS
21332010-01-07 Stan Shebs <stan@codesourcery.com>
2134
35b1e5cc
SS
2135 Make tracepoint operations go through target vector.
2136 * target.h (enum trace_find_type): New enum.
2137 (struct target_ops): New fields to_trace_init,
2138 to_download_tracepoint, to_download_trace_state_variable,
2139 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
2140 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
2141 to_set_disconnected_tracing.
2142 (target_trace_init): New macro.
2143 (target_download_tracepoint): New macro.
2144 (target_download_trace_state_variable): New macro.
2145 (target_trace_start): New macro.
2146 (target_trace_set_readonly_regions): New macro.
2147 (target_get_trace_status): New macro.
2148 (target_trace_stop): New macro.
2149 (target_trace_find): New macro.
2150 (target_get_trace_state_variable_value): New macro.
2151 (target_set_disconnected_tracing): New macro.
2152 * target.c (update_current_target): Inherit and set defaults for
2153 tracepoint operations.
2154 * tracepoint.c (default_collect): Make globally visible.
2155 (target_is_remote): Remove, along with all calls.
2156 (tvariables_info): Call target_get_trace_state_variable_value.
2157 (remote_set_transparent_ranges): Remove.
2158 (trace_start_command): Call target_trace_init,
2159 target_download_tracepoint, etc.
2160 (download_tracepoint): Remove.
2161 (trace_stop_command): Simplify.
2162 (stop_tracing): Call target_trace_stop.
2163 (get_trace_status): Call target_get_trace_status.
2164 (trace_status_command): Add case for targets that cannot trace.
2165 (finish_tfind_command): Change to take numerical arguments, call
2166 target_trace_find.
2167 (trace_find_command): Update call to finish_tfind_command.
2168 (trace_find_pc_command): Ditto.
2169 (trace_find_tracepoint_command): Ditto.
2170 (trace_find_line_command): Ditto.
2171 (trace_find_range_command): Ditto.
2172 (trace_find_outside_command): Ditto.
2173 (set_disconnected_tracing_value): Call
2174 target_set_disconnected_tracing.
2175 * remote.c: Add protocol encoding bits from tracepoint.c.
2176 (trace_error): Move from tracepoint.c.
2177 (remote_get_noisy_reply): Ditto.
2178 (free_actions_list_cleanup_wrapper): Ditto.
2179 (free_actions_list): Ditto.
2180 (remote_trace_init): New function.
2181 (remote_download_tracepoint): New function.
2182 (remote_download_trace_state_variable): New function.
2183 (remote_trace_set_readonly_regions): New function.
2184 (remote_trace_start): New function.
2185 (remote_get_trace_status): New function.
2186 (remote_trace_stop): New function.
2187 (remote_trace_find): New function.
2188 (remote_download_trace_state_variable): New function.
2189 (remote_set_disconnected_tracing): New function.
2190 (init_remote_ops): Add tracepoint operations.
2191
6b6218c5
SS
2192 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
2193
089b4803
TG
21942010-01-07 Tristan Gingold <gingold@adacore.com>
2195
2196 * symfile.c (build_section_addr_info_from_objfile): New function.
2197 (symbol_file_add_separate): Don't use offsets from objfile but
2198 built an addr info.
2199
d5551862
SS
22002010-01-06 Stan Shebs <stan@codesourcery.com>
2201
2202 Support disconnected tracing.
2203 * infcmd.c (detach_command): Ask whether to stop tracing.
2204 * cli/cli-cmds.c (quit_command): Ditto.
2205 * breakpoint.h (struct breakpoint): New field number_on_target.
2206 * breakpoint.c (create_tracepoint_from_upload): New function.
2207 (get_tracepoint_by_number_on_target): New function.
2208 * remote.c (struct remote): New field disconnected_tracing.
2209 (remote_disconnected_tracing_feature): New function.
2210 (remote_protocol_features): Add DisconnectedTracing.
2211 (struct uploaded_tp): New struct.
2212 (uploaded_tps): New global.
2213 (get_uploaded_tp): New function.
2214 (find_matching_tracepoint): New function.
2215 (remote_get_tracing_state): New function.
2216 (remote_start_remote): Call it.
2217 * tracepoint.c (disconnected_tracing): New global.
2218 (trace_start_command): Initialize number_on_target.
2219 (stop_tracing): New function, split out from...
2220 (trace_stop_command): Call stop_tracing.
2221 (get_trace_status): New function, split out from...
2222 (trace_status_command): Call get_trace_status, add info on
2223 disconnection behavior.
2224 (disconnect_or_stop_tracing): New function.
2225 (finish_tfind_command): Translate from number on target.
2226 (trace_find_tracepoint_command): Translate to number on target.
2227 (send_disconnected_tracing_value): New function.
2228 (set_disconnected_tracing): New function.
2229 (_initialize_tracepoint): Add disconnected-tracing variable.
2230 * NEWS: Mention disconnected tracing.
2231
15d123c9
TG
22322010-01-06 Tristan Gingold <gingold@adacore.com>
2233
2234 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
2235 parameter to main_objfile. Iterate on all separate debug objfiles.
2236 * symfile.h (symbol_file_add_separate)
2237 (find_separate_debug_file_by_debuglink): Remove parameter names.
2238 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
2239 (reread_symbols): Use free_objfile_separate_debug.
2240 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
2241 Adjust comment.
2242 (objfile_separate_debug_iterate, add_separate_debug_objfile)
2243 (free_objfile_separate_debug): New prototypes.
2244 * objfiles.c (objfile_separate_debug_iterate): New function.
2245 (add_separate_debug_objfile, free_objfile_separate_debug): New
2246 functions.
2247 (free_objfile): Use free_objfile_separate_debug. Adjust for
2248 multiple separate debug objfile.
2249 (objfile_has_symbols): Adjust comment. Iterate on all separate
2250 debug objfiles.
2251 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
2252 debug objfile.
2253 (lookup_minimal_symbol_text): Ditto.
2254 (lookup_minimal_symbol_by_pc_name): Ditto.
2255 (lookup_minimal_symbol_solib_trampoline): Ditto.
2256 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
2257 debug objfiles.
2258
7a697b8d
SS
22592010-01-05 Stan Shebs <stan@codesourcery.com>
2260
2261 Add fast tracepoints.
2262 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
2263 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
2264 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
2265 * breakpoint.c (tracepoint_type): New function.
2266 (ALL_TRACEPOINTS): Use it.
2267 (should_be_inserted): Ditto.
2268 (bpstat_check_location): Ditto.
2269 (print_one_breakpoint_location): Ditto.
2270 (user_settable_breakpoint): Ditto.
2271 (set_breakpoint_location_function): Ditto.
2272 (disable_breakpoints_in_shlibs): Ditto.
2273 (delete_trace_command): Ditto.
2274 (print_it_typical): Add bp_fast_tracepoint case.
2275 (bpstat_what): Ditto.
2276 (print_one_breakpoint_location): Ditto.
2277 (allocate_bp_location): Ditto.
2278 (mention): Ditto.
2279 (breakpoint_re_set_one): Ditto.
2280 (disable_command): Ditto.
2281 (enable_command): Ditto.
2282 (check_fast_tracepoint_sals): New function.
2283 (break_command_really): Call it.
2284 (ftrace_command): New function.
2285 (_initialize_breakpoint): Add ftrace command.
2286 * gdbarch.sh (fast_tracepoint_valid_at): New.
2287 * gdbarch.h, gdbarch.c: Regenerate.
2288 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
2289 (i386_gdbarch_init): Use it.
2290 * remote.c (struct remote_state): New field fast_tracepoints.
2291 (PACKET_FastTracepoints): New packet config type.
2292 (remote_fast_tracepoint_feature): New function.
2293 (remote_protocol_features): Add FastTracepoints.
2294 (remote_supports_fast_tracepoints): New function.
2295 (_initialize_remote): Add FastTracepoints.
2296 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
2297 * NEWS: Mention fast tracepoints.
2298
737a160e
JB
22992010-01-06 Joel Brobecker <brobecker@adacore.com>
2300
2301 * gdb-gdb.py: New file.
2302
ce6cca6d
MS
23032010-01-05 Michael Snyder <msnyder@vmware.com>
2304
2305 * infrun.c (handle_inferior_event): Fix typo in comment.
2306
0d15807d
JK
23072010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2308
2309 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
2310
7803799a
UW
23112010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2312
2313 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
2314 and s390x-linux64.
2315 (s390-linux32-expedite): Define.
2316 (s390-linux64-expedite): Define.
2317 (s390x-linux64-expedite): Define.
2318 * features/s390-acr.xml: New file.
2319 * features/s390-fpr.xml: New file.
2320 * features/s390-core32.xml: New file.
2321 * features/s390-core64.xml: New file.
2322 * features/s390x-core64.xml: New file.
2323 * features/s390-linux32.xml: New file.
2324 * features/s390-linux64.xml: New file.
2325 * features/s390x-linux64.xml: New file.
2326 * features/s390-linux32.c: New generated file.
2327 * features/s390-linux64.c: New generated file.
2328 * features/s390x-linux64.c: New generated file.
2329
2330 * regformats/s390-linux32.dat: New generated file.
2331 * regformats/s390-linux64.dat: New generated file.
2332 * regformats/s390x-linux64.dat: New generated file.
2333 * regformats/reg-s390.dat: Remove.
2334 * regformats/reg-s390x.dat: Remove.
2335
2336 * s390-nat.c: Include "auxv.h" and <elf.h>.
2337 (HWCAP_S390_HIGH_GPRS): Define if undefined.
2338 (s390_target_wordsize): New function.
2339 (s390_auxv_parse): Likewise.
2340 (s390_get_hwcap): Likewise.
2341 (s390_read_description): Likewise.
2342 (_initialize_s390_nat): Install s390_auxv_parse and
2343 s390_read_description.
2344
2345 * s390-tdep.c: Include "features/s390-linux32.c",
2346 "features/s390-linux64.c", and "features/s390x-linux64.c".
2347 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
2348 (s390_register_call_saved): New function.
2349 (s390_register_name): Remove.
2350 (s390_register_type): Remove.
2351 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
2352 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
2353 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
2354 (s390_pseudo_register_name): New function.
2355 (s390_pseudo_register_type): New function.
2356 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
2357 Handle full GPR pesudos and varying pseudo register numbers.
2358 (s390_pseudo_register_write): Likewise
2359 (s390x_pseudo_register_read): Remove.
2360 (s390x_pseudo_register_write): Likewise.
2361 (s390_register_group): Remove.
2362 (s390_pseudo_register_group): New function.
2363 (s390_regmap_gregset): Add GPR upper halves.
2364 (s390x_regmap_gregset): Likewise.
2365 (s390_regmap_fpregset): Likewise.
2366 (s390_regmap_upper): New global variable.
2367 (s390_upper_regset): New global variable.
2368 (s390_upper_regset_sections): New global variable.
2369 (s390_regset_from_core_section): Handle GPR upper halves.
2370 (s390_core_read_description): New function.
2371 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
2372 register information. Handle varying pseudo register numbers.
2373 (s390_backchain_frame_unwind_cache): Likewise.
2374 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
2375 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
2376 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
2377 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
2378 Handle varying pseudo register numbers.
2379 (s390_unwind_pc): Handle varying pseudo register numbers.
2380 (s390_dwarf2_prev_register): New function.
2381 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
2382 register information. Handle varying pseudo register numbers.
2383 Install s390_dwarf2_prev_register to unwind full GPRs.
2384 (s390_gdbarch_init): Handle target descriptions. Assign varying
2385 pseudo register numbers. Install s390_adjust_frame_regnum.
2386 (_initialize_s390_tdep): Initialize target descriptions.
2387
2388 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
2389 (S390_NUM_REGS): Redefine to include upper half registers.
2390 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
2391 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
2392 (tdesc_s390_linux32): Add declaration.
2393 (tdesc_s390_linux64): Likewise.
2394 (tdesc_s390x_linux64): Likewise.
2395
1b1818e4
UW
23962010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2397
2398 * regset.h (struct core_regset_section): Add HUMAN_NAME.
2399 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
2400 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
2401 (ppc_linux_vmx_regset_sections): Likewise.
2402 (ppc_linux_fp_regset_sections): Likewise.
2403
2404 * corelow.c (get_core_register_section): Constify arguments.
2405 (get_core_registers): Use gdbarch_core_regset_sections instead
2406 of hard-coded platform-specific register section names.
2407
dcbf108f
UW
24082010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2409
2410 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 2411 a register, assume the least-significant part is used.
dcbf108f
UW
2412 (write_pieced_value): Likewise.
2413
704e9165
UW
24142010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2415
2416 * printcmd.c: Include "arch-utils.h".
2417 (do_one_display): Re-parse expression if current architecture changed.
2418
c54eabfa
JK
24192010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2420 Joel Brobecker <brobecker@adacore.com>
2421
2422 * gdbtypes.c (check_typedef): New comment on type length.
2423 * value.c (allocate_value_lazy): Remove the unused atype variable. New
2424 comment on type length.
2425 (value_primitive_field): Keep the original TYPE value, new comment.
2426
50cb2941
JK
24272010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2428
2429 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
2430 p_start. Change != comparisons to > and < comparisons.
2431
be66db07
JK
24322010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2433
2434 * cli/cli-script.c (process_next_line): Check P2 overrun.
2435
abd775ce
JB
24362009-01-01 Joel Brobecker <brobecker@adacore.com>
2437
2438 Update the copyright hearder to add year 2010 for most GDB files.
2439
6479260d
JB
24402009-01-01 Joel Brobecker <brobecker@adacore.com>
2441
2442 Fix build failure in inf-ptrace.c.
2443 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
2444
4a70f654
JB
24452010-01-01 Joel Brobecker <brobecker@adacore.com>
2446
2447 * top.c (print_gdb_version): Update copyright year.
2448
b9ee2233
JB
24492010-01-01 Joel Brobecker <brobecker@adacore.com>
2450
2451 Fix break *FUN'address thread NUM.
2452 * ada-lex.l (task): Expand rule to also match the thread keyword.
2453
70575d34
JB
24542010-01-01 Joel Brobecker <brobecker@adacore.com>
2455
2456 Fix break *FUN'address task NUM.
2457 * ada-lex.l (task): New rule.
2458 * ada-lang.c (valid_task_id): Make sure the Ada task list has
2459 been built before using it.
2460
e1e4d4a4 2461For older changes see ChangeLog-2009.
c906108c
SS
2462\f
2463Local Variables:
2464mode: change-log
2465left-margin: 8
2466fill-column: 74
2467version-control: never
57da7796 2468coding: utf-8
c906108c 2469End:
This page took 1.409685 seconds and 4 git commands to generate.