gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d63d0675
JK
12010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
4 EXP_STRING_REPARSE to EXP_STRING.
5 (watch_command_1): Set also EXP_STRING_REPARSE.
6 (delete_breakpoint): Free also EXP_STRING_REPARSE.
7 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
8 Update comment for exp_string.
9
06a64a0b
TT
102010-08-16 Tom Tromey <tromey@redhat.com>
11
12 * value.c (release_value): Clear 'next' pointer.
13 * breakpoint.c (watch_command_1): Add 'just_location' argument.
14 (watch_command_wrapper): Update.
15 (watch_maybe_just_location): New function.
16 (watch_command): Update.
17 (rwatch_command_wrapper): Update.
18 (rwatch_command): Update.
19 (awatch_command_wrapper): Update.
20 (awatch_command): Update.
21 (check_for_argument): New function.
22 (_initialize_breakpoint): Update help text.
23
f96b8fa0
UW
242010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
25
26 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
27 typedef'ed function types correctly.
28
4eb54052
TT
292010-08-13 Tom Tromey <tromey@redhat.com>
30
31 * python/python-internal.h (gdbpy_get_hook_function): Don't
32 declare.
33
44be957e
JK
342010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
35
36 * cli-logging.c (logging_overwrite, logging_redirect): Make them
37 static.
38
76d8b686
KW
392010-08-13 Ken Werner <ken.werner@de.ibm.com>
40
41 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
42 the format strings to be compatible with Python 2.4.
43
8dedea02
VP
442010-08-13 Vladimir Prus <vladimir@codesourcery.com>
45
46 Easier and more stubborn MI memory read commands.
47
48 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
49 and data-write-memory-bytes.
50 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
51 (mi_cmd_data_write_memory_bytes): New.
52 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
53 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
54 New.
55 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
56 * target.c (target_read_until_error): Remove.
57 (read_whatever_is_readable, free_memory_read_result_vector)
58 (read_memory_robust): New.
59 * target.h (target_read_until_error): Remove.
60 (struct memory_read_result, free_memory_read_result_vector)
61 (read_memory_robust): New.
62
1d9ec526
HZ
632010-08-13 Hui Zhu <teawater@gmail.com>
64
65 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
66 (read_comp_unit): Initialize back_to.
67
98bfdba5
PA
682010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
69 Pedro Alves <pedro@codesourcery.com>
70
71 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
72 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
73 (struct partial_die_info) <has_template_arguments>: New field.
74 <num_attrs>: Change type to unsigned char.
75 <building_fullname>: New field.
76 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
77 allocate a CU if we don't have one already. Add a cleanup for the
78 CU.
79 (partial_die_full_name): Handle template arguments not in
80 DW_AT_name.
81 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
82 (load_full_comp_unit): Only allocate a CU if we don't have one
83 already.
84 (do_ui_file_peek_last): New.
85 (dwarf2_compute_name): Handle template parameters not in
86 DW_AT_name.
87 (read_comp_unit): Read and free abbrevs if not read yet.
88 (load_partial_dies): Handle template arguments not in DW_AT_name.
89 (find_partial_die): If we have a CU, but no a partial dies yet,
90 also read in the CU.
91 (dwarf2_const_value_attr): New, abstracted out from
92 dwarf2_const_value.
93 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
94 dwarf2_const_value_attr.
95 (determine_prefix): Detect and break loops created by RCVT's debug
96 info.
97 (maybe_queue_comp_unit): Bail out early if reading partial
98 symbols.
99 (follow_die_offset): Load full CU if we have no dies.
100 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
101 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
102
ca5c20b6
PM
1032010-08-11 Tom Tromey <tromey@redhat.com>
104 Phil Muldoon <pmuldoon@redhat.com>
105
106 * python/python.c (gdbpy_run_events): New function.
107 (gdbpy_post_event): Likewise.
108 (gdbpy_initialize_events): Likewise.
109 (_initialize_python): Call gdbpy_initialize_events.
110
7346b668
KW
1112010-08-11 Ken Werner <ken.werner@de.ibm.com>
112
113 * gdb/valarith.c (vector_binop): New function.
114 (scalar_binop): Likewise.
115 (value_binop): Call scalar_binop or vector_binop depending on the types.
116 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
117 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
118 to pointers.
119 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
120
62183e15
TT
1212010-08-11 Brad Roberts <braddr@puremagic.com>
122
123 * d-lang.c (extract_identifiers): Handle multiple digits.
124
39d7b0e2
JK
1252010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
126
127 Code cleanup.
128 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
129 Rename to dummy_frame_unwind.
130 (dummy_frame_unwind): Remove.
131 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
132 * frame-unwind.c (frame_unwind_init): Use address of
133 dummy_frame_unwind and inline_frame_unwind.
134 * frame.c (create_sentinel_frame): Use address of
135 sentinel_frame_unwind.
136 * inline-frame.c (inline_frame_unwinder): Rename to
137 inline_frame_unwind.
138 (inline_frame_unwind): Remove.
139 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
140 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
141 sentinel_frame_unwind.
142 (sentinel_frame_unwind): Remove.
143 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
144 struct.
145
9f9a8002
JK
1462010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
147
148 Code cleanup.
149 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
150 and returned value. New comment from frame-unwind.h.
151 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
152 Extend the comment.
153 * frame.c (get_frame_id, frame_unwind_register_value)
154 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
155 (get_frame_type, frame_unwind_arch): Do not use the return value of
156 frame_unwind_find_by_frame.
157
cb2e07a6
PM
1582010-08-11 Phil Muldoon <pmuldoon@redhat.com>
159 Thiago Jung Bauermann <bauerman@br.ibm.com>
160 Tom Tromey <tromey@redhat.com>
161
162 * python/python.c (gdbpy_solib_address): New function.
163 (gdbpy_decode_line): Likewise.
164
c29c521f
TT
1652010-08-10 Tom Tromey <tromey@redhat.com>
166
167 Revert gdb-add-index addition:
168 * Makefile.in (install-only): Don't install gdb-add-index.
169 * gdb-add-index.sh: Remove.
170
0c012db1
KB
1712010-08-09 Kevin Buettner <kevinb@redhat.com>
172
173 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
174 `target_has_execution' check with `to_has_memory' check.
175 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
176 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
177 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
178
db04efe6
KB
1792010-08-09 Kevin Buettner <kevinb@redhat.com>
180
181 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
182 (resume_siggnal, resume_step): Move these static globals...
183 (struct sim_inferior_data): ...into this new struct.
184 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
185 New static globals.
186 (gdb_callback, callbacks_initialized): Move these globals to
187 a point earlier in the file.
188 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
189 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
190 (gdbsim_close_inferior, gdbsim_resume_inferior)
191 (gdbsim_stop_inferior): New functions.
192 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
193 New constants.
194 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
195 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
196 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
197 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
198 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
199 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
200 new local variable `sim_data' in each of these functions. Use
201 `sim_data' to reference former globals `program_loaded',
202 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
203 `resume_step'.
204 (gdbsim_open): Remove local variable `argv'. Put results of call
205 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
206 make a cleanup for it. Free it though when a sim instance cannot
207 be obtained.
208 (gdbsim_close): Free sim_argv and null it out as appropriate.
209 Close sim instances in all inferiors.
210 (gdbsim_cntrl_c): Stop all inferiors.
211 (gdbsim_wait):
212 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
213
e37fd15a
SW
2142010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
215
216 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
217 function after symbol construction is complete.
218 Do the same for template symbol addition to template_symbols list.
219
45c58896
SW
2202010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
221
222 * symtab.c (symbol_get_demangled_name): Remove assertion and
223 return NULL when language_specific.cplus_specific is not initialized.
224 * stabsread.c (define_symbol): Set the name before calling
225 cp_scan_for_anonymous_namespaces.
226
33e5013e
SW
2272010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
228
229 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
230 SYMBOL_SET_LANGUAGE.
231 (symbol_init_language_specific): Renamed to symbol_set_language.
232 * symtab.c (symbol_init_language_specific): Removed redundant check
233 for language_cplus.
234 Renamed to symbol_set_language.
235 * stabsread.c (define_symbol): Updated.
236 (read_enum_type): Updated
237 * psymtab.c (add_psymbol_to_bcache): Updated.
238 * minsyms.c (install_minimal_symbols): Updated.
239 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
240 SYMBOL_LANGUAGE to set the language.
241 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
242 * mdebugread.c (new_symbol): Ditto.
243 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
244 * dwarf2read.c (new_symbol_full): Ditto.
245 * jv-lang.c (add_class_symbol): Ditto.
246
5da1313b
JK
2472010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
248
249 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
250 (make_cleanup_restore_page_info)
251 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
252 * gdbcmd.h (execute_command_to_string): New declaration.
253 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
254 (make_cleanup_restore_ui_file): Move to utils.c
255 (execute_gdb_command) <to_string>: Move ...
256 * top.c (execute_command_to_string): ... here. Call
257 set_batch_flag_and_make_cleanup_restore_page_info.
258 * utils.c (make_cleanup_restore_integer): New source file blank line.
259 (make_cleanup_restore_uinteger): New.
260 (struct restore_ui_file_closure, do_restore_ui_file)
261 (make_cleanup_restore_ui_file): Move here from python/python.c.
262 (init_page_info) <batch_flag>
263 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
264 (set_batch_flag_and_make_cleanup_restore_page_info): New.
265
c820c52a
PA
2662010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
267
268 * thread.c (add_thread_silent): Use null_ptid instead of
269 minus_one_ptid while getting rid of stale inferior_ptid.
270
8da614df
CV
2712010-08-06 Corinna Vinschen <vinschen@redhat.com>
272
273 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
274 Throughout, call read_encoded_value with ptr_size rather than addr_size.
275 (decode_frame_entry_1): Remove redundant setting of
276 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
277 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
278 on examined frame section. Add comment to explain why.
279 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
280 comment to explain usage.
281 * gdbarch.c: Regenerate.
282 * gdbarch.h: Regenerate.
283
284 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
285
e4195b40
JK
2862010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
287
288 Code cleanup.
289 * varobj.c (varobj_create): Move variables fi, old_fi and block to
290 a more inner block.
291
a3217aa0
PA
2922010-08-05 Pedro Alves <pedro@codesourcery.com>
293
294 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
295 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
296 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
297 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
298 linux-tdep.o to gdb_target_obs.
299
e2b4a699
MK
3002010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
301
302 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
303 argument.
304
50e8a0d5
HZ
3052010-08-05 Hui Zhu <teawater@gmail.com>
306
307 * mips-linux-tdep.c(regset.h): New include.
308 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
309 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
310 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
311 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
312 mips_linux_regset_from_core_section): New functions.
313 (fetch_core_registers, regset_core_fns): Deleted.
314 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
315 Deleted regset_core_fns.
316 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
317 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
318 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
319 and fpregset64.
320
70728992
PA
3212010-08-04 Pedro Alves <pedro@codesourcery.com>
322
323 * s390-tdep.c: Include linux-tdep.h.
324 (s390_gdbarch_init): Call linux_init_abi.
325
a5ee0f0c
PA
3262010-08-04 Pedro Alves <pedro@codesourcery.com>
327
328 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
329 instead of printing "Thread" here.
330 * linux-tdep.c: Include inferior.h.
331 (linux_core_pid_to_str): New.
332 (linux_init_abi): New.
333 * linux-tdep.h (linux_init_abi): Declare.
334 * alpha-linux-tdep.c: Include linux-tdep.h.
335 (alpha_linux_init_abi): Call linux_init_abi.
336 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
337 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
338 * frv-linux-tdep.c: Include linux-tdep.h
339 (frv_linux_init_abi): Call linux_init_abi.
340 * hppa-linux-tdep.c: Include linux-tdep.h
341 (hppa_linux_init_abi): Call linux_init_abi.
342 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
343 * ia64-linux-tdep.c: Include linux-tdep.h.
344 (ia64_linux_init_abi): Call linux_init_abi.
345 * m32r-linux-tdep.c: Include linux-tdep.h.
346 (m32r_linux_init_abi): Call linux_init_abi.
347 * m68klinux-tdep.c: Include linux-tdep.h.
348 (m68k_linux_init_abi): Call linux_init_abi.
349 * microblaze-linux-tdep.c: Include linux-tdep.h.
350 (microblaze_linux_init_abi): Call linux_init_abi.
351 * mips-linux-tdep.c: Include linux-tdep.h.
352 (mips_linux_init_abi): Call linux_init_abi.
353 * mn10300-linux-tdep.c: Include linux-tdep.h.
354 (am33_linux_init_osabi): Call linux_init_abi. Rename the
355 'gdbinfo' parameter to 'info'.
356 * ppc-linux-tdep.c: Include linux-tdep.h.
357 (ppc_linux_init_abi): Call linux_init_abi.
358 * sh-linux-tdep.c: Include linux-tdep.h.
359 (sh_linux_init_abi): Call linux_init_abi.
360 * sparc-linux-tdep.c: Include linux-tdep.h.
361 (sparc32_linux_init_abi): Call linux_init_abi.
362 * sparc64-linux-tdep.c: Include linux-tdep.h.
363 (sparc64_linux_init_abi): Call linux_init_abi.
364 * xtensa-linux-tdep.c: Include linux-tdep.h.
365 (xtensa_linux_init_abi): Call linux_init_abi.
366 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
367 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
368 callback.
369
bc043ef3
DE
3702010-08-03 Doug Evans <dje@google.com>
371
372 * breakpoint.c (bpdisp_text): Constify bpdisps.
373 * solib-svr4.c (solib_break_names): Constify.
374 (bkpt_names, main_name_list): Constify.
375 (match_main): Constify soname arg.
63cdd227
DE
376 (bfd_lookup_symbol): Remove unnecessary forward decl.
377 Constify symname arg.
bc043ef3
DE
378 (enable_break): Constify bkpt_namep.
379 * symtab.c (search_symbols): Constify types, types2, types3, types4.
380 (symtab_symbol_info): Constify classnames.
381
585d1eb8
PM
3822010-08-03 Phil Muldoon <pmuldoon@redhat.com>
383
384 * NEWS: Document Python value inferior function calls.
385
2de00c64
DE
3862010-08-02 Doug Evans <dje@google.com>
387
388 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
389
02d868e8
PP
3902010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
391
392 * linux-thread-db.c (libthread_db_debug): New variable.
393 (thread_db_find_new_threads_silently): Control verbosity with it.
394 (try_thread_db_load_1, try_thread_db_load): Likewise.
395 (find_new_threads_once): Likewise.
396 (_initialize_thread_db): Set/show it.
397
a19cae16
JK
3982010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
399
400 * common/signals.c (signals): Move the content to signals.def.
401 Include it. Remove the INDENT comments.
402
c2bbed2a
TT
4032010-07-30 Tom Tromey <tromey@redhat.com>
404
405 * Makefile.in (install-only): Install gdb-add-index.
406 * gdb-add-index.sh: New file.
407
f32b2f09
CR
4082010-07-31 Renquan Cheng <crq@gcc.gnu.org>
409
410 * MAINTAINERS: Add myself for write after approval privileges.
411
1276c759
JK
4122010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
413
414 * symfile.c (addr_section_name): New function.
415 (addrs_section_compar): Use it.
416 (addr_info_make_relative): Use it. Move variable sect_name into a more
417 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
418
420697bb
TT
4192010-07-30 Tom Tromey <tromey@redhat.com>
420
421 * configure: Rebuild.
422 * configure.ac: Add missing case for Python 2.7.
423
d0d99561
DD
4242010-07-29 DJ Delorie <dj@redhat.com>
425
426 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
427 conditions.
428
0b29bdde
PA
4292010-07-29 Pedro Alves <pedro@codesourcery.com>
430
431 * PROBLEMS: Remove mention of all problems.
432
110ed339
PA
4332010-07-28 Pedro Alves <pedro@codesourcery.com>
434
435 PR build/11848
436 * configure.ac: Check for wresize.
437 * configure, config.in: Regenerate.
438 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
439 with HAVE_WRESIZE.
440
326fd672
TT
4412010-07-28 Tom Tromey <tromey@redhat.com>
442
443 PR python/11060:
444 * python/py-type.c (typy_legacy_template_argument): New function,
445 extracted from typy_template_argument.
446 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
447 value when needed.
448
4ac8c4da
TT
4492010-07-28 Oleg Nesterov <oleg@redhat.com>
450
451 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
452
053315c2
TT
4532010-07-27 Tom Tromey <tromey@redhat.com>
454
455 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
456
3ce3b1ba
PA
4572010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
458
459 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
460 handling DW_AT_object_pointer, and workaround GCC PR 43053.
461
2bb4f988
TT
4622010-07-28 Tom Tromey <tromey@redhat.com>
463
464 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
465
74232302
JB
4662010-07-28 Joel Brobecker <brobecker@adacore.com>
467
468 * remote.c (remote_download_tracepoint): Add missing gettext markup.
469 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
470
385d04dc
JB
4712010-07-28 Joel Brobecker <brobecker@adacore.com>
472
473 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
474 down, just before the block that parse the breakpoint addr_string.
475
34eaf542
TT
4762010-07-28 Tom Tromey <tromey@redhat.com>
477
478 PR c++/9946:
479 * symfile.c (reread_symbols): Clear template_symbols.
480 * symtab.h (struct symbol) <is_cplus_template_function>: New
481 field.
482 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
483 (struct template_symbol): New.
484 * symtab.c (lookup_symbol_aux_local): Use
485 cp_lookup_symbol_imports_or_template.
486 * objfiles.h (struct objfile) <template_symbols>: New field.
487 * objfiles.c (relocate_one_symbol): New function.
488 (objfile_relocate1): Use it. Relocate isolated symbols.
489 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
490 template_arguments>: New fields.
491 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
492 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
493 (TYPE_TEMPLATE_ARGUMENT): Likewise.
494 (lookup_typename): Update.
495 * gdbtypes.c (lookup_typename): Constify "block" argument.
496 * dwarf2read.c: Include vec.h.
497 (symbolp): New typedef.
498 (read_func_scope): Read template arguments. Allocate a
499 template_symbol when needed.
500 (read_structure_type): Read template arguments.
501 (new_symbol_full): New function, from new_symbol. Handle
502 DW_TAG_template_type_param and DW_TAG_template_value_param.
503 (new_symbol): Rewrite as wrapper.
504 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
505 * cp-namespace.c: Include language.h.
506 (search_symbol_list): New function.
507 (cp_lookup_symbol_imports_or_template): Likewise.
508
d27b3be4
PA
5092010-07-28 Balazs Kezes <rlblaster@gmail.com>
510
511 * tui/tui-win.c (make_visible_with_new_height): Resize and move
512 the command window to the new size and position.
513
0036e657
PA
5142010-07-28 Balazs Kezes <rlblaster@gmail.com>
515
a782f43e 516 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
0036e657
PA
517 coordinates.
518
36900355
PA
5192010-07-28 Balazs Kezes <rlblaster@gmail.com>
520
a782f43e 521 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
36900355 522 after a detecting a resize.
a782f43e 523 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
36900355
PA
524 call.
525
db5e03ae
PA
5262010-07-28 Pedro Alves <pedro@codesourcery.com>
527
528 * configure.ac: Check for resize_term.
529 * configure, config.in: Regenerate.
530
b71fff68
JB
5312010-07-27 Joel Brobecker <brobecker@adacore.com>
532
533 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
534
9b1c24c8
PA
5352010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
536
537 * dwarf2read.c (read_string): Rename to ...
538 (read_direct_string): ... this.
539 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
540 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
541
00390b84
JK
5422010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
543
544 * linux-nat.c (linux_nat_lp_status_is_event): New function.
545 (count_events_callback, select_event_lwp_callback)
546 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
547
26ab7092
JK
5482010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
549
550 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
551 (_initialize_ia64_linux_nat): Install it.
552 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
553 (linux_nat_set_status_is_event): New.
554 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
555 cancel_breakpoints_callback, linux_nat_filter_event)
556 (linux_nat_wait_1): Use linux_nat_status_is_event.
557 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
558
283e6a52
TT
5592010-07-27 Tom Tromey <tromey@redhat.com>
560
561 * NEWS: Mention labels, .gdb_index.
562
53a71c06
CR
5632010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
564
565 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3422f666 566 "start,+length" form of arguments.
53a71c06
CR
567 * NEWS: Add "Changed commands" (disassemble) section for "Changes
568 since GDB 7.1"; and merge two separated paragraphs of disassemble
569 description in "Changes in GDB 7.0".
570
c63a1f86
JK
5712010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
572
573 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
574 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
575 (fputs_maybe_filtered): Do not do filtering also on
576 ! INPUT_FROM_TERMINAL_P.
577
abebb8b0
JB
5782010-07-27 Joel Brobecker <brobecker@adacore.com>
579
580 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
581 in warning message.
582
5374244e
PM
5832010-07-27 Phil Muldoon <pmuldoon@redhat.com>
584
585 * python/py-value.c (valpy_call): New Function.
586
ac0b195c
KW
5872010-07-27 Ken Werner <ken.werner@de.ibm.com>
588
872e696d 589 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
ac0b195c
KW
590 types_list_elements variables.
591
09d8bd00
TT
5922010-07-26 Tom Tromey <tromey@redhat.com>
593
594 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
595 TLS with DW_OP_const4u or DW_OP_const8u.
596
9fe70b4f
TJB
5972010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
598
599 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
600 VSX registers contents.
601
caac4577
JG
6022010-07-26 Jerome Guitton <guitton@adacore.com>
603
604 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
605 its adress is null. Add comment to explain why.
606 (new_symbol): Ditto.
607
857d11d0
JK
6082010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
609
610 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
611 the host signal first.
612
1fd400ff
TT
6132010-07-23 Tom Tromey <tromey@redhat.com>
614
615 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
616 type_comp_units>: New fields.
617 (dw2_get_cu): New function.
618 (create_cus_from_index): Remove unused argument.
619 (create_signatured_type_hash_from_index): New function.
620 (create_addrmap_from_index): Update.
621 (dwarf2_read_index): Handle version 2.
622 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
623 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
624 (dw2_print_stats, dw2_expand_all_symtabs)
625 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
626 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
627 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
628 (allocate_signatured_type_hash_table): New function.
629 (add_signatured_type_cu_to_list): Likewise.
630 (create_debug_types_hash_table): Use them. Set type_comp_units.
631 (read_signatured_type): Ensure section data is available.
632 (add_address_entry): Don't record empty ranges.
633 (struct signatured_type_index_data): New.
634 (write_one_signatured_type): New function.
635 (write_psymtabs_to_index): Write type CUs.
636 (save_gdb_index_command): Update comment.
637 (process_type_comp_unit): Move inititalization of
638 from_debug_types...
639 (create_debug_types_hash_table): ... here.
640
3a674486
JK
6412010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
642
643 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
644 cleanup and generating of gdb script to it.
645 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
646 and terminal size. Convert $tmpfile to a series of -ex-es.
647
54ec275a
KS
6482010-07-23 Keith Seitz <keiths@redhat.com>
649
650 * symtab.c (basic_lookup_transparent_type): Call pre-expand
651 hook for STATIC_BLOCK types, too.
652
8fd447e6
KS
6532010-07-23 Keith Seitz <keiths@redhat.com>
654
655 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
656 and vector definition.
657
25b72dde
JK
6582010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
659
660 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
661
96d19272
JK
6622010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
663
664 * dwarf2read.c: Include completer.h.
665 (save_gdb_index_command): Use matching usage command name.
666 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
667 Set filename_completer for it.
668
ca1f3406
TT
6692010-07-22 Tom Tromey <tromey@redhat.com>
670
671 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
672 type signature's per-CU data.
673
ba25b921
PA
6742010-07-22 Pedro Alves <pedro@codesourcery.com>
675
676 * NEWS: Mention target reported shared libraries support by
677 default.
678
23bd0f7c
PA
6792010-07-21 Pedro Alves <pedro@codesourcery.com>
680
681 PR symtab/11827
682
683 Revert:
684 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
685 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
686 and DW_TAG_volatile_type.
687 (new_symbol): Likewise.
688
883df6dd
SW
6892010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
690
691 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
692 function symbols before overload resolution.
693
269b11a2
PA
6942010-07-21 Pedro Alves <pedro@codesourcery.com>
695
696 * breakpoint.c (bptype_string): New, abstracted out from
697 print_one_breakpoint_location.
698 (print_one_breakpoint_location): Adjust.
699 (breakpoint_1): Adjust the type column width dynamically.
700
569b05a5
JK
7012010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
702
703 * symfile.c (find_separate_debug_file_by_debuglink): Remove
704 a gdb_assert call, new comment.
705
ad34eb2f
JK
7062010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
707
708 * linux-nat.c (linux_handle_extended_wait): Handle case when
709 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
710
33355866
JK
7112010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
712
713 Code cleanup.
714 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
715 linux_nat_wait_1. Use always LP->STATUS afterwards.
716
26590820
HZ
7172010-07-20 Hui Zhu <teawater@gmail.com>
718
719 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
720 (inf_ptrace_attach): Ditto.
721
c0edd9ed
JK
7222010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
723
724 Make core files the process_stratum.
725 * corefile.c (core_target): New variable.
726 (core_file_command): Remove variable t, use core_target.
727 * corelow.c (core_ops): Make it static.
728 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
729 * defs.h (make_cleanup_unpush_target): New prototype.
730 * gdbarch.h: Regenerate.
731 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
732 * gdbcore.h (core_target): New declaration.
733 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
734 variables ops_already_pushed and back_to. Use push_target,
735 make_cleanup_unpush_target and discard_cleanups calls.
736 * record.c (record_open): Replace core_stratum by a core_bfd check.
737 * target.c (target_is_pushed): New function.
738 (find_core_target): Remove.
739 * target.h (enum strata) <core_stratum>: Remove.
740 (target_is_pushed): New declaration.
741 (find_core_target): Remove declaration.
742 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
743 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
744
f02253f1
HZ
7452010-07-19 Hui Zhu <teawater@gmail.com>
746
747 * breakpoint.c (single_step_breakpoints_inserted): New
748 function.
749 * breakpoint.h (single_step_breakpoints_inserted): Extern.
750 * infrun.c (maybe_software_singlestep): Add check code.
751 * record.c (record_resume): Add code for software single step.
752 (record_wait): Ditto.
753
78768c4a
JK
7542010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
755
756 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
757 a more inner block. Remove its unused declaration initializer.
758
431e49aa
TJB
7592010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
760
761 * NEWS: Mention support for the new ptrace interface and hardware
762 accelerated watchpoint conditions on powerpc-linux.
763
bd91e7ae
OS
7642010-07-16 Ozkan Sezer <sezeroz@gmail.com>
765
766 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
767 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
768 and host_address_to_string() and %s for pointers.
769 (debug_to_remove_breakpoint): Likewise.
770 (debug_to_region_ok_for_hw_watchpoint): Likewise.
771 (debug_to_can_accel_watchpoint_condition): Likewise.
772 (debug_to_stopped_data_address): Likewise.
773 (debug_to_watchpoint_addr_within_range): Likewise.
774 (debug_to_insert_hw_breakpoint): Likewise.
775 (debug_to_remove_hw_breakpoint): Likewise.
776 (debug_to_insert_watchpoint): Likewise.
777 (debug_to_remove_watchpoint): Likewise.
778
29df156d
SW
7792010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
780
781 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
782 argument.
783 (cplus_specific): New struct.
784 * symtab.c (symbol_set_demangled_name): Updated.
785 Use cplus_specific for cplus symbols.
786 (symbol_get_demangled_name): Retrive the name from the cplus_specific
787 struct for cplus symbols.
788 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
789 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
790 * symtab.c (symbol_init_cplus_specific): New function.
791
b250c185
SW
7922010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
793
794 * symtab.h (symbol_set_demangled_name): New function.
795 (symbol_get_demangled_name): New function.
796 * symtab.c (symbol_set_demangled_name): New function.
797 (symbol_get_demangled_name): New function.
798 (symbol_init_language_specific): Use demangled_name setter and getter.
799 (symbol_set_names): Ditto.
800 (symbol_natural_name): Ditto.
801 (symbol_demangled_name): Ditto.
802 * dwarf2read.c (new_symbol): Ditto.
803
afa16725
SW
8042010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
805
806 * symtab.h: Renamed cplus_specific to mangled_lang.
807 * symtab.c (symbol_init_language_specific): Updated.
808 (symbol_set_names): Updated.
809 (symbol_natural_name): Updated.
810 (symbol_demangled_name): Updated.
811 * ada-lang.c (ada_decode_symbol): Updated.
812 * dwarf2read.c (new_symbol): Updated.
813
3cbaedff
KW
8142010-07-14 Ken Werner <ken.werner@de.ibm.com>
815
816 * valops.c (value_assign): Do not call to value_coerce_to_target.
817 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
818
c932f1be
KW
8192010-07-14 Ken Werner <ken.werner@de.ibm.com>
820
821 * MAINTAINERS: Add myself for write after approval privileges.
822
91158a56
TT
8232010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
824
825 * c-valprint.c (c_val_print): Add embedded_offset to address in
826 call to val_print_array_elements.
827
b3b272e1
TT
8282010-07-13 Tom Tromey <tromey@redhat.com>
829
830 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
831
bb3fa9d0
TT
8322010-07-13 Tom Tromey <tromey@redhat.com>
833
834 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
835 objfile.
836
dd786858
TT
8372010-07-13 Tom Tromey <tromey@redhat.com>
838
839 * symfile.c (set_initial_language): Update.
840 (deduce_language_from_filename): Argument type now const.
841 * symtab.h (find_main_filename): Update.
842 (deduce_language_from_filename): Update.
843 * symtab.c (find_main_filename): Make result const.
844 * dwarf2read.c (dw2_find_symbol_file): Change return type.
845 * psymtab.c (find_symbol_file_from_partial): Change return type.
846 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
847 Make result const.
848
9291a0cd
TT
8492010-07-13 Tom Tromey <tromey@redhat.com>
850
851 * breakpoint.c (save_cmdlist): No longer static.
852 * gdbcmd.h (save_cmdlist): Declare.
853 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
854 OBJF_READNOW on objfile if readnow_symbol_files.
855 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
856 (elf_sym_fns_gdb_index): New global.
857 * dwarf2read.c: Include exceptions.h.
858 (offset_type): New.
859 (struct mapped_index): New.
860 (dwarf2_per_cu_data_ptr): New typedef.
861 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
862 New fields.
863 (GDB_INDEX_SECTION): New define.
864 (struct dwarf2_per_cu_quick_data): New.
865 (struct dwarf2_per_cu_data) <objfile>: New field.
866 <psymtab>: Removed.
867 <v>: New field.
868 (byte_swap): New function.
869 (MAYBE_SWAP): New macro.
870 (INDEX_SUFFIX): New macro.
871 (dw2_do_instantiate_symtab): New function.
872 (dw2_instantiate_symtab): Likewise.
873 (create_cus_from_index): Likewise.
874 (create_addrmap_from_index): Likewise.
875 (mapped_index_string_hash): Likewise.
876 (find_slot_in_mapped_hash): Likewise.
877 (dwarf2_read_index): Likewise.
878 (dw2_setup): Likewise.
879 (dw2_require_line_header): Likewise.
880 (dw2_require_full_path): Likewise.
881 (dw2_find_last_source_symtab): Likewise.
882 (dw2_forget_cached_source_info): Likewise.
883 (dw2_lookup_symtab): Likewise.
884 (dw2_lookup_symbol): Likewise.
885 (dw2_do_expand_symtabs_matching): Likewise.
886 (dw2_pre_expand_symtabs_matching): Likewise.
887 (dw2_print_stats): Likewise.
888 (dw2_dump): Likewise.
889 (dw2_relocate): Likewise.
890 (dw2_expand_symtabs_for_function): Likewise.
891 (dw2_expand_all_symtabs): Likewise.
892 (dw2_expand_symtabs_with_filename): Likewise.
893 (dw2_find_symbol_file): Likewise.
894 (dw2_map_ada_symtabs): Likewise.
895 (dw2_expand_symtabs_matching): Likewise.
896 (dw2_find_pc_sect_symtab): Likewise.
897 (dw2_map_symbol_names): Likewise.
898 (dw2_map_symbol_filenames): Likewise.
899 (dw2_has_symbols): Likewise.
900 (dwarf2_gdb_index_functions): New global.
901 (dwarf2_initialize_objfile): New function.
902 (process_psymtab_comp_unit): Update.
903 (add_partial_subprogram): Likewise.
904 (dwarf2_psymtab_to_symtab): Likewise.
905 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
906 (process_full_comp_unit): Update.
907 (find_file_and_directory): New function.
908 (read_file_scope): Use find_file_and_directory.
909 (dwarf2_per_cu_objfile): Update.
910 (dwarf2_per_cu_addr_size): Update.
911 (dwarf2_per_cu_offset_size): Update.
912 (dwarf2_free_objfile): Free the index, if needed.
913 (dwarf2_per_objfile_free): Unmap the index, if needed.
914 (struct strtab_entry): New.
915 (hash_strtab_entry): New function.
916 (eq_strtab_entry): Likewise.
917 (create_strtab): Likewise.
918 (add_string): Likewise.
919 (struct symtab_index_entry): New.
920 (struct mapped_symtab): New.
921 (hash_symtab_entry): New function.
922 (eq_symtab_entry): Likewise.
923 (delete_symtab_entry): Likewise.
924 (create_index_table): Likewise.
925 (create_mapped_symtab): Likewise.
926 (cleanup_mapped_symtab): Likewise.
927 (find_slot): Likewise.
928 (hash_expand): Likewise.
929 (add_index_entry): Likewise.
930 (add_indices_to_cpool): Likewise.
931 (write_hash_table): Likewise.
932 (add_address_entry): Likewise.
933 (write_psymbols): Likewise.
934 (write_obstack): Likewise.
935 (unlink_if_set): Likewise.
936 (write_psymtabs_to_index): Likewise.
937 (save_gdb_index_command): Likewise.
938 (_initialize_dwarf2_read): Install "save gdb-index"
939 command.
940 (create_all_comp_units): Initialize 'objfile' field of CU.
941 (dwarf2_locate_sections): Check for .gdb_index.
942 * psymtab.h (dwarf2_gdb_index_functions): Declare.
943 * symfile.h (dwarf2_initialize_objfile): Declare.
944
58b6ab13
TT
9452010-07-13 Tom Tromey <tromey@redhat.com>
946
947 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
948 (basic_lookup_transparent_type): Likewise.
949 * symfile.h (struct quick_symbol_functions)
950 <pre_expand_symtabs_matching>: New field.
951 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
952 (psym_functions): Update.
953
0f5238ed
TT
9542010-07-13 Tom Tromey <tromey@redhat.com>
955
956 PR breakpoints/8357:
957 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
958 * linespec.c (decode_line_1): Update comment. Call decode_label.
959 (decode_label): New function.
960 (symbol_found): Handle LOC_LABEL.
961 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
962 domain. Call add_symbol_to_list.
963
9aa1f1e3
TT
9642010-07-13 Tom Tromey <tromey@redhat.com>
965
966 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
967 * dwarf2loc.c (find_location_expression): Use
968 dwarf2_per_cu_text_offset.
969 (dwarf2_evaluate_loc_desc): Likewise.
970 (dwarf2_loc_desc_needs_frame): Likewise.
971 (compile_dwarf_to_ax): Likewise.
972 (loclist_describe_location): Likewise.
973 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
974 (dwarf2_per_cu_objfile): Update comment.
975
953ac07e
JK
9762010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
977
978 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
979 * p-lang.c (pascal_printstr): Likewise.
980
f04e4012
TT
9812010-07-09 Tom Tromey <tromey@redhat.com>
982
983 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
984 'hint' if it is NULL.
985
f4dfd9c0
HZ
9862010-07-09 Hui Zhu <teawater@gmail.com>
987
988 * source.c (print_source_lines_base): Add check for noprint.
989
7e6e39e5
JB
9902010-07-08 Joel Brobecker <brobecker@adacore.com>
991
992 * python/python-config.py: Resync with Python 2.7 version of this
993 script.
994
76b8507d
JB
9952010-07-08 Joel Brobecker <brobecker@adacore.com>
996
997 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
998
797054e6
JB
9992010-07-07 Joel Brobecker <brobecker@adacore.com>
1000
1001 * NEWS: Create a new section for the next release branch.
1002 Rename the section of the current branch, now that it has
1003 been cut.
1004
c80befee 10052010-07-07 Joel Brobecker <brobecker@adacore.com>
1006
1007 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
1008 * version.in: Bump version to 7.2.50.20100707-cvs.
1009
ac56253d
TT
10102010-07-07 Tom Tromey <tromey@redhat.com>
1011
1012 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
1013 LOC_COMPUTED symbol.
1014 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
1015 (dwarf2_loc_desc_needs_frame): Likewise.
1016 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
1017 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
1018 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
1019 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
1020 'offset' argument.
1021 (struct dwarf2_frame_cache) <text_offset>: New field.
1022 (dwarf2_frame_cache): Set new field.
1023 (dwarf2_frame_prev_register): Update.
1024 (dwarf2_frame_sniffer): Update.
1025 (dwarf2_frame_base_sniffer): Update.
1026 (dwarf2_frame_find_fde): Add 'out_offset' argument.
1027
0cf6dd15
TJB
10282010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1029 Thiago Jung Bauermann <bauerman@br.ibm.com>
1030
1031 Support for hw accelerated condition watchpoints in booke powerpc.
1032
1033 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
1034 and move to eval.c. Change callers.
1035 (insert_bp_location): Pass watchpoint condition in
1036 target_insert_watchpoint.
1037 (remove_breakpoint_1) Pass watchpoint condition in
1038 target_remove_watchpoint.
1039 (watchpoint_locations_match): Call
1040 target_can_accel_watchpoint_condition.
1041 * eval.c: Include wrapper.h.
1042 (fetch_subexp_value): Moved from breakpoint.c.
1043 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
1044 Formatting fix.
1045 (can_use_watchpoint_cond_accel): New function.
1046 (calculate_dvc): Likewise.
1047 (num_memory_accesses): Likewise.
1048 (check_condition): Likewise.
1049 (ppc_linux_can_accel_watchpoint_condition): Likewise
1050 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
1051 check_condition and calculate_dvc.
1052 (ppc_linux_remove_watchpoint): Likewise.
1053 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
1054 ppc_linux_can_accel_watchpoint_condition
1055 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
1056 condition.
1057 (debug_to_remove_watchpoint): Likewise.
1058 (debug_to_can_accel_watchpoint_condition): New function.
1059 (update_current_target): Set to_can_accel_watchpoint_condition.
1060 (setup_target_debug): Set to_can_accel_watchpoint_condition.
1061 * target.h: Add opaque declaration for struct expression.
1062 (struct target_ops) <to_insert_watchpoint>,
1063 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
1064 <to_can_accel_watchpoint_condition>: New member.
1065 condition. Update all callers and implementations.
1066 (target_can_accel_watchpoint_condition): New macro.
1067 * value.c (free_value_chain): New function.
1068 * value.h (fetch_subexp_value): New prototype.
1069 (free_value_chain): Likewise.
1070
2f2241f1
UW
10712010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
1072
1073 * linux-nat.c (linux_nat_do_thread_registers): Use section size
1074 from gdbarch_core_regset_sections also for .reg if present.
1075
1076 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
1077 section size for .reg.
1078 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
1079 (ppc_linux_vmx_regset_sections): Likewise.
1080 (ppc_linux_fp_regset_sections): Likewise.
1081 (ppc64_linux_vsx_regset_sections): New variable.
1082 (ppc64_linux_vmx_regset_sections): Likewise.
1083 (ppc64_linux_fp_regset_sections): Likewise.
1084 (ppc_linux_init_abi): Install core_regset_section lists appropriate
1085 for current word size.
1086
1fd7cdc2
JB
10872010-07-06 Joel Brobecker <brobecker@adacore.com>
1088
1089 * server.c (myresume): Make static.
1090
11763c18
TT
10912010-07-06 Tom Tromey <tromey@redhat.com>
1092
1093 * configure, config.in: Rebuild.
1094 * configure.ac (HAVE_LIBPYTHON2_7): New define.
1095 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
1096
a6cc4789
AS
10972010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1098
1099 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
1100 "clear".
1101
f9e9243a
UW
11022010-07-06 Ken Werner <ken.werner@de.ibm.com>
1103
1104 * gdbtypes.h (floatformats_ieee_half): Add declaration.
1105 * gdbtypes.c (floatformats_ieee_half): New variable.
1106 * doublest.c (floatformat_from_length): Set format to
1107 gdbarch_half_format if length matches.
1108 * gdbarch.sh (half_bit): New architecture method.
1109 (half_format): Likewise.
1110 * gdbarch.h: Regenerate.
1111 * gdbarch.c: Likewise.
1112
4e5799b6
JK
11132010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1114 Joel Brobecker <brobecker@adacore.com>
1115
1116 Fix re-run of PIE executable, PR shlibs/11776.
1117 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
1118 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
1119
86e4bafc
JK
11202010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1121 Joel Brobecker <brobecker@adacore.com>
1122
1123 * auxv.c (memory_xfer_auxv): Update attach comment.
1124 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
1125 svr4_relocate_main_executable.
1126 (svr4_solib_create_inferior_hook): Make the call to
1127 svr4_relocate_main_executable unconditional.
1128
3cd07d20
JK
11292010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1130 Joel Brobecker <brobecker@adacore.com>
1131
1132 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
1133
0a1e94c7
JK
11342010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1135 Joel Brobecker <brobecker@adacore.com>
1136
1137 Fix attaching to PIEs prelinked on the disk after the process was
1138 started.
1139 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
1140 Verify it against bfd_get_arch_size. Try to match arbitrary
1141 displacement for the phdrs comparison.
1142
5387647f
TT
11432010-07-02 Tom Tromey <tromey@redhat.com>
1144
1145 PR exp/11780:
1146 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
1147 value as optimized-out.
1148
38b6c3b3
TJB
11492010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
1150 Thiago Jung Bauermann <bauerman@br.ibm.com>
1151
1152 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
1153 represent?" question in comment. Change comment to a proper sentence.
1154
a17ac5b0
TT
11552010-07-02 Ken Werner <ken.werner@de.ibm.com>
1156
1157 * c-valprint.c (c_val_print): Fix printing of character vectors.
1158
bddaafad
JK
11592010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1160
1161 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
1162 create_breakpoint prototype.
1163
d41c0fc8
PA
11642010-07-01 Pedro Alves <pedro@codesourcery.com>
1165
1166 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
1167 usefulness suggestion of multiple breakpoints at same location.
1168
dc10affe
PA
11692010-07-01 Pedro Alves <pedro@codesourcery.com>
1170
1171 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
1172
cabe9ab6
PA
11732010-07-01 Pedro Alves <pedro@codesourcery.com>
1174
1175 * dwarf2loc.c (locexpr_tracepoint_var_ref)
1176 (loclist_tracepoint_var_ref): Handle optimized out values.
1177
cce7e648
PA
11782010-07-01 Pedro Alves <pedro@codesourcery.com>
1179
1180 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
1181 unnecessary space in string.
1182 * filesystem.c (_initialize_filesystem): Ditto.
1183 * frame.c (_initialize_frame): Ditto.
1184 * infcmd.c (step_once): Ditto.
1185 * infrun.c (_initialize_infrun): Ditto.
1186 * linux-nat.c (linux_child_follow_fork): Ditto.
1187 * maint.c (maintenance_deprecate): Ditto.
1188 * memattr.c (_initialize_mem): Ditto.
1189 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1190 * monitor.c (monitor_open): Ditto.
1191 * procfs.c (procfs_xfer_memory): Ditto.
1192 * reverse.c (bookmarks_info): Ditto.
1193 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
1194 * stack.c (_initialize_stack): Ditto.
1195 * tracepoint.c (_initialize_tracepoint): Ditto.
1196 * xtensa-tdep.c (xtensa_supply_gregset,
1197 xtensa_regset_from_core_section): Ditto.
1198
b65c7efe
TT
11992010-07-01 Tom Tromey <tromey@redhat.com>
1200
1201 * value.h (struct lval_funcs) <check_any_valid>: Rename from
1202 check_all_valid.
1203 * value.c (value_entirely_optimized_out): Invert result. Update
1204 for new function name.
1205
0fb4aa4b
PA
12062010-07-01 Pedro Alves <pedro@codesourcery.com>
1207
1208 Static tracepoints support.
1209
1210 * NEWS: Mention new support for static tracepoints.
1211 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
1212 qXfer:statictrace:read.
1213 (New features in the GDB remote stub, GDBserver): Mention static
1214 tracepoints support using an UST based backend.
1215 (New commands): Mention "info static-tracepoint-markers" and
1216 "strace".
1217 * breakpoint.c (is_marker_spec): New.
1218 (is_tracepoint): Handle static tracepoints.
1219 (validate_commands_for_breakpoint): Static tracepoints can't do
1220 while-stepping.
1221 (static_tracepoints_here): New.
1222 (bpstat_what): Handle static tracepoints.
1223 (print_one_breakpoint_location, allocate_bp_location, mention):
1224 Ditto.
1225 (create_breakpoint_sal): Ditto.
1226 (decode_static_tracepoint_spec): New.
1227 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
1228 `type_wanted'. Adjust. Handle static tracepoint marker
1229 locations.
1230 (break_command_1): Adjust.
1231 (update_static_tracepoint): New.
1232 (update_breakpoint_locations): Handle static tracepoints.
1233 (breakpoint_re_set_one): Handle static tracepoint marker
1234 locations.
1235 (disable_command, enable_command): Handle static tracepoints.
1236 (trace_command, ftrace_command): Adjust.
1237 (strace_command): New.
1238 (create_tracepoint_from_upload): Adjust.
1239 (save_breakpoints): Handle static tracepoints.
1240 (_initialize_breakpoint): Install the "strace" command.
1241 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
1242 (struct breakpoint): New fields static_trace_marker_id and
1243 static_trace_marker_id_idx.
1244 (breakpoints_here_p): Declare.
1245 (create_breakpoint): Adjust.
1246 (static_tracepoints_here): Declare.
1247 * remote.c (struct remote_state) <static_tracepoints>: New field.
1248 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
1249 (remote_static_tracepoint_marker_at): New.
1250 (remote_static_tracepoint_markers_by_strid): New.
1251 (remote_static_tracepoint_feature): New.
1252 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
1253 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
1254 (remote_supports_static_tracepoints): New.
1255 (remote_download_tracepoint): Download static tracepoints.
1256 (init_remote_ops): Install remote_static_tracepoint_marker_at and
1257 remote_static_tracepoint_markers_by_strid.
1258 (_initialize_remote): Install set|show remote static-tracepoints,
1259 and set|show remote read-sdata-object commands.
1260 * target.c (update_current_target): Inherit and default
1261 to_static_tracepoint_marker_at, and
1262 to_static_tracepoint_markers_by_strid.
1263 * target.h (static_tracepoint_marker): Forward declare.
1264 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
1265 (static_tracepoint_marker_p): New typedef.
1266 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
1267 (struct target_ops): New fields to_static_tracepoint_marker_at and
1268 to_static_tracepoint_markers_by_strid.
1269 (target_static_tracepoint_marker_at)
1270 (target_static_tracepoint_markers_by_strid): New.
1271 * tracepoint.c: Include source.h.
1272 (validate_actionline): Handle $_sdata.
1273 (struct collection_list): New field strace_data.
1274 (add_static_trace_data): New.
1275 (clear_collection_list): Clear strace_data.
1276 (stringify_collection_list): Account for a possible static trace
1277 data collection.
1278 (encode_actions_1): Encode an $_sdata collection.
1279 (parse_tracepoint_definition): Handle static tracepoints.
1280 (parse_static_tracepoint_marker_definition): New.
1281 (release_static_tracepoint_marker): New.
1282 (print_one_static_tracepoint_marker): New.
1283 (info_static_tracepoint_markers_command): New.
1284 (sdata_make_value): New.
1285 (_initialize_tracepoint): Create the $_sdata convenience variable.
1286 Add the "info static-tracepoint-markers" command.
1287 Mention $_sdata in the "collect" command's help output.
1288 * tracepoint.h (struct static_tracepoint_marker): New.
1289 (parse_static_tracepoint_marker_definition)
1290 (release_static_tracepoint_marker): Declare.
1291 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
1292 * python/py-breakpoint.c (bppy_new): Adjust.
1293
aac63f0f
JB
12942010-06-30 Joel Brobecker <brobecker@adacore.com>
1295
1296 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
1297 including Python.h.
1298
e68994a7
DE
12992010-06-29 Doug Evans <dje@google.com>
1300
3863f96c
DE
1301 PR gdb/11702
1302 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
1303 DW_AT_external is present.
1304
254e6b9e
DE
1305 PR gdb/11702
1306 * NEWS: Add entry.
1307 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
1308 create a symbol for the field and record the value.
1309 (new_symbol): Handle DW_TAG_member.
1310 * gdbtypes.c (field_is_static): Remove FIXME.
1311 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
1312 only ignore LOC_CONST symbols that are enums.
1313
6e70227d
DE
1314 * dwarf2read.c: Remove trailing whitespace.
1315
e68994a7
DE
1316 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
1317 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
1318 (struct main_type, field loc): Delete dwarf_block.
1319 (FIELD_DWARF_BLOCK): Delete.
1320 (SET_FIELD_DWARF_BLOCK): Delete.
1321 (TYPE_FIELD_DWARF_BLOCK): Delete.
1322 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
1323 Update.
1324
a480d2f6
HZ
13252010-06-29 Hui Zhu <teawater@gmail.com>
1326
1327 * record.c (set_record_pic_cmdlist,
1328 show_record_pic_cmdlist): New variables.
1329 (set_record_pic_command,
1330 show_record_pic_command): New functions.
1331 (record_pic_function, record_pic_line, record_pic_enum,
1332 set_record_pic_type, record_pic_hide_nofunction,
1333 record_pic_hide_nosource, record_pic_hide_same): New variables.
1334 (record_pic_fputs): New function.
1335 (function_list, node_list, edge_list): New struct.
1336 (function_list, node_list, edge_list): New variables.
1337 (record_pic_cleanups, record_pic_node,
1338 record_pic_edge, cmd_record_pic): New functions.
1339 (_initialize_record): Add new commands for record pic.
1340
a0d7a4ff
JK
13412010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1342
1343 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
1344 ALLOCATE_CPLUS_STRUCT_TYPE.
1345
595939de
PM
13462010-06-28 Phil Muldoon <pmuldoon@redhat.com>
1347 Tom Tromey <tromey@redhat.com>
1348 Thiago Jung Bauermann <bauerman@br.ibm.com>
1349
1350 * value.c (pack_unsigned_long): New function.
1351 (value_from_ulongest): New function.
1352 * value.h (value_from_ulongest): Declare.
1353 * python/python.c (_initialize_python): Call
1354 gdbpy_initialize_thread and gdbpy_initialize_inferior.
1355 * python/python-internal.h: Define thread_object.
1356 (gdbpy_inferiors, gdbpy_selected_thread)
1357 (frame_info_to_frame_object, create_thread_object)
1358 (find_thread_object, find_inferior_object)
1359 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
1360 (gdbpy_is_value_object, get_addr_from_python): Declare.
1361 * python/py-value.c (builtin_type_upylong): Define.
1362 (convert_value_from_python): Add logic for ulongest.
1363 (gdbpy_is_value_object): New function.
1364 * python/py-utils.c (get_addr_from_python): New function.
1365 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
1366 (gdbpy_selected_frame): Use PyObject over frame_info.
1367 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
1368 py-infthread.
1369 (SUBDIR_PYTHON_SRCS): Likewise.
1370 (py-inferior.o): New Rule.
1371 (py-infthread.o): New Rule.
1372 * python/py-inferior.c: New File.
1373 * python/py-infthread.c: New File.
1374
98751a41
JK
13752010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1376
1377 * c-typeprint.c (c_type_print_base): For no fields check include also
1378 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
1379 * dwarf2read.c (struct typedef_field_list)
1380 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
1381 (dwarf2_add_typedef): New.
1382 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
1383 Copy also FI.TYPEDEF_FIELD_LIST.
1384 * gdbtypes.h (struct typedef_field)
1385 (struct cplus_struct_type) <typedef_field, typedef_field_count>
1386 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
1387 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
1388
41f62f39
JK
13892010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1390
1391 * cp-namespace.c (cp_lookup_nested_type): New variable
1392 concatenated_name. Turn the current return condition into a reverse
1393 one. Call also lookup_static_symbol_aux on the constructed qualified
1394 name.
1395 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
1396 other files into a called ...
1397 (lookup_static_symbol_aux): ... new function here.
1398 * symtab.h (lookup_static_symbol_aux): New prototype.
1399 * valops.c (value_maybe_namespace_elt): Call also
1400 lookup_static_symbol_aux if we failed otherwise.
1401
af53d231
JK
14022010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1403
1404 Fix PR c++/11703 and PR gdb/1448.
1405 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
1406 FIRST_ITER check.
1407
9655fd1a
JK
14082010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1409
1410 Fix modification of cplus_struct_default.
1411 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
1412 Call ALLOCATE_CPLUS_STRUCT_TYPE.
1413 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
1414
9279c692
JB
14152010-06-28 Joel Brobecker <brobecker@adacore.com>
1416
1417 * NEWS: Add entry announcing the python directory.
1418
d3f41bb1
TT
14192010-06-28 Tom Tromey <tromey@redhat.com>
1420
1421 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
1422
23e7acfb
DE
14232010-06-28 Doug Evans <dje@google.com>
1424
1425 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
1426 All callers updated.
1427
6036c742
JK
14282010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1429
1430 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
1431 obstack_begin after each obstack_free.
1432
9f18a3b3
DE
14332010-06-27 Doug Evans <dje@google.com>
1434
1596cb5d
DE
1435 * value.c (value_static_field): Use `switch' instead of `if'.
1436 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
1437
9f18a3b3
DE
1438 * valops.c (search_struct_field): Fix typo in error message.
1439
43dabe42
UW
14402010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
1441
1442 * dwarf2expr.c (execute_stack_op): Place preprocessor
1443 directives at the start of the source line.
1444
0f3bb72e
PH
14452010-06-25 Paul Hilfinger <hilfinger@adacore.com>
1446
6036c742
JK
1447 * defs.h (make_command_stats_cleanup): Declare.
1448 (set_display_time): Declare.
1449 (set_display_space): Declare.
1450 * event-top.c (command_handler): Use make_command_stats_cleanup.
1451 * main.c (display_time, display_space): Move definitions to utils.c.
1452 (captured_main): Use make_command_stats_cleanup to get start-up
1453 statistics.
1454 Use set_display_time and set_display_space for processing OPT_STATISTICS
1455 case.
1456 * maint.c (maintenance_time_display): Use set_display_time.
1457 (maintenance_space_display): Use set_display_space.
1458 * top.c (execute_command): Remove obsolete 'maint time' code.
1459 (command_loop): Use make_command_stats_cleanup.
1460 * utils.c (struct cmd_stats): Structure for storing initial time
1461 and space usage.
1462 (display_time, display_space): Move definitions here from utils.c.
1463 (set_display_time): New function.
1464 (set_display_space): New function.
1465 (make_command_stats_cleanup): New function.
1466 (report_command_stats): New auxiliary function for
1467 make_command_stats_cleanup.
0f3bb72e 1468
070c8028
UW
14692010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
1470
1471 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
1472 hosts where CORE_ADDR is long long.
1473
bc9f0842
TT
14742010-06-25 Tom Tromey <tromey@redhat.com>
1475
1476 PR python/10808:
1477 * python/python.c (execute_gdb_command): Add keywords. Accept
1478 "to_string" argument.
1479 (struct restore_ui_file_closure): New.
1480 (restore_ui_file): New function.
1481 (make_cleanup_restore_ui_file): Likewise.
1482 (GdbMethods) <execute>: Update.
1483
c0cc4c83
UW
14842010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
1485
1486 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
1487 during inferior call stack frame setup.
1488
f1d8ee66
UW
14892010-06-25 Ken Werner <ken.werner@de.ibm.com>
1490
1491 * solib-spu.c: Include "exception.h".
1492 (ocl_program_data_key): New variable.
1493 (append_ocl_sos): New function.
1494 (ocl_enable_break): Likewise.
1495 (spu_current_sos): Call append_ocl_sos.
1496 (spu_solib_loaded): Call ocl_enable_break.
1497 (_initialize_spu_solib): Register ocl_program_data_key.
1498
19c0c0f8
UW
14992010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
1500
1501 * cp-support.c (reset_directive_searched): New function.
1502 (make_symbol_overload_list_using): Prevent recursive calls.
1503
0f6a939d
PM
15042010-06-25 Phil Muldoon <pmuldoon@redhat.com>
1505
1506 * printcmd.c (print_variable_and_value): Print error message on
1507 caught exception.
1508
f2c7657e
UW
15092010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
1510
1511 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
1512 of stack values.
1513 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
1514 "value" member.
1515 (dwarf_expr_push): Change input type to ULONGEST.
1516 (dwarf_expr_fetch): Change return type to ULONGEST.
1517 (dwarf_expr_fetch_address): Add prototype.
1518 (dwarf2_read_address): Remove prototype.
1519 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
1520 Truncate stack values to ctx->addr_size bytes.
1521 (dwarf_expr_fetch): Change return value to ULONGEST.
1522 (dwarf_expr_fetch_address): New function.
1523 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
1524 when appropriate. Update for struct dwarf_expr_piece changes.
1525 (dwarf2_read_address): Remove.
1526 (unsigned_address_type): Remove.
1527 (signed_address_type): Remove.
1528 (execute_stack_op): Use dwarf_expr_fetch_address instead of
1529 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
1530 values. Perform operations on ULONGEST instead of on GDB values,
1531 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
1532 values and DW_OP_deref results as unsigned integers.
1533 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
1534 changes.
1535 (write_pieced_value): Likewise.
1536 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
1537 dwarf_expr_fetch when appropriate.
1538 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
1539 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
1540 instead of dwarf_expr_fetch when appropriate.
1541
b1d61bc9
PM
15422010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
1543
1544 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
1545
b14285f6
JB
15462010-06-24 Joel Brobecker <brobecker@adacore.com>
1547
1548 * python/python.c (_initialize_python): Add new "constant"
1549 PYTHONDIR in gdb module. Insert this path at the head of
1550 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
1551 exec its __init__.py script if it exists in that directory.
1552
fd60dc69
KB
15532010-06-24 Kevin Buettner <kevinb@redhat.com>
1554
1555 * rx-tdep.c (RX_ACC_REGNUM): Define.
1556 (RX_NUM_REGS): Redefine to 26.
1557 (rx_register_name): Add register "acc". Change order of several
1558 registers. Change name of "vct" register to "fintv" to match RX
1559 documentation.
1560 (rx_register_type): Add case for RX_ACC_REGNUM.
1561
18430289
TT
15622010-06-24 Tom Tromey <tromey@redhat.com>
1563
1564 * psymtab.c (lookup_partial_symbol): Mark definition as static.
1565
40618926
JK
15662010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1567 Tom Tromey <tromey@redhat.com>
1568
1569 Fix GDB startup on readonly filesystem.
1570 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
1571
628fe4e4
JK
15722010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1573 Pedro Alves <pedro@codesourcery.com>
1574
1575 Fix PR 9436.
1576 * breakpoint.c (handle_jit_event): New function.
1577 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
1578 jit, err, table and bs_class. New variables shlib_event, jit_event,
1579 this_action and bptype. Change bs_class assignments to this_action
1580 assignments. new unhandled bptype internal error. Move here
1581 shlib_event and jit_event handling from handle_inferior_event.
1582 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
1583 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
1584 BPSTAT_WHAT_CHECK_JIT.
1585 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
1586 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
1587 (handle_inferior_event): Reinitialize frame and gdbarch after
1588 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
1589 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
1590 gdbarch when frame gets reinitialized.
1591
f1421989
HZ
15922010-06-24 Hui Zhu <teawater@gmail.com>
1593
1594 * printcmd.c (ui_printf): New function.
1595 (printf_command): Call ui_printf.
1596 (_initialize_printcmd): New command "eval".
1597
d03285ec
UW
15982010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
1599
1600 * infrun.c (handle_inferior_event): Handle presence of single-step
1601 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
1602 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
1603 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
1604 * breakpoint.c (detach_single_step_breakpoints): New function.
1605 (detach_breakpoints): Call it.
1606 (cancel_single_step_breakpoints): New function.
1607 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
1608
1609 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
1610 (spu_gdbarch_init): Install it.
1611
38f6b338
JK
16122010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1613
1614 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
1615 * configure: Regenerate.
1616
bb08c432
HZ
16172010-06-22 Hui Zhu <teawater@gmail.com>
1618
1619 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
1620 (i386_process_record): Ditto.
1621 * record.c (record_memory_query): New variable.
1622 (_initialize_record): New command "set record memory-query".
1623 * record.h (record_memory_query): New extern.
1624
b55078be
DE
16252010-06-21 Doug Evans <dje@google.com>
1626
1627 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
1628 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
1629 (i386_syscall_p): Change type of lengthp to int.
1630 (i386_displaced_step_fixup): Handle kernels that run one past a
1631 syscall insn.
1632 * i386-linux-tdep.c (i386_linux_init_abi): Use
1633 i386_displaced_step_copy_insn instead of
1634 simple_displaced_step_copy_insn.
1635
75079b2b
TT
16362010-06-21 Tom Tromey <tromey@redhat.com>
1637
1638 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
1639 (dwarf_type_encoding_name): Likewise.
1640
b00fdb78
TT
16412010-06-21 Tom Tromey <tromey@redhat.com>
1642
1643 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
1644 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
1645 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
1646 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
1647 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
1648 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
1649 * dwarf2read.c (tag_type_to_type): Create a new error type on
1650 failure.
1651 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
1652 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
1653
84951ab5
MS
16542010-06-21 Michael Snyder <msnyder@vmware.com>
1655
1656 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
1657 not add_abbrev_prefix_cmd, for "enable breakpoints".
1658
d4a087c7
UW
16592010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
1660
1661 * dwarf2loc.c (find_location_expression): Add relocation offset
1662 to base-address-selection entry base addresses. Read addresses
1663 (and offsets) as signed/unsigned integers, depending on the
1664 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
1665 (loclist_describe_location): Likewise.
1666 (disassemble_dwarf_expression): Read DW_OP_addr operand as
1667 unsigned integer. Do not call dwarf2_read_address.
1668 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
1669
13def385
UW
16702010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
1671
1672 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
1673 value instead of hard-coded SPU_LS_SIZE.
1674 (spu_software_single_step): Likewise.
1675 * spu-tdep.h (SPU_LS_SIZE): Remove.
1676
d2ed6730
UW
16772010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
1678
1679 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
1680 limit on local store memory accesses.
1681 * spu-linux-nat.c (spu_xfer_partial): Likewise.
1682 * spu-tdep.c (spu_lslr): Remove.
1683 (spu_pointer_to_address): Do not truncate addresses.
1684 (spu_integer_to_address): Likewise.
1685 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
1686 * spu-tdep.h: Add comments.
1687 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
1688 (SPU_OVERLAY_LMA): Define.
1689
6aed2dbc
SS
16902010-06-18 Stan Shebs <stan@codesourcery.com>
1691
a61408f8
SS
1692 * osdata.c (get_osdata): Warn separately if target does not report
1693 type list.
1694 (info_osdata_command): Allow empty type, report error if target
1695 does not return available types of OS data.
1696 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
1697 types if no annex supplied.
1698
6aed2dbc
SS
1699 * thread.c (thread_id_make_value): Make a value representing the
1700 current thread.
1701 (_initialize_thread): Create $_thread.
1702
ec61707d
JB
17032010-06-17 Joel Brobecker <brobecker@adacore.com>
1704
1705 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
1706 last local variable declaration. No real code change.
1707
60606b2c
TT
17082010-06-17 Tom Tromey <tromey@redhat.com>
1709
1710 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
1711 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
1712 temporary obstack.
1713
65d79d4b
SDJ
17142010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
1715 Jan Kratochvil <jan.kratochvil@redhat.com>
1716
1717 * breakpoint.c: Include parser-defs.h.
1718 (watchpoint_exp_is_const): New function.
1719 (watch_command_1): Call watchpoint_exp_is_const to check
1720 if the expression is constant.
1721
0407b3f1
AS
17222010-06-15 Andreas Schwab <schwab@linux-m68k.org>
1723
1724 * configure.ac: Check for RDYNAMIC also for cross builds.
1725 * configure: Regenerate.
1726
98d64339
PA
17272010-06-15 Pedro Alves <pedro@codesourcery.com>
1728
1729 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
1730 (SFILES): Remove solib-null.c, add solib-target.c.
1731 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
1732 (ALLDEPFILES): Remove solib-target.c.
1733 * solib-target.c (_initialize_solib_target): Set
1734 current_target_so_ops to solib_target_so_ops if not already set.
1735 * solib-null.c: Delete.
1736
6a271cae
PA
17372010-06-14 Pedro Alves <pedro@codesourcery.com>
1738
1739 * NEWS: Mention GDBserver's JIT compilation of tracepoint
1740 bytecode.
1741
1e9beacb
UW
17422010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
1743
1744 * cp-valprint.c (cp_print_static_field): Members of
1745 dont_print_stat_array_obstack are of type "struct type *".
1746 (_initialize_cp_valprint): Likewise.
1747
21a176fb
UW
17482010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
1749
1750 * frame.c (frame_register_unwind): Do not access contents
1751 of "optimized out" unwound register value.
1752
25b524e8
JK
17532010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1754
1755 * ada-lang.h (ada_print_type): Make varstring const.
1756 * ada-typeprint.c (print_func_type): Make name const.
1757 (ada_print_type): Make varstring const.
1758 * c-lang.h (c_print_type): Make varstring const.
1759 * c-typeprint.c (c_print_type): Likewise.
1760 * f-lang.h (f_print_type): Likewise.
1761 * f-typeprint.c (f_print_type): Likewise.
1762 * jv-lang.h (java_print_type): Likewise.
1763 * jv-typeprint.c (java_print_type): Likewise.
1764 * language.c (unk_lang_print_type): Likewise.
1765 * language.h (struct language_defn) <la_print_type>: Likewise.
1766 * m2-lang.h (m2_print_type): Likewise.
1767 * m2-typeprint.c (m2_print_type): Likewise.
1768 * p-lang.h (pascal_print_type): Likewise.
1769 * p-typeprint.c (pascal_print_type): Likewise.
1770
d914c394
SS
17712010-06-11 Stan Shebs <stan@codesourcery.com>
1772
1773 Add per-operation permission flags.
1774
1775 * target.h (struct target_ops): New method to_set_permissions.
1776 (target_set_permissions): New macro.
1777 (target_insert_breakpoint): Change macro to function.
1778 (target_remove_breakpoint): Ditto.
1779 (target_stop): Ditto.
1780 (may_write_registers): Declare.
1781 (may_write_memory): Declare.
1782 (may_insert_breakpoints): Declare.
1783 (may_insert_tracepoints): Declare.
1784 (may_insert_fast_tracepoints): Declare.
1785 (may_stop): Declare.
1786 * target.c (may_write_registers, may_write_registers_1): New globals.
1787 (may_write_memory, may_write_memory_1): New globals.
1788 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
1789 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
1790 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
1791 globals.
1792 (may_stop, may_stop_1): New global.
1793 (target_xfer_partial): Test for write permission.
1794 (target_store_registers): Ditto.
1795 (target_insert_breakpoint): New function.
1796 (target_remove_breakpoint): New function.
1797 (target_stop): New function.
1798 (_initialize_targets): Add new set/show variables.
1799 (set_write_memory_permission): New function.
1800 (update_target_permissions): New function.
1801 (set_target_permissions): New function.
1802 (update_current_target): Default to_set_permissions.
1803 (_initialize_targets): Use new globals and setter function.
1804 * tracepoint.c (start_tracing): Test for permission.
1805 * inferior.h (update_observer_mode): Declare.
1806 * infrun.c (non_stop_1): Define earlier.
1807 (observer_mode, observer_mode_1): New globals.
1808 (set_observer_mode, show_observer_mode): New functions.
1809 (update_observer_mode): New function.
1810 (_initialize_infrun): Define "set observer" command.
1811 * remote.c (PACKET_QAllow): New optional packet.
1812 (remote_protocol_features): Add QAllow.
1813 (remote_set_permissions): New function.
1814 (remote_start_remote): Call it.
1815 (init_remote_ops): Add it to target vector.
1816 (_initialize_remote): Add config command for QAllow.
1817
aec5aa8b
TT
18182010-06-11 Tom Tromey <tromey@redhat.com>
1819
1820 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
1821 DW_AT_vtable_elem_location even when GCC extension is seen.
1822
0e03807e
TT
18232010-06-11 Tom Tromey <tromey@redhat.com>
1824
1825 PR gdb/9977, PR exp/11636:
1826 * value.h (value_offset): Update.
1827 (struct lval_funcs) <check_validity>: New field.
1828 <copy_closure>: Make argument const.
1829 (value_computed_closure): Update.
1830 (value_contents_for_printing): Declare.
1831 (value_bits_valid): Likewise.
1832 (val_print): Likewise.
1833 (set_value_component_location): Update.
1834 (value_entirely_optimized_out): Declare.
1835 * value.c (value_offset): Argument now const.
1836 (require_not_optimized_out): New function.
1837 (value_contents_for_printing): New function.
1838 (value_contents_all): Call require_not_optimized_out.
1839 (value_contents): Likewise.
1840 (value_bits_valid): New function.
1841 (value_computed_closure): Argument now const.
1842 (set_value_component_location): Make 'whole' argument const.
1843 (value_entirely_optimized_out): New function.
1844 (value_bitsize): Argument now 'const'.
1845 (value_bitpos): Likewise.
1846 (value_type): Likewise.
1847 * valprint.h (val_print_array_elements): Update.
1848 * valprint.c (val_print): Add 'val' argument. Use
1849 valprint_check_validity.
1850 (valprint_check_validity): New function.
1851 (value_check_printable): Use value_entirely_optimized_out.
1852 (common_val_print): Update.
1853 (value_print): Likewise.
1854 (val_print_array_elements): Add 'val' argument.
1855 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
1856 value_bits_valid. Reinit frame cache for lval_computed.
1857 * sh64-tdep.c (sh64_do_register): Update.
1858 * scm-valprint.c (scm_val_print): Add 'val' argument.
1859 * scm-lang.h (scm_val_print): Update.
1860 * python/python.h (apply_val_pretty_printer): Update.
1861 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
1862 argument. Call set_value_component_location.
1863 * printcmd.c (print_scalar_formatted): Update.
1864 * p-valprint.c (pascal_val_print): Add 'val' argument.
1865 (pascal_object_print_value_fields): Likewise.
1866 (pascal_object_print_value): Likewise.
1867 (pascal_object_print_static_field): Update.
1868 * p-lang.h (pascal_val_print): Update.
1869 (pascal_object_print_value_fields): Update.
1870 * mt-tdep.c (mt_registers_info): Update.
1871 * mi/mi-main.c (get_register): Update.
1872 (mi_cmd_data_evaluate_expression): Use common_val_print.
1873 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
1874 (m2_print_unbounded_array): Likewise.
1875 (m2_val_print): Likewise.
1876 * m2-lang.h (m2_val_print): Update.
1877 * language.h (struct language_defn) <la_val_print>: Add 'val'
1878 argument.
1879 (LA_VAL_PRINT): Likewise.
1880 * language.c (unk_lang_val_print): Add 'val' argument.
1881 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
1882 (java_val_print): Likewise.
1883 * jv-lang.h (java_val_print): Add 'val' argument.
1884 * infcmd.c (default_print_registers_info): Update.
1885 * f-valprint.c (f77_print_array_1): Add 'val' argument.
1886 (f77_print_array): Likewise.
1887 (f_val_print): Likewise.
1888 * f-lang.h (f_val_print): Add 'val' argument.
1889 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
1890 value_bitpos.
1891 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
1892 set_value_optimized_out.
1893 (write_pieced_value): Use value_bitsize and value_bitpos.
1894 <default>: Don't exit loop.
1895 (check_pieced_value_validity): New function.
1896 (pieced_value_funcs): Reference check_pieced_value_validity,
1897 check_pieced_value_invalid.
1898 (copy_pieced_value_closure): Update.
1899 (check_pieced_value_bits): New function.
1900 (check_pieced_value_invalid): New function.
1901 * d-valprint.c (dynamic_array_type): Add 'val' argument.
1902 (d_val_print): Likewise.
1903 * d-lang.h (d_val_print): Update.
1904 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
1905 (cp_print_value_fields_rtti): Likewise.
1906 (cp_print_value): Likewise.
1907 (cp_print_static_field): Update.
1908 * c-valprint.c (c_val_print): Add 'val' argument.
1909 (c_value_print): Update.
1910 * c-lang.h (c_val_print): Update.
1911 (cp_print_value_fields): Likewise.
1912 (cp_print_value_fields_rtti): Likewise.
1913 * ada-valprint.c (struct ada_val_print_args): Remove.
1914 (val_print_packed_array_elements): Add 'val' argument.
1915 (ada_val_print): Likewise. Rewrite.
1916 (ada_val_print_stub): Remove.
1917 (ada_val_print_array): Add 'val' argument.
1918 (ada_val_print_1): Likewise.
1919 (print_variant_part): Likewise.
1920 (ada_value_print): Update.
1921 (print_record): Add 'val' argument.
1922 (print_field_values): Likewise.
1923 * ada-lang.h (ada_val_print): Update.
1924
3cf03773
TT
19252010-06-11 Tom Tromey <tromey@redhat.com>
1926
1927 * vec.h (VEC_cleanup): New macro.
1928 (DEF_VEC_ALLOC_FUNC_I): Update.
1929 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1930 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1931 * dwarf2loc.c (struct axs_var_loc): Remove.
1932 (unimplemented): New function.
1933 (translate_register): Likewise.
1934 (access_memory): Likewise.
1935 (compile_dwarf_to_ax): Likewise.
1936 (dwarf2_tracepoint_var_loc): Remove.
1937 (dwarf2_tracepoint_var_access): Likewise.
1938 (dwarf2_tracepoint_var_ref): Likewise.
1939 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
1940 (loclist_tracepoint_var_ref): Likewise.
1941 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
1942 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
1943 require_composition. No longer static.
1944 (execute_stack_op): Update.
1945 * ax-gdb.h (trace_kludge): Declare.
1946
2bdf28a0
JK
19472010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1948
1949 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
1950 (should_be_inserted): Return zero also on NULL OWNER.
1951 (breakpoint_program_space_exit): New OWNER comment.
1952 (insert_breakpoint_locations): Extend comment for OWNER.
1953 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
1954 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
1955 New OWNER comment.
1956 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
1957 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
1958 (bpstat_check_location): New assert on OWNER.
1959 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
1960 and B initializations to the code block. New assert on them.
1961 (print_one_breakpoint_location): New OWNER comment.
1962 (watchpoint_locations_match): Assert on OWNER.
1963 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
1964 initializations to the code block. New assert on OWNER.
1965 (set_breakpoint_location_function): New assert on OWNER.
1966 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
1967 (bp_location_compare, update_global_location_list)
1968 (update_global_location_list): New OWNER comment.
1969
5b9a19af
UW
19702010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
1971
1972 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
1973
669211f5
UW
19742010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
1975
1976 * config/nm-linux.h (struct target_ops): Remove forward declaration.
1977 (lin_thread_get_thread_signals): Remove prototype.
1978 (GET_THREAD_SIGNALS): Remove.
1979 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
1980 * linux-thread-db.c (check_thread_signals): Directly call
1981 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
1982
b7a8b4ef
UW
19832010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
1984
1985 * gregset.h (GDB_FPXREGSET_T): Remove.
1986 (gdb_fpxregset_t): Likewise.
1987 (supply_fpxregset): Remove prototype.
1988 (fill_fpxregset): Likewise.
1989 * i386-linux-nat.c (supply_fpxregset): Remove.
1990 (fill_fpxregset): Likewise.
1991 (fetch_fpxregs): Inline supply_fpxregset call.
1992 (store_fpxregs): Inline fill_fpxregset call.
1993
1994 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
1995 * config/i386/nm-linux.h: Remove file.
1996
82892036
MS
19972010-06-09 Michael Snyder <msnyder@vmware.com>
1998
1999 * target.c (update_current_target): Fix spelling error in comment.
2000 (target_mourn_inferior): Fix spelling error in error message.
2001
5ddb52fa
PH
20022010-06-08 Paul Hilfinger <hilfingr@adacore.com>
2003
2004 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
2005 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
2006
0f2caa1b
MS
20072010-06-08 Michael Snyder <msnyder@vmware.com>
2008
2009 * remote.c (remote_close): Set inferior_ptid to null_ptid.
2010
3bebe2f2
JK
20112010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2012
2013 * configure.ac <"${have_libpython}" != no>: New workaround of
2014 python#4434.
2015 * configure: Regenerate.
2016
eaaffdf4
HZ
20172010-06-08 Hui Zhu <teawater@gmail.com>
2018
2019 * record.c (record_wait): Move signal out of replay code.
2020
5c631832
JK
20212010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2022
2023 Fix PR 10640.
2024 * dwarf2-frame.c (no_dwarf_call): New function.
2025 (execute_stack_op): Set CTX->DWARF_CALL.
2026 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
2027 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
2028 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
2029 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
2030 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
2031 (needs_frame_dwarf_call): New function.
2032 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
2033 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
2034 Update the comment. Move variables die, offset and error call to ...
2035 (follow_die_ref): ... a new function.
2036 (dwarf2_fetch_die_location_block): New function.
2037 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
2038
17ea53c3
JK
20392010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2040
2041 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
2042 (dwarf_expr_tls_address): Use per_cu instead of objfile.
2043 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
2044 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
2045 this change.
2046 (struct needs_frame_baton): New field per_cu.
2047 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
2048 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
2049
245040d7
SW
20502010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
2051
2052 * cp-support.c (make_symbol_overload_list_namespace): Only search
2053 static and global blocks.
2054 (make_symbol_overload_list_block): New function.
2055 (make_symbol_overload_list): Separate namespace search from block
2056 search.
2057 (make_symbol_overload_list_qualified): Use
2058 make_symbol_overload_list_block.
2059
4c3376c8
SW
20602010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
2061
2062 * value.h: Created oload_search_type enum.
2063 (find_overload_match): Use oload_search_type enum.
2064 * valops.c (find_overload_match): Support combined member and
2065 non-member search.
2066 * eval.c (evaluate_subexp_standard): Calls to
2067 find_overload_match now use oload_search_type enum.
2068 (oload_method_static): Verify index is a proper value.
2069 * valarith.c (value_user_defined_cpp_op): Search for and handle
2070 both member and non-member operators.
2071 (value_user_defined_cpp_op): New function.
2072 (value_user_defined_op): New function.
2073 (value_x_unop): Use value_user_defined_op.
2074 (value_x_binop): Ditto.
2075 * cp-support.c (make_symbol_overload_list_using): Added block
2076 iteration.
2077 Add check for namespace aliases and imported declarations.
2078
ee55da67
JK
20792010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2080
2081 * breakpoint.h (owner): Extend the comment.
2082
1a2ab13a
JK
20832010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2084
2085 Clear stale specific bp_location from former whole breakpoint.
2086 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
2087 code ...
2088 (free_bp_location): ... here. Rename there the called function to
2089 bpstat_remove_bp_location_callback.
2090 (bpstat_remove_breakpoint_callback): Rename to ...
2091 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
2092 to struct bp_location. Change the called function to
2093 bpstat_remove_bp_location. Create new declaration for the function.
2094 (bpstat_remove_breakpoint): Rename to ...
2095 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
2096 code for the new parameter type.
2097
16d6b4b7
NS
20982010-06-07 Nathan Sidwell <nathan@codesourcery.com>
2099
2100 * README: Make version-agnostic.
2101
7e314c57
JK
21022010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2103
2104 Fix duplicate types for single DIE.
2105 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
2106 set_die_type.
2107 (read_array_type): Remove type initialization. Recheck get_die_type
2108 after initial die_type. Move set_die_type before set_descriptive_type.
2109 (read_set_type): New variable domain_type. Recheck get_die_type after
2110 initial die_type. Move attr initialization later.
2111 (read_tag_pointer_type, read_tag_reference_type): New variable
2112 target_type. Recheck get_die_type after initial die_type.
2113 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
2114 die_type and die_containing_type.
2115 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
2116 Recheck get_die_type after initial die_type.
2117 (read_subrange_type): Recheck get_die_type after initial die_type.
2118 Move set_die_type before set_descriptive_type.
2119 (set_die_type): Extend the function comment. Call complaint if DIE has
2120 some type already set.
2121
2f296114
VP
21222010-06-05 Vladimir Prus <vladimir@codesourcery.com>
2123
2124 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
2125 for current naming of thread groups (iN, not N).
2126
554794dc
SDJ
21272010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
2128
2129 * ada-lang.c (ada_operator_length): Constify `struct expression'.
2130 * parse.c (operator_length): Likewise.
2131 (operator_length_standard): Likewise.
2132 * parser-defs.h (operator_length): Likewise.
2133 (operator_length_standard): Likewise.
2134 (struct exp_descriptor <operator_length>): Likewise.
2135
967cf477
DE
21362010-06-04 Doug Evans <dje@google.com>
2137
bddaacb9 2138 Add support for enabling/disabling individual pretty-printers.
967cf477
DE
2139 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
2140 * python/python-internal.h (gdbpy_enabled_cst): Declare.
2141 * python/python.c (gdbpy_enabled_cst): Define.
2142 (_initialize_python): Initialize gdbpy_enabled_cst.
2143 * NEWS: Add entry.
2144
2dec564e
JK
21452010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2146
2147 * breakpoint.c (update_global_location_list): Fix comment typo.
2148
44b5680a
HZ
21492010-06-04 Hui Zhu <teawater@gmail.com>
2150
2151 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
2152
e7a30f46
DE
21532010-06-03 Doug Evans <dje@google.com>
2154
2155 * configure.ac: Don't fail if python is unusable when
2156 configured with --with-python=auto.
2157 * configure: Regenerate.
2158
84b4420f
SW
21592010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
2160
2161 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
2162
df178451
PM
21632010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
2164
2165 * valprint.h (get_array_bounds): Change low and high parameter types
2166 to LONGEST *.
0407b3f1 2167 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
df178451
PM
2168 compute bounds.
2169 (val_print_array_elements): Adapt to change above.
2170 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
2171 * p-valprint.c (pascal_val_print): Likewise.
2172
fd5700c7
JK
21732010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2174
2175 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
2176 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
2177 .F08.
2178
f55ee35c
JK
21792010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2180
2181 Support DW_TAG_module as separate namespaces.
2182 * dwarf2read.c (typename_concat): New parameter physname.
2183 (read_module_type): New function and declaration.
2184 (scan_partial_symbols): Scan also DW_TAG_module children.
2185 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
2186 to typename_concat backward compatible physname value 0.
2187 (partial_die_full_name, read_namespace_type): Pass to typename_concat
2188 backward compatible physname value 0.
2189 (add_partial_module, read_module): Remove FIXME comment.
2190 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
2191 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
2192 DIEs under DW_TAG_module.
2193 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
2194 DW_AT_MIPS_linkage_name first, extend it for language_fortran
2195 && physname and return there instead of just setting NAME. Extend
2196 the main block for language_fortran. Pass physname parameter to the
2197 typename_concat call.
2198 (read_import_statement, read_func_scope, get_scope_pc_bounds)
2199 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
2200 (new_symbol): Fill in cplus_specific.demangled_name if it is still
2201 missing from SYMBOL_SET_NAMES in the language_fortran case.
2202 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
2203 variables.
2204 (read_type_die) <DW_TAG_module>: New.
2205 (MAX_SEP_LEN): Increase to 7.
2206 (typename_concat): New parameter physname. New variable lead. Support
2207 also language_fortran.
2208 * f-exp.y (yylex): Consider : also as a symbol name character class.
2209 * f-lang.c: Include cp-support.h.
2210 (f_word_break_characters, f_make_symbol_completion_list): New functions.
2211 (f_language_defn): Use cp_lookup_symbol_nonlocal,
2212 f_word_break_characters and f_make_symbol_completion_list.
2213 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
2214 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
2215 * symtab.c (symbol_init_language_specific): Support language_fortran.
2216 (symbol_find_demangled_name): New comment on language_fortran.
2217 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
2218 for language_fortran.
2219 (lookup_symbol_aux_local): Check imports also for language_fortran.
2220 (default_make_symbol_completion_list): Rename to ...
2221 (default_make_symbol_completion_list_break_on): ... this name. New
2222 parameter break_on, use it.
2223 (default_make_symbol_completion_list): New stub.
2224 * symtab.h (default_make_symbol_completion_list_break_on): New
2225 prototype.
2226
cb91c06a
JB
22272010-06-02 Joel Brobecker <brobecker@adacore.com>
2228
2229 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
2230 to error.
2231
5c315b68
JK
22322010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2233
2234 * dwarf2read.c (typename_concat): Add const to the variable sep.
2235
9eae7c52
TT
22362010-06-02 Tom Tromey <tromey@redhat.com>
2237
2238 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
2239 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
2240 type is const. Add 'def' argument. Add missing operators, remove
2241 unhandled ones.
2242 (decode_locdesc): Update.
2243 (dwarf2_always_disassemble): New global.
2244 (show_dwarf2_always_disassemble): New function.
2245 (_initialize_dwarf2_read): Add always-disassemble.
2246 (dwarf2_per_cu_offset_size): New function.
2247 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
2248 (piece_end_p): New function.
2249 (locexpr_describe_location_piece): Replace 'size' argument with
2250 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
2251 some constants. Remove errors.
2252 (disassemble_dwarf_expression): New function.
2253 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
2254 Add 'offset_size' argument.
2255 (loclist_describe_location): Change output formatting.
2256 * dwarf2expr.h (dwarf_stack_op_name): Declare.
2257
7d3fe98e
SW
22582010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
2259
2260 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
2261 anonymous type case.
2262
e77813c8
PM
22632010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
2264
2265 * dwarf2read.c (read_subrange_type): Handle missing base type
2266 according to Dwarf-2 specifications.
2267
7cf3118a
SDJ
22682010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
2269
2270 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
2271 BINOP_EXCL.
2272 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
2273 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
2274 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
2275 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
2276 UNOP_CHMAX, UNOP_CHMIN.
2277 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
2278 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
2279 UNOP_CHMIN>: Remove opcodes.
2280
ae4d0c03
PM
22812010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
2282
2283 * dwarf2read.c (read_func_scope): Do not complain for
2284 external function if bounds are not found.
2285
fa593d66
PA
22862010-06-01 Pedro Alves <pedro@codesourcery.com>
2287
2288 * NEWS: Mention gdbserver fast tracepoints support.
2289
cd44747c
PM
22902010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
2291
2292 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
2293 New macros.
2294 (windows_set_console_info): New function.
2295 (windows_create_inferior): Call windows_set_console_info
2296 if NEW_CONSOLE is true.
2297 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
2298 (_initialize_loadable): Initialize GetConsoleFontSize and
2299 GetCurrentConsoleFont.
2300
f6528abd
JK
23012010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2302
2303 * Makefile.in (RDYNAMIC): New.
2304 (SFILES): Add proc-service.list.
2305 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
2306 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
2307 * config/arm/linux.mh: Likewise.
2308 * config/i386/linux.mh: Likewise.
2309 * config/i386/linux64.mh: Likewise.
2310 * config/ia64/linux.mh: Likewise.
2311 * config/m32r/linux.mh: Likewise.
2312 * config/m68k/linux.mh: Likewise.
2313 * config/mips/linux.mh: Likewise.
2314 * config/pa/linux.mh: Likewise.
2315 * config/powerpc/linux.mh: Likewise.
2316 * config/powerpc/ppc64-linux.mh: Likewise.
2317 * config/s390/s390.mh: Likewise.
2318 * config/sparc/linux.mh: Likewise.
2319 * config/sparc/linux64.mh: Likewise.
2320 * config/xtensa/linux.mh: Likewise.
2321 * configure.ac: New RDYNAMIC on native host and GCC.
2322 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
2323 * configure: Regenerate.
2324 * proc-service.list: New.
2325
ca2a87a0
JK
23262010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2327
2328 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
2329 CONTENT.
2330
1e225492
JK
23312010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2332
2333 * linux-nat.c (linux_nat_wait_1): Do not call
2334 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
2335 TARGET_WAITKIND_SIGNALLED.
2336
e802dbe0
JB
23372010-05-27 Joel Brobecker <brobecker@adacore.com>
2338
2339 * ada-lang.c (ada_inferior_data): New struct.
2340 (ada_inferior_data): New static global.
2341 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
2342 (ada_get_tsd_type): New functions.
2343 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
2344 to look the tsd type up.
2345 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
2346 event. Set ada_inferior_data.
2347
176a6961
PA
23482010-05-27 Pedro Alves <pedro@codesourcery.com>
2349
2350 * remote.c (unpack_varlen_hex): Remove forward declaration.
2351 (remote_console_output): Make static, and add forward declaration.
2352 * remote.h: Drop FIXME comment.
2353 (unpack_varlen_hex): Declare.
2354 (remote_console_output, remote_cisco_objfile_relocate)
2355 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
2356 Delete declarations.
2357 * tracepoint.c: Include "remote.h".
2358 (unpack_varlen_hex): Delete declaration.
2359
88bfdde4
TT
23602010-05-27 Tom Tromey <tromey@redhat.com>
2361
2362 * dwarf2loc.c (struct piece_closure) <refc>: New field.
2363 (allocate_piece_closure): Initialize refc.
2364 (copy_pieced_value_closure): Use refc.
2365 (free_pieced_value_closure): Likewise.
2366
8c6363cf
TT
23672010-05-27 Tom Tromey <tromey@redhat.com>
2368
2369 * arm-tdep.c (push_stack_item): 'contents' now const.
2370 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
2371 value_contents_writeable. Introduce new temporary.
2372
7ecb917e
TT
23732010-05-27 Tom Tromey <tromey@redhat.com>
2374
2375 * findcmd.c (parse_find_args): Use value_contents, not
2376 value_contents_raw.
2377
f42a0a33
TT
23782010-05-27 Tom Tromey <tromey@redhat.com>
2379
2380 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
2381 const. Use value_contents, not value_contents_writeable.
2382
12b795ad
JB
23832010-05-27 Joel Brobecker <brobecker@adacore.com>
2384
2385 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
2386 by call to value_contents.
2387
5a2e11c7
OS
23882010-05-27 Ozkan Sezer <sezeroz@gmail.com>
2389
2390 * MAINTAINERS: Add myself for write after approval privileges.
2391
ec685c5e
DE
23922010-05-26 Doug Evans <dje@google.com>
2393
0c4a4063
DE
2394 Allow python to find its files if moved from original location.
2395 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
2396 (GDB_AC_WITH_DIR): Call it.
2397 * configure.ac: Define WITH_PYTHON_PATH if we can find the
2398 python installation directory.
2399 * config.in: Regenerate.
2400 * configure: Regenerate.
2401 * defs.h (python_libdir): Declare.
2402 * main.c (python_libdir): Define.
2403 (captured_main): Initialize python_libdir.
2404 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
2405 call Py_SetProgramName to make sure python can find its libraries
2406 and modules.
2407
ec685c5e
DE
2408 * configure.ac: Try to use python's distutils to fetch compilation
2409 parameters.
2410 * configure: Regenerate.
2411 * python/python-config.py: New file.
2412
363a6e9f
OS
24132010-05-26 Ozkan Sezer <sezeroz@gmail.com>
2414
2415 * ser-tcp.c (net_open): Check error return from socket() call by its
2416 equality to -1 not by it being negative.
2417 (net_close): Likewise.
2418
dde08ee1
PA
24192010-05-26 Pedro Alves <pedro@codesourcery.com>
2420
2421 * NEWS: Mention the `qRelocInsn' feature.
2422 * gdbarch.sh (relocate_instruction): New.
2423 * amd64-tdep.c (rip_relative_offset): New.
2424 (append_insns): New.
2425 (amd64_relocate_instruction): New.
2426 (amd64_init_abi): Install it.
2427 * i386-tdep.c (append_insns): New.
2428 (i386_relocate_instruction): New.
2429 (i386_gdbarch_init): Install it.
2430 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
2431 * gdbarch.h, gdbarch.c: Regenerate.
2432
947bb88f
TT
24332010-05-26 Tom Tromey <tromey@redhat.com>
2434
2435 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
2436 (struct dwarf2_loclist_baton) <data>: Likewise.
2437 * dwarf2loc.c (find_location_expression): Constify return type.
2438 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
2439 (dwarf2_loc_desc_needs_frame): Likewise.
2440 (loclist_read_variable): Constify.
2441 (loclist_describe_location): Likewise.
2442 (loclist_tracepoint_var_ref): Likewise.
2443
0d45f56e
TT
24442010-05-25 Tom Tromey <tromey@redhat.com>
2445
2446 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
2447 (dwarf_expr_frame_base_1): Likewise.
2448 (read_pieced_value): Update.
2449 (needs_frame_frame_base): Constify.
2450 (dwarf2_tracepoint_var_loc): Likewise.
2451 (dwarf2_tracepoint_var_access): Likewise.
2452 (locexpr_describe_location_piece): Likewise.
2453 (locexpr_describe_location_1): Likewise.
2454 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
2455 Constify.
2456 (data): Now const.
2457 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
2458 (dwarf_expr_eval, read_uleb128, read_sleb128)
2459 (dwarf2_read_address): Update.
2460 * dwarf2expr.c (dwarf_expr_eval): Constify.
2461 (read_uleb128): Likewise.
2462 (read_sleb128): Likewise.
2463 (dwarf2_read_address): Likewise.
2464 (require_composition): Likewise.
2465 (execute_stack_op): Likewise.
2466 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
2467 "const gdb_byte *".
2468 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
2469 Now const.
2470 (no_get_frame_base): Constify.
2471 (execute_stack_op): Likewise.
2472 (execute_cfa_program): Likewise.
2473 (read_encoded_value): Likewise.
2474
07ca107c
DE
24752010-05-25 Doug Evans <dje@google.com>
2476
e34838f0
DE
2477 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
2478
01f69b38
DE
2479 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
2480 * event-loop.c: ... here.
2481 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
2482 `error' for clarity.
2483 (tui_getc): Pass correct value for `error' parameter to
2484 tui_readline_output.
2485
07ca107c
DE
2486 Add python gdb.GdbError and gdb.string_to_argv.
2487 * NEWS: Document them.
2488 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
2489 the exception is gdb.GdbError. Print a second traceback if there's
2490 an error computing the error message.
2491 (gdbpy_string_to_argv): New function.
2492 * python/py-utils.c (gdbpy_obj_to_string): New function.
2493 (gdbpy_exception_to_string): New function.
2494 * python/python-internal.h (gdbpy_string_to_argv): Declare.
2495 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
2496 (gdbpy_gdberror_exc): Declare.
2497 * python/python.c (gdbpy_gdberror_exc): New global.
2498 (_initialize_python): Initialize gdbpy_gdberror_exc and create
2499 gdb.GdbError.
2500 (GdbMethods): Add string_to_argv.
2501
5572ce1f
PM
25022010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2503
2504 * windows-nat.c (display_selector): Call GetLastError to give better
2505 failure explanation.
2506
acd5838a
PA
25072010-05-24 Pedro Alves <pedro@codesourcery.com>
2508
2509 * config.in: Regenerate.
2510
b26a4dcb
JK
25112010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2512
2513 Code cleanup.
2514 * target.c (push_target): Return only void. Remove the return value
2515 comment.
2516 * target.h (push_target): Return only void.
2517
f434ba03
PA
25182010-05-23 Pedro Alves <pedro@codesourcery.com>
2519
2520 Update gnulib from latest git.
2521 (250b80067c1e1d8faa0c42fb572f721975b929c5)
2522
2523 * gnulib/memcmp.c: Removed.
2524 * gnulib/memchr.valgrind: New.
2525 * gnulib/stddef.in.h: New.
2526 * gnulib/Makefile.am: Updated.
2527 * gnulib/memchr.c: Updated.
2528 * gnulib/memmem.c: Updated.
2529 * gnulib/stdint.in.h: Updated.
2530 * gnulib/str-two-way.h: Updated.
2531 * gnulib/string.in.h: Updated.
2532 * gnulib/wchar.in.h: Updated.
2533
2534 * gnulib/extra/link-warning.h: Removed.
2535 * gnulib/extra/c++defs.h: New.
2536 * gnulib/extra/warn-on-use.h: New.
2537 * gnulib/extra/arg-nonnull.h: Updated.
2538
2539 * gnulib/m4/extensions.m4: Updated.
2540 * gnulib/m4/gnulib-cache.m4: Updated.
2541 * gnulib/m4/gnulib-common.m4: Updated.
2542 * gnulib/m4/gnulib-comp.m4: Updated.
2543 * gnulib/m4/gnulib-tool.m4: Updated.
2544 * gnulib/m4/include_next.m4: Updated.
2545 * gnulib/m4/longlong.m4: Updated.
2546 * gnulib/m4/memchr.m4: Updated.
2547 * gnulib/m4/memmem.m4: Updated.
2548 * gnulib/m4/stdint.m4: Updated.
2549 * gnulib/m4/string_h.m4: Updated.
2550 * gnulib/m4/memcmp.m4: Removed.
2551 * gnulib/m4/onceonly_2_57.m4: Removed.
2552 * gnulib/m4/00gnulib.m4: New.
2553 * gnulib/m4/mmap-anon.m4: New.
2554 * gnulib/m4/multiarch.m4: New.
2555 * gnulib/m4/onceonly.m4: New.
2556 * gnulib/m4/stddef_h.m4: New.
2557 * gnulib/m4/warn-on-use.m4: New.
2558 * gnulib/m4/wchar.m4: Removed.
2559 * gnulib/m4/wchar_h.m4: New.
2560 * gnulib/m4/wchar_t.m4: New.
2561 * gnulib/m4/wint_t.m4: New.
2562
2563 * aclocal.m4: Regenerate.
2564 * config.in: Likewise.
2565 * configure: Likewise.
2566 * gnulib/Makefile.in: Likewise.
2567
d3b1e874
TT
25682010-05-21 Tom Tromey <tromey@redhat.com>
2569
2570 * dwarf2loc.c (extract_bits_primitive): New function.
2571 (extract_bits): Likewise.
2572 (insert_bits): Likewise.
2573 (copy_bitwise): Likewise.
2574 (read_pieced_value): Do all operations in bits.
2575 (write_pieced_value): Likewise.
2576 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
2577 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
2578 Always use xrealloc to resize piece array.
2579 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
2580 <DW_OP_piece>: Update.
2581 <DW_OP_bit_piece>: New case.
2582
cb826367
TT
25832010-05-21 Tom Tromey <tromey@redhat.com>
2584
2585 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
2586 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
2587 * dwarf2expr.h (enum dwarf_value_location)
2588 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
2589 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
2590 (add_piece): Handle empty piece.
2591 (execute_stack_op) <DW_OP_piece>: Handle
2592 DWARF_VALUE_OPTIMIZED_OUT.
2593
74de6778
TT
25942010-05-21 Tom Tromey <tromey@redhat.com>
2595
2596 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
2597 evaluate_subexp, not evaluate_subexp_with_coercion.
2598
f346a30d
PM
25992010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2600
2601 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2602 attribute.
2603
afd74c5f
TT
26042010-05-21 Tom Tromey <tromey@redhat.com>
2605
2606 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
2607 offset.
2608 (write_pieced_value): Likewise.
2609
90e7c2c5
PM
26102010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2611
2612 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
2613 and DW_TAG_volatile_type.
2614 (new_symbol): Likewise.
2615
8148cf8d
PM
26162010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
2617
2618 * p-valprint.c (pascal_val_print): Call get_array_bounds
2619 to obtain the number of elements in an array.
2620
3a1d4620
DE
26212010-05-19 Doug Evans <dje@google.com>
2622
0bf0f8c4
DE
2623 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
2624
3a1d4620
DE
2625 * python.c (source_python_script): Add comment.
2626 (source_python_script_for_objfile): Remove unnecessary call to
2627 gdbpy_print_stack.
2628
dc21167c
JK
26292010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2630 Sergio Durigan Junior <sergiodj@redhat.com>
2631
2632 Code cleanup.
2633 * parse.c (exp_iterate): Use operator_length wrapper function.
2634
5b4ee69b
MS
26352010-05-18 Michael Snyder <msnyder@vmware.com>
2636
2637 * ada-lang.c: White space.
2638 * ada-typeprint.c: White space.
2639 * ada-valprint.c: White space.
2640 * addrmap.c: White space.
2641 * auxv.c: White space.
2642 * ax-gdb.c: White space.
2643
e17c9e56
HZ
26442010-05-18 Hui Zhu <teawater@gmail.com>
2645
2646 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
2647 for oldfp.
2648 (inferior_call_waitpid): Move make_cleanup out of check.
2649 Check the return of waitpid.
2650 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
2651
a109c7c1
MS
26522010-05-17 Michael Snyder <msnyder@vmware.com>
2653
1c5313c5
MS
2654 * tui/tui.c: White space.
2655 * tui/tui-data.c: White space.
2656 * tui/tui-disasm.c: White space.
2657 * tui/tui-file.c: White space.
2658 * tui/tui-interp.c: White space.
2659 * tui/tui-main.c: White space.
2660 * tui/tui-out.c: White space.
2661 * tui/tui-regs.c: White space.
2662 * tui/tui-source.c: White space.
2663 * tui/tui-stack.c: White space.
2664 * tui/tui-win.c: White space.
2665 * tui/tui-winsource.c: White space.
2666
f4a14ae6
MS
2667 * procfs.c: White space.
2668
d59b6f6c
MS
2669 * python/py-auto-load.c: White space.
2670 * python/py-block.c: White space.
2671 * python/py-breakpoint.c: White space.
2672 * python/py-cmd.c: White space.
2673 * python/py-function.c: White space.
2674 * python/py-lazy-string.c: White space.
2675 * python/py-objfile.c: White space.
2676 * python/py-param.c: White space.
2677 * python/py-prettyprint.c: White space.
2678 * python/py-progspace.c: White space.
2679 * python/py-symtab.c: White space.
2680 * python/python.c: White space.
2681 * python/py-type.c: White space.
2682 * python/py-utils.c: White space.
2683 * python/py-value.c: White space.
2684
102040f0
MS
2685 * mi/mi-cmd-break.c: White space.
2686 * mi/mi-cmd-env.c: White space.
2687 * mi/mi-cmds.c: White space.
2688 * mi/mi-cmd-stack.c: White space.
2689 * mi/mi-cmd-var.c: White space.
2690 * mi/mi-console.c: White space.
2691 * mi/mi-getopt.c: White space.
2692 * mi/mi-interp.c: White space.
2693 * mi/mi-main.c: White space.
2694 * mi/mi-out.c: White space.
2695 * mi/mi-parse.c: White space.
2696
cdb27c12
MS
2697 * cli/cli-cmds.c: White space.
2698 * cli/cli-decode.c: White space.
2699 * cli/cli-dump.c: White space.
2700 * cli/cli-interp.c: White space.
2701 * cli/cli-logging.c: White space.
2702 * cli/cli-script.c: White space.
2703 * cli/cli-setshow.c: White space.
2704
a109c7c1
MS
2705 * valarith.c: White space.
2706 * valops.c: White space.
2707 * valprint.c: White space.
2708 * value.c: White space.
2709 * varobj.c: White space.
2710 * xcoffread.c: White space.
2711 * xml-support.c: White space.
2712 * xml-tdesc.c: White space.
2713
3872d37d
AS
27142010-05-17 Andreas Schwab <schwab@redhat.com>
2715
2716 PR gdb/11092
2717 * c-lang.c (c_printstr): Compute real length of NUL terminated
2718 string at first.
2719
0cce5bd9
JB
27202010-05-17 Joel Brobecker <brobecker@adacore.com>
2721
2722 * parse.c (parse_exp_in_context): When block is not NULL, use
2723 its associated language to parse the expression instead of
2724 the current_language.
2725
5f19d646
JB
27262010-05-17 Joel Brobecker <brobecker@adacore.com>
2727
2728 * jv-lang.c (java_lookup_class): Remove commented out code.
2729 (type_from_class): Likewise.
2730 (java_op_print_tab): Remove commented-out elements.
2731
28c85d6c
JB
27322010-05-17 Joel Brobecker <brobecker@adacore.com>
2733
2734 * ada-lang.c (to_fixed_range_type): The the raw index type as
2735 argument instead of the raw type name. Remove orig_type parameter.
2736 Update calls throughout.
2737 (ada_fixup_array_indexes_type): New function.
2738 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
2739 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
2740 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
2741 Remove name parameter.
2742 (print_array_type): Add call to ada_fixup_array_indexes_type.
2743 Update calls to print_range_type.
2744 (ada_print_type): Update calls to print_range_type.
2745
d09039dd
PM
27462010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
2747
2748 * dwarf2read.c (read_set_type): Set type length if
2749 DW_AT_byte_size attribute is present.
2750
7a081a30
PM
27512010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
2752
2753 * p-valprint.c (pascal_val_print): Handle set type if range limits
2754 are undefined but size is known.
2755
77382aee
PA
27562010-05-17 Pedro Alves <pedro@codesourcery.com>
2757
2758 * procfs.c: Reformat.
2759
433759f7
MS
27602010-05-16 Michael Snyder <msnyder@vmware.com>
2761
5d502164
MS
2762 * target.c: White space.
2763 * target-descriptions.c: White space.
2764 * target-memory.c: White space.
2765 * thread.c: White space.
2766 * top.c: White space.
2767 * tracepoint.c: White space.
2768 * trad-frame.c: White space.
2769 * tramp-frame.c: White space.
2770 * ui-file.c: White space.
2771 * ui-out.c: White space.
2772 * user-regs.c: White space.
2773 * utils.c: White space.
2774
433759f7
MS
2775 * scm-exp.c: White space.
2776 * scm-lang.c: White space.
2777 * scm-valprint.c: White space.
2778 * sentinel-frame.c: White space.
2779 * ser-base.c: White space.
2780 * ser-go32.c: White space.
2781 * serial.c: White space.
2782 * ser-mingw.c: White space.
2783 * ser-pipe.c: White space.
2784 * ser-tcp.c: White space.
2785 * ser-unix.c: White space.
2786 * solib.c: White space.
2787 * solib-darwin.c: White space.
2788 * solib-frv.c: White space.
2789 * solib-irix.c: White space.
2790 * solib-osf.c: White space.
2791 * solib-pa64.c: White space.
2792 * solib-som.c: White space.
2793 * solib-spu.c: White space.
2794 * solib-svr4.c: White space.
2795 * solib-target.c: White space.
2796 * source.c: White space.
2797 * stabsread.c: White space.
2798 * stack.c: White space.
2799 * std-regs.c: White space.
2800 * symfile.c: White space.
2801 * symmisc.c: White space.
2802 * symtab.c: White space.
2803
dd304d53
MS
28042010-05-16 Michael Snyder <msnyder@vmware.com>
2805
2806 * source.c (_initialize_source): Add "rev" as an abbreviation
2807 for the "reverse-search" command.
2808
a744cf53
MS
28092010-05-16 Michael Snyder <msnyder@vmware.com>
2810
123f5f96
MS
2811 * record.c: White space.
2812 * regcache.c: White space.
2813 * reggroups.c: White space.
2814 * remote-fileio.c: White space.
2815 * remote-m32r-sdi.c: White space.
2816 * remote-mips.c: White space.
2817 * remote-sim.c: White space.
a744cf53
MS
2818 * remote.c: White space.
2819 (process_g_packet): Remove orphan braces.
2820
b8d56208
MS
28212010-05-15 Michael Snyder <msnyder@vmware.com>
2822
ad3bbd48
MS
2823 * parse.c: White space.
2824 * p-lang.c: White space.
2825 * posix-hdep.c: White space.
2826 * printcmd.c: White space.
2827 * progspace.c: White space.
2828 * prologue-value.c: White space.
2829 * psymtab.c: White space.
2830 * p-typeprint.c: White space.
2831 * p-valprint.c: White space.
2832
5cc80db3
MS
2833 * objc-lang.c: White space.
2834 * objfiles.c: White space.
2835 * observer.c: White space.
2836 * osabi.c: White space.
2837 * osdata.c: White space.
2838
b8d56208
MS
2839 * m2-lang.c: White space.
2840 * m2-valprint.c: White space.
2841 * macrocmd.c: White space.
2842 * macroexp.c: White space.
2843 * macroscope.c: White space.
2844 * macrotab.c: White space.
2845 * main.c: White space.
2846 * maint.c: White space.
2847 * mdebugread.c: White space.
2848 * memattr.c: White space.
2849 * minsyms.c: White space.
2850 * monitor.c: White space.
2851
9a619af0
MS
28522010-05-14 Michael Snyder <msnyder@vmware.com>
2853
e0881a8e
MS
2854 * jv-lang.c: White space.
2855 * jv-typeprint.c: White space.
2856 * jv-valprint.c: White space.
2857 * language.c: White space.
2858 * libunwind-frame.c: White space.
2859 * linespec.c: White space.
2860 * linux-nat.c: White space.
2861 * linux-record.c: White space.
2862 * linux-thread-db.c: White space.
2863
abbb1732
MS
2864 * infcall.c: White space.
2865 * inf-child.c: White space.
2866 * infcmd.c: White space.
2867 * inferior.c: White space.
2868 * inf-loop.c: White space.
2869 * inflow.c: White space.
2870 * inline-frame.c: White space.
2871 * interps.c: White space.
2872
d8734c88
MS
2873 * gcore.c: White space.
2874 * gdb.c: White space.
2875 * gdbtypes.c: White space.
2876 * gnu-nat.c: White space.
2877 * gnu-v2-abi.c: White space.
2878 * gnu-v3-abi.c: White space.
2879
bb9bcb69
MS
2880 * findcmd.c: White space.
2881 * findvar.c: White space.
2882 * fork-child.c: White space.
2883 * frame-base.c: White space.
2884 * frame.c: White space.
2885 * frame-unwind.c: White space.
2886 * f-valprint.c: White space.
2887
d7f9d729
MS
2888 * elfread.c: White space.
2889 * environ.c: White space.
2890 * eval.c: White space.
2891 * event-loop.c: White space.
2892 * event-top.c: White space.
2893 * exceptions.c: White space.
2894 * exec.c: White space.
2895 * expprint.c: White space.
2896
9a619af0
MS
2897 * dbxread.c: White space.
2898 * dcache.c: White space.
2899 * disasm.c: White space.
2900 * doublest.c: White space.
2901 * dsrec.c: White space.
2902 * dummy-frame.c: White space.
2903 * dwarf2expr.c: White space.
2904 * dwarf2-frame.c: White space.
2905 * dwarf2loc.c: White space.
2906 * dwarf2read.c: White space.
2907
88d4aea7
PM
29082010-05-14 Phil Muldoon <pmuldoon@redhat.com>
2909
2910 PR python/11482
2911
2912 * python/py-value.c (valpy_hash): New function.
2913 (value_object_type): Register valpy_hash.
2914
7a298875 29152010-05-14 Hui Zhu <teawater@gmail.com>
0407b3f1 2916 Michael Snyder <msnyder@vmware.com>
7a298875
HZ
2917
2918 * linux-fork.c (gdbthread.h): New include.
2919 (fork_info): Add parent_ptid.
2920 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
2921 functions.
2922 (delete_checkpoint_command): Call inferior_call_waitpid.
2923 (checkpoint_command): Set parent_ptid.
2924
c14feecc
MS
29252010-05-13 Michael Snyder <msnyder@vmware.com>
2926
6595d32b
MS
2927 * dictionary.c: Re-indent to GNU coding standard.
2928
c5504eaf
MS
2929 * charset.c: White space.
2930 * c-lang.c: White space.
2931 * cli-out.c: White space.
2932 * coffread.c: White space.
2933 * complaints.c: White space.
2934 * completer.c: White space.
2935 * corefile.c: White space.
2936 * corelow.c: White space.
2937 * cp-abi.c: White space.
2938 * cp-namespace.c: White space.
2939 * cp-support.c: White space.
2940 * cp-valprint.c: White space.
2941 * c-typeprint.c: White space.
2942 * c-valprint.c: White space.
cc59ec59
MS
2943 * blockframe.c: White space.
2944 * breakpoint.c: White space.
2945 * buildsym.c: White space.
2946 * blockframe.c: White space.
b6de9da4 2947 * bcache.c: White space.
05c547f6
MS
2948 * gdbarch.sh: White space, add blank lines.
2949 * arch-utils.c: Ditto.
2950 * gdbarch.c: Regenerate.
1c4d3f96 2951 * frame.c: White space, add blank lines.
f89b749f
MS
2952 * stack.c: White space, add blank lines.
2953 (initialize_stack): Remove long-dead code.
c14feecc 2954
a2d33775
JK
29552010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2956
2957 Code cleanup.
2958 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
2959 (locexpr_read_variable, loclist_read_variable): Update the callers.
2960
33ac96f0
JK
29612010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2962
2963 Code cleanup.
2964 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
2965 Remove check of NULL returned by tag_type_to_type.
2966 (die_containing_type): Remove variable type. Remove type_die variable
2967 initialization. Remove check of NULL returned by tag_type_to_type.
2968
f5a010c0
PM
29692010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
2970
2971 PR exp/11530.
2972 * gdbtypes.c (lookup_struct_elt_type): Also lookup
2973 names of unnamed structures or unions.
2974
bf701c2c
PM
29752010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
2976
2977 * procfs.c (proc_watchpoint_address): New function.
0407b3f1 2978 (procfs_stopped_by_watchpoint): Remove useless check after
bf701c2c
PM
2979 find_procinfo_or_die call.
2980 (procfs_stopped_data_address): New function.
2981 (procfs_use_watchpoints): Register new watchpoint related function.
2982
d02691ef
TT
29832010-05-11 Tom Tromey <tromey@redhat.com>
2984
2985 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
2986
e0627e85
MS
29872010-05-10 Michael Snyder <msnyder@vmware.com>
2988
2989 * utils.c: White space cleanup.
2990
cc73bb8c
TT
29912010-05-10 Tom Tromey <tromey@redhat.com>
2992
2993 * eval.c (ptrmath_type_p): Add 'lang' argument.
2994 (evaluate_subexp_standard): Update.
2995 (evaluate_subexp_with_coercion): Update.
2996 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
2997
c02866a0
MS
29982010-05-10 Michael Snyder <msnyder@vmware.com>
2999
3000 * utils.c (do_fclose_cleanup) Restore local variable.
3001
06280d23
DE
30022010-05-09 Doug Evans <dje@google.com>
3003
3004 * record.c (init_record_core_ops): Rename record_core to record-core.
3005
fa07e785
JB
30062010-05-08 Joel Brobecker <brobecker@adacore.com>
3007
3008 Implement task switching on pa-hpux.
3009 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
3010 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
3011
4c680d1d
PM
30122010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
3013
3014 * valops.c (find_overload_match): Add missing i18n markup.
3015
28e176a6
PM
30162010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
3017
3018 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
3019
48cb83fd
JK
30202010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3021
3022 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
3023 list for the obconcat call.
3024 * mdebugread.c (parse_symbol): Likewise.
3025 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
3026 Likewise.
3027 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
3028 New variable ap. Remove variables len and val.
3029 * symfile.h (obconcat): Likewise for the prototype.
3030
f92adf3c
MS
30312010-05-07 Michael Snyder <msnyder@vmware.com>
3032
3033 * python/python.c (execute_gdb_command): Remove unused variables.
3034 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
0407b3f1 3035 * python/py-breakpoint.c (gdbpy_breakpoint_created):
f92adf3c
MS
3036 Remove unused variable.
3037 * python/py-cmd.c (cmdpy_function): Remove unused variable.
3038 (cmdpy_completer): Remove unused variable.
3039 * python/py-frame.c (frapy_find_sal): Remove unused variable.
3040 * python/py-function.c (fnpy_call): Remove unused variable.
3041 * python/py-objfile.c (objfile_to_objfile_object):
3042 Remove unused variable.
3043 * python/py-param.c (parmpy_init): Remove unused variable.
0407b3f1 3044 * python/py-prettyprint.c (apply_varobj_pretty_printer):
f92adf3c
MS
3045 Remove unused variable.
3046 (gdbpy_default_visualizer): Remove unused variable.
3047 * python/py-progspace.c (pspace_to_pspace_object):
3048 Remove unused variable.
0407b3f1 3049 * python/py-symtab.c (symtab_and_line_to_sal_object):
f92adf3c 3050 Remove unused variable.
0407b3f1 3051 * python/py-type.c (typy_template_argument):
f92adf3c
MS
3052 Remove unused variable.
3053 * python/py-value.c (valpy_string): Remove unused variable.
3054 (convert_value_from_python): Remove unused variables.
3055
d160942f
MS
30562010-05-07 Michael Snyder <msnyder@vmware.com>
3057
3058 * valops.c (value_cast_pointers): Restore unused variable 'type1',
3059 and use it to compute variable 't1'.
3060
587542ab
JB
30612010-05-07 Joel Brobecker <brobecker@adacore.com>
3062
3063 * ada-lang.c (assign_aggregate): Remove unused variable.
3064
7322dca9
SW
30652010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
3066
3067 PR C++/7943:
3068 * valops.c (find_overload_match): Handle fsym == NULL case.
3069 Add int no_adl argument.
3070 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
3071 when appropriate.
3072 Add int no_adl argument.
3073 (find_oload_champ_namespace): Add int no_adl argument.
3074 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
3075 expression.
3076 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
3077 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
3078 Evaluate arguments and use them to perform ADL lookup.
3079 Pass no_adl argument to find_overload_match.
3080 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
3081 * cp-support.h: Added prototype for
3082 make_symbol_overload_list_namespace.
3083 * cp-support.c (make_symbol_overload_list_namespace): New function.
3084 (make_symbol_overload_list_adl_namespace): New function.
3085 (make_symbol_overload_list_adl): New function.
3086 (make_symbol_overload_list_using): Moved code to add function to
3087 overload set to make_symbol_overload_list_namespace.
3088 * c-exp.y: create UNKNOWN_CPP_NAME token.
3089 Add parse rule for ADL functions.
3090 (classify_name): Recognize an UNKNOWN_CPP_NAME.
3091
3f1f6884
JK
30922010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3093
3094 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
3095 sentinel.
3096
3caf13b4
JB
30972010-05-07 Joel Brobecker <brobecker@adacore.com>
3098
3099 Implement task switching on solaris targets.
3100 * sol-thread.c (thread_db_find_thread_from_tid)
3101 (sol_get_ada_task_ptid): New functions.
3102 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
3103
94b0dee1
PA
31042010-05-07 Pedro Alves <pedro@codesourcery.com>
3105
3106 * remote.c (remote_query_supported_append): Use reconcat.
3107 (remote_query_supported): Install a cleanup. Use reconcat.
3108
1408c251
PA
31092010-05-07 Pedro Alves <pedro@codesourcery.com>
3110
3111 * gdbarch.sh (qsupported): Delete.
3112 * gdbarch.h, gdbarch.c: Regenerate.
3113 * remote.c (remote_query_supported): Remove use of
3114 gdbarch_qsupported.
3115
f8e50cfe
SDJ
31162010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
3117
3118 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
3119 function.
3120
8ea13695
MS
31212010-05-06 Michael Snyder <msnyder@vmware.com>
3122
c6913b7d
MS
3123 * xml-support.c (xinclude_start_include): Delete unused variable.
3124 (xml_process_xincludes): Delete unused variable.
3125 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
3126 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
3127 (tdesc_find_arch_register): Delete unused variable.
3128 (tdesc_use_registers): Delete unused variable.
3129 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
3130 * inferior.c (print_inferior): Delete unused variable.
3131 * record.c (record_open_1): Delete unused variable.
3132 (record_restore): Delete unused variable.
3133 (cmd_record_save): Delete unused variable.
3134 * gcore.c (derive_heap_segment): Delete unused variable.
3135 (objfile_find_memory_regions): Use unused variable.
3136 * jit.c (jit_inferior_init): Delete unused variable.
3137 * progspace.c (clone_program_space): Delete unused variable.
3138 (pspace_empty_p): Delete unused variable.
0407b3f1
AS
3139
3140 * frame-unwind.c (frame_unwind_find_by_frame):
1c5465ac
MS
3141 Delete unused variable.
3142 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
3143 * cp-support.c (mangled_name_to_comp): Delete unused variable.
3144 (method_name_from_physname): Delete unused variable.
3145 (cp_func_name): Delete unused variable.
3146 (cp_validate_operator): Delete unused variable.
0407b3f1 3147 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1c5465ac 3148 Delete unused variable.
0407b3f1 3149 * trad-frame.c (trad_frame_get_prev_register):
1c5465ac
MS
3150 Delete unused variable.
3151 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
3152
1be757cf
MS
3153 * serial.c (serial_for_fd): Delete unused variable.
3154 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
3155 * top.c (execute_command): Delete unused variable.
3156 (init_main): Delete unused variable.
3157 * utils.c (do_fclose_cleanup): Delete unused variable.
3158 (do_all_inferior_continuations): Delete unused variable.
3159 (initialize_utils): Delete unused variable.
3160 (internal_problem_mode): Delete unused global.
3161 * frame.c (get_prev_frame): Delete unused global.
3162 (get_frame_locals_address): Delete unused global.
3163 (get_frame_args_address): Delete unused global.
3164
9216103f
MS
3165 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
3166 (pascal_type_print_varspec_prefix): Delete unused variable.
3167 * f-typeprint.c (f_type_print_base): Delete unused variable.
3168 (f_type_print_varspec_suffix): Delete unused variable.
3169 * m2-typeprint.c (m2_print_type): Delete unused variable.
3170 (m2_long_set): Delete unused variable.
3171 * ada-valprint.c (ada_val_print_1): Delete unused variable.
3172 * d-valprint.c (dynamic_array_type): Delete unused variable.
0407b3f1 3173 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
9216103f
MS
3174 Delete unused variable.
3175 (f77_create_arrayprint_offset_tbl): Delete unused variable.
3176 * m2-valprint.c (m2_val_print): Delete unused variable.
3177
34fa1d9d
MS
3178 * ui-out.c (ui_out_field_int): Delete unused variable.
3179 (ui_out_field_fmt_int): Delete unused variable.
3180 * varobj.c (varobj_list_children): Delete unused variable.
3181 (varobj_set_value): Delete unused variable.
3182 (install_new_value_visualizer): Delete unused variable.
3183 (varobj_set_visualizer): Delete unused variable.
3184 (varobj_update): Delete unused variable.
3185 (varobj_editable_p): Delete unused variable.
3186 (c_value_of_root): Delete unused variable.
3187 (cplus_describe_child): Delete unused variable.
3188
b5385fc0
MS
3189 * ada-lang.c (add_defn_to_vec): Delete unused variable.
3190 (decode_constrained_packed_array_type): Delete unused variable.
3191 (add_defn_to_vec): Delete unused variable.
3192 (symbol_completion_match): Delete unused variable.
3193 (value_tag_from_contents_and_address): Delete unused variable.
3194 (ada_evaluate_subexp): Delete unused variable.
3195 * c-lang.c (classify_type): Delete unused variable.
3196 * f-lang.c (f_printstr): Delete unused variable.
3197 * objc-lang.c (objc_printstr): Delete unused variable.
3198 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
3199 * jv-lang.c (type_from_class): ifdef unused variable.
3200 (java_class_name_from_physname): Delete unused variable.
3201 * m2-lang.c (m2_printstr): Delete unused variable.
3202
4fc06681
MS
3203 * objfiles.c (objfile_relocate): Delete unused variable.
3204 * maint.c (_initialize_maint_cmds): Delete unused variable.
3205 * demangle.c (_initialize_demangler): Delete unused variable.
3206 * corefile.c (reopen_exec_file): Delete unused variable.
3207 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
3208 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
3209
6b4398f7
MS
3210 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
3211 * memattr.c (mem_delete): Delete unused variable.
3212 (invalidate_target_mem_regions): Delete unused variable.
3213 * mem-break.c (default_memory_insert_breakpoint):
3214 Delete unused variable.
3215 * target.c (target_get_osdata): Delete unused variable.
3216 * parse.c (length_of_subexp): Delete unused variable.
3217 (prefixify_subexp): Delete unused variable.
3218 (exp_iterate): Delete unused variable.
3219 * reverse.c (delete_bookmark_command): Delete unused variable.
3220
308d96ed
MS
3221 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
3222 * macroexp.c (gather_arguments): Delete unused variable.
3223 (substitute_args): Delete unused variable.
3224 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
3225 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
3226 (_initialize_gdbarch): Delete unused variable.
3227 * gdbarch.c, gdbarch.h: Regenerate.
0407b3f1 3228 * arch-utils.c (initialize_current_architecture):
308d96ed
MS
3229 Delete unused variable.
3230 (_initialize_gdbarch_utils): Delete unused variable.
3231 * gdbtypes.c (make_cv_type): Delete unused variable.
3232 (make_type_with_address_space): Delete unused variable.
3233
167e4384
MS
3234 * linespec.c (decode_compound): Delete unused variable.
3235 * dictionary.c (iterator_next_hashed): Delete unused variable.
3236 * infcall.c (call_function_by_hand): Delete unused variable.
3237 * infcmd.c (step_1): Delete unused variable.
3238 (registers_info): Delete unused variable.
3239 (attach_command): Delete unused variable.
3240 * infrun.c (follow_exec): Delete unused variable.
3241 (handle_step_into_function_backwards): Delete unused variable.
3242 (_initialize_infrun): Delete unused variable.
3243 * stack.c (parse_frame_specification_1): Delete unused variable.
3244 (frame_info): Delete unused variable.
3245 (backtrace_command_1): Delete unused variable.
3246 (catch_info): Delete unused variable.
3247
8f78b329
MS
3248 * eval.c (evaluate_subexp_standard): Delete unused variable.
3249 * valops.c (value_cast_pointers): Delete unused variable.
3250 (value_dynamic_cast): Delete unused variable.
3251 (value_array): Delete unused variable.
3252 (find_overload_match): Delete unused variable.
3253 * valarith.c (value_subscript): Delete unused variable.
3254 (value_binop): Delete unused variable.
3255 * valprint.c (_initialize_valprint): Delete unused variable.
3256 * printcmd.c (print_command_1): Delete unused variable.
3257 (address_info): Delete unused variable.
3258 (printf_command): Delete unused variable.
3259
8ea13695
MS
3260 * auxv.c (target_auxv_search): Delete unused variable.
3261 * blockframe.c (get_frame_block): Delete unused variable.
3262 * regcache.c (regcache_cpy): Delete unused variable.
3263 (regcache_cpy_no_passthrough): Delete unused variable.
3264 * charset.c (wchar_iterate): Delete unused variable.
3265 (find_charset_names): Delete unused variable.
3266 (_initialize_charset): Delete unused variable.
0407b3f1 3267 * disasm.c (do_mixed_source_and_assembly):
8ea13695 3268 Delete unused variable.
0407b3f1 3269 * source.c (set_default_source_symtab_and_line):
8ea13695
MS
3270 Delete unused variable.
3271 (set_substitute_path_command): Delete unused variable.
3272 * value.c (preserve_values): Delete unused variable.
3273 (value_from_double): Delete unused variable.
3274
afe38095
MS
32752010-05-05 Michael Snyder <msnyder@vmware.com>
3276
952a6d41
MS
3277 * psymtab.c (lookup_partial_symbol): Delete unused variable.
3278 (find_last_source_symtab_from_partial): Delete unused variable.
3279 * symfile.c (place_section): Delete unused variable.
3280 (default_symfile_offsets): Delete unused variable.
3281 (get_debug_link_info): Delete unused variable.
3282 (find_separate_debug_file_by_debuglink): Delete unused variable.
3283 (add_symbol_file_command): Delete unused variable.
3284 (symfile_find_segment_sections): Delete unused variable.
3285 * symmisc.c (free_symtab): Delete unused variable.
3286 (dump_symtab_1): Delete unused variable.
3287 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
3288 (find_pc_sect_symtab): Delete unused variable.
3289 (skip_prologue_using_lineinfo): Delete unused variable.
3290 (sources_info): Delete unused variable.
3291 (completion_list_add_name): Delete unused variable.
3292 (expand_line_sal): Delete unused variable.
3293
0407b3f1 3294 * breakpoint.c (validate_commands_for_breakpoint):
afe38095
MS
3295 Delete unused variables.
3296 (insert_catchpoint): Delete unused variable.
3297 (update_watchpoint): Delete unused variable.
3298 (insert_bp_location): Delete unused variable.
3299 (insert_breakpoint_locations): Delete unused variable.
3300 (remove_breakpoint_1): Delete unused variable.
3301 (software_breakpoint_inserted_here_p): Delete unused variable.
3302 (watchpoints_triggered): Delete unused variable.
3303 (bpstat_check_watchpoint): Delete unused variable.
3304 (bpstat_stop_status): Delete unused variable.
3305 (print_one_breakpoint_location): Delete unused variable.
3306 (allocate_bp_location): Delete unused variable.
3307 (create_breakpoint): Delete unused variable.
3308 (watch_command_1): Delete unused variable.
3309 (catch_exception_command_1): Delete unused variable.
3310 (catch_ada_exception_command): Delete unused variable.
3311 (delete_breakpoint): Delete unused variable.
3312 (breakpoint_re_set_one): Delete unused variable.
3313 (do_enable_breakpoint): Delete unused variable.
3314
eda5a4d7
PA
33152010-05-06 Pedro Alves <pedro@codesourcery.com>
3316
3317 * amd64-tdep.c: Include disasm.h.
3318 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
3319 (amd64_insn_length): Moved to disasm.c and renamed.
3320 (fixup_riprel): Adjust.
3321 * disasm.c (do_ui_file_delete): New.
3322 (gdb_insn_length): New.
3323 (gdb_buffered_insn_length_fprintf)
3324 (gdb_buffered_insn_length_init_dis)
3325 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
3326 renamed.
3327 * disasm.h (gdb_insn_length): Declare.
3328 (gdb_buffered_insn_length): Declare.
3329
02357a4a
PA
33302010-05-06 Pedro Alves <pedro@codesourcery.com>
3331
3332 * remote.c (clear_threads_parsing_context): New.
3333 (remote_threads_info): Delete unused null_cleanup. Install a
3334 cleanup to clear the threads_parsing_context in case parsing
3335 throws.
3336
8c5630cb
MS
33372010-05-05 Michael Snyder <msnyder@vmware.com>
3338
3339 * c-exp.y (parse_string_or_char): Delete unused variable.
3340 (c_lex): Delete unused variable.
3341 * cp-name-parser.y (cpname_lex): Delete unused variable.
3342 * ada-exp.y (find_primitive_type): Delete unused variable.
3343 (write_var_or_type): Delete unused variable.
3344 * jv-exp.y (java_parse): Delete unused variable.
3345 (push_expression_name): Delete unused variable.
3346 * p-exp.y (pascal_lex): Delete unused variable.
3347
46c162d4
PA
33482010-05-05 Pedro Alves <pedro@codesourcery.com>
3349
3350 * remote.c (remote_threads_info): Really revert previous previous
3351 change.
3352
0043e6a5
MS
33532010-05-05 Michael Snyder <msnyder@vmware.com>
3354
fa238c03
MS
3355 * elfread.c (elf_symtab_read): Delete unused variable.
3356 (find_separate_debug_file_by_buildid): Delete unused variables.
3357 (elf_symfile_read): Delete unused variable.
3358
3359 * coffread.c (coff_symfile_read): Delete unused variables.
3360
3361 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
3362 (read_pe_exported_syms): Delete unused variable.
3363
3364 * stabsread.c (define_symbol): Delete unused variable.
3365
3366 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
3367 (process_psymtab_comp_unit): Delete unused variable.
3368 (dwarf2_build_psymtabs_hard): Delete unused variable.
3369 (load_partial_comp_unit): Delete unused variable.
3370 (create_all_comp_units): Delete unused variable.
3371 (scan_partial_symbols): Delete unused variable.
3372 (add_partial_symbol): Delete unused variable.
3373 (add_partial_namespace): Delete unused variable.
3374 (add_partial_enumeration): Delete unused variable.
3375 (load_full_comp_unit): Delete unused variable.
3376 (process_full_comp_unit): Delete unused variable.
3377 (read_file_scope): Delete unused variable.
3378 (read_type_unit_scope): Delete unused variable.
3379 (process_structure_scope): Delete unused variable.
3380 (process_enumeration_scope): Delete unused variable.
3381 (read_tag_ptr_to_member_type): Delete unused variable.
3382 (read_typedef): Delete unused variable.
3383 (read_partial_die): Delete unused variable.
3384 (decode_locdesc): Delete unused variable.
3385 (zeroed_partial_die): Delete unused global variable.
3386
0407b3f1 3387 * tui/tui-interp.c (_initialize_tui_interp):
0043e6a5 3388 Delete unused variable.
0407b3f1 3389 * tui/tui-regs.c tui_display_registers_from):
0043e6a5
MS
3390 Delete unused variable.
3391 (tui_check_register_values): Delete unused variable.
3392 (tui_register_format): Delete unused variable.
3393 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
0407b3f1 3394 * tui/tui-windata.c (tui_display_data_from_line):
0043e6a5
MS
3395 Delete unused variables.
3396 (tui_vertical_data_scroll): Delete unused variables.
3397
75721c66
MS
33982010-05-05 Michael Snyder <msnyder@vmware.com>
3399
c31a71f4
MS
3400 * remote.c (remote_threads_info): Revert questionable part of
3401 the previous change.
3402
34032010-05-05 Michael Snyder <msnyder@vmware.com>
3404
3405 * mi/mi-out.c (mi_table_begin): Delete unused variable.
3406 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
3407 (mi_cmd_var_list_children): Delete unused variable.
3408 (varobj_update_one): Delete unused variable.
3409 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
0407b3f1 3410 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
c31a71f4
MS
3411 Delete unused variable.
3412 (mi_cmd_stack_list_variables): Delete unused variable.
3413 (list_args_or_locals): Delete unused variable.
0407b3f1 3414 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
c31a71f4
MS
3415 Delete unused variables.
3416 (mi_cmd_file_list_exec_source_files): Delete unused variable.
0407b3f1 3417 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
c31a71f4
MS
3418 Delete unused variable.
3419 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
3420 (mi_cmd_interpreter_exec): Delete unused variable.
3421 (mi_on_normal_stop): Delete unused variable.
3422 * mi/mi-main.c (run_one_inferior): Delete unused variable.
3423 (print_one_inferior): Delete unused variables.
3424 (mi_execute_command): Delete unused variable.
3425 (mi_cmd_execute): Delete unused variable.
3426 (timestamp): Delete unused variable.
3427
3428 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
d36fc00b 3429 (restore_binary_file): Delete unused variable.
c31a71f4
MS
3430 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
3431 * cli/cli-script.c (define_command): Delete unused variables.
d36fc00b
MS
3432 (recurse_read_control_structure): Delete unused variable.
3433 (script_from_file): Delete unused variable.
c31a71f4 3434 * cli/cli-cmds.c (complete_command): Delete unused variable.
d36fc00b
MS
3435 (disassemble_command): Delete unused variable.
3436
3437 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
0407b3f1 3438 * tracepoint.c (delete_trace_variable_command):
d36fc00b
MS
3439 Delete unused variables.
3440 (encode_actions_1): Delete unused variables.
3441 (start_tracing): Delete unused variable.
3442 (trace_status_mi): Delete unused variable.
3443 (tfind_1): Delete unused variable.
3444 (trace_find_pc_command): Delete unused variable.
3445 (trace_find_line_command): Delete unused variables.
3446 (trace_find_range_command): Delete unused variables.
3447 (trace_find_outside_command): Delete unused variables.
3448 (parse_tracepoint_definition): Delete unused variables.
3449 (tfile_fetch_registers): Delete unused variable.
3450
9128a503
MS
3451 * dcache.c (dcache_init): Delete unused variable.
3452 (dcache_info): Delete unused variable.
3453
aa369b55 3454 * remote.c (remote_threads_info): Delete unused variable.
9128a503 3455 (process_stop_reply) :Delete unused variable.
aa369b55
MS
3456 (remote_get_trace_status): Delete unused variables.
3457
9e9547e4
MS
3458 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
3459 (thread_from_lwp): Delete unused variable.
3460 (enable_thread_event_reporting): Delete unused variable.
3461 (check_for_thread_db): Delete unused variables.
3462 (thread_db_find_new_threads_2): Delete unused variable.
0407b3f1 3463
9e9547e4
MS
3464 * linux-fork.c (info_checkpoints_command): Delete unused variables.
3465 (checkpoint_command): Delete unused variable.
3466 (linux_fork_context): Delete unused variables.
3467
fa238c03 3468 * linux-nat.c (linux_parent_pid): Delete unused global variable.
75083f7e
MS
3469 (linux_tracefork_child): Delete unused variable.
3470 (linux_child_follow_fork): Delete unused variable.
3471 (linux_nat_detach): Delete unused variable.
3472 (linux_handle_extended_wait): Delete unused variable.
3473 (linux_nat_has_pending_sigint): Delete unused variable.
3474 (linux_nat_find_memory_regions): Delete unused variable.
3475 (linux_nat_make_corefile_notes): Delete unused variables.
3476 (linux_nat_info_proc_cmd): Delete unused variable.
3477 (linux_proc_pending_signals): Delete unused variable.
3478 (linux_nat_stop_lwp): Delete unused variables.
3479 (_initialize_linux_nat): Delete unused variable.
3480
fa238c03 3481 * ser-pipe.c (pipe_ops): Delete unused global variable.
2d148b94 3482
0407b3f1 3483 * linux-record.c (record_linux_system_call):
e0f069a3
MS
3484 Delete unused variables.
3485
789d24f0
MS
3486 * corelow.c (core_xfer_partial): Delete unused variables.
3487
1cd337a5 3488 * solib-svr4.c (find_program_interpreter): Delete unused variable.
0407b3f1 3489 (svr4_solib_create_inferior_hook): Add ifdef around
1cd337a5
MS
3490 conditionally-used variable declarations.
3491
b00e3f56
MS
3492 * solib.c (solib_find): Delete unused variable.
3493 (free_so_symbols): Delete unused variable.
3494 (info_sharedlibrary_command): Delete unused variable.
3495 (reload_shared_libraries_1): Delete unused variable.
3496 (_initialize_solib): Delete unused variable.
3497
90f62196
MS
3498 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
3499 (i386_collect_xstateregset): Delete unused variable.
3500 * i387-tdep.c (i387_print_float_info): Delete unused variable.
3501
75721c66
MS
3502 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
3503 Delete unused variable 'type'.
3504
af33db37
JB
35052010-05-05 Joel Brobecker <brobecker@adacore.com>
3506
90f62196 3507 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
63db82b2
JB
3508 ada-lang.c: Remove comment mentioning these macros.
3509 * m2-exp.y: Delete commented out code.
af33db37 3510
0497f5b0
JB
35112010-05-05 Joel Brobecker <brobecker@adacore.com>
3512
3513 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
3514 for array types.
3515 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
3516
6e39997a
PM
35172010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
3518
3519 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
0407b3f1 3520 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6e39997a
PM
3521 ATTRIBUTE_UNUSED.
3522 (cleanup_kernel_helper_return): Likewise.
3523 * arm-tdep.c (copy_unmodified): Likewise.
3524 (copy_preload): Likewise.
3525 (copy_copro_load_store): Likewise.
3526 (cleanup_branch): Likewise.
3527 (copy_b_bl_blx): Likewise.
3528 (copy_bx_blx_reg): Likewise.
3529 (copy_alu_imm): Likewise.
3530 (copy_alu_reg): Likewise.
3531 (copy_alu_shifted_reg): Likewise.
3532 (cleanup_load): Likewise.
3533 (cleanup_store): Likewise.
3534 (cleanup_block_load_pc): Likewise.
3535 (cleanup_svc): Likewise.
3536 (copy_undef): Likewise.
3537 (copy_unpred): Likewise.
3538 * remote.c (register_remote_support_xml): Likewise.
3539
1412f70b
HZ
35402010-05-05 Hui Zhu <teawater@gmail.com>
3541
3542 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
3543
c4f7c687
MK
35442010-05-04 Mark Kettenis <kettenis@gnu.org>
3545
3546 * remote.c (register_remote_support_xml)
3547 (remote_query_supported_append, remote_query_supported): Add cast
3548 to NULL used as sentinel.
3549 * tracepoint.c (tvariables_info_1): Likewise.
3550 * utils.c (add_internal_problem_command): Likewise.
3551
63b4f126
MGD
35522010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3553
3554 * dwarf2loc.c (read_pieced_value, write_pieced_value,
3555 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
3556 registers gracefully.
3557
2f1bdd26
MGD
35582010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3559
0407b3f1 3560 * exec.c (print_section_info): Display entry point without arch
2f1bdd26
MGD
3561 specific parts.
3562
e1c34c5d
PM
35632010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
3564
3565 PR exp/11349.
3566 * printcmd.c (x_command): Only dereference once implicitly for
3567 TYPE_CODE_REF.
3568
ae462839
DE
35692010-05-03 Doug Evans <dje@google.com>
3570
3571 * event-loop.c (gdb_timer): Delete unused global.
3572 (create_timer): Update.
3573
1ac77ea1
JK
35742010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3575
3576 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
3577 CURRENT->DECLARATION case.
3578 * cp-support.h (struct using_direct): Provide extended comment.
3579
7c54a108
MK
35802010-05-03 Mark Kettenis <kettenis@gnu.org>
3581
3582 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
3583 HPPABSD_SIZEOF_GREGS.
3584 (HPPAOBSD_SIZEOF_FPREGS): New define.
3585 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
3586 (hppaobsd_supply_fpregset): New function.
3587 (hppaobsd_gregset): Renamed from hppabsd_gregset.
3588 (hppaobsd_fpregset): New variable.
3589 (hppaobsd_regset_from_core_section): Handle floating-point registers.
3590 (_initialize_hppabsd_tdep): Remove spurious blank line.
3591
278582cb
PM
35922010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3593
3594 PR pascal/11349.
3595 * p-valprint.c (pascal_value_print): Always dereference a value with
3596 type code TYPE_CODE_REF.
0407b3f1 3597
f0223081
PA
35982010-05-03 Pedro Alves <pedro@codesourcery.com>
3599
3600 * remote.c (remote_notice_signals): New.
3601 (remote_start_remote): In non-stop mode, update the remote end on
3602 which signals it can silently pass.
3603 (init_remote_ops): Install remote_notice_signals.
3604
c25c4a8b
JK
36052010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3606
3607 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
3608 * command.h (error_no_arg): ... here. Remove NORETURN, change
3609 ATTR_NORETURN to ATTRIBUTE_NORETURN.
3610 * defs.h (NORETURN, ATTR_NORETURN): Remove.
3611 (perror_with_name, verror, error, error_stream, vfatal, fatal)
3612 (internal_verror, internal_error, nomem): Remove NORETURN, change
3613 ATTR_NORETURN to ATTRIBUTE_NORETURN.
3614 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
3615 (throw_vfatal, throw_error): Remove NORETURN.
3616 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
3617 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
3618 (throw_error, deprecated_throw_reason): Remove NORETURN, change
3619 ATTR_NORETURN to ATTRIBUTE_NORETURN.
3620 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
3621 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
3622 NORETURN.
3623 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
3624 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
3625 ATTRIBUTE_NORETURN.
3626 * target.c (tcomplain): Likewise.
3627 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
3628 ATTRIBUTE_NORETURN.
3629 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
3630 (internal_error, perror_with_name, nomem): Remove NORETURN.
3631 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
3632 ATTRIBUTE_NORETURN.
3633
a0b31db1
JK
36342010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3635
3636 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
3637 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
3638 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
3639 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
3640 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
3641 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
3642 * complaints.h (complaint, internal_complaint): Likewise.
3643 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
3644 (ATTR_FORMAT): Remove.
3645 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
3646 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
3647 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
3648 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
3649 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
3650 (internal_error, internal_vwarning, internal_warning, warning)
3651 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
3652 * disasm.c (fprintf_disasm): Likewise.
3653 * exceptions.c (throw_it): Likewise.
3654 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
3655 (throw_error): Likewise.
3656 * language.h (type_error, range_error): Likewise.
3657 * linespec.c (cplusplus_error): Likewise.
3658 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
3659 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
3660 * monitor.c (monitor_debug): Likewise.
3661 * parser-defs.h (parser_fprintf): Likewise.
3662 * serial.h (serial_printf): Likewise.
3663 * tui/tui-hooks.c (tui_query_hook): Likewise.
3664 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
3665 (uo_message): Likewise.
3666 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
3667 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
3668 Likewise.
3669 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
3670
02a45ac0
PA
36712010-05-02 Pedro Alves <pedro@codesourcery.com>
3672
3673 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
3674 (cli_table_header, cli_begin, cli_end, cli_field_int)
3675 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
3676 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
3677 Delete forward declarations.
3678 (cli_ui_out_impl): Move below the callbacks.
3679 (_initialize_cli_out): Delete.
3680
1915ef4f
PA
36812010-05-02 Pedro Alves <pedro@codesourcery.com>
3682
3683 * README: Use consistent `GDB' and `GDBserver' spellings.
3684
0dfb946f
JK
36852010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3686
3687 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
3688
4d533103
PA
36892010-05-01 Pedro Alves <pedro@codesourcery.com>
3690
3691 * infrun.c (prepare_for_detach): In non-stop, context switch to
3692 the thread that got the event before handling the event.
3693
705b5767
TT
36942010-04-30 Tom Tromey <tromey@redhat.com>
3695
3696 * symtab.c (symbol_set_names): Fix typo.
3697
3c0ee1a4
PM
36982010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
3699
3700 * python/py-param.c (parm_constants): Avoid ARI warning
3701 by adding ARI comment.
3702 (parmpy_init): Likewise.
3703
ea1fae46
PM
37042010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
3705
3706 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
3707 and created type for re-use.
3708
c24d0242
PM
37092010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
3710
3711 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
3712
a26d8d11
DE
37132010-04-29 Doug Evans <dje@google.com>
3714
3715 * ser-base.h (reschedule): Delete prototype.
3716 * ser-base.c (reschedule): Make static.
3717
f8624c62
MGD
37182010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3719
3720 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
3721 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
0407b3f1 3722 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
f8624c62 3723 EABI.
0407b3f1 3724 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
f8624c62
MGD
3725 use.
3726
e66408ed
PA
37272010-04-29 Pedro Alves <pedro@codesourcery.com>
3728
3729 PR gdb/11557
3730
3731 * regcache.c (registers_changed): Rename to ...
3732 (registers_changed_ptid): ... this, and only delete register cache
3733 entries matching the ptid filter argument.
3734 (registers_changed): Reimplement on top of registers_changed_ptid.
3735 * regcache.h (registers_changed_ptid): Declare.
3736 * target.c (target_resume): Flush register caches.
3737
d7b32ed3 37382010-04-29 Phil Muldoon <pmuldoon@redhat.com>
0407b3f1
AS
3739 Tom Tromey <tromey@redhat.com>
3740 Thiago Jung Bauermann <bauerman@br.ibm.com>
3741
3742 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
3743 (SUBDIR_PYTHON_SRCS): Likewise.
3744 (py-parameter.o): New rule.
3745 * python/py-parameter.c: New file.
3746 * python/python-internal.h (gdbpy_initialize_parameter)
3747 (gdbpy_parameter, gdbpy_parameter_value)
3748 (gdbpy_parse_command_name): Declare.
3749 * python/py-cmd.c (parse_command_name): Rename to
3750 gdbpy_parse_command_name.
3751 (gdbpy_parse_command_name): Accept a starting list parameter and
3752 use over cmdlist.
3753 (cmdpy_init): Use gdbpy_parse_command_name.
3754 * python/python.c (parameter_to_python): Rename to
3755 gdbpy_parameter_to_python. Accept enum var_types and value.
3756 (gdbpy_parameter): Use gdbpy_parameter_value.
3757 (_initialize_python): Call gdbpy_initialize_parameters.
d7b32ed3 3758
ce72ce41
MGD
37592010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3760
3761 * MAINTAINERS: Add myself for write after approval privileges.
3762
6aecb9c2
JB
37632010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
3764
3765 D language support.
3766 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
3767 (COMMON_OBS): Add d-lang.o d-valprint.o.
3768 (HFILES_NO_SRCDIR): Add d-lang.h.
3769 * NEWS: Mention D language support.
3770 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
3771 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
3772 * d-lang.c: New file.
3773 * d-lang.h: New file.
3774 * d-valprint.c: New file.
3775 * defs.h (enum language): Add language_d.
3776 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
3777 * language.c (binop_result_type, integral_type, character_type)
3778 (string_type, boolean_type, structured_type): Add language_d.
3779 * symfile.c (init_filename_language_table): Add language_d.
3780 * symtab.c: Include d-lang.h.
3781 (symbol_init_language_specific, symbol_find_demangled_name)
3782 (symbol_natural_name, lookup_symbol_in_language)
3783 (symbol_demangled_name, symbol_matches_domain): Add language_d.
3784
6f992fbf
JB
37852010-04-27 Joel Brobecker <brobecker@adacore.com>
3786
3787 * solib-svr4.c (solib_svr4_r_map): Expand function description.
3788
dde59185
JB
37892010-04-27 Joel Brobecker <brobecker@adacore.com>
3790
3791 * symfile.c (init_filename_language_table): Register .dg files
3792 with language_ada.
3793
d09ce91e
JB
37942010-04-27 Joel Brobecker <brobecker@adacore.com>
3795
3796 * gdbtypes.h (struct main_type): Expand comment about target_type
3797 field.
3798
67f1675e
JB
37992010-04-27 Pedro Alves <pedro@codesourcery.com>
3800 Tristan Gingold <gingold@adacore.com>
02aeec7b
JB
3801
3802 * symfile.c (reread_symbols): Also search for file in libraries.
3803 Update comment.
3804
dfd0fe27
JB
38052010-04-27 Joel Brobecker <brobecker@adacore.com>
3806
3807 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
3808 in terms of configuration.
3809
0133421a
JK
38102010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3811
3812 * objfiles.c: Include solist.h.
3813 (free_all_objfiles): New variable so. Check stale solist objfiles.
3814 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
3815 and no_shared_libraries.
3816
e78f4312
JB
38172010-04-27 Joel Brobecker <brobecker@adacore.com>
3818
3819 ARI warning fix.
3820 * python/py-auto-load.c (source_section_scripts): Remove trailing
3821 new-line in i18n string.
3822
9214d371
DE
38232010-04-26 Doug Evans <dje@google.com>
3824
3825 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
3826
3f172e24
TT
38272010-04-26 Tom Tromey <tromey@redhat.com>
3828
3829 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
3830 command list.
3831
e790e06e
PM
38322010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
3833
3834 Removal of config/i386/nm-i386sol2.h native configuration file.
3835 * config/i386/nm-i386sol2.h: Remove file.
3836 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
3837 * config/i386/sol2-64.mh: Idem.
88562582
PM
3838 * config/djgpp/fnchange.lst: Remove reference to that file.
3839 * Makefile.in (HFILES_NO_SRCDIR): Idem.
e790e06e 3840
b7da9e9f
PM
38412010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
3842
3843 PR breakpoints/11531.
3844 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
3845 macro definition and related comment.
3846 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
3847 (resume): Remove code and comment related to this macro.
3848
72f6eb52
JK
38492010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3850
3851 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
3852 Fix whitespace.
3853
ab38a727
PA
38542010-04-24 Pedro Alves <pedro@codesourcery.com>
3855
3856 * defs.h: Adjust comment.
3857 * filesystem.h, filesystem.c: New files.
3858 * Makefile.in (SFILES): Add filesystem.c.
3859 (COMMON_OBS): Add filesystem.o.
3860 * solib.c (solib_find): Handle DOS-based filesystems. Handle
3861 different target and host path flavours.
3862 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
3863 has_dos_based_file_system on the gdbarch.
3864 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
3865 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
3866 * i386-tdep.c (i386_go32_init_abi): Ditto.
3867 * gdbarch.sh (has_dos_based_file_system): New.
3868 * gdbarch.h, gdbarch.c: Regenerate.
3869 * NEWS: Mention improved support for remote targets with DOS-based
3870 filesystems. Mention new `set/show target-file-system-kind'
3871 commands.
3872
35c9c7ba
SS
38732010-04-23 Stan Shebs <stan@codesourcery.com>
3874
3875 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
3876 comments.
3877 (struct agent_reqs): Remove.
3878 (ax_reg_mask): Declare.
3879 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
3880 (free_agent_expr): Free reg_mask.
3881 (ax_print): Add scope and register mask info.
3882 (ax_reqs): Remove agent_reqs argument, use agent expression
3883 fields, and move part of register mask computation to...
3884 (ax_reg_mask): New function.
3885 * ax-gdb.c (gen_trace_static_fields): Call it.
3886 (gen_traced_pop): Ditto.
3887 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
3888 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
3889 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
3890 (gen_eval_for_expr): Ditto, and require an rvalue.
3891 (agent_command): Call ax_reqs.
3892 (agent_eval_command): Ditto.
3893 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
3894 (validate_action_line): Ditto.
3895 (collect_symbol): Ditto.
3896 (encode_actions_1): Ditto.
3897
492928e4
JK
38982010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
3899 Paul Pluzhnikov <ppluzhnikov@google.com>
3900 Jan Kratochvil <jan.kratochvil@redhat.com>
3901
3902 Fix deadlock on looped list of loaded shared objects.
3903 * solib-svr4.c (LM_PREV): New function.
3904 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
3905 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
3906 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
3907 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
3908
66d09542
DE
39092010-04-23 Doug Evans <dje@google.com>
3910
88a1906b
DE
3911 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
3912 python.
3913 * configure: Regenerate.
3914 * main.c: #include "python/python.h".
3915 (captured_main): Defer loading auto-loaded scripts until after
3916 local_gdbinit has been sourced.
3917 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
3918 (load_auto_scripts_for_objfile): New function.
3919 (auto_load_new_objfile): Call it.
3920 * python/python.h (gdbpy_global_auto_load): Declare.
3921 (load_auto_scripts_for_objfile): Declare.
3922
66d09542
DE
3923 Add support for auto-loading scripts from .debug_gdb_scripts section.
3924 * NEWS: Add entry for .debug_gdb_scripts.
3925 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
3926 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
3927 (py-auto-load.o): New rule.
3928 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
3929 * cli/cli-cmds.h (find_and_open_script): Update prototype.
3930 * python/py-auto-load.c: New file.
3931 * python/python-internal.h: #include <stdio.h>.
3932 (set_python_list, show_python_list): Declare.
3933 (gdbpy_initialize_auto_load): Declare.
3934 (source_python_script_for_objfile): Declare.
3935 * python/python.c: Remove #include of observer.h.
3936 (gdbpy_auto_load): Moved to py-auto-load.c.
3937 (GDBPY_AUTO_FILENAME): Ditto.
3938 (gdbpy_new_objfile): Delete.
3939 (source_python_script_for_objfile): New function.
3940 (set_python_list, show_python_list): Make externally visible.
3941 (_initialize_python): Move "auto-load" command to py-auto-load.c
3942 and observer_attach_new_objfile to py-auto-load.c.
3943
3a48e6ff 39442010-04-23 Jerome Guitton <guitton@adacore.com>
0407b3f1 3945
3a48e6ff
JG
3946 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
3947 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
3948 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
3949 New constants.
3950 (alpha_heuristic_analyze_probing_loop): New function.
3951 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
3952 and handle cases when a stack probe loop is generated.
3953 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
3954 (alpha_mdebug_max_frame_size_exceeded): New function.
3955 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
3956 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
3957 Return 0 when the maximum debuggable frame size has been exceeded.
3958
e4166a49
JB
39592010-04-23 Joel Brobecker <brobecker@adacore.com>
3960
3961 Fix ARI warning.
3962 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
3963
8bd10a10
CM
39642010-04-20 Chris Moller <cmoller@redhat.com>
3965
3966 PR 10179
3967
3968 * symtab.c (rbreak_command): Added code to include a filename
3969 specification in the rbreak argument.
3970 * NEWS: Added a brief description of filename-qualified rbreak.
3971
c0201579
JK
39722010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3973
3974 Fix crashes on dangling display expressions.
3975 * ada-lang.c (ada_operator_check): New function.
3976 (ada_exp_descriptor): Fill-in the field operator_check.
3977 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
3978 * jv-lang.c (exp_descriptor_java): Likewise.
3979 * m2-lang.c (exp_descriptor_modula2): Likewise.
3980 * scm-lang.c (exp_descriptor_scm): Likewise.
3981 * parse.c (exp_descriptor_standard): Likewise.
3982 (operator_check_standard): New function.
3983 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
3984 * parser-defs.h (struct exp_descriptor): New field operator_check.
3985 (operator_check_standard, exp_uses_objfile): New declarations.
3986 * printcmd.c: Remove the inclusion of solib.h.
3987 (display_uses_solib_p): Remove the function.
3988 (clear_dangling_display_expressions): Call lookup_objfile_from_block
3989 and exp_uses_objfile instead of display_uses_solib_p.
3990 * solist.h (struct so_list) <objfile>: New comment.
3991 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
3992 * symtab.h (lookup_objfile_from_block): New declaration.
3993 (struct general_symbol_info) <obj_section>: Extend the comment.
3994
6ffbb7ab
TJB
39952010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3996 Thiago Jung Bauermann <bauerman@br.ibm.com>
3997
3998 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
3999 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
4000 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
4001 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
4002 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
4003 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
4004 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
4005 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
4006 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
4007 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
4008 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
4009 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
4010 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
4011 Define, in case <ptrace.h> doesn't provide it.
4012 (booke_debug_info): New variable.
4013 (max_slots_number): Ditto.
4014 (hw_break_tuple): New struct.
4015 (thread_points): Ditto.
4016 (ppc_threads): New variable.
4017 (PPC_DEBUG_CURRENT_VERSION): New define.
4018 (have_ptrace_new_debug_booke): New function.
4019 (ppc_linux_check_watch_resources): Renamed to ...
4020 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
4021 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
4022 (booke_cmp_hw_point): New function.
4023 (booke_find_thread_points_by_tid): Ditto.
4024 (booke_insert_point): Ditto.
4025 (booke_remove_point): Ditto.
4026 (ppc_linux_insert_hw_breakpoint): Ditto.
4027 (ppc_linux_remove_hw_breakpoint): Ditto.
4028 (get_trigger_type): Ditto.
4029 (ppc_linux_insert_watchpoint): Handle BookE processors.
4030 (ppc_linux_remove_watchpoint): Ditto.
4031 (ppc_linux_new_thread): Ditto.
4032 (ppc_linux_thread_exit): New function..
4033 (ppc_linux_stopped_data_address): Handle BookE processors.
4034 (ppc_linux_watchpoint_addr_within_range): Ditto.
4035 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
4036 to_remove_hw_breakpoint fields of the target operations struct.
4037 Add observe for the thread_exit event.
4038
be0d2954
L
40392010-04-22 H.J. Lu <hongjiu.lu@intel.com>
4040
4041 * i386-linux-nat.c (regmap): Removed.
4042 (fetch_register): Replace regmap with
4043 i386_linux_gregset_reg_offset.
4044 (store_register): Likewise.
4045 (supply_gregset): Likewise.
4046 (fill_gregset): Likewise.
4047
4048 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
4049 global.
4050
4051 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
4052
f56dcb88
CM
40532010-04-22 Chris Moller <cmoller@redhat.com>
4054
4055 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
758afad7
L
4056 method of popping recursion-detection stack with a method based on
4057 obstack_object_size(). (Similar to the PR9167 patch below, but for
f56dcb88
CM
4058 the static array obstack rather than the static member obstack.)
4059
6cd6a2ae
L
40602010-04-22 H.J. Lu <hongjiu.lu@intel.com>
4061
4062 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
4063 (_initialize_amd64_linux_nat): Replace
4064 amd64_linux_gregset64_reg_offset with
4065 amd64_linux_gregset_reg_offset.
4066
4067 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
4068 global.
4069
4070 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
4071
621791b8
PM
40722010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
4073
4074 PR stabs/11479.
4075 * stabsread.c (set_length_in_type_chain): New function.
4076 (read_struct_type): Call set_length_in_type_chain function.
4077 (read_enum_type): Idem.
4078
105c2d85
SS
40792010-04-21 Stan Shebs <stan@codesourcery.com>
4080 Nathan Sidwell <nathan@codesourcery.com>
4081
4082 * tracepoint.c (trace_save): Open in binary mode.
4083
9a22f0d0
PM
40842010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
4085
4086 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
4087 fields.
0407b3f1 4088 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
9a22f0d0
PM
4089 builtin_char32 fields.
4090 * printcmd.c (decode_format): Set char size to '\0'
4091 for strings unless explicit size is given.
4092 (print_formatted): Correct calculation of NEXT_ADDRESS
4093 for 16 or 32 bit strings.
4094 (do_examine): Do not force byte size for strings.
4095 Use builtin_char16 and builtin_char32 types to display
0407b3f1 4096 16 or 32 bit-wide strings.
9a22f0d0
PM
4097 (x_command): Set LAST_SIZE to 'b' for string type.
4098
f335d1b3
L
40992010-04-21 H.J. Lu <hongjiu.lu@intel.com>
4100
4101 PR corefiles/11523
4102 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4103 XCR0 first.
4104
4105 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
4106 there is no .reg-xstate section.
4107 (i386_linux_core_read_description): Check XCR0 first.
4108
a9789a6b
MF
41092010-04-21 Mike Frysinger <vapier@gentoo.org>
4110
4111 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
4112 for len <= 8.
4113
0b66f317
CM
41142010-04-21 Chris Moller <cmoller@redhat.com>
4115
4116 PR 9167
4117 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
32d7376d
L
4118 method of popping recursion-detection stack with a method based on
4119 obstack_object_size().
0b66f317 4120
6e354e5e
PM
41212010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4122
4123 PR pascal/11492.
4124 * p-valprint.c (pascal_val_print): Fix default printing of integer
4125 arrays.
4126
57174f31
PM
41272010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4128
4129 Fix compilation warning on gcc-4.1.2.
4130 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
4131 local variable`pc' to zero.
4132
6fbc7cd8
JB
41332010-04-20 Joel Brobecker <brobecker@adacore.com>
4134
4135 Implement thread support with core files on alpha-tru64.
4136 * dec-thread.c (dec_thread_find_new_threads): New function,
4137 extracted from resync_thread_list.
4138 (resync_thread_list): Add OPS parameter. Replace extracted-out
4139 code by call to dec_thread_find_new_threads.
4140 (dec_thread_wait): Update call to resync_thread_list.
4141 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
4142
438c98a1
JB
41432010-04-20 Joel Brobecker <brobecker@adacore.com>
4144
4145 * ada-lang.c (value_pointer): New function.
4146 (make_array_descriptor): Call value_pointer to convert addresses to
4147 pointers.
4148
2971b56b
JB
41492010-04-20 Joel Brobecker <brobecker@adacore.com>
4150
4151 * rs6000-aix-tdep.c: #include exceptions.h.
4152 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
4153 while reading the memory at ADDR, then ADDR cannot be a function
4154 descriptor.
4155
be942545
JB
41562010-04-20 Joel Brobecker <brobecker@adacore.com>
4157
4158 * ada-typeprint.c (ada_print_typedef): New function.
4159 * ada-lang.h (ada_print_typedef): Add declaration.
4160 * ada-lang.c (ada_language_defn): set la_print_typdef field
4161 to ada_print_typedef.
4162
1ca8fce0
JB
41632010-04-20 Joel Brobecker <brobecker@adacore.com>
4164
4165 * procfs.c (procfs_address_to_host_pointer): Only define when used.
4166
e9ef4f39
JB
41672010-04-20 Joel Brobecker <brobecker@adacore.com>
4168
4169 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
4170 (iterate_over_mappings): Adjust function profile. Add declaration.
4171 (insert_dbx_link_bpt_in_region, info_mappings_callback):
4172 Adjust accordingly.
4173
e294797a
JB
41742010-04-20 Joel Brobecker <brobecker@adacore.com>
4175
4176 * procfs.c (solib_mappings_callback): Move function up to avoid
4177 a compiler warning.
4178
a223f1e7
JB
41792010-04-20 Joel Brobecker <brobecker@adacore.com>
4180
4181 * procfs.c (find_signalled_thread, find_stop_signal): Move
4182 these functions down to define them only when used.
4183
0c3acc09
JB
41842010-04-20 Joel Brobecker <brobecker@adacore.com>
4185
4186 * valprint.c (common_val_print): Fix the value before extracting
4187 its contents.
4188 * ada-lang.c (ada_to_fixed_value): Make this function extern.
4189 * ada-lang.h (ada_to_fixed_value): New function declaration.
4190 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
4191 to avoid code duplication and fix a bug in the handling of
4192 fixed types contents.
4193
31ef98ae
TT
41942010-04-20 Tom Tromey <tromey@redhat.com>
4195
4196 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
4197 (read_partial_die): Likewise.
4198 (dwarf_attr_name): Likewise.
4199
ec31cde5 42002010-04-20 Chris Moller <cmoller@redhat.com>
0407b3f1 4201
ec31cde5
CM
4202 PR 10867
4203
4204 * cp-valprint.c (global): Adding new static array recursion
4205 detection obstack.
4206 (cp_print_value_fields, cp_print_static_field): Added new static
4207 array recursion detection code.
4208
e0e0e543
MK
42092010-04-20 Mark Kettenis <kettenis@gnu.org>
4210
4211 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
4212 general-purpose register set should be 68 instead of 144.
4213 (i386_linux_sse_regset_sections): Likewise.
4214 (i386_linux_avx_regset_sections): Likewise.
4215
08922a10
SS
42162010-04-20 Stan Shebs <stan@codesourcery.com>
4217 Nathan Sidwell <nathan@codesourcery.com>
4218
4219 * dwarf2loc.c (struct axs_var_loc): New struct.
4220 (dwarf2_tracepoint_var_loc): New function.
4221 (dwarf2_tracepoint_var_access): New function.
4222 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
4223 with DW_OP_piece.
4224 (locexpr_describe_location_piece): New function.
4225 (locexpr_describe_location_1): New function.
4226 (locexpr_describe_location): Call it, update signature.
4227 (loclist_describe_location): Rewrite to loop over locations,
4228 update signature.
4229 * symtab.h (struct symbol_computed_ops): Add address to
4230 describe_location arguments, return void.
4231 * printcmd.c (address_info): Get context PC, pass to computed
4232 location description.
4233 * tracepoint.c (scope_info): Ditto.
4234 * ax-gdb.c (trace_kludge): Export.
4235
2dc7f7b3
TT
42362010-04-20 Tom Tromey <tromey@redhat.com>
4237
4238 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
4239 (struct dwarf2_cie) <segment_size>: New field.
4240 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
4241 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
4242 DW_FORM_exprloc.
4243 (read_attribute_value): Handle DW_FORM_flag_present,
4244 DW_FORM_sec_offset, DW_FORM_exprloc.
4245 (dump_die_shallow): Likewise.
4246 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
4247 (dwarf2_const_value): Handle DW_FORM_exprloc.
4248 (attr_form_is_block): Likewise.
4249 (struct line_header) <maximum_ops_per_instruction>: New field.
4250 (dwarf_decode_line_header): Set new field.
4251 (dwarf_decode_lines): Handle new field.
4252
ce4b0682
SDJ
42532010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4254
4255 * f-exp.y: Add new production to recognize the `logical*8' type.
4256 (LOGICAL_S8_KEYWORD): New token.
4257 * f-lang.c (enum f_primitive_types)
4258 <f_primitive_type_logical_s8>: New field.
4259 (f_language_arch_info): Handling `logical*8' type.
4260 (build_fortran_types): Building `logical*8' type.
4261 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
4262
ff9f22f1
DE
42632010-04-19 Doug Evans <dje@google.com>
4264
4265 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
4266 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
4267 (pipe_close): Ditto.
4268
437125bd
PM
42692010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4270
4271 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
4272
e8e6c82e
PM
42732010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4274
4275 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
4276 type to void function.
4277
4136fdd2
SS
42782010-04-19 Stan Shebs <stan@codesourcery.com>
4279 Vladimir Prus <vladimir@codesourcery.com>
4280
4281 * tracepoint.c (tfind_1): Add missing newline, report exit from
4282 tfind mode as such.
4283 * target.c (update_current_target): Make default
4284 to_trace_find return -1.
4285
0c4b2e63
MF
42862010-04-19 Mike Frysinger <vapier@gentoo.org>
4287
4288 * objc-lang.c (find_methods): Move symname check up.
4289
78076abc
PA
42902010-04-19 Pedro Alves <pedro@codesourcery.com>
4291
4292 * ada-lang.c (print_recreate_exception)
4293 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
4294 not "catch unhandled".
4295
6149aea9
PA
42962010-04-19 Pedro Alves <pedro@codesourcery.com>
4297
4298 PR breakpoints/8554.
4299
4300 Implement `save-breakpoints'.
4301
4302 * breakpoint.c (save_cmdlist): New.
4303 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
4304 to save_cmdlist.
4305 (print_recreate_catch_fork): New.
4306 (catch_fork_breakpoint_ops): Install it.
4307 (print_recreate_catch_vfork): New.
4308 (catch_vfork_breakpoint_ops): Install it.
4309 (print_recreate_catch_syscall): New.
4310 (catch_syscall_breakpoint_ops): Install it.
4311 (print_recreate_catch_exec): New.
4312 (catch_exec_breakpoint_ops): Install it.
4313 (print_recreate_exception_catchpoint): New.
4314 (gnu_v3_exception_catchpoint_ops): Install it.
4315 (save_breakpoints): New, based on tracepoint_save_command, but
4316 handle all breakpoint types.
4317 (save_breakpoints_command): New.
4318 (tracepoint_save_command): Rename to...
4319 (save_tracepoints_command): ... this, and reimplement using
4320 save_breakpoints.
4321 (save_command): New.
4322 (_initialize_breakpoints): Install the "save" command prefix.
4323 Install the "save breakpoints" command. Make "save-tracepoints" a
4324 deprecated alias for "save tracepoints".
4325 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
4326 * ada-lang.c (print_recreate_exception): New.
4327 (print_recreate_catch_exception): New.
4328 (catch_exception_breakpoint_ops): Install it.
4329 (print_recreate_catch_exception_unhandled): New.
4330 (catch_exception_unhandled_breakpoint_ops): Install it.
4331 (print_recreate_catch_assert): New.
4332 (catch_assert_breakpoint_ops): Install it.
4333
4334 * NEWS: Mention the new `save breakpoints' command. Mention the
4335 new `save tracepoints' alias and that `save-tracepoints' is now
4336 deprecated.
4337
0a8fce9a
PA
43382010-04-18 Pedro Alves <pedro@codesourcery.com>
4339
4340 PR tui/9217
4341
4342 * tui/tui-out.c: Include cli-out.h.
4343 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
4344 (tui_begin, tui_end, tui_field_int, tui_field_skip)
4345 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
4346 (tui_message, tui_wrap_hint, tui_flush): Delete forward
4347 declarations.
4348 (struct ui_out_data): Rename to...
4349 (struct tui_ui_out_data): ... this. Remove `stream' and
4350 `suppress_output' fields, and inherit cli_ui_out_data.
4351 (tui_out_data): New typedef.
4352 (tui_ui_out_impl): Don't initialize fields staticaly.
4353 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
4354 (tui_begin, tui_end): Delete.
4355 (tui_field_int): Adjust to delegate most work to the base type.
4356 (tui_field_skip): Delete.
4357 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
4358 delegate most work to the base type.
4359 (tui_spaces): Delete.
4360 (tui_text): Adjust to delegate most work to the base type.
4361 (tui_message): Delete.
4362 (tui_wrap_hint): Delete.
4363 (tui_flush): Delete.
4364 (out_field_fmt): Delete.
4365 (field_separator): Delete.
4366 (tui_out_new): Adjust to initialize the base type.
4367 (_initialize_tui_out): Initialize tui_ui_out_impl.
4368 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
4369 cli_ui_out_data.
4370 (cli_out_data): Adjust.
4371 (cli_ui_out_impl): Make extern.
4372 (cli_table_header, cli_field_int, cli_field_skip): Use
4373 uo_field_string instead of cli_field_string.
4374 (cli_redirect): Adjust to use cli_out_data.
4375 (cli_out_data_ctor): New.
4376 (cli_out_new): Use it.
4377 * cli-out.h (struct ui_file): Remove forward declaration.
4378 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
4379 (cli_ui_out_impl): Declare.
4380 (cli_out_data_ctor): Declare.
4381 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
4382 (uo_field_string): No longer static.
4383 (ui_out_data): Change return type to void pointer.
4384 (ui_out_new): Change `data' parameter type to void pointer.
4385 * ui-out.h (struct ui_out_data): Don't forward declare.
4386 (ui_out_data): Change return type to void pointer.
4387 (ui_out_new): Change `data' parameter type to void pointer.
4388 (uo_field_string): Declare.
4389
172240dd
PA
43902010-04-17 Pedro Alves <pedro@codesourcery.com>
4391
4392 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
4393 instead of always false.
4394
ed41462c
L
43952010-04-17 H.J. Lu <hongjiu.lu@intel.com>
4396
4397 PR corefiles/11511
4398 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
4399 orig_rax.
4400
cc60f2e3
PA
44012010-04-17 Pedro Alves <pedro@codesourcery.com>
4402
4403 * breakpoint.c (watchpoints_triggered): Use
4404 is_hardware_watchpoint.
4405 (watchpoints_triggered): Ditto.
4406 (bpstat_check_location): Use is_watchpoint and
4407 is_hardware_watchpoint.
4408 (bpstat_check_watchpoint): Use is_watchpoint and
4409 is_hardware_watchpoint.
4410 (bpstat_stop_status): Fix comment.
4411 (user_settable_breakpoint): Use is_watchpoint.
4412 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
4413 (disable_watchpoints_before_interactive_call_start): Use
4414 is_watchpoint.
4415 (enable_watchpoints_after_interactive_call_stop): Use
4416 is_watchpoint.
4417 (clear_command): Use is_watchpoint.
4418 (do_enable_breakpoint): Use is_watchpoint.
4419
cb7db0f2
MF
44202010-04-16 Mike Frysinger <vapier@gentoo.org>
4421
4422 * solib-frv.c (enable_break1_done): Delete.
4423 (enable_break2): Do not check enable_break1_done. Move the
4424 enable_break2_done setting and call to
4425 remove_solib_event_breakpoints() to the end. Return without
4426 warning when the contents of _dl_debug_addr are 0.
4427 (enable_break): Do not set enable_break1_done.
4428 (frv_clear_solib): Likewise.
4429
d77b48cf
KB
44302010-04-16 Kevin Buettner <kevinb@redhat.com>
4431
4432 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
4433 instead of an error if no PLT entry is found. Return a
4434 potentially useful result.
4435 (m32c_m16c_pointer_to_address): Add code to search for function
4436 address when no .plt entry is found.
4437
f90824dc
SS
44382010-04-16 Stan Shebs <stan@codesourcery.com>
4439
4440 * tracepoint.c (trace_variable_command): Run a cleanup.
4441
9b79b476
PM
44422010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
4443
4444 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
4445
711e434b
PM
44462010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
4447
4448 Support for Windows OS Thread Information Block.
4449 * NEWS: Document new feature.
4450 * remote.c (PACKET_qGetTIBAddr): New enum element.
4451 (remote_get_tib_address): New function.
4452 (init_remote_ops): Set to_get_tib_address field
4453 to remote_get_tib_address.
4454 (_initialize_remote): Add add_packet_config_cmd
4455 for PACKET_qGetTIBAddr.
4456 * target.c (update_current_target): Set default value for
4457 new to_get_tib_address field.
4458 * target.h (target_ops): New field to_get_tib_address.
4459 (target_get_tib_address): New macro.
4460 * windows-nat.c (thread_info): Add thread_local_base field.
4461 (windows_add_thread): Add tlb argument of type 'void *'.
4462 (fake_create_process): Adapt windows_add_thread call.
4463 (get_windows_debug_event): Idem.
4464 (windows_get_tib_address): New function.
4465 (init_windows_ops): Set to_get_tib_address field
4466 to remote_get_tib_address.
4467 (_initialize_windows_nat): Replace info_w32_cmdlist
4468 initialization by a call to init_w32_command_list.
4469 (info_w32_command, info_w32_cmdlist): Removed from here...
4470 to windows-tdep.c file.
4471 * windows-tdep.h (info_w32_cmdlist): Declare.
0407b3f1 4472 (init_w32_command_list): New external function
711e434b
PM
4473 declaration.
4474 * windows-tdep.c: Add several headers.
4475 (info_w32_cmdlist): to here, made global.
4476 (thread_information_32): New struct.
4477 (thread_information_64): New struct.
4478 (TIB_NAME): New char array.
4479 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
4480 (maint_display_all_tib): New static variable.
4481 (windows_get_tlb_type): New function.
4482 (tlb_value_read, tlb_value_write): New functions.
4483 (tlb_value_funcs): New static struct.
4484 (tlb_make_value): New function.
4485 (display_one_tib): New function.
4486 (display_tib): New function.
4487 (show_maint_show_all_tib):New function.
4488 (info_w32_command): Moved from windows-nat.c.
4489 (init_w32_command_list): New function.
4490 (_initialize_windows_tdep): New function.
4491 New "maint set/show show-all-tib" command
4492 New "$_tlb" internal variable.
4493
cae3f17b
JB
44942010-04-16 Joel Brobecker <brobecker@adacore.com>
4495
4496 * tui/tui-regs.c (tui_display_register): Add comment about
4497 a couple of casts.
4498 * tui/tui-stack.c (tui_show_locator_content): Ditto.
4499
2ce6d6bf
SS
45002010-04-15 Stan Shebs <stan@codesourcery.com>
4501
4502 * frame.c: Include tracepoint.h.
4503 (get_current_frame): Allow a trace frame to be an alternate source
4504 of stack frame data.
4505 * tracepoint.c (tfind_1): Don't try to get current stack frame if
4506 it won't succeed.
4507
7e559477
PA
45082010-04-15 Pedro Alves <pedro@codesourcery.com>
4509
4510 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
4511 flags.
4512 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
4513
3f7b2faa
DE
45142010-04-15 Doug Evans <dje@google.com>
4515
fa33c3cd
DE
4516 * NEWS: Add entry for python program space support.
4517 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
4518 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
4519 (py-progspace.o): New rule.
4520 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
4521 function.
4522 (find_pretty_printer_from_progspace): New function.
4523 (find_pretty_printer_from_gdb): New function.
4524 (find_pretty_printer): Rewrite.
4525 * python/py-progspace.c: New file.
4526 * python/python-internal.h (program_space): Add forward decl.
4527 (pspace_to_pspace_object, pspy_get_printers): Declare.
4528 (gdbpy_initialize_pspace): Declare.
4529 * python/python.c: #include "progspace.h".
4530 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
4531 (_initialize_python): Call gdbpy_initialize_pspace.
4532 (GdbMethods): Add current_progspace, progspaces.
4533
3f7b2faa
DE
4534 Add -s option to source command.
4535 * NEWS: Document new option.
4536 * cli/cli-cmds.c (find_and_open_script): Add function comment.
4537 Delete from_tty and cleanupp args. Split filep arg into file and
4538 full_pathp. New arg search_path.
4539 (source_script_from_stream): New function.
4540 (source_script_with_search): New function.
4541 (source_script): Rewrite.
4542 (source_command): Parse "-s" option.
4543 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
4544 * python/python.c (source_python_script): Make file arg a const char *.
4545 Don't call fclose, leave for caller.
4546 * python/python.h (source_python_script): Update.
4547
a86988f2
PA
45482010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4549 Pedro Alves <pedro@codesourcery.com>
4550
4551 Avoid rereading shared libraries that haven't changed.
4552
4553 * solib.c (free_so_symbols): New function, from ...
4554 (free_so): ... here. Call it.
4555 (solib_read_symbols): Don't warn here if symbols have already been
4556 loaded.
4557 (solib_add): Warn here instead, if a pattern was specified.
4558 (reload_shared_libraries_1): New.
4559 (reload_shared_libraries): Rewrite to not fetch the library list.
4560
e6d9b9c2
DE
45612010-04-14 Doug Evans <dje@google.com>
4562
589390d6 4563 * source.c (openp): Strip DOS drive letter if present before
e6d9b9c2
DE
4564 concatenating string to search path.
4565
516ba659
PA
45662010-04-14 Pedro Alves <pedro@codesourcery.com>
4567
4568 * objfiles.h (gdb_bfd_close_or_warn): Declare.
4569 * objfiles.c (gdb_bfd_close_or_warn): New.
4570 * corelow.c: Include objfiles.h
4571 (core_close): Use gdb_bfd_close_or_warn.
4572 * elfread.c (build_id_verify): Ditto.
4573 * exec.c (exec_close, exec_close_1): Ditto.
4574
048d532d
PA
45752010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4576 Pedro Alves <pedro@codesourcery.com>
4577
4578 Group errors for many missing shared libraries.
4579
4580 * solist.h (struct so_list): Remove from_tty.
4581 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
4582 (solib_map_sections): Take so_list argument. Return 0 if we
4583 failed to open a BFD. Add target sections here.
4584 (symbol_add_stub): Delete.
4585 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
4586 not from_tty copied from the so_list. Don't warn a second time
4587 for a missing library.
4588 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
4589 add to the section table here. Print out a single warning for all
4590 missing libraries.
4591 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
4592 flags.
4593
044c0f87
PM
45942010-04-14 Phil Muldoon <pmuldoon@redhat.com>
4595
4596 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
4597 error/warning messages. Capitalize and use complete sentences.
4598 (blpy_block_syms_iternext): Likewise.
4599 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
4600 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
4601 (frame_info_to_frame_object, frapy_read_var)
4602 (gdbpy_frame_stop_reason_string): Likewise.
4603 * python/py-lazy-string.c (stpy_convert_to_value)
4604 (gdbpy_create_lazy_string_object): Likewise.
4605 * python/py-objfile.c (objfpy_set_printers): Likewise.
4606 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
4607 * python/python.c (parameter_to_python): Likewise.
4608 * python/py-type.c (typy_range, typy_target): Likewise.
4609 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
4610 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
4611
4612
79f283fe
PM
46132010-04-14 Phil Muldoon <pmuldoon@redhat.com>
4614
4615 PR python/11381
4616
4617 * python/py-prettyprint.c (pretty_print_one_value): Test for
4618 Py_None.
4619 (print_string_repr): Test for Py_None. Set flags accordingly.
4620 Return value depending on return type.
4621 (print_children): Take a value indicating whether data was printed
4622 before this function was called. Alter output accordingly.
4623 (apply_val_pretty_printer): Capture return value from
4624 print_string_repr and pass to print_children.
4625
4ac5d44e
MK
46262010-04-13 Mark Kettenis <kettenis@gnu.org>
4627
e1caee70 4628 PR corefiles/11481
4ac5d44e
MK
4629 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
4630 register note sections.
4631 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
4632 New variables.
4633 (i386_linux_init_abi): Install list of supported register note
4634 sections that matches the target description.
4635
ad91cd99
PA
46362010-04-13 Pedro Alves <pedro@codesourcery.com>
4637
4638 * remote.c (remote_get_noisy_reply): Don't error out on empty
4639 replies.
4640 (remote_start_remote): Update and merge tracepoints and trace
4641 state variables as long as the target supports tracepoints.
4642 (remote_trace_init): Fix prototype.
4643 (remote_download_trace_state_variable): Validate reply.
4644 (remote_trace_set_readonly_regions): Fix prototype.
4645 (remote_trace_start): Fix prototype. Check for empty reply.
4646 (remote_get_trace_status): Small cleanup.
4647 (remote_trace_stop): Fix prototype. Check for empty reply.
4648 (remote_trace_find): Check for empty reply.
4649 (remote_save_trace_data): Validate reply.
4650 (remote_set_disconnected_tracing): Check for empty reply, and
4651 validate reply.
4652 (remote_set_circular_trace_buffer): Ditto.
4653
ae3bccd4
PM
46542010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
4655
4656 Suppress unused value warning during compilation.
4657 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
4658 calls to void.
4659 * tui/tui-stack.c (tui_show_locator_content): Likewise.
4660
523136f2
SS
46612010-04-12 Stan Shebs <stan@codesourcery.com>
4662
4663 * tracepoint.c (tfile_xfer_partial): Check read result.
4664
0d18d720
MF
46652010-04-12 Mike Frysinger <vapier@gentoo.org>
4666
4667 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
4668 * remote-sim.c (gdbsim_files_info): Likewise.
4669
3b273a55
RE
46702010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4671
4672 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
4673 * arm-linux-nat.c (arm_linux_vfp_register_count): New
4674 variable.
4675 (fetch_vfp_registers): New function to fetch VFP registers.
4676 (store_vfp_registers): New function to store VFP registers.
4677 (arm_linux_fetch_inferior_registers): Add support for VFP
4678 registers.
4679 (arm_linux_store_inferior_registers): Likewise.
4680 (arm_linux_read_description): Likewise.
4681 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
4682 until we need it.
4683
778c7095
L
46842010-04-11 H.J. Lu <hongjiu.lu@intel.com>
4685
4686 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
4687 tdep.
4688 (amd64_collect_xstateregset): Likewise.
4689
2114d44c
SS
46902010-04-09 Stan Shebs <stan@codesourcery.com>
4691
87290684
SS
4692 * tracepoint.c (trace_status_mi): Report frames created.
4693
2114d44c
SS
4694 * tracepoint.c (trace_dump_command): Include default-collect
4695 expressions.
4696
86da934b
UW
46972010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
4698
4699 * symtab.c (find_function_start_sal): Never return SAL pointing
4700 before function start address, even if line info is missing.
4701
2d6e647a 47022010-04-09 Pedro Alves <pedro@codesourcery.com>
d337e9f0
PA
4703
4704 * NEWS: Mention tracepoints support.
4705
a97153c7
PA
47062010-04-09 Pedro Alves <pedro@codesourcery.com>
4707
4708 * tracepoint.c (trace_status_mi): Report disconnected tracing and
4709 circular trace buffer statuses.
4710
7a66d603
JK
47112010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4712
4713 * config/djgpp/fnchange.lst: Fix typo in translations for
4714 symbol-without-target_section.exp and symbol-without-target_section.c.
4715
2566ad2d
PA
47162010-04-09 Pedro Alves <pedro@codesourcery.com>
4717
4718 * breakpoint.c (condition_command): Pass condition expression to
4719 set_breakpoint_condition stripped from breakpoint number.
4720
adc36818
PM
47212010-04-09 Phil Muldoon <pmuldoon@redhat.com>
4722 Thiago Jung Bauermann <bauerman@br.ibm.com>
2566ad2d 4723 Tom Tromey <tromey@redhat.com>
adc36818
PM
4724
4725 * breakpoint.c (condition_command): Simplify. Move condition
4726 setting code to ...
4727 (set_breakpoint_condition): ... here. New function.
4728 * breakpoint.h (set_breakpoint_condition): Declare.
4729 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
4730 (SUBDIR_PYTHON_SRCS): Likewise.
4731 (py-breakpoint.o): New rule.
4732 * python/py-breakpoint.c: New file.
4733 * python/python-internal.h (gdbpy_breakpoints)
4734 (gdbpy_initialize_breakpoints): Declare.
4735 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
4736
219f2f23
PA
47372010-04-09 Pedro Alves <pedro@codesourcery.com>
4738
4739 * regformats/regdat.sh: Include server.h. Don't include
4740 regcache.h.
4741
33da3f1c
SS
47422010-04-08 Stan Shebs <stan@codesourcery.com>
4743 Pedro Alves <pedro@codesourcery.com>
4744
4745 * tracepoint.h (struct trace_status): New fields disconnected_tracing
4746 and circular_buffer.
4747 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
4748 * tracepoint.c (trace_status_command): Display target's status for
4749 disconnected tracing and circular buffer.
4750 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
4751 query for non-disconnected-tracing case, remove the stop_tracing
4752 call.
4753 (tfile_open): Clear disconnected and circular buffer status.
4754 (trace_save): Save disconnected and circular buffer status.
4755 (parse_trace_status): Parse disconnected and circular buffer status,
4756 also recognize disconnected as a stop reason.
4757 * remote.c (remote_set_disconnected_tracing): Only set
4758 QTDisconnected if the remote end supports disconnected tracing.
4759 Warn otherwise, if trying to enable disconnected tracing.
4760 * infcmd.c (detach_command): Update disconnect_tracing call.
4761 * cli/cli-cmds.c (quit_command): Ditto.
4762
4e4d8374
L
47632010-04-08 H.J. Lu <hongjiu.lu@intel.com>
4764
4765 * i387-tdep.c (i387_collect_xsave): Replace abort with
4766 internal_error.
4767
ad443146
SS
47682010-04-08 Stan Shebs <stan@codesourcery.com>
4769
4770 * breakpoint.c (default_collect_info): New function.
4771 (breakpoints_info): Call it.
4772 (maintenance_info_breakpoints): Ditto.
4773 (tracepoints_info): Ditto.
4774
40936b0d
L
47752010-04-08 H.J. Lu <hongjiu.lu@intel.com>
4776
4777 * i387-tdep.c (i387_collect_xsave): Re-indent.
4778
3a13a53b
L
47792010-04-08 H.J. Lu <hongjiu.lu@intel.com>
4780
4781 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
4782 if HAVE_PTRACE_GETFPXREGS is defined.
4783 (i386_linux_read_description): Set have_ptrace_getfpxregs and
4784 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
4785
4786 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
4787 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
4788 if .reg-xfp section doesn't exist.
4789 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
4790
4791 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
4792
4793 * i386-tdep.c: Include "features/i386/i386-mmx.c".
4794 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
4795 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
4796 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
4797 (i386_gdbarch_init): Update comments.
4798 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
4799
4800 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
4801
4802 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
4803
4804 * features/Makefile (i386/i386-mmx-expedite): New.
4805 (i386/i386-mmx-linux-expedite): Likewise.
4806 ($(outdir)/i386/i386-mmx.dat): Likewise.
4807 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
4808
4809 * features/i386/i386-mmx-linux.c: New.
4810 * features/i386/i386-mmx-linux.xml: Likewise.
4811 * features/i386/i386-mmx.c: Likewise.
4812 * features/i386/i386-mmx.xml: Likewise.
4813 * regformats/i386/i386-mmx-linux.dat: Likewise.
4814 * regformats/i386/i386-mmx.dat: Likewise.
4815
4816 * features/Makefile (WHICH): Add i386/i386-mmx and
4817 i386/i386-mmx-linux.
4818
08001717
DE
48192010-04-08 Doug Evans <dje@google.com>
4820
4821 * source.c (openp): Skip $cdir in PATH.
4822
fff5cc64
PM
48232010-04-08 Phil Muldoon <pmuldoon@redhat.com>
4824
4825 PR python/11417
fff5cc64 4826 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3a13a53b
L
4827 a NULL address.
4828 (gdbpy_create_lazy_string_object): Allow strings with a NULL
4829 address and a zero length.
fff5cc64 4830
f8c4f480
HZ
48312010-04-08 Hui Zhu <teawater@gmail.com>
4832
4833 * i386-tdep.c (i386_process_record): Add support for insn
4834 rdtsc.
4835
eb5cda86
DE
48362010-04-07 Doug Evans <dje@google.com>
4837
4838 * python/python.c (source_python_script): Use ensure_python_env
4839 to prepare environment for script.
4840
a055a187
L
48412010-04-07 H.J. Lu <hongjiu.lu@intel.com>
4842
4843 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
4844 <sys/uio.h> and "i386-xstate.h".
4845 (PTRACE_GETREGSET): New.
4846 (PTRACE_SETREGSET): Likewise.
4847 (have_ptrace_getregset): Likewise.
4848 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
4849 registers.
4850 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
4851 registers.
4852 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
4853 (amd64_linux_store_inferior_registers): Likewise.
4854 (amd64_linux_read_description): Check and enable AVX target
4855 descriptions.
4856
4857 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
4858 and "features/i386/amd64-avx-linux.c".
4859 (amd64_linux_regset_sections): New.
4860 (amd64_linux_core_read_description): Check and enable AVX
4861 target description.
4862 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
4863 set_gdbarch_core_regset_sections.
4864 (_initialize_amd64_linux_tdep): Call
4865 initialize_tdesc_amd64_avx_linux.
4866
4867 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
4868 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
4869 (tdesc_amd64_avx_linux): New.
4870 (amd64_linux_update_xstateregset): Likewise.
4871
4872 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
4873 (amd64_ymm_names): New.
4874 (amd64_ymmh_names): Likewise.
4875 (amd64_register_name): Likewise.
4876 (amd64_supply_xstateregset): Likewise.
4877 (amd64_collect_xstateregset): Likewise.
4878 (amd64_supply_xsave): Likewise.
4879 (amd64_collect_xsave): Likewise.
4880 (AMD64_NUM_REGS): Removed.
4881 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
4882 %xmmN if AVX is available.
4883 (amd64_pseudo_register_name): Support pseudo YMM registers.
4884 (amd64_regset_from_core_section): Support .reg-xstate section.
4885 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
4886 and ymm0h_regnum. Call set_gdbarch_register_name.
4887 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
4888
4889 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
4890 AMD64_YMM15H_REGNUM.
4891 (AMD64_NUM_REGS): New.
4892 (amd64_supply_xsave): Likewise.
4893 (amd64_collect_xsave): Likewise.
4894 (amd64_register_name): Removed.
4895 (amd64_register_type): Likewise.
4896
31aeac78
L
48972010-04-07 H.J. Lu <hongjiu.lu@intel.com>
4898
4899 * i387-tdep.c: Include "i386-xstate.h".
4900 (XSAVE_XSTATE_BV_ADDR): New.
4901 (xsave_avxh_offset): Likewise.
4902 (XSAVE_AVXH_ADDR): Likewise.
4903 (i387_supply_xsave): Likewise.
4904 (i387_collect_xsave): Likewise.
4905
4906 * i387-tdep.h (I387_NUM_YMM_REGS): New.
4907 (I387_YMM0H_REGNUM): Likewise.
4908 (I387_YMMENDH_REGNUM): Likewise.
4909 (i387_supply_xsave): Likewise.
4910 (i387_collect_xsave): Likewise.
4911
c131fcee
L
49122010-04-07 H.J. Lu <hongjiu.lu@intel.com>
4913
4914 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
4915 <sys/uio.h> and "i386-xstate.h".
4916 (PTRACE_GETREGSET): New.
4917 (PTRACE_SETREGSET): Likewise.
4918 (fetch_xstateregs): Likewise.
4919 (store_xstateregs): Likewise.
4920 (GETXSTATEREGS_SUPPLIES): Likewise.
4921 (regmap): Include 8 upper YMM registers.
4922 (i386_linux_fetch_inferior_registers): Support XSAVE extended
4923 state.
4924 (i386_linux_store_inferior_registers): Likewise.
4925 (i386_linux_read_description): Check and enable AVX target
4926 descriptions.
4927
4928 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
4929 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
4930 (i386_linux_regset_sections): Add ".reg-xstate".
4931 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
4932 (i386_linux_core_read_xcr0): New.
4933 (i386_linux_core_read_description): Check and enable AVX target
4934 description.
4935 (i386_linux_init_abi): Set xsave_xcr0_offset.
4936 (_initialize_i386_linux_tdep): Call
4937 initialize_tdesc_i386_avx_linux.
4938
4939 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
4940 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
4941 (i386_linux_core_read_xcr0): New.
4942 (tdesc_i386_avx_linux): Likewise.
4943 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
4944
4945 * i386-tdep.c: Include "i386-xstate.h" and
4946 "features/i386/i386-avx.c".
4947 (i386_ymm_names): New.
4948 (i386_ymmh_names): Likewise.
4949 (i386_ymmh_regnum_p): Likewise.
4950 (i386_ymm_regnum_p): Likewise.
4951 (i386_xmm_regnum_p): Likewise.
4952 (i386_register_name): Likewise.
4953 (i386_ymm_type): Likewise.
4954 (i386_supply_xstateregset): Likewise.
4955 (i386_collect_xstateregset): Likewise.
4956 (i386_sse_regnum_p): Removed.
4957 (i386_pseudo_register_name): Support pseudo YMM registers.
4958 (i386_pseudo_register_type): Likewise.
4959 (i386_pseudo_register_read): Likewise.
4960 (i386_pseudo_register_write): Likewise.
4961 (i386_dbx_reg_to_regnum): Return %ymmN register number for
4962 %xmmN if AVX is available.
4963 (i386_regset_from_core_section): Support .reg-xstate section.
4964 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
4965 (i386_process_record): Replace i386_sse_regnum_p with
4966 i386_xmm_regnum_p.
4967 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
4968 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
8d95cc3b 4969 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
c131fcee
L
4970 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
4971 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
4972 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
4973 Set ymm0_regnum.
4974 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
4975
4976 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
4977 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
4978 i386_ymm_type.
4979 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
4980 (I386_AVX_NUM_REGS): New.
4981 (i386_xmm_regnum_p): Likewise.
4982 (i386_ymm_regnum_p): Likewise.
4983 (i386_ymmh_regnum_p): Likewise.
4984
4985 * common/i386-xstate.h: New.
4986
98adf0f3
L
49872010-04-07 H.J. Lu <hongjiu.lu@intel.com>
4988
4989 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
4990
4991 * features/Makefile (WHICH): Add i386/i386-avx,
4992 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
4993 (i386/i386-avx-expedite): New.
4994 (i386/i386-avx-linux-expedite): Likewise.
4995 (i386/x86-64-avx-expedite):Likewise.
4996 (i386/x86-64-avx-linux-expedite): Likewise.
4997 ($(outdir)/i386/i386-avx.dat): New dependency.
4998 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
4999 ($(outdir)/i386/x86-avx-64.dat): Likewise.
5000 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
5001
5002 * features/i386/32bit-avx.xml: New.
5003 * features/i386/64bit-avx.xml: Likewise.
5004 * features/i386/i386-avx-linux.c: Likewise.
5005 * features/i386/i386-avx-linux.xml: Likewise.
5006 * features/i386/i386-avx.c: Likewise.
5007 * features/i386/i386-avx.xml: Likewise.
5008 * features/i386/x86-64-avx-linux.c: Likewise.
5009 * features/i386/x86-64-avx-linux.xml: Likewise.
5010 * features/i386/x86-64-avx.c: Likewise.
5011 * features/i386/x86-64-avx.xml: Likewise.
5012 * regformats/i386/i386-avx-linux.dat: Likewise.
5013 * regformats/i386/i386-avx.dat: Likewise.
5014 * regformats/i386/x86-64-avx-linux.dat: Likewise.
5015 * regformats/i386/x86-64-avx.dat: Likewise.
5016
05159abe
DE
50172010-04-07 Doug Evans <dje@google.com>
5018
5019 * top.c (source_file_name): Make const char *.
5020 * top.h (source_file_name): Update.
5021 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
5022 const char *.
5023 (script_from_file): Change `file' arg to const char *.
5024 * cli/cli-script.h (script_from_file): Update.
5025
96e39866
DE
50262010-04-06 Doug Evans <dje@google.com>
5027
5028 * cli/cli-cmds.c (source_command): Run cleanups.
5029
3149d8c1
SS
50302010-04-06 Stan Shebs <stan@codesourcery.com>
5031
5032 * defs.h (char_ptr): Move typedef here from...
5033 * ada-lang.c (char_ptr): Remove.
5034 * charset.c (char_ptr): Remove.
5035 * tracepoint.h (struct uploaded_string): Remove.
5036 (struct uploaded_tp): Use vectors for string arrays.
5037 * tracepoint.c (trace_save): Use vectors of actions.
5038 (parse_tracepoint_definition): Ditto.
5039 (get_uploaded_tp): Clear vectors.
5040 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
5041 (next_cmd): Change to an int.
5042 (read_next_cmd): Use vector of command strings.
5043
4cc23ede
DE
50442010-04-06 Doug Evans <dje@google.com>
5045
5046 * top.h (source_script, cd_command): Delete.
5047 * main.c: #include "cli/cli-cmds.h"
5048
bd333fb7
KB
50492010-04-06 Kevin Buettner <kevinb@redhat.com>
5050
5051 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
5052 type in bytes, not bits.
5053
ec8a089a
PM
50542010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
5055
5056 * stabsread.c (define_symbol): Add support for char
5057 and string constants.
5058
2244ba2e
PM
50592010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
5060
5061 Remove remaining "%ll" uses.
5062 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
5063 hex_string call.
5064 * rs6000-nat.c (rs6000_ptrace64): Idem.
5065 * solib-pa64.c (pa64_current_sos): Idem.
5066 * solib-spu.c (spu_current_sos): Idem.
5067 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
5068 plongest call.
5069 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
5070 phex (VAR, 8) call.
5071 * sh64-tdep.c (sh64_show_media_regs): Idem.
5072
fce3c1f0
SS
50732010-04-05 Stan Shebs <stan@codesourcery.com>
5074
5075 * tracepoint.c: Include gdbcore.h.
5076 (tfile_xfer_partial): Return partial results, also try reading
5077 from executable.
5078 (tfile_has_all_memory): New function.
5079 (init_tfile_ops): Use it.
5080
626ea16d
SDJ
50812010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
5082
5083 PR gdb/10736:
5084 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
5085 the changes in data-directory.
5086 (init_sysinfo): Reload the syscall XML file if the data-directory
5087 has changed.
5088
1f7ccab2
JK
50892010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5090
5091 Code cleanup.
5092 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
5093
d77f58be
SS
50942010-04-04 Stan Shebs <stan@codesourcery.com>
5095 Nathan Sidwell <nathan@codesourcery.com>
5096
5097 * breakpoint.c (breakpoint_1): Add filter argument, return number of
5098 breakpoints printed.
5099 (is_hardware_watchpoint): Make argument const.
5100 (is_watchpoint): Ditto.
5101 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
5102 use it everywhere.
5103 (breakpoints_info): Pass NULL to breakpoint_1.
5104 (maintenance_info_breakpoints): Ditto.
5105 (watchpoints_info): New function.
5106 (tracepoints_info): Use breakpoint_1 filter.
5107 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
5108 (_initialize_breakpoint): Make "info watchpoints" its own command.
5109 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
5110 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
5111
af54718e
SS
51122010-04-04 Stan Shebs <stan@codesourcery.com>
5113
5114 * tracepoint.c (tfile_fetch_registers): Add fallback case.
5115
74d1f91e
JK
51162010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5117
5118 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
5119 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
5120
91d91ceb
JK
51212010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5122
5123 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
5124 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
5125
60531b24
JK
51262010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5127
5128 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
5129 code form.
5130
a3c4230a
HZ
51312010-04-02 Hui Zhu <teawater@gmail.com>
5132
5133 * i386-tdep.c (OT_DQUAD): New enum.
5134 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
5135 SSE3, SSSE3 and SSE4.
5136
b15758fe
HZ
51372010-04-02 Hui Zhu <teawater@gmail.com>
5138
5139 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
5140 "*addr = 0".
5141
afd02f27
PA
51422010-04-02 Pedro Alves <pedro@codesourcery.com>
5143
5144 * tracepoint.c (trace_dump_actions): New, factored out from
5145 trace_dump_command, and adjusted to recurse into while-stepping's
5146 action list.
5147 (trace_dump_command): Use it.
5148
5cea2a26
PA
51492010-04-02 Pedro Alves <pedro@codesourcery.com>
5150
5151 * breakpoint.h (struct counted_command_line): Moved definition to
5152 breakpoint.c, and forward declare.
5153 (breakpoint_commands): Declare.
5154 * breakpoint.c (struct counted_command_line): Moved here.
5155 (breakpoint_commands): New.
5156 * tracepoint.c (encode_actions): Use breakpoint_commands.
5157 * remote.c (remote_download_tracepoint): Ditto.
5158
7c47795c
L
51592010-04-01 H.J. Lu <hongjiu.lu@intel.com>
5160
5161 * remote.c (remote_parse_stop_reply): Use hex_string instead
5162 of phex_nz for error.
5163
fff87407
SS
51642010-04-01 Stan Shebs <stan@codesourcery.com>
5165 Nathan Sidwell <nathan@codesourcery.com>
5166
5167 * tracepoint.h (enum actionline_type): Remove.
5168 (validate_actionline): Change return to void.
5169 * tracepoint.c (report_agent_reqs_errors): New function.
5170 (validate_actionline): Call it, change return to void, report errors
5171 more consistently.
5172 (collect_symbol): Call report_agent_reqs_errors.
5173 (encode_actions_1): Ditto.
5174 (encode_actions): Don't expect a result from validate_actionline.
5175
615bcdef
SS
51762010-04-01 Stan Shebs <stan@codesourcery.com>
5177
5178 * tracepoint.c (trace_start_command): Confirm if trace is running.
5179 (trace_stop_command): Error if trace not running.
5180
fe01d668
L
51812010-04-01 H.J. Lu <hongjiu.lu@intel.com>
5182
5183 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
5184 (AMD64_NUM_LOWER_BYTE_REGS): New.
5185 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
5186 (amd64_pseudo_register_write): Likewise.
5187 (amd64_init_abi): Set num_byte_regs to 20.
5188
86b17b60
PA
51892010-04-01 Pedro Alves <pedro@codesourcery.com>
5190
5191 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
5192 (prev_breakpoint_count): New.
5193 (set_breakpoint_count): Adjust.
5194 (rbreak_start_breakpoint_count): New.
5195 (start_rbreak_breakpoints): Adjust.
5196 (end_rbreak_breakpoints): Adjust.
5197 (struct commands_info) <arg>: New field.
5198 (do_map_commands_command): Tweak output to include breakpoint spec
5199 range.
5200 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
5201 ARG was empty on entry. Set INFO's arg.
5202 (create_breakpoint): Adjust.
5203
5204 * NEWS: Clarify `commands' changes.
5205
2c58c0a9
PA
52062010-04-01 Pedro Alves <pedro@codesourcery.com>
5207
5208 * tracepoint.c: Include stack.h.
5209 (struct add_local_symbols_data): New.
5210 (do_collect_symbol): New.
5211 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
5212 iterate_over_block_local_vars.
5213 * stack.c (print_block_frame_locals): Rewrite as ...
5214 (iterate_over_block_locals): ... this. Take a callback function
5215 pointer and generic data pointer, and call that instead of
5216 print_variable_and_value.
5217 (struct print_variable_and_value_data): New.
5218 (do_print_variable_and_value): New.
5219 (iterate_over_block_local_vars): New, abstracted out from
5220 print_frame_local_vars.
5221 (print_frame_local_vars): Rewrite using
5222 iterate_over_block_local_vars.
5223 (iterate_over_block_arg_vars): New, abstracted out from
5224 print_frame_arg_vars.
5225 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
5226 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
5227 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
5228
d476da0e
RE
52292010-03-31 Richard Earnshaw <rearnsha@arm.com>
5230
5231 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
8d95cc3b 5232 instructions. Use the PC+4 if the base of the TBB or TBH is the
d476da0e
RE
5233 PC register.
5234
8072405b
JK
52352010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
5236
5237 Fix crash on reading wrong function declaration DWARF.
5238 * dwarf2read.c (read_subroutine_type): New variable void_type.
5239 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
5240 more close to their use.
5241
8bf6485c
SS
52422010-03-31 Stan Shebs <stan@codesourcery.com>
5243
5244 * breakpoint.c (tracepoint_save_command): Include variables,
8d95cc3b 5245 conditionals, tracepoint types, and default-collect.
8bf6485c
SS
5246 * tracepoint.c (save_trace_state_variables): New function.
5247 * tracepoint.h (save_trace_state_variables): Declare it.
5248
2ae2a0b7
PM
52492010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
5250
1a161f72 5251 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
2ae2a0b7 5252
86ffb506
KS
52532010-03-30 Keith Seitz <keiths@redhat.com>
5254
5255 * c-typeprint.c (c_type_print_args): Don't print "void"
5256 for java, regardless of whether it is TYPE_PROTOTYPED.
5257 Use the passed-in language instead of current_language.
5258 (c_type_print_varspec_suffix): Use current_language instead
5259 of assuming language_c.
5260 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
5261 any return type specifier from the physname.
5262
956c2c8b
PA
52632010-03-30 Pedro Alves <pedro@codesourcery.com>
5264
5265 * tui/tui-interp.c (tui_is_toplevel): New.
5266 (tui_init): Set it.
5267 (tui_allowed_p): New.
5268 * tui/tui.c (tui_enable): Check if the TUI is allowed before
5269 enabling it.
5270 * tui/tui.h (tui_allowed_p): Declare.
5271
98e5a990
TT
52722010-03-30 Ozkan Sezer <sezeroz@gmail.com>
5273
5274 * serial.h: Include winsock2.h before windows.h.
5275
c8d5aac9
L
52762010-03-30 H.J. Lu <hongjiu.lu@intel.com>
5277
5278 * NEWS: Mention xmlRegisters= in qSupported packet.
5279
5280 * i386-tdep.c: Include "remote.h".
5281 (_initialize_i386_tdep): Call register_remote_support_xml.
5282
5283 * remote.c (remote_support_xml): New.
5284 (register_remote_support_xml): Likewise.
5285 (remote_query_supported_append): Likewise.
5286 (remote_query_supported): Support remote_support_xml.
5287
5288 * remote.h (register_remote_support_xml): New.
5289
76a2b958
SS
52902010-03-29 Stan Shebs <stan@codesourcery.com>
5291
42e08e69
SS
5292 * tracepoint.c (trace_find_line_command): Remove dead code.
5293
409873ef
SS
5294 * tracepoint.h (struct uploaded_string): New struct.
5295 (struct uploaded_tp): New fields for source strings.
5296 * breakpoint.c (this_utp, next_cmd): New globals.
5297 (read_uploaded_action): New function.
5298 (create_tracepoint_from_upload): Fill in more parts
5299 of a tracepoint.
5300 * tracepoint.c (encode_source_string): New function.
5301 (trace_save): Write out source strings, fix error checks.
5302 (parse_tracepoint_definition): Add source string parsing.
5303 * remote.c (PACKET_TracepointSource): New packet type.
5304 (remote_download_command_source): New function.
5305 (remote_download_tracepoint): Download source pieces also.
5306 (_initialize_remote): Add packet config command.
5307
a0405854
SS
5308 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
5309 expression handler.
5310
76a2b958
SS
5311 * tracepoint.c (start_tracing): Check tracepoints before sending
5312 commands to target, don't start if all tracepoints disabled.
5313
d350db38
PA
53142010-03-28 Pedro Alves <pedro@codesourcery.com>
5315
12f2d601 5316 * cli/cli-script.c (process_next_line): Handle 'stepping'.
d350db38 5317
8b9b7ef8
SS
53182010-03-26 Stan Shebs <stan@codesourcery.com>
5319
5320 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
5321
9766ced4
SS
53222010-03-26 Tom Tromey <tromey@redhat.com>
5323
5324 * breakpoint.c (commands_command_1): Duplicate 'arg'.
5325
059acae7
UW
53262010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5327
5328 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
5329 (skip_prologue_sal): Remove local definition.
5330 (resolve_sal_pc): Remove now unnecessary code.
5331 * linespec.c (minsym_found): Call skip_prologue_sal.
5332 * symtab.c (find_function_start_pc): Remove.
5333 (find_function_start_sal): Extract prologue skipping into ...
5334 (skip_prologue_sal): ... this new function. Handle code both
5335 with and without debug info. Respect SAL's explicit_pc and
5336 explicit_line flags. Inline old find_function_start_pc.
5337 * symtab.h (find_function_start_pc): Remove.
5338 (skip_prologue_sal): Add prototype.
5339
4a811a97
UW
53402010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5341
5342 * dwarf2read.c (read_func_scope): Also scan specification DIEs
5343 for DW_TAG_imported_module children.
5344
907af001
UW
53452010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5346
5347 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
5348 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
5349 * completer.c (add_struct_fields): Fix inverted logic.
5350
dde2d684
UW
53512010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5352
5353 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
5354
a609a0c8
PA
53552010-03-26 Pedro Alves <pedro@codesourcery.com>
5356
5357 * tracepoint.c (current_trace_status): Don't make sure error_desc
5358 is non-NULL here.
5359 (parse_trace_status): Release a previous error_desc string, and
5360 set it to NULL by default. If stop reason is tracepoint_error,
5361 make sure error_desc is not left NULL.
5362
610197fd
PA
53632010-03-26 Pedro Alves <pedro@codesourcery.com>
5364
5365 * tracepoint.c (trace_save): Remove X from tracepoint error
5366 description.
5367
99b5e152
PA
53682010-03-26 Pedro Alves <pedro@codesourcery.com>
5369
5370 * tracepoint.c (parse_trace_status): Don't allow plain strings in
5371 the terror description. Don't expect an X prefix.
5372
6c28cbf2
SS
53732010-03-25 Stan Shebs <stan@codesourcery.com>
5374
5375 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
5376 (struct trace_status): New field error_desc.
5377 * tracepoint.c (stop_reason_names): Add terror.
5378 (current_trace_status): Ensure non-NULL error description.
5379 (trace_status_command): Add error report.
5380 (trace_status_mi): Ditto.
5381 (trace_save): Add special case for error description.
5382 (parse_trace_status): Add case for errors.
5383
418835cc
KS
53842010-03-25 Keith Seitz <keiths@redhat.com>
5385
5386 * dwarf2read.c (read_subroutine_type): If the compilation unit
5387 language is Java, mark any formal parameter named "this" as
5388 artificial (GCC/43521).
5389 (dwarf2_name): Add special handling for Java constructors.
5390
aa7d318d
TT
53912010-03-25 Tom Tromey <tromey@redhat.com>
5392
5393 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
5394 * infrun.c (handle_inferior_event): Change initialization of
5395 stop_stack_dummy.
5396 (handle_inferior_event): Change assignment to stop_stack_dummy.
5397 (normal_stop): Update use of stop_stack_dummy.
5398 (struct inferior_status) <stop_stack_dummy>: Change type.
5399 * inferior.h (stop_stack_dummy): Update.
5400 * infcmd.c (stop_stack_dummy): Change type.
5401 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
5402 function.
5403 (call_function_by_hand): Call set_std_terminate_breakpoint.
5404 Rewrite std::terminate handling.
5405 * breakpoint.h (enum bptype) <bp_std_terminate,
5406 bp_std_terminate_master>: New.
5407 (enum stop_stack_kind): New.
5408 (struct bpstat_what) <call_dummy>: Change type.
5409 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
5410 Declare.
5411 * breakpoint.c (create_std_terminate_master_breakpoint): New
5412 function.
5413 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
5414 Call create_std_terminate_master_breakpoint.
5415 (print_it_typical): Handle new breakpoint kinds.
5416 (bpstat_stop_status): Handle bp_std_terminate_master.
5417 (bpstat_what): Correctly set call_dummy field. Handle
5418 bp_std_terminate_master and bp_std_terminate.
5419 (print_one_breakpoint_location): Update.
5420 (allocate_bp_location): Update.
5421 (set_std_terminate_breakpoint): New function.
5422 (delete_std_terminate_breakpoint): Likewise.
5423 (create_thread_event_breakpoint): Update.
5424 (delete_command): Update.
5425 (breakpoint_re_set_one): Update.
5426 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
5427
82ccf5a5
JK
54282010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5429
5430 * symfile.c (build_section_addr_info_from_bfd): New.
5431 (build_section_addr_info_from_objfile): Base it on
5432 build_section_addr_info_from_bfd.
5433 (addrs_section_compar, addrs_section_sort): New.
5434 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
5435 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
5436 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
5437
737c4c52
MS
54382010-03-24 Michael Snyder <msnyder@localhost.localdomain>
5439
8d95cc3b 5440 * elfread.c (find_separate_debug_file_by_buildid):
737c4c52
MS
5441 Remove unused local variable.
5442
95a42b64
TT
54432010-03-24 Tom Tromey <tromey@redhat.com>
5444
5445 PR breakpoints/9352:
5446 * NEWS: Mention changes to `commands' and `rbreak'.
5447 * symtab.c (do_end_rbreak_breakpoints): New function.
5448 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
5449 end_rbreak_breakpoints.
5450 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
5451 (set_breakpoint_count): Likewise. Clear last_was_multi.
5452 (multi_start, multi_end, last_was_multi): New globals.
5453 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
5454 functions.
5455 (struct commands_info): New
5456 (do_map_commands_command): New function.
5457 (commands_command_1): New function.
5458 (commands_command): Use it.
5459 (commands_from_control_command): Likewise.
5460 (do_delete_breakpoint): New function.
5461 (delete_command): Use it.
5462 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
5463 (do_map_disable_breakpoint): New function.
5464 (disable_command): Use it.
5465 (do_map_enable_breakpoint): New function.
5466 (enable_command): Use it.
5467 (enable_once_breakpoint): Add argument.
5468 (enable_once_command): Update.
5469 (enable_delete_breakpoint): Add argument.
5470 (enable_delete_command): Update.
5471 (break_command_really): Set last_was_multi when needed.
5472 (check_tracepoint_command): Fix formatting.
5473 (validate_commands_for_breakpoint): New function.
5474 (breakpoint_set_commands): Use it.
5475 (tracepoint_save_command): Update.
5476 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
5477 Declare.
5478
9add0f1b
TT
54792010-03-24 Tom Tromey <tromey@redhat.com>
5480
5481 * breakpoint.h (struct counted_command_line): New struct.
5482 (struct breakpoint) <commands>: Change type.
5483 (struct bpstats) <commands>: Change type.
5484 <commands_left>: New field.
5485 * breakpoint.c (alloc_counted_command_line): New function.
5486 (incref_counted_command_line): Likewise.
5487 (decref_counted_command_line): Likewise.
5488 (do_cleanup_counted_command_line): Likewise.
5489 (make_cleanup_decref_counted_command_line): Likewise.
5490 (breakpoint_set_commands): Use decref_counted_command_line and
5491 alloc_counted_command_line.
5492 (commands_command): Don't error if breakpoint commands are
5493 executing.
5494 (commands_from_control_command): Likewise.
5495 (bpstat_free): Update.
5496 (bpstat_copy): Likewise.
5497 (bpstat_clear_actions): Likewise.
5498 (bpstat_do_actions_1): Likewise.
5499 (bpstat_stop_status): Likewise.
5500 (print_one_breakpoint_location): Likewise.
5501 (delete_breakpoint): Likewise.
5502 (bpstat_alloc): Initialize new field.
5503 (tracepoint_save_command): Update.
5504 * tracepoint.c (encode_actions): Update.
5505 (trace_dump_command): Update.
5506
a6c727b2
DJ
55072010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
5508
5509 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
5510 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
5511 (read_structure_type): For RealView, set TYPE_STUB on structures with
5512 no byte size and no children.
5513 (read_subroutine_type): Mark functions as prototyped by default.
5514 * symtab.c (producer_is_realview): New function.
5515 * symtab.h (expand_line_sal): Fix declaration formatting.
5516 (producer_is_realview): Declare.
5517
0d39a070
DJ
55182010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
5519
5520 * arm-tdep.c (skip_prologue_function): New function.
5521 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
5522 (thumb_analyze_prologue): Document return value. Recognize more
5523 Thumb instructions, skippable calls, and some Thumb-2 instructions.
5524 Add debug output.
5525 (arm_skip_prologue): Remove call dummy check. Check the prologue
5526 for non-GNU compilers.
5527 (arm_instruction_changes_pc): New function.
5528 (arm_analyze_prologue): New function, broken out from
5529 arm_scan_prologue. Recognize more ARM instructions and skippable
5530 calls. Update comments. Handle NULL cache. Return the address
5531 of the first unrecognized instruction. Do not skip past other
5532 instructions which change control flow. Add debug output.
5533 (arm_scan_prologue): Use arm_analyze_prologue.
5534 (ARM_PC_32): Delete.
5535 (shifted_reg_val): Simplify ARM_PC_32 check.
5536
4baf5cf4
VP
55372010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5538
5539 * tracepoint.c (tvariables_info_1): Actually compute
5540 the number of rows in the result.
5541
4a5e7a5b
PA
55422010-03-24 Pedro Alves <pedro@codesourcery.com>
5543
5544 * remote.c (crc32): Constify `buf' parameter.
5545 (remote_verify_memory): New, abstracted out from...
5546 (compare_sections_command): ... this. Remove hardcoded target
5547 checks.
5548 (init_remote_ops): Install remote_verify_memory.
5549 * target.c (target_verify_memory): New.
5550 * target.h (struct target_ops) <to_verify_memory>: New field.
5551 (target_verify_memory): Declare.
5552
011aacb0
VP
55532010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5554
5555 Implement -trace-save.
5556
5557 * mi-cmds.h (mi_cmds_trace_save): Declare.
5558 * mi-cmds.c (mi_cmds): Register -trace-save.
5559 * mi/mi-main.c (mi_cmd_trace_save): New.
5560 * remote.c (remote_save_trace_data): Take const parameter.
5561 * target.h (struct target_ops::to_save_trace_data): Take
5562 const parameter.
5563 * target.c (update_current_target): Adjust to the above.
5564 * tracepoint.c (trave_save): New, extracted from
5565 (trace_save_command): ...this.
5566 (tfile_trace_find): Remove message that is unnecessary now
5567 that 'tfind' reports found frame.
5568 * tracepoint.h (trace_save): Declare.
5569
f197e0f1
VP
55702010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5571
5572 Implement -trace-find.
5573
5574 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
5575 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
5576 * mi/mi-main.c (mi_cmd_trace_find): New.
5577 * target.h (struct target_ops): Document to_trace_find.
5578 * tracepoint.h (tfind_1): Declare.
5579 * tracepoint.c (finish_tfind_command): Rename to...
5580 (tfind_1): ...this.
5581 * remote.c (remote_trace_find): Return -1 if target say
5582 there's no frame. Improve error diagnostics.
5583
40e1c229
VP
55842010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5585
5586 -trace-define-variable and -trace-list-variables.
5587
5588 * tracepoint.c (create_trace_state_variable): Make
5589 private copy of name, as opposed to assuming the
5590 pointer lives forever.
5591 (tvariables_info_1): New.
5592 (tvariables_info): Use the above.
5593 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
5594 Declare.
5595 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
5596 and -trace-list-variables.
5597 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
5598 (mi_cmd_trace_list_variables): New.
5599 * mi/mi-main.c (mi_cmd_trace_define_variable)
5600 (mi_cmd_trace_list_variables): New.
5601
9b4c786c
VP
56022010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5603
5604 Implement -break-passcount.
5605
5606 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
5607 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
5608 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
5609
f224b49d
VP
56102010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5611
5612 -trace-start/-trace-end/-trace-status.
5613
5614 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
5615 and -trace-stop.
5616 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
5617 (mi_cmd_trace_stop): Declare.
5618 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
5619 (mi_cmd_trace_stop): New.
5620 * tracepoint.c (start_tracing): New, extracted from...
5621 (trace_start_command): ...this.
5622 (trace_status_mi): New.
5623 * tracepoint.h (struct trace_status): Document
5624 stopping_tracepoint.
5625 (start_tracing, stop_tracing, trace_status_mi): Declare.
5626
6534d786
VP
56272010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5628
5629 Implement creating tracepoints with -break-insert.
5630
5631 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
5632 to mean that tracepoint should be created.
5633
51661e93
VP
56342010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5635
5636 * breakpoint.c (check_no_tracepoint_commands): Use
5637 current spelling of 'teval'.
5638
a7bdde9e
VP
56392010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5640
5641 Unify actions and commands
5642
5643 * defs.h (read_command_lines, read_command_lines_1): New
5644 parameters validator and closure.
5645 * tracepoint.h (struct action_line): Remove.
5646 * breakpoint.h (struct breakpoint): Remove the 'actions'
5647 field.
5648 * defs.h (enum command_control_type): New value
5649 while_stepping_control.
5650 (struct command_line): Add comments.
5651 * breakpoint.c (breakoint_is_tracepoint): New.
5652 (breakpoint_set_commands): For tracepoints,
5653 verify the commands are permissible.
5654 (check_tracepoint_commands): New.
5655 (commands_command): Require that each new line is validated using
5656 check_tracepoint_command, if we set commands for a tracepoint.
5657 (create_tracepoint_from_upload): Likewise.
5658 (print_one_breakpoint_location): Remove the code to print
5659 actions specifically.
5660 (tracepoint_save_command): Relay to print_command_lines.
5661 * cli/cli-script.c (process_next_line): New parameters validator
5662 and closure. Handle 'while-stepping'. Call validator if not null.
5663 (read_command_lines, read_command_lines1): Likewise.
5664 (recurse_read_control_structure): New parameters validator and
5665 closure. Handle while_stepping_control.
5666 (print_command_lines): Handle while-stepping.
5667 (get_command_line, define_command, document_command): Adjust.
5668 * remote.c (remote_download_tracepoint): Adjust.
5669 * tracepoint.c (make_cleanup_free_actions, read_actions)
5670 (free_actions, do_free_actions_cleanup): Remove.
5671 (trace_actions_command): Use read_command_lines.
5672 (validate_actionline): Use error in one place.
5673 (encode_actions_1): New, extracted from...
5674 (encode_actions): ...this. Also use cleanups for exception
5675 safety.
5676 (trace_dump_command): Adjust.
5677 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
5678 it's tracepoint.
5679
64e3cf3d
MF
56802010-03-23 Mike Frysinger <vapier@gentoo.org>
5681
5682 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
5683
52e9fde8
SS
56842010-03-22 Stan Shebs <stan@codesourcery.com>
5685
5686 * value.c (value_static_field): Be lazy about the field's value.
5687
508ccb1f
TT
56882010-03-22 Reid Kleckner <reid@kleckner.net>
5689
5690 PR gdb/11094
5691 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
5692 bp_jit_event.
5693 (disable_breakpoints_in_shlibs): Likewise.
5694
acebe513
UW
56952010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
5696
5697 * dwarf2read.c (partial_die_parent_scope): Work around buggy
5698 GCC 4.1 debug info generation (GCC PR c++/28460).
5699 (determine_prefix): Likewise.
5700
957b8b5a
DJ
57012010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
5702
5703 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
5704 get_current_arch.
5705 * tui/tui-layout.c (extract_display_start_addr): Likewise.
5706
3b11a015
SS
57072010-03-19 Stan Shebs <stan@codesourcery.com>
5708
5709 * ax-gdb.c (gen_fetch): Handle bool.
5710 (gen_usual_unary): Ditto.
5711 (gen_cast): Ditto.
5712 (gen_equal): New function.
5713 (gen_less): New function.
5714 (gen_expr_binop_rest): Call them, also return integer type from
5715 logical operations.
5716 (gen_expr): Ditto.
5717
20781792
TT
57182010-03-19 Tom Tromey <tromey@redhat.com>
5719
5720 * jv-lang.c (jv_dynamics_objfile_data_key)
5721 (jv_type_objfile_data_key): New globals.
5722 (class_symtab): Move earlier.
5723 (jv_per_objfile_free): New function.
5724 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
5725 parameter.
5726 Remove ancient #if 1.
5727 (add_class_symbol): Remove redundant declaration.
5728 (java_lookup_class): Use alloc_type, not alloc_type_arch.
5729 (java_link_class_type): Mark as static. Update.
5730 (jv_clear_object_type): New function.
5731 (set_java_object_type): Likewise.
5732 (get_java_object_type): Use set_java_object_type.
5733 (is_object_type): Likewise.
5734 (_initialize_java_language): Register new objfile keys.
5735 (get_java_class_symtab): Add 'gdbarch' parameter.
5736 (add_class_symtab_symbol): Update.
5737 (type_from_class): Update.
5738
cf3e25ca
SS
57392010-03-19 Stan Shebs <stan@codesourcery.com>
5740
8d95cc3b 5741 * ax-general.c (ax_const_l): Fix a sizing bug.
cf3e25ca 5742
f1ae44c9 57432010-03-18 Joel Brobecker <brobecker@adacore.com>
5744
5745 GDB 7.1 released.
5746
4daf5ac0
SS
57472010-03-18 Stan Shebs <stan@codesourcery.com>
5748 Pedro Alves <pedro@codesourcery.com>
5749
5750 * target.h (struct target_ops): New method
5751 to_set_circular_trace_buffer.
5752 (target_set_circular_trace_buffer): New macro.
5753 * target.c (update_current_target): Add
5754 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
5755 default behavior.
5756 * remote.c (remote_set_circular_trace_buffer): New function.
5757 (init_remote_ops): Add it to vector.
5758 * tracepoint.h (struct trace_status): New field traceframes_created,
5759 change buffer_size and buffer_free to int.
5760 * tracepoint.c (circular_trace_buffer): New global.
5761 (start_tracing): Send values of disconnected tracing and circular
5762 trace buffer settings.
5763 (set_circular_trace_buffer): New function.
5764 (parse_trace_state): Handle total space and frames created.
5765 (trace_status_command): Display total space and total frames
5766 created.
5767 (trace_save): Write out new status values.
5768 (parse_trace_status): Set traceframe_count, traceframes_created,
5769 buffer_free and buffer_size to -1 by default.
5770 (_initialize_tracepoint): New setshow for circular-trace-buffer.
5771 * NEWS: Mention the circular trace buffer option.
5772
40c549d6
TT
57732010-03-18 Tom Tromey <tromey@redhat.com>
5774
5775 * infcmd.c (finish_command_continuation): Wrap print_return_value
5776 in TRY_CATCH.
5777
e8d05480
JB
57782010-03-18 Joel Brobecker <brobecker@adacore.com>
5779
5780 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
5781 DIE has a name before creating the associated partial symbol.
5782 (read_func_scope): Emit a complaint if the subprogram does not
5783 have a name or when we can't extract the subprogram PC bounds.
5784
441b986a
UW
57852010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
5786
5787 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
5788 instead of selected frame architecture.
5789
4247603b
PA
57902010-03-18 Pedro Alves <pedro@codesourcery.com>
5791
5792 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
5793 a valid selected thread, and that it is not running.
5794 (advance_command): Ditto.
5795 (finish_command): Ditto.
5796
400c6af0
SS
57972010-03-17 Stan Shebs <stan@codesourcery.com>
5798
3a96536b
SS
5799 * ax-gdb.c (require_rvalue): Disallow non-scalars.
5800
573cda03
SS
5801 * infcall.c: Include tracepoint.h.
5802 (call_function_by_hand): Disallow calls in tfind mode.
5803 * infcmd.c: Include tracepoint.h.
5804 (ensure_not_tfind_mode): New function.
5805 (continue_1): Call it.
5806 (step_1) Ditto.
5807 (jump_command): Ditto.
5808 (signal_command): Ditto.
5809 (advance_command): Ditto.
5810 (until_command): Ditto.
5811 (finish_command): Ditto.
5812 * tracepoint.h (disconnect_or_stop_tracing): Declare.
5813
400c6af0
SS
5814 * ax-gdb.h (struct axs_value): New field optimized_out.
5815 (gen_trace_for_var): Add gdbarch argument.
5816 * ax-gdb.c (gen_trace_static_fields): New function.
5817 (gen_traced_pop): Call it, add gdbarch argument.
5818 (gen_trace_for_expr): Update call to it.
5819 (gen_trace_for_var): Ditto, and report optimized-out variables.
5820 (gen_struct_ref_recursive): Check for optimized-out value.
5821 (gen_struct_elt_for_reference): Ditto.
5822 (gen_static_field): Pass gdbarch instead of expression, assume
5823 optimization if field not found.
5824 (gen_var_ref): Set the optimized_out flag.
5825 (gen_expr): Error on optimized-out variable.
5826 * tracepoint.c (collect_symbol): Handle struct-valued vars as
5827 expressions, skip optimized-out variables with computed locations.
5828 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
5829 erroring out if location expression missing.
5830 (loclist_tracepoint_var_ref): Don't error out here.
5831
a3b2a86b
TT
58322010-03-17 Tom Tromey <tromey@redhat.com>
5833
5834 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
5835 DWARF data is available.
5836
38963c97
DJ
58372010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
5838
5839 * symfile.c (generic_load): Reset breakpoints after loading.
5840
ddabfc73
TT
58412010-03-17 Tom Tromey <tromey@redhat.com>
5842
5843 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
5844
d8c09fb5
JK
58452010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5846
5847 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
5848 create_breakpoint call, adjust the parameters.
5849
bbb0eef6
JK
58502010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5851 Chandru <chandru@in.ibm.com>
5852
5853 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
5854 * valarith.c (value_subscripted_rvalue): Suppress error if
5855 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
5856
46956e39
HZ
58572010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
5858
5859 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
5860
b8d088ac
JB
58612010-03-16 Joel Brobecker <brobecker@adacore.com>
5862
5863 * ada-tasks.c (task_command_1): Check that the task ptid is valid
5864 before doing the associated thread switch.
5865
322be962
DJ
58662010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
5867
5868 * MAINTAINERS: Update my email address.
5869
8cdf0e15
VP
58702010-03-16 Vladimir Prus <vladimir@codesourcery.com>
5871
5872 Simplify MI breakpoint setting.
5873
5874 * breakpoint.c (break_command_really): Make nonstatic and
5875 rename to...
5876 (create_breakpoint): ...this. Rename prior function by this name
5877 to...
5878 (create_breakpoint_sal): ...this.
5879 (create_breakpoints): Rename to...
5880 (create_breakpoints_sal): ...this.
5881 (set_breakpoint): Remove.
5882 * breakpoint.h: Adjust to above changes.
5883 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
5884
b6e7192f
SS
58852010-03-15 Stan Shebs <stan@codesourcery.com>
5886
5887 * ax-gdb.c: Include cp-support.h.
5888 (find_field): Remove.
5889 (gen_primitive_field): New function.
5890 (gen_struct_ref_recursive): New function.
5891 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
5892 of find_field.
5893 (gen_static_field): New function.
5894 (gen_struct_elt_for_reference): New.
5895 (gen_namespace_elt): New.
5896 (gen_maybe_namespace_elt): New.
5897 (gen_aggregate_elt_ref): New.
5898 (gen_expr): Add OP_SCOPE, display opcode name in error message.
5899
1054b214
TT
59002010-03-15 Tom Tromey <tromey@redhat.com>
5901
5902 * dwarf2read.c (die_needs_namespace): Also return 0 for
5903 DW_TAG_subprogram.
5904
13387711
SW
59052010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
5906
5907 PR c++/7936:
5908 * cp-support.h: Added char *declaration element to using_direct
5909 data struct.
5910 (cp_add_using): Added char *declaration argument.
5911 (cp_add_using_directive): Ditto.
5912 (cp_lookup_symbol_imports): made extern.
5913 * cp-namespace.c: Updated with the above changes.
5914 * dwarf2read.c (read_import_statement): Ditto.
5915 (read_namespace): Ditto.
5916 (read_import_statement): Support import declarations.
5917 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
5918 declarations.
5919 Added support for 'declaration_only' search.
5920 (cp_lookup_symbol_namespace): Attempt to search for the name as
5921 is before consideration of imports.
5922 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
5923 search at every block level search.
5924 Now takes language argument.
5925 (lookup_symbol_aux): Updated.
5926
6e31430b
TT
59272010-03-15 Tom Tromey <tromey@redhat.com>
5928
5929 * c-exp.y (name_not_typename): Add 'operator' clause.
5930
4dea3bb7 59312010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
bf307134
JB
5932
5933 * configure.ac: Exit if ${gdb_target_obs}" is not set.
5934 * configure: Regenerate.
5935
4d9743af
JK
59362010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5937
5938 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
5939 and ".sdynbss". Update the comment.
5940
f75150fe
JZ
59412010-03-15 Jie Zhang <jie@codesourcery.com>
5942
5943 * MAINTAINERS: Update my email address.
5944
3c13bc11
DJ
59452010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
5946
5947 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
5948
43484f03
DJ
59492010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
5950
5951 * charset.c [USE_WIN32API]: Include <windows.h>.
5952 (_initialize_charset): Correct type of w32_host_default_charset.
5953
5f25d77d
PA
59542010-03-14 Pedro Alves <pedro@codesourcery.com>
5955
5956 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
5957
1c809c68
TT
59582010-03-12 Tom Tromey <tromey@redhat.com>
5959
5960 PR c++/9708:
5961 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
5962 in a lexical block does not need a namespace.
5963 (new_symbol) <DW_TAG_variable>: Put extern variables on
5964 list_in_scope in all cases.
5965
948103cf
SS
59662010-03-12 Stan Shebs <stan@codesourcery.com>
5967
5968 * ax-gdb.c (gen_expr): Add shift expressions.
5969 (gen_expr_binop_rest): Ditto.
5970
00ae8fef
SW
59712010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
5972
5973 * buildsym.c (finish_block): Reset using_directives pointer
5974 after block initialization.
5975
9cad29ac
L
59762010-03-12 H.J. Lu <hongjiu.lu@intel.com>
5977
5978 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
5979 * i386-tdep.c (i386_word_names): Likewise.
5980
2f4d8875
PA
59812010-03-12 Pedro Alves <pedro@codesourcery.com>
5982
5983 * target.c (memory_xfer_partial): Don't use the stack cache if
5984 inspecting trace frames.
5985 * tracepoint.c (finish_tfind_command): Invalidate the target
5986 dcache.
5987
ccf26247
JK
59882010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5989
5990 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
5991 for the PIC displacement, print also the displacement value.
5992 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
5993
477c84a7
KB
59942010-03-10 Kevin Buettner <kevinb@redhat.com>
5995
5996 * remote-mips.c (close_ports, mips_initialize_cleanups)
5997 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
5998 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
5999 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
6000 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
6001 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
6002 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
6003 comments describing each of these functions.
6004 (mips_enter_debug, mips_exit_debug, common_open)
6005 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
6006 blank line after the comment describing the function.
6007
01c30d6e
JK
60082010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6009
6010 * solib-svr4.c (svr4_exec_displacement): Return now success, new
6011 parameter displacementp. Update comment.
6012 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
6013 element exists. Return if svr4_exec_displacement was not successful.
6014 Update comment.
6015
09919ac2
JK
60162010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6017 Daniel Jacobowitz <dan@codesourcery.com>
6018
6019 * solib-svr4.c (read_program_header): Support type == -1 to read
6020 all program headers.
6021 (read_program_headers_from_bfd): New function.
6022 (svr4_static_exec_displacement): Remove and move the comment ...
6023 (svr4_exec_displacement): ... here. Remove variable found. New
6024 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
6025 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
6026 targets using read_program_headers_from_bfd. Remove the call of
6027 svr4_static_exec_displacement.
6028
d146bf1e
TT
60292010-03-10 Tom Tromey <tromey@redhat.com>
6030
6031 * dwarf2read.c (struct pubnames_header): Remove.
6032 (_PUBNAMES_HEADER): Remove.
6033 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
6034 (struct aranges_header): Remove.
6035 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
6036 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
6037 (PUBNAMES_SECTION): Remove.
6038 (ARANGES_SECTION): Remove.
6039 (dwarf2_locate_sections): Don't handle pubnames or aranges.
6040 (dwarf2_build_psymtabs): Remove dead code.
6041 (dwarf2_build_psymtabs_easy): Remove.
6042
be391dca
TT
60432010-03-10 Tom Tromey <tromey@redhat.com>
6044
6045 * elfread.c (elf_symfile_read): Don't call
6046 dwarf2_build_frame_info.
6047 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
6048 (struct dwarf2_per_objfile) <objfile>: New field.
6049 (dwarf2_has_info): Now idempotent. Set objfile field.
6050 (dwarf2_read_section): Check and set readin field. Call
6051 posix_madvise.
6052 (dwarf2_build_psymtabs): Don't read all sections.
6053 (read_type_comp_unit_head): Read types section.
6054 (create_debug_types_hash_table): Likewise.
6055 (init_cu_die_reader): Add asserts.
6056 (process_type_comp_unit): Add assert.
6057 (dwarf2_build_psymtabs_hard): Read info section.
6058 (load_partial_comp_unit): Add assert.
6059 (create_all_comp_units): Read info section.
6060 (load_full_comp_unit): Likewise.
6061 (dwarf2_ranges_read): Read ranges section.
6062 (dwarf2_record_block_ranges): Add assert.
6063 (dwarf2_read_abbrevs): Read abbrev section.
6064 (read_indirect_string): Read str section.
6065 (dwarf_decode_line_header): Read line section.
6066 (read_signatured_type_at_offset): Read types section.
6067 (dwarf_decode_macros): Read macinfo section.
6068 (dwarf2_symbol_mark_computed): Read loc section.
6069 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
6070 dwarf2_build_frame_info.
6071 (dwarf2_build_frame_info): Unconditionally set
6072 dwarf2_frame_objfile_data on the objfile.
6073 * configure.ac: Check for posix_madvise.
6074 * config.in, configure: Rebuild.
6075
ccefe4c4
TT
60762010-03-10 Tom Tromey <tromey@redhat.com>
6077
e38df1d0
TT
6078 * xcoffread.c (xcoff_start_psymtab): Update.
6079 (xcoff_end_psymtab): Update.
6080 * psymtab.c (allocate_psymtab): Remove dead code.
6081 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
6082 void*.
6083 * mdebugread.c (parse_partial_symbols): Update.
6084 (new_psymtab): Likewise.
6085 * dwarf2read.c (process_psymtab_comp_unit): Update.
6086 (psymtab_to_symtab_1): Update.
6087 * dbxread.c (start_psymtab): Update.
6088 (end_psymtab): Likewise.
6089
be391dca 60902010-03-10 Tom Tromey <tromey@redhat.com>
e38df1d0 6091
ccefe4c4
TT
6092 * xcoffread.c: Include psymtab.h.
6093 (xcoff_sym_fns): Update.
6094 * symtab.h (struct partial_symbol): Remove.
6095 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
6096 (struct partial_symtab): Remove.
6097 (PSYMTAB_TO_SYMTAB): Remove.
6098 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
6099 (find_pc_sect_psymtab): Remove.
6100 (find_pc_sect_symtab_via_partial): Declare.
6101 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
6102 (find_main_psymtab): Remove.
6103 (find_main_filename): Declare.
6104 (fixup_psymbol_section): Remove.
6105 (fixup_section): Declare.
6106 * symtab.c: Include psymtab.h.
6107 (lookup_symtab): Use lookup_symtab method.
6108 (lookup_partial_symtab): Remove.
6109 (find_pc_sect_psymtab_closer): Remove.
6110 (find_pc_sect_psymtab): Remove.
6111 (find_pc_sect_symtab_via_partial): New function.
6112 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
6113 (fixup_section): No longer static.
6114 (fixup_psymbol_section): Remove.
6115 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
6116 (lookup_global_symbol_from_objfile): Likewise.
6117 (lookup_symbol_aux_psymtabs): Remove.
6118 (lookup_symbol_aux_quick): New function.
6119 (lookup_symbol_global): Use lookup_symbol_aux_quick.
6120 (lookup_partial_symbol): Remove.
6121 (basic_lookup_transparent_type_quick): New function.
6122 (basic_lookup_transparent_type): Use it.
6123 (find_main_psymtab): Remove.
6124 (find_main_filename): New function.
6125 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
6126 (find_line_symtab): Use expand_symtabs_with_filename method.
6127 (output_partial_symbol_filename): New function.
6128 (sources_info): Use map_partial_symbol_filenames.
6129 (struct search_symbols_data): New type.
6130 (search_symbols_file_matches): New function.
6131 (search_symbols_name_matches): Likewise.
6132 (search_symbols): Use expand_symtabs_matching method.
6133 (struct add_name_data): Rename from add_macro_name_data.
6134 (add_macro_name): Update.
6135 (add_partial_symbol_name): New function.
6136 (default_make_symbol_completion_list): Use
6137 map_partial_symbol_names.
6138 (struct add_partial_symbol_name): New type.
6139 (maybe_add_partial_symtab_filename): New function.
6140 (make_source_files_completion_list): Use
6141 map_partial_symbol_filenames.
6142 (expand_line_sal): Use expand_symtabs_with_filename method.
6143 * symmisc.c: Include psymtab.h.
6144 (print_objfile_statistics): Use print_stats method.
6145 (dump_objfile): Use dump method.
6146 (dump_psymtab, maintenance_print_psymbols)
6147 (maintenance_info_psymtabs, maintenance_check_symtabs)
6148 (extend_psymbol_list): Remove.
6149 * symfile.h (struct quick_symbol_functions): New struct.
6150 (struct sym_fns) <qf>: New field.
6151 (sort_pst_symbols): Remove.
6152 (increment_reading_symtab): Declare.
6153 * symfile.c: Include psymtab.h.
6154 (compare_psymbols, sort_pst_symbols): Remove.
6155 (psymtab_to_symtab): Remove.
6156 (increment_reading_symtab): New function.
6157 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
6158 method.
6159 (set_initial_language): Use find_main_filename.
6160 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
6161 (free_named_symtabs): Remove unused code.
6162 (start_psymtab_common, add_psymbol_to_bcache)
6163 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
6164 Remove.
6165 * stack.c: Include psymtab.h, symfile.h.
6166 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
6167 * source.h (psymtab_to_fullname): Don't declare.
6168 * source.c: Include psymtab.h.
6169 (select_source_symtab): Use find_last_source_symtab method.
6170 (forget_cached_source_info): Use forget_cached_source_info
6171 method.
6172 (find_and_open_source): No longer static.
6173 (psymtab_to_fullname): Remove.
6174 * somread.c: Include psymtab.h.
6175 (som_sym_fns): Update.
6176 * psympriv.h: New file.
6177 * psymtab.h: New file.
6178 * psymtab.c: New file.
6179 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
6180 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
6181 * objfiles.c: Include psymtab.h.
6182 (objfile_relocate1): Use relocate method.
6183 (objfile_has_partial_symbols): Use has_symbols method.
6184 * mipsread.c: Include psymtab.h.
6185 (ecoff_sym_fns): Update.
6186 * mi/mi-cmd-file.c: Include psymtab.h.
6187 (print_partial_file_name): New function.
6188 (mi_cmd_file_list_exec_source_files): Use
6189 map_partial_symbol_filenames.
6190 * mdebugread.c: Include psympriv.h.
6191 * machoread.c: Include psympriv.h.
6192 (macho_sym_fns): Update.
6193 * m2-exp.y (yylex): Use lookup_symtab.
6194 * elfread.c: Include psympriv.h.
6195 (elf_sym_fns): Update.
6196 * dwarf2read.c: Include psympriv.h.
6197 * dbxread.c: Include psympriv.h.
6198 (aout_sym_fns): Update.
6199 * cp-support.c: Include psymtab.h.
6200 (read_in_psymtabs): Remove.
6201 (make_symbol_overload_list_qualified): Use
6202 expand_symtabs_for_function method.
6203 * coffread.c: Include psympriv.h.
6204 (coff_sym_fns): Update.
6205 * blockframe.c: Include psymtab.h.
6206 (find_pc_partial_function): Use find_pc_sect_symtab method.
6207 * ada-lang.h (ada_update_initial_language): Update.
6208 * ada-lang.c: Include psymtab.h.
6209 (ada_update_initial_language): Remove 'main_pst' argument.
6210 (ada_lookup_partial_symbol): Remove.
6211 (struct ada_psym_data): New type.
6212 (ada_add_psyms): New function.
6213 (ada_add_non_local_symbols): Use map_ada_symtabs method.
6214 (struct add_partial_datum): New type.
6215 (ada_add_partial_symbol_completions): New function.
6216 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
6217 (ada_exception_support_info_sniffer): Update.
6218 * Makefile.in (SFILES): Add psymtab.c.
6219 (COMMON_OBS): Add psymtab.o.
6220 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
6221
7d8500b7
PM
62222010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
6223
6224 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
6225
c0cc3a76
SW
62262010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
6227
6228 PR C++/11236:
6229 * cp-namespace.c (cp_add_using): Deleted.
6230 (cp_add_using_directive): Use obstack allocations.
6231 Merged the function cp_add_using into this one.
6232 Added 'struct obstack *' argument.
6233 (cp_scan_for_anonymous_namespaces): Updated.
6234 * cp-support.h: Updated.
6235 * dwarf2read.c (read_import_statement): Updated.
6236 (read_namespace): Updated.
6237
452fa064
CF
62382010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
6239
6240 * windows-nat.c (cygwin_conv_path): Remove old macro.
6241
60e1c644
PA
62422010-03-10 Pedro Alves <pedro@codesourcery.com>
6243
6244 * breakpoint.c (condition_command): Handle watchpoint conditions.
6245 (is_hardware_watchpoint): Add comment.
6246 (is_watchpoint): New.
6247 (update_watchpoint): Don't reparse the watchpoint's condition
6248 unless necessary.
6249 (WP_IGNORE): New.
6250 (watchpoint_check): Use it.
6251 (bpstat_check_watchpoint): Handle it.
6252 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
6253 conditions in a frame where it makes sense.
6254 (watch_command_1): Store the innermost block of the condition
6255 expression.
6256 (delete_breakpoint): Delete the watchpoint condition expression.
6257 * breakpoint.h (struct bp_location) <cond>: Update comment.
6258 (struct breakpoint): New field `cond_exp_valid_block'.
6259
af6b7be1
JB
62602010-03-09 Joel Brobecker <brobecker@adacore.com>
6261
6262 Adjust handling of Ada DIEs after dwarf2_physname patch.
6263 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
6264
60c5c021
CF
62652010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
6266 Pierre Muller <muller@ics.u-strasbg.fr>
6267
6268 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
6269 from/to posix/win32.
6270 (windows_make_so): Use non-Cygwin 1.7 specific function.
6271 (windows_create_inferior): Make sure that cygallargs points to
6272 original args in non Cygwin 1.7. case.
6273
60a1502a
MS
62742010-03-09 Michael Snyder <msnyder@vmware.com>
6275
6276 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
6277 after target_read_memory to get host byte order.
6278 (i386_process_record): Ditto.
6279
94af9270
KS
62802010-03-09 Keith Seitz <keiths@redhat.com>
6281
6282 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
6283 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
6284 print out const or volatile qualifiers, too.
6285 (c_type_print_args): Add parameters show_artificial and language.
6286 Skip artificial parameters when requested.
6287 Use the appropriate language printer.
6288 (c_type_print_varspec): Tell c_type_print_args to skip artificial
6289 parameters and pass language_c.
6290 * dwarf2read.c (die_list): New file global.
6291 (struct partial_die_info): Update comments for name field.
6292 (pdi_needs_namespace): Renamed to ...
6293 (die_needs_namespace): ... this. Rewrite.
6294 (dwarf2_linkage_name): Remove.
6295 (add_partial_symbol): Do not predicate the call to
6296 partial_die_full_name based on pdi_needs_namespace.
6297 Remove call to cp_check_possible_namespace_symbols and associated
6298 outdated comments.
6299 (guess_structure_name): Do not inspect child subprogram DIEs.
6300 (dwarf2_fullname): Update comments.
6301 Use die_needs_namespace to assist in computing the name.
6302 (read_func_scope): Use dwarf2_name to get the DIE's name.
6303 Use dwarf2_physname to get the "linkage name" of the DIE.
6304 (dwarf2_add_member_field): Use dwarf2_physname instead of
6305 dwarf2_linkage_name.
6306 (read_structure_type): For structs and classes, set TYPE_NAME, too.
6307 (determine_class): Remove.
6308 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
6309 except Ada.
6310 (new_symbol): Unconditionally call dwarf2_name.
6311 Compute the "linkage name" using dwarf2_physname.
6312 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
6313 When determining to scan for anonymous C++ namespaces, ignore
6314 the linkage name.
6315 (dwarf2_physname): New function.
6316 (dwarf2_full_name): Move content to new function and call
6317 that.
6318 (dwarf2_compute_name): "New" function.
6319 (_initialize_dwarf2_read): Initialize die_list.
6320 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
6321 physname.
6322 (gnu_v3_print_method_ptr): Use the physname for virtual methods
6323 without a demangled name.
6324 Print out type information for non-virtual methods.
c8d5aac9 6325 * linespec.c (decode_line_1): Force ANY string using "::" (or
94af9270 6326 "." for java) to use decode_compound, and clean up any stray quoting.
c8d5aac9
L
6327 If we found a file symtab, re-evaluate whether the remainder is_quoted.
6328 (decode_compound): Stop consuming at an open parenthesis.
6329 Keep template parameters.
6330 Keep any overload information.
6331 Keep keywords like "const".
6332 Remove paren_pointer.
6333 Move is_quoted check from set_flags to here.
6334 Remove #if 0 code from 2000. Ten years is long enough.
6335 (find_method): Before comparing symbol names, canonicalize the string
6336 from the user.
6337 If a specific overload is requested, find it. Otherwise throw an error.
94af9270
KS
6338 (find_method_overload_end): New function.
6339 (set_flags): Remove.
c8d5aac9
L
6340 (decode_compound): Assume that parentheses are matched.
6341 It's a lot easier.
94af9270
KS
6342 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
6343 to cplus_demangle.
6344 * linespec.c (decode_line_1): Keep important keywords like
6345 "const" and "volatile".
6346 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
6347 * typeprint.h (c_type_print_args): Add declaration.
6348 * ui-file.c (do_ui_file_obsavestring): New function.
6349 (ui_file_obsavestring): New function.
6350 * ui-file.h (ui_file_obsavestring): Add declaration.
6351 * valops.c (find_overload_match): Resolve the object to
6352 a non-pointer type.
6353 If the object is a data member, search the object for the member
6354 and return with staticp set.
6355 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
6356 Do not attempt to extract a function name from non-function types.
6357 If the extracted function name and the original name are the same,
6358 we don't have a C++ method.
6359
8d95cc3b
PA
6360 From Jan Kratochvil <jan.kratochvil@redhat.com>:
6361 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
94af9270
KS
6362
6363 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
6364 and arguments from symbol lookups.
6365 * ax-gdb.c (gen_expr): Likewise.
6366 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
6367 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
6368 lookup_possible_namespace_symbol): Likewise.
6369 * cp-support.c (read_in_psymtabs): Likewise.
6370 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
6371 * language.h (la_lookup_symbol_nonlocal): Likewise.
6372 * scm-valprint.c (scm_inferior_print): Likewise.
6373 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
6374 * solib-svr.c (elf_lookup_lib): Likewise.
6375 * solib.c (show_auto_solib_add): Likewise.
6376 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
6377 * symmisc.c (maintenance_check_symtabs): Likewise.
6378 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
6379 lookup_symbol_aux_local, lookup_symbol_aux_block,
6380 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
6381 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
6382 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
6383 basic_lookup_transparent_type, find_main_psymtab,
6384 lookup_block_symbol): Likewise.
6385 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
6386 lookup_symbol_global, lookup_symbol_aux_block,
6387 lookup_symbol_partial_symbol, lookup_block_symbol,
6388 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
6389
9cb74f47
PM
63902010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
6391
6392 * python/python-internal.h: Include symtab.h.
6393
af6b7be1
JB
63942010-03-09 Joel Brobecker <brobecker@adacore.com>
6395 Pierre Muller <muller@ics.u-strasbg.fr>
e13eedd5
PM
6396
6397 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
6398 * p-valprint.c (pascal_val_print): Remove undeed block and fix
6399 indentation.
6400
bad56014
TT
64012010-03-08 Tom Tromey <tromey@redhat.com>
6402
6403 * breakpoint.c (breakpoint_1): Add "QUIT".
6404
08105857
PA
64052010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
6406 Pedro Alves <pedro@codesourcery.com>
6407
6408 * solib.c (solib_find): Replace extension if
6409 solib_symbols_extension is set in the target gdbarch.
6410 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6411 solib_symbols_extension to "sym".
6412 * gdbarch.sh (solib_symbols_extension): New variable.
6413 (pstring): New function.
6414 * gdbarch.h, gdbarch.c: Regenerate.
6415
7c953934
TT
64162010-03-08 Tom Tromey <tromey@redhat.com>
6417
6418 PR cli/9591:
6419 * NEWS: Update.
6420 * utils.c: Include main.h.
6421 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
6422 (defaulted_query): Use default answer if `batch_flag'.
6423 * main.h (batch_flag): Declare.
6424 * main.c (batch_flag): New global.
6425 (captured_main): Remove 'batch'. Update.
6426
bbd2783e
KB
64272010-03-08 Kevin Buettner <kevinb@redhat.com>
6428
6429 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
6430 and Kevin Buettner:
6431
6432 * remote-mips.c (rockhopper_ops): New target_ops struct.
6433 (MON_ROCKHOPPER): New mips_monitor_type.
6434 (read_hex_value): New function.
6435 (mips_request): Send 8-byte values with a 'T' packet. Read the
8d95cc3b 6436 packet argument as a string and use read_hex_value to parse it.
bbd2783e
KB
6437 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
6438 (rockhopper_open): New function.
6439 (mips_wait): Read the PC, FP and SP fields as strings. Use
6440 read_hex_value to parse them and mips_set_register to commit them.
6441 (mips_set_register): New function.
6442 (mips_fetch_registers): Do not cast register value to "unsigned"
6443 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
6444 (mips_store_registers): Use a 'T' packet to set registers when
6445 using MON_ROCKHOPPER.
6446 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
6447 and expect the total to be printed before the entry address.
6448 (_initialize_remote_mips): Initialize and add rockhopper_ops.
6449
566f3d17
KB
64502010-03-08 Kevin Buettner <kevinb@redhat.com>
6451
6452 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
6453 Change return value to int. Store value fetched in location
6454 addressed by `val'. Use function's return value as success
6455 or failure indicator. Adjust all callers.
6456
9c8ee2ab 64572010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
f72d4b77
PM
6458
6459 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
6460
7155de5a
HZ
64612010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6462 Hui Zhu <teawater@gmail.com>
6463
6464 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
6465 tmp_to_stopped_data_address.
6466 (record_open): Reset tmp_to_stopped_by_watchpoint and
6467 tmp_to_stopped_data_address.
6468 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
6469 to_stopped_data_address.
6470
580879fc
HZ
64712010-03-08 Hui Zhu <teawater@gmail.com>
6472
6473 * i386-tdep.c (i386_process_record): Initialize regnum.
6474
b0fcb67f
JK
64752010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6476
6477 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
6478 Do not warn on ".gnu.liblist" and ".gnu.conflict".
6479
08597104
JB
64802010-03-08 Joel Brobecker <brobecker@adacore.com>
6481
6482 Memory error when reading wrong core file.
6483 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
6484 errors while reading the inferior memory, and return zero if
6485 an exception was raised.
6486
425b824a
MS
64872010-03-07 Michael Snyder <msnyder@vmware.com>
6488
ec6dbf37
MS
6489 * record.c (record_restore): Rename tmpu8 to rectype.
6490
648d0c8b
MS
6491 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
6492 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
6493
6494 (i386_record_push): Rename local tmpulongest to addr.
6495
6496 (i386_process_record): Rename local tmpulongest to addr.
6497
6498 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
6499 addr64.
955db0c0
MS
6500
6501 Rename local variable tmpu8 to opcode8 and regnum.
425b824a 6502
10760264
JB
65032010-03-07 Joel Brobecker <brobecker@adacore.com>
6504
6505 * remote.c (remote_get_ada_task_ptid): New function.
c8d5aac9 6506 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
10760264 6507
b3c613f2
CF
65082010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
6509
6510 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
6511 block. Define helper macros to reduce ifdefs in code.
6512 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
6513 size. Call unadorned GetModuleFileNameEx rather than
6514 GetModuleFileNameEx*.
6515 (windows_make_so): Use __PMAX to denote maximum buffer size and
6516 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
6517 appropriate.
6518 (get_image_name): Use __PMAX to denote maximum buffer size.
6519 (handle_load_dll): Likewise.
6520 (windows_pid_to_exec_file): Likewise.
6521 (windows_create_inferior): Add many accommodations for older Cygwin and
6522 non-Cygwin.
6523 (bad_GetModuleFileNameExW): Control inclusion of this function based on
6524 __USEWIDE conditional.
6525 (bad_GetModuleFileNameExA): Likewise.
6526 (_initialize_loadable): Just use real function names without the dyn_
6527 part since they are defined earlier.
6528
f870a310
TT
65292010-03-05 Corinna Vinschen <vinschen@redhat.com>
6530 Tom Tromey <tromey@redhat.com>
6531
6532 * utils.c (host_char_to_target): Add 'gdbarch' argument.
6533 (parse_escape): Likewise.
6534 * python/py-utils.c (unicode_to_target_string): Update.
6535 (unicode_to_target_python_string): Update.
6536 (target_string_to_unicode): Update.
6537 * printcmd.c (printf_command): Update.
6538 * p-exp.y (yylex): Update.
6539 * objc-exp.y (yylex): Update.
6540 * mi/mi-parse.c: Include charset.h.
6541 (mi_parse_escape): New function.
6542 (mi_parse_argv): Use it.
6543 * jv-exp.y (yylex): Update.
6544 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
6545 function.
6546 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
6547 * gdbarch.sh (auto_charset, auto_wide_charset): New.
6548 * gdbarch.c: Rebuild.
6549 * gdbarch.h: Rebuild.
6550 * defs.h (parse_escape): Update.
6551 * cli/cli-setshow.c: Include arch-utils.h.
6552 (do_setshow_command): Update.
6553 * cli/cli-cmds.c (echo_command): Update.
6554 * charset.h (target_charset, target_wide_charset): Update.
6555 * charset.c: Include arch-utils.h.
6556 (target_charset_name): Default to "auto".
6557 (target_wide_charset_name): Likewise.
6558 (show_target_charset_name): Handle "auto".
6559 (show_target_wide_charset_name): Likewise.
6560 (be_le_arch): New global.
6561 (set_be_le_names): Add 'gdbarch' argument.
6562 (validate): Likewise. Don't call set_be_le_names.
6563 (set_charset_sfunc, set_host_charset_sfunc)
6564 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
6565 Update.
6566 (target_charset): Add 'gdbarch' argument.
6567 (target_wide_charset): Likewise. Remove 'byte_order' argument.
6568 (auto_target_charset_name): New global.
6569 (default_auto_charset, default_auto_wide_charset): New functions.
6570 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
6571 for target charsets. Copy result of nl_langinfo. Use GetACP if
6572 USE_WIN32API.
6573 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
6574 remove 'byte_order' argument. Update.
6575 (classify_type): Likewise.
6576 (c_emit_char): Update.
6577 (c_printchar): Update.
6578 (c_printstr): Update.
6579 (c_get_string): Update.
6580 (evaluate_subexp_c): Update.
6581 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
6582 Declare.
6583 * python/python.c (gdbpy_target_charset): New function.
6584 (gdbpy_target_wide_charset): Likewise.
6585 (GdbMethods): Update.
6586 * NEWS: Update.
6587
4e7386b0
UW
65882010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
6589
6590 * symfile.c (build_section_addr_info_from_objfile): Do not mask
6591 off high address bits.
6592
aab48ede
UW
65932010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
6594
6595 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
6596 address as UnsignedLongLong, not LongLong.
6597
8eeafb51 65982010-03-05 Kevin Buettner <kevinb@redhat.com>
c8d5aac9 6599 Pedro Alves <pedro@codesourcery.com>
8eeafb51
KB
6600
6601 * remote-mips.c (gdbthread.h): Include.
6602 (remote_mips_ptid): Declare.
6603 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
6604 (common_open): Set inferior_ptid, add it as an inferior, and
6605 as a thread too. Delete FIXME comment regarding start_remote().
6606 (mips_close): Invoke generic_mourn_inferior().
6607 (mips_kill): Make sure that target_mourn_inferior is invoked.
6608 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
6609 it's now invoked from mips_close().
6610 (mips_load): Don't null out inferior_ptid. Don't call
6611 clear_symtab_users().
6612 (mips_thread_alive, mips_pid_to_str): New functions.
6613 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
6614 to_thread_alive and to_pid_to_str operations.
6615
ae411497
TT
66162010-03-04 Tom Tromey <tromey@redhat.com>
6617
6618 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
6619 in DWARF 3 and later.
6620 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
6621
0e0b460e
KS
66222010-03-04 Keith Seitz <keiths@redhat.com>
6623
6624 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
6625 If the filename portion of the linespec was quoted, recheck the
6626 remainder for additional quoting.
6627 (locate_first_half): Skip over completer chars, too.
6628
1b93ff13
TT
66292010-03-04 Tom Tromey <tromey@redhat.com>
6630
6631 * printcmd.c (printf_command): Pass dummy argument to
6632 printf_filtered.
6633
fc36e839
DE
66342010-03-04 Doug Evans <dje@google.com>
6635
111f853c
DE
6636 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
6637 unwound_fp.
6638
fc36e839
DE
6639 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
6640
c7437ca6
PA
66412010-03-04 Pedro Alves <pedro@codesourcery.com>
6642
6643 * breakpoint.c (update_watchpoint): Create a sentinel location if
6644 the software watchpoint isn't watching any memory.
6645 (breakpoint_address_bits): Skip dummy software watchpoint locations.
6646
58dadb1b
PA
66472010-03-04 Pedro Alves <pedro@codesourcery.com>
6648
6649 * utils.c (fputs_maybe_filtered): Check if there's already a top
6650 level interpreter before dereferencing it. If there isn't one,
6651 don't paginate either.
6652
50e98be4
DJ
66532010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6654
6655 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
6656 the state right when single stepping.
6657 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
6658 Get the next PC along with the instruction state.
6659 (thumb_get_next_pc): Remove.
6660 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
6661
2e3ceee9
HZ
66622010-03-04 Hui Zhu <teawater@gmail.com>
6663
6664 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
6665
390a8aca
PA
66662010-03-03 Pedro Alves <pedro@codesourcery.com>
6667
6668 * utils.c (fputs_maybe_filtered): Always disable pagination if the
6669 top level interpreter is MI.
6670
9355b391
SS
66712010-03-03 Stan Shebs <stan@codesourcery.com>
6672
6673 * remote.c (remote_download_tracepoint): Iterate over locations.
6674 * tracepoint.c (validate_actionline): Ditto.
6675 (encode_actions): Add location argument.
6676 (trace_dump_command): Check all locations to see if stepping
6677 frame.
390a8aca 6678
8685c86f
L
66792010-03-03 H.J. Lu <hongjiu.lu@intel.com>
6680 Eli Zaretskii <eliz@gnu.org>
6681
6682 * NEWS: Add X86 general purpose registers section.
6683
e8f781e2
TT
66842010-03-03 Tom Tromey <tromey@redhat.com>
6685
6686 PR mi/11098:
6687 * varobj.c (install_new_value): Handle case where new print_value
6688 is NULL.
6689
a0e0ef55
TT
66902010-03-03 Dainis Jonitis <jonitis@gmail.com>
6691
6692 PR gdb/11345:
6693 * printcmd.c (printf_command): Print end of format string using
6694 printf_filtered.
6695
a58d7472
TT
66962010-03-02 Tom Tromey <tromey@redhat.com>
6697
6698 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
6699 * defs.h (read_command_lines_1): Add missing 'void'.
6700 * cli/cli-script.c (recurse_read_control_structure): Add missing
6701 'void'.
6702 (read_next_line): Likewise.
6703 (read_command_lines_1): Likewise.
6704
ce50d78b
UW
67052010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
6706
6707 * spu-tdep.c (spu_analyze_prologue): Track instruction to
6708 store backchain as part of prologue.
6709
7e9af34a
DJ
67102010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
6711
6712 * progspace.c (update_address_spaces): Update inferior address spaces
6713 also.
6714
01637564
DE
67152010-03-02 Doug Evans <dje@google.com>
6716
6717 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
6718 lowpc,highpc args to addrmap_set_empty.
6719
1ba53b71
L
67202010-03-02 H.J. Lu <hongjiu.lu@intel.com>
6721
6722 * amd64-tdep.c (amd64_byte_names): New.
6723 (amd64_word_names): Likewise.
6724 (amd64_dword_names): Likewise.
6725 (amd64_pseudo_register_name): Likewise.
6726 (amd64_pseudo_register_read): Likewise.
6727 (amd64_pseudo_register_write): Likewise.
6728 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
6729 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
6730 set_gdbarch_pseudo_register_write and
6731 set_tdesc_pseudo_register_name. Don't call
6732 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
6733
6734 * i386-tdep.c (i386_num_mmx_regs): Removed.
6735 (i386_num_pseudo_regs): Likewise.
6736 (i386_byte_names): New.
6737 (i386_word_names): Likewise.
6738 (i386_byte_regnum_p): Likewise.
6739 (i386_word_regnum_p): Likewise.
6740 (i386_mmx_regnum_p): Updated.
6741 (i386_pseudo_register_name): Make it global. Handle byte and
6742 word pseudo-registers.
6743 (i386_pseudo_register_read): Likewise.
6744 (i386_pseudo_register_write): Likewise.
6745 (i386_pseudo_register_type): Handle byte, word and dword
6746 pseudo-registers
6747 (i386_register_reggroup_p): Don't include pseudo
6748 registers, except for MXX, in any register groups. Don't
6749 include pseudo byte, word, dword registers in general_reggroup.
6750 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
6751 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
6752 pseudo-registers after word pseudo-registers. Call
6753 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
6754
6755 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
6756 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
6757 eax_regnum.
6758 (i386_byte_regnum_p): New.
6759 (i386_word_regnum_p): Likewise.
6760 (i386_dword_regnum_p): Likewise.
6761 (i386_pseudo_register_name): Likewise.
6762 (i386_pseudo_register_read): Likewise.
6763 (i386_pseudo_register_write): Likewise.
6764
a6f5ef51
L
67652010-03-01 H.J. Lu <hongjiu.lu@intel.com>
6766
6767 * target-descriptions.c (tdesc_type): Remove
6768 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6769 (tdesc_predefined_types): Likewise.
6770 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
6771 if flag name is empty.
6772 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
6773
6774 * features/i386/32bit-core.xml: Define i386_eflags.
6775 * features/i386/64bit-core.xml: Likewise.
6776
6777 * features/i386/32bit-sse.xml: Define i386_mxcsr.
6778 * features/i386/64bit-sse.xml: Likewise.
6779
6780 * features/i386/amd64-linux.c: Regenerated.
6781 * features/i386/amd64.c: Likewise.
6782 * features/i386/i386-linux.c: Likewise.
6783 * features/i386/i386.c: Likewise.
6784
f5dff777
DJ
67852010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
6786
6787 * gdbtypes.c (append_composite_type_field_raw): New.
6788 (append_composite_type_field_aligned): Use the new function.
6789 * gdbtypes.h (append_composite_type_field_raw): Declare.
6790 * target-descriptions.c (struct tdesc_type_field): Add start and end.
6791 (struct tdesc_type_flag): New type.
6792 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
6793 kind. Add size to u.u. Add u.f for flags.
6794 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
6795 (tdesc_free_type): Likewise.
6796 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
6797 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
6798 (tdesc_add_bitfield, tdesc_add_flag): New.
6799 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
6800 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
6801 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
6802 current_type. Add current_type_size and current_type_is_flags.
6803 (tdesc_start_union): Clear the new fields.
6804 (tdesc_start_struct, tdesc_start_flags): New.
6805 (tdesc_start_field): Handle struct fields, including bitfields.
6806 (field_attributes): Make type optional. Add start and end.
6807 (union_children): Rename to struct_union_children.
6808 (union_attributes): Rename to struct_union_attributes. Add optional
6809 size.
6810 (flags_attributes): New.
6811 (feature_children): Add struct and flags.
6812 * features/gdb-target.dtd: Add flags and struct to features.
6813 Make field type optional. Add field start and end.
6814
90884b2b
L
68152010-03-01 H.J. Lu <hongjiu.lu@intel.com>
6816
6817 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
6818 (amd64_linux_read_description): Likewise.
6819 (_initialize_amd64_linux_nat): Set to_read_description to
6820 amd64_linux_read_description.
6821
6822 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
6823 (amd64_linux_register_name): Removed.
6824 (amd64_linux_register_type): Likewise.
6825 (amd64_linux_core_read_description): New.
6826 (amd64_linux_init_abi): Set target description to
6827 tdesc_amd64_linux if needed. Support orig_rax in target
6828 description. Don't call set_gdbarch_register_name nor
6829 set_gdbarch_register_type. Call
6830 set_gdbarch_core_read_description.
6831 (_initialize_amd64_linux_tdep): Call
6832 initialize_tdesc_amd64_linux.
6833
6834 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
6835
6836 * amd64-tdep.c: Include "features/i386/amd64.c".
6837 (amd64_register_names): Removed.
6838 (amd64_register_name): Likewise.
6839 (amd64_register_type): Likewise.
6840 (amd64_init_abi): Set num_core_regs and register_names. Set
8d95cc3b 6841 target description to tdesc_amd64 if needed. Don't call
90884b2b
L
6842 set_gdbarch_register_name nor set_gdbarch_register_type.
6843 (_initialize_amd64_tdep): New.
6844
6845 * i386-linux-nat.c (i386_linux_read_description): New.
6846 (_initialize_i386_linux_nat): Set to_read_description to
6847 i386_linux_read_description.
6848
6849 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
6850 (i386_linux_register_name): Removed.
6851 (i386_linux_core_read_description): New.
6852 (i386_linux_read_description): Likewise.
6853 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
6854 Set target description to tdesc_i386_linux if needed. Support
6855 orig_eax. Set register_reggroup_p. Call
6856 set_gdbarch_core_read_description.
6857 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
6858
6859 * i386-linux-tdep.h (tdesc_i386_linux): New.
6860
6861 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
6862 with I387_NUM_REGS.
6863
6864 * i386-tdep.c: Include "features/i386/i386.c".
6865 (i386_register_names): Make it const.
6866 (i386_mmx_names): Likewise.
6867 (i386_num_register_names): Removed.
6868 (i386_register_name): Likewise.
6869 (i386_eflags_type): Likewise.
6870 (i386_mxcsr_type): Likewise.
6871 (i386_sse_type): Likewise.
6872 (i386_register_type): Likewise.
6873 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
6874 (i386_pseudo_register_name): New.
6875 (i386_pseudo_register_type): Likewise.
6876 (i386_mmx_type): Make it static.
6877 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
6878 I387_NUM_REGS. Set num_core_regs and register_names. Don't
6879 call set_gdbarch_register_name nor set_gdbarch_register_type.
6880 Set register_reggroup_p. Set target description to tdesc_i386
6881 if needed. Call set_tdesc_pseudo_register_type,
6882 set_tdesc_pseudo_register_name and tdesc_use_registers.
6883 (_initialize_i386_tdep): Call initialize_tdesc_i386.
6884 initialize_tdesc_x86_64.
6885
6886 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
6887 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
6888 register_names, tdesc and register_reggroup_p.
6889 (I386_NUM_FREGS): Removed.
6890 (i386_eflags_type): Likewise.
6891 (i386_mxcsr_type): Likewise.
6892 (i386_mmx_type): Likewise.
6893 (i386_sse_type): Likewise.
6894 (i386_register_name): Likewise.
6895 (i386_regnum): Add I386_MXCSR_REGNUM.
6896 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
6897
6898 * i387-tdep.h (I387_NUM_REGS): New.
6899
6900 * regformats/i386/i386-linux.dat: Generated.
6901 * regformats/i386/i386.dat: Likewise.
6902 * regformats/i386/amd64-linux.dat: Likewise.
6903 * regformats/i386/amd64.dat: Likewise.
6904
6905 * regformats/reg-i386-linux.dat: Removed.
6906 * regformats/reg-i386.dat: Likewise.
6907 * regformats/reg-x86-64-linux.dat: Likewise.
6908 * regformats/reg-x86-64.dat: Likewise.
6909
d0d0ab16
CV
69102010-03-01 Corinna Vinschen <vinschen@redhat.com>
6911
6912 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
6913 cygwin_conv_path API rather than the deprecated
6914 cygwin_conv_to_full_posix_path.
6915 * windows-nat.c:
6916 (GetModuleFileNameExA): Undefine for Cygwin.
6917 (GetModuleFileNameExW): Define for Cygwin.
6918 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
6919 Call GetModuleFileNameExW and convert path to POSIX using
6920 cygwin_conv_path.
6921 (windows_make_so): Always define p. Drop unused variable m.
6922 Don't use Win32 functions to check file existance, rather use
6923 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
6924 Use canonicalize_file_name to get full path.
6925 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
6926 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
6927 use correct target buffer size in call to WideCharToMultiByte.
6928 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
6929 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
6930 (windows_create_inferior): Convert all paths and arguments to wchar_t
6931 and use CreateProcessW on Cygwin.
6932 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
6933 (bad_GetModuleFileNameExA): Undefine for Cygwin.
6934 (bad_GetModuleFileNameExW): Define for Cygwin.
6935 (_initialize_loadable): Load GetModuleFileNameExW into
6936 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
6937
dc00d89f
PM
69382010-02-28 Phil Muldoon <pmuldoon@redhat.com>
6939
6940 PR python/11036
6941 * python/py-frame.c (frapy_read_var): Add block argument and logic
6942 to cope with user provided blocks.
6943
0e095b7e
JK
69442010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6945
6946 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
6947 New comment.
6948
2f9e05b4
CV
69492010-02-28 Corinna Vinschen <vinschen@redhat.com>
6950
6951 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
6952 (COMMON_OBS): ... to here since it's used unconditionally.
6953 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
6954 (SFILES): To here.
6955
eb195664
DD
69562010-02-26 David Daney <ddaney@caviumnetworks.com>
6957
6958 * mips-linux-tdep.c: Update struct sigframe comments.
6959 (SIGFRAME_CODE_OFFSET): Delete macro.
6960 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
6961 this_frame's sp.
6962 (mips_linux_n32n64_sigframe_init): Same.
6963
97b0f3e2
KB
69642010-02-26 Kevin Buettner <kevinb@redhat.com>
6965
6966 * remote-mips.c (mips_load): Don't use pseudo-register when
6967 invalidating regcache.
6968
4069ebbe
DJ
69692010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6970
6971 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
6972
05071a4d
PA
69732010-02-26 Pedro Alves <pedro@codesourcery.com>
6974
6975 * NEWS: Add "New targets" section, and mention ARM Symbian
6976 support.
6977
6063c216
UW
69782010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
6979
6980 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
6981 add ADDR_SIZE member.
6982 (allocate_piece_closure): Update.
6983 (copy_pieced_value_closure): Likewise.
6984 (dwarf2_evaluate_loc_desc): Likewise.
6985 (read_pieced_value): Use DWARF address size instead of
6986 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
6987
5107b149 69882010-02-26 Phil Muldoon <pmuldoon@redhat.com>
c8d5aac9 6989 Tom Tromey <tromey@redhat.com>
5107b149
PM
6990
6991 * python/py-type.c (typy_lookup_typename): Add in block argument.
6992 If provided restrict lookup to specified blocks.
6993 (gdbpy_lookup_type): Likewise.
6994 (typy_lookup_type): Likewise.
6995
78664fa3 69962010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8d95cc3b 6997
78664fa3
PA
6998 Symbian config
6999
7000 gdb/
7001 * arm-symbian-tdep.c: New.
7002 * configure.tgt (arm*-*-symbianelf*): New target.
7003 (*-*-symbianelf*): New OS.
7004 * osabi.c (gdb_osabi_names): Add Symbian.
7005 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
7006 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
7007 (ALLDEPFILES): Add arm-symbian-tdep.c.
7008
eb73e134
DJ
70092010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
7010
7011 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
7012
46ef47e5
PA
70132010-02-24 Pedro Alves <pedro@codesourcery.com>
7014
7015 * mi/mi-main.c (mi_cmd_execute): Fix typo.
7016
f3e9a817 70172010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8d95cc3b 7018 Tom Tromey <tromey@redhat.com>
f3e9a817
PM
7019 Thiago Jung Bauermann <bauerman@br.ibm.com>
7020
7021 * python/python.c (_initialize_python): Call
7022 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
7023 gdbpy_initialize_blocks.
7024 * python/python-internal.h: Declare struct symbol, block and
7025 symtab_and_line. Declare block_object_type and
7026 symbol_object_type
7027 (gdbpy_lookup_symbol gdbpy_block_for_pc)
7028 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
7029 (symbol_to_symbol_object, block_to_block_object)
7030 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
7031 (gdbpy_initialize_blocks ): Declare.
7032 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
7033 (frapy_select): Add methods.
7034 (frapy_read_var): Add symbol branch.
7035 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
7036 py-block.
7037 (SUBDIR_PYTHON_SRCS): Likewise.
7038 (py-symbol.o): New rule.
7039 (py-symtab.o): Likewise.
7040 (py-block.o): Likewise.
7041 * python/py-symbol.c: New file.
7042 * python/py-symtab.c: Likewise.
7043 * python/py-block.c: Likewise.
7044
24291992
PA
70452010-02-24 Pedro Alves <pedro@codesourcery.com>
7046
7047 PR gdb/11321
7048
7049 * inferior.h (prepare_for_detach): Declare.
7050 (struct inferior) <detaching>: New field.
7051 * infrun.c (prepare_for_detach): New.
7052 (handle_inferior_event) <random signal>: Don't stop if detaching.
7053 * target.c (target_detach): Call prepare_for_detach.
7054
fc1cf338
PA
70552010-02-24 Pedro Alves <pedro@codesourcery.com>
7056
7057 Per-process displaced stepping queue.
7058
7059 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
7060 (displaced_step_gdbarch, displaced_step_closure,
7061 (displaced_step_original, displaced_step_copy): Move globals to
7062 this...
7063 (struct displaced_step_inferior_state): ... new structure.
7064 (displaced_step_inferior_states): New global.
7065 (get_displaced_stepping_state, add_displaced_stepping_state)
7066 (remove_displaced_stepping_state, infrun_inferior_exit): New
7067 functions.
7068 (displaced_step_clear): Add displaced_step_inferior_state
7069 parameter, and adjust to handle it.
7070 (displaced_step_clear_cleanup): Parameter is now a
7071 displaced_step_inferior_state. Adjust.
7072 (displaced_step_prepare): Adjust.
7073 (displaced_step_fixup, displaced_step_fixup)
7074 (infrun_thread_ptid_changed, resume): Adjust.
7075 (init_wait_for_inferior): Don't call displaced_step_clear.
7076 (infrun_thread_stop_requested): Rewrite.
7077 (_initialize_infrun): Install infrun_inferior_exit as
7078 inferior_exit observer.
7079
0723dbf5
PA
70802010-02-24 Pedro Alves <pedro@codesourcery.com>
7081
7082 * inferior.h (ptid_match): Declare.
7083 * infrun.c (ptid_match): New.
7084 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
7085 (handle_notification): Add debug output.
7086 * linux-nat.c (ptid_match): Delete.
7087
09de9781
DM
70882010-02-24 David S. Miller <davem@davemloft.net>
7089
7090 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
7091 * syscalls/sparc-linux.xml: New.
7092 * syscalls/sparc64-linux.xml: New.
7093 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
7094 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
7095 (sparc32_linux_get_syscall_number): New function.
7096 (sparc32_linux_init_abi): Set syscall XML file name and hook up
7097 syscall number fetcher.
7098 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
7099 (sparc64_linux_get_syscall_number): New function.
7100 (sparc64_linux_init_abi): Set syscall XML file name and hook up
7101 syscall number fetcher.
7102
a79b8f6e
VP
71032010-02-24 Vladimir Prus <vladimir@codesourcery.com>
7104
7105 Multiexec MI
7106
7107 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
7108 * inferior.c (add_inferior_silent): Notify inferior_added
7109 observer.
7110 (delete_inferior_1): Notify inferior_removed observer.
7111 (exit_inferior_1): Pass inferior, not pid, to observer.
7112 (inferior_appeared): Likewise.
7113 (add_inferior_with_spaces): New.
7114 (add_inferior_command): Use the above.
7115 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
7116 Declare.
7117
7118 * inflow.c (inflow_inferior_exit): Likewise.
7119 * jit.c (jit_inferior_exit_hook): Likewise.
7120
7121 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
7122 remove-inferior.
7123 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
7124 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
7125 (report_initial_inferior): New.
7126 (mi_inferior_removed): Register the above. Make sure
7127 inferior_added observer is called on the first inferior.
7128 (mi_new_thread, mi_thread_exit): Thread group is now identified by
7129 inferior number, not pid.
7130 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
7131 affected.
7132 * mi/mi-main.c (current_context): New.
7133 (proceed_thread_callback): Use typed closure.
7134 Proceed everything if pid is 0. Most implementation split into
7135 (proceed_thread): ... this.
7136 (run_one_inferior): New.
7137 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
7138 Adjust for multiexec behaviour.
7139 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
7140 (mi_cmd_execute): Handle the 'thread-group' option here.
7141 Do some extra checks.
7142 * mi-parse.c (mi_parse): Handle the --all and --thread-group
7143 options.
7144 * mi-parse.h (struct mi_parse): New fields all and thread_group.
7145
115d30f9
VP
71462010-02-24 Vladimir Prus <vladimir@codesourcery.com>
7147
7148 Make -exec-run a proper MI commands.
7149
7150 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
7151 * mi/mi-cmds.c (mi_cmds): Adjust.
7152 * mi/mi-main.c (mi_cmd_exec_run): New.
7153
06cd862c
PA
71542010-02-24 Pedro Alves <pedro@codesourcery.com>
7155 Stan Shebs <stan@codesourcery.com>
7156
7157 * tracepoint.h (set_traceframe_number)
7158 (cleanup_restore_current_traceframe): Declare.
7159 * tracepoint.c (set_traceframe_number): New.
7160 (struct current_traceframe_cleanup): New.
7161 (do_restore_current_traceframe_cleanup)
7162 (restore_current_traceframe_cleanup_dtor)
7163 (make_cleanup_restore_current_traceframe): New.
7164 * infrun.c: Include tracepoint.h.
7165 (fetch_inferior_event): Switch out and in of tfind mode.
7166
ab92d69b
PA
71672010-02-24 Pedro Alves <pedro@codesourcery.com>
7168
7169 * breakpoint.c (breakpoint_init_inferior): Also delete
7170 bp_shlib_event breakpoints.
7171 * solib-frv.c (enable_break): Remove call to
7172 remove_solib_event_breakpoints.
7173 * solib-svr4.c (enable_break): Ditto.
7174 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
7175 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
7176 * solib-som.c (som_solib_create_inferior_hook): Ditto.
7177 * solib-spu.c (spu_enable_break): Ditto.
7178
e707a91d
PA
71792010-02-23 Harald Koenig <H.Koenig@science-computing.de>
7180
7181 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
7182
cfce2ea2
PA
71832010-02-23 Harald Koenig <H.Koenig@science-computing.de>
7184
7185 * varobj.c (varobj_update): Avoid non-constants in initializers.
7186
05566b3b
TT
71872010-02-23 Tom Tromey <tromey@redhat.com>
7188
7189 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
7190 handle big-endian values.
7191 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
7192
85d721b8
PA
71932010-02-22 Pedro Alves <pedro@codesourcery.com>
7194
7195 PR9605
7196
7197 gdb/
7198 * breakpoint.c (insert_bp_location): If inserting the read
7199 watchpoint failed, fallback to an access watchpoint.
7200 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
7201 if the value changed, if not watching the same memory for writes.
7202 (watchpoint_locations_match): Add comment.
7203 (update_global_location_list): Copy the location's watchpoint type.
7204 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
7205 handle read watchpoints here.
7206 (i386_insert_watchpoint): Read watchpoints aren't supported.
7207 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
7208 packets.
7209 * target.h (target_insert_watchpoint): Update description.
7210
48ea67a7
TT
72112010-02-19 Tom Tromey <tromey@redhat.com>
7212
7213 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
7214 * m2-typeprint.c (m2_print_type): Update.
7215 * gdbtypes.c (recursive_dump_type): Update.
7216 (copy_type_recursive): Update.
7217 * c-typeprint.c (c_type_print_varspec_prefix): Update.
7218 (c_type_print_base): Update.
7219 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
7220 Remove.
7221 (struct cplus_struct_type) <ntemplate_args>: Remove.
7222 <struct template_arg>: Remove.
7223 <is_dynamic>: Move earlier.
7224 (TYPE_TEMPLATE_ARGS): Remove.
7225 (TYPE_NTEMPLATE_ARGS): Remove.
7226 (TYPE_TEMPLATE_ARG): Remove.
7227
48e32051
TT
72282010-02-19 Tom Tromey <tromey@redhat.com>
7229
7230 PR c++/8693, PR c++/9496:
7231 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
7232 * c-exp.y (lex_one_token): Rename from yylex. Don't call
7233 write_dollar_variable. Don't try to classify NAME tokens.
7234 (token_and_value): New type.
7235 (token_fifo, popping, name_obstack): New globals.
7236 (classify_name): New function.
7237 (classify_inner_name): Likewise.
7238 (yylex): Likewise.
7239 (VARIABLE): Now has type sval.
7240 (exp : VARIABLE): Call write_dollar_variable.
7241 (qualified_name): Use TYPENAME, not typebase. Add production for
7242 multiple "::" instances.
7243 (variable): Use name_not_typename.
7244 (qualified_type): Remove.
7245 (typebase): Update.
7246
672d9c23
JK
72472010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7248
7249 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
7250 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
7251 found by bfd_get_section_by_name.
7252 * symfile.h (struct section_addr_info) <sectindex>: New comment.
7253
bfbf3774
JB
72542010-02-19 Joel Brobecker <brobecker@adacore.com>
7255
7256 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
7257 7.0 section" into "Changes in 7.1".
7258
6756b09b 72592010-02-19 Joel Brobecker <brobecker@adacore.com>
7260
7261 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
7262 * version.in: Bump version to 7.1.50.20100219-cvs.
7263
202b96c1
PA
72642010-02-18 Harald Koenig <H.Koenig@science-computing.de>
7265
7266 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
7267 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
7268
de2e5182
TT
72692010-02-17 Tom Tromey <tromey@redhat.com>
7270
7271 * NEWS: Add Python API Improvements section.
7272
7280022e
DJ
72732010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
7274
7275 * NEWS: Correct typo.
7276
6f451e5e
TT
72772010-02-17 Tom Tromey <tromey@redhat.com>
7278
7279 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
7280
012836ea
JK
72812010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7282
7283 * symfile.c (build_section_addr_info_from_objfile): Include sections
7284 only if they are SEC_ALLOC or SEC_LOAD.
7285
d182d057
L
72862010-02-17 H.J. Lu <hongjiu.lu@intel.com>
7287
7288 PR shlibs/11293
7289 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
7290 of ULONGEST for address size.
7291
4eef138c
TT
72922010-02-17 Tom Tromey <tromey@redhat.com>
7293
7294 * NEWS: Add C++ improvements section.
7295
548a926a
UW
72962010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
7297
7298 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
7299 PyThreadState_Swap): Avoid "statement with no effect" warning.
7300
ad3a0e5b
JK
73012010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7302
7303 * solib-svr4.c (enable_break <target_auxv_search>): New variable
7304 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
7305
243e2c5d 73062010-02-17 Tristan Gingold <gingold@adacore.com>
b2319725 7307 Petr Hluzin <petr.hluzin@gmail.com>
243e2c5d
TG
7308
7309 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
7310 gdb_assert. Fix info->size for SIG prologue.
7311
275f2e57
DJ
73122010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7313
7314 * infcmd.c (show_inferior_tty_command): Check for NULL.
7315 Correct output message.
7316
791dfb64
DJ
73172010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7318
7319 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
7320 FUNCTION contains parentheses. Improve removal of a trailing
7321 single quote.
7322
14d1346b
DJ
73232010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7324
7325 * gcore.c (do_bfd_delete_cleanup): New function.
7326 (gcore_command): Use it. Discard the cleanup after success.
7327 (gcore_copy_callback): Delete dead code.
7328
e76ab67f
DJ
73292010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7330
7331 * symfile.c (addr_info_make_relative): Always use
7332 find_lowest_section.
7333
71dee663
SW
73342010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
7335
7336 * NEWS: Added entry for namespace fixes.
7337
a9854bd5
TT
73382010-02-15 Tom Tromey <tromey@redhat.com>
7339
7340 * dwarf2read.c (guess_structure_name): Allocate name on the
7341 objfile obstack.
7342
fd9e29b5
TT
73432010-02-15 Tom Tromey <tromey@redhat.com>
7344
7345 * c-typeprint.c (c_type_print_base): Reverse order of test.
7346
4e1fc9c9
JK
73472010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7348
7349 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
7350 initialize it from ELF BFD. Extend the prelink condition by it.
7351
74164c56
JK
73522010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7353
7354 * defs.h (parse_pid_to_attach): New.
7355 * utils.c (parse_pid_to_attach): New.
7356 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
7357 * gnu-nat.c (gnu_attach): Likewise.
7358 * nto-procfs.c (procfs_attach): Likewise.
7359 * procfs.c (procfs_attach): Likewise.
7360 * windows-nat.c (windows_attach): Likewise.
7361 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
7362 * inf-ttrace.c (inf_ttrace_attach): Likewise.
7363 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
7364 check.
7365
bf6adea8
MM
73662010-02-14 Masaki Muranaka <monaka@monami-software.com>
7367
7368 * MAINTAINERS: Add myself for write after approval privileges.
7369
28f34a8f
JK
73702010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7371
7372 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
7373 block.
7374
701ed6dc
JK
73752010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7376
7377 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
7378 only if INFO_VERBOSE.
7379
e5829bee
MS
73802010-02-12 Tomas Holmberg <th@virtutech.com>
7381
7382 * mi/mi-main.c: Added the --reverse flag to the following MI
7383 commands: exec-continue, exec-finish, exec-next, exec-step,
7384 exec-next-instruction, exec-step-instruction. This is to
7385 support reverse execution over the MI interface to gdb.
7386
081dfbf7
PA
73872010-02-12 Pedro Alves <pedro@codesourcery.com>
7388
7389 * tracepoint.c (_initialize_tracepoint): Specify that the address
7390 range of `tfind outsize' is exclusive, and that the address range
7391 of `tfind range' is inclusive, in the commands' help strings.
7392
ecc13e53
JB
73932010-02-12 Joel Brobecker <brobecker@adacore.com>
7394
7395 Spurious "dll not found" error messages on x64-windows.
7396 * windows-nat.c: Add include of complaints.h.
7397 (handle_unload_dll): Change dll-not-found error into a complaint.
7398
15c3d785
PA
73992010-02-12 Pedro Alves <pedro@codesourcery.com>
7400
7401 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
7402 bp_tracepoint and bp_fast_tracepoint, not
7403 bp_loc_software_breakpoint.
7404 (update_global_location_list): Tracepoints are never duplicates of
7405 anything.
7406
fd9b8c24
PA
74072010-02-12 Pedro Alves <pedro@codesourcery.com>
7408
7409 * breakpoint.c (break_command_really): Change return type to int.
7410 Return false if no breakpoint was created, true otherwise.
7411 (trace_command): Don't set the tracepoint count if no tracepoint
7412 was created.
7413 (ftrace_command): Ditto.
7414 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
7415 created in the breakpoints table.
7416
5c0d192f
JK
74172010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7418 Ulrich Weigand <uweigand@de.ibm.com>
7419
7420 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
7421
5d5b640e
PA
74222010-02-11 Pedro Alves <pedro@codesourcery.com>
7423
7424 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
7425 the offset value isn't of integral type.
7426
e5a0a904
JK
74272010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7428
7429 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
7430 New.
7431
be636754
PA
74322010-02-11 Pedro Alves <pedro@codesourcery.com>
7433
7434 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
7435 non-subscriptable types.
7436 * valarith.c (binop_types_user_defined_p): New, abstracted out
7437 from ...
7438 (binop_user_defined_p): ... this.
7439 * value.h (binop_types_user_defined_p): Declare.
7440
10ef8d6a
PA
74412010-02-11 Pedro Alves <pedro@codesourcery.com>
7442
7443 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
7444 Merge uploaded TSVs before merging uploaded tracepoints.
7445
b1028c8e
PA
74462010-02-11 Pedro Alves <pedro@codesourcery.com>
7447
7448 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
7449
7a93fb82 74502010-02-11 Vladimir Prus <vladimir@codesourcery.com>
84d90c10 7451
7a93fb82
VP
7452 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
7453 whitespace character after a dot in comment.
7454 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
7455 Likewise.
7456 (list_args_or_locals): For the 'all' (that is
7457 -stack-list-variables) case, always output list of tuples.
7458 Output 'arg' field if variable is argument.
84d90c10 7459
92981e24
TT
74602010-02-10 Tom Tromey <tromey@redhat.com>
7461
7462 * parser-defs.h (parser_debug): Declare.
7463 * parse.c (_initialize_parse): Install "debug parser" set/show
7464 command.
7465 (parser_debug): New global.
7466 (show_parserdebug): New function.
7467 * c-exp.y (c_parse): Set yydebug.
7468
9fd3625f
L
74692010-02-10 H.J. Lu <hongjiu.lu@intel.com>
7470
7471 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
7472 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
7473 (tdesc_predefined_types): Add i387_ext, i386_eflags and
7474 i386_mxcsr.
7475 (tdesc_find_type): New.
7476 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
7477 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
7478
7479 * target-descriptions.h (tdesc_find_type): New.
7480
2fe842e5
MS
74812010-02-10 Michael Snyder <msnyder@vmware.com>
7482
7483 * gdb-gdb.py: Comment fix.
7484
f18b4cab
TG
74852010-02-09 Tristan Gingold <gingold@adacore.com>
7486
7487 * machoread.c (macho_symfile_relocate): New function.
7488 (macho_sym_fns): Use macho_symfile_relocate instead of
7489 default_symfile_relocate.
7490 (macho_oso_data): New type.
7491 (current_oso): New variable.
7492 (macho_add_oso_symfile): Do not compute section_addr_info, but
7493 instead set vma of sections.
7494 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
7495 Set and clear current_oso.
7496
31dbc1c5
JB
74972010-02-09 Joel Brobecker <brobecker@adacore.com>
7498
7499 Wrong type description for tagged type parameter.
7500 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
7501 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
7502 reference to a tagged type.
7503
399f313b
TG
75042010-02-09 Tristan Gingold <gingold@adacore.com>
7505
7506 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
7507 brothers of the parent.
7508
714f19d5
TT
75092010-02-08 Tom Tromey <tromey@redhat.com>
7510
7511 PR c++/8017:
7512 * value.h: Update.
7513 * valops.c (search_struct_field): Make 'name' const.
7514 (search_struct_method): Likewise.
7515 (find_method_list): Make 'method' const.
7516 (value_struct_elt): Make 'name' and 'err' const.
7517 (value_find_oload_method_list): Make 'method' const.
7518 (find_overload_match): Make 'name' const.
7519 * eval.c (evaluate_subexp_standard): New locals function,
7520 function_name.
7521 <OP_FUNCALL>: Handle OP_SCOPE specially.
7522
de0a0249
UW
75232010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7524
7525 * infrun.c (handle_inferior_event): Do not look up regcache
7526 for exited processes.
7527
8d95cc3b 75282010-02-08 Chris Moller <moller@mollerware.com>
83b10087
CM
7529
7530 PR gdb/10728
7531 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8d95cc3b 7532 warn if found, and assume length = 1.
83b10087 7533
99903ae3
CM
75342010-02-08 Chris Moller <cmoller@redhat.com>
7535
7536 PR gdb/9067
7537 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6036c742 7538 (cp_print_static_field) Fix use of obstacks.
8d95cc3b 7539
e3e9f5a2
PA
75402010-02-08 Pedro Alves <pedro@codesourcery.com>
7541
7542 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
7543 resumed LWPs as resumed.
7544 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
7545 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
7546 of throwing an internal error. If an LWP of a process we're not
7547 waiting for reports a signal, don't force collecting a SIGSTOP,
7548 and if it was breakpoint hit in non-stop mode, cancel it. Don't
7549 go through all LWPs cancelling breakpoints in non-stop mode.
7550 (resume_stopped_resumed_lwps): New.
7551 (linux_nat_wait): Use it.
7552
46763423
L
75532010-02-07 H.J. Lu <hongjiu.lu@intel.com>
7554
7555 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
7556 i386/amd64 and i386/amd64-linux.
7557 (i386/i386-expedite): New.
7558 (i386/i386-linux-expedite): Likewise.
7559 (i386/amd64-expedite):Likewise.
7560 (i386/amd64-linux-expedite): Likewise.
7561 ($(outdir)/i386/i386-linux.dat): Likewise.
7562 ($(outdir)/i386/amd64.dat): Likewise.
7563 ($(outdir)/i386/amd64-linux.dat): Likewise.
7564
7565 * features/i386/32bit-core.xml: New.
7566 * features/i386/32bit-linux.xml: Likewise.
7567 * features/i386/32bit-sse.xml: Likewise.
7568 * features/i386/64bit-core.xml: Likewise.
7569 * features/i386/64bit-linux.xml: Likewise.
7570 * features/i386/64bit-sse.xml: Likewise.
7571 * features/i386/i386-linux.xml: Likewise.
7572 * features/i386/i386.xml: Likewise.
7573 * features/i386/amd64-linux.xml: Likewise.
7574 * features/i386/amd64.xml: Likewise.
7575 * features/i386/i386-linux.c: Likewise.
7576 * features/i386/i386.c: Likewise.
7577 * features/i386/amd64-linux.c: Likewise.
7578 * features/i386/amd64.c: Likewise.
7579
82856980
SW
75802010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
7581
7582 PR c++/7935:
7583 * cp-support.h: Added char* alias element to using_direct data
7584 struct.
7585 (cp_add_using): Added char* alias argument.
7586 (cp_add_using_directive): Ditto.
7587 * cp-namespace.c: Updated with the above changes.
7588 (cp_lookup_symbol_imports): Check for aliases.
7589 * dwarf2read.c (read_import_statement): Figure out local alias
7590 for the import and pass it on to cp_add_using.
7591 (read_namespace): Pass alias argument to cp_add_using.
7592
d18b8b7a
HZ
75932010-02-05 Hui Zhu <teawater@gmail.com>
7594
7595 * defs.h (gdb_bfd_errmsg): New extern.
7596 * exec.c (exec_file_attach): Change bfd_errmsg to
7597 gdb_bfd_errmsg.
7598 * utils.c (AMBIGUOUS_MESS1): New macro.
7599 (AMBIGUOUS_MESS2): New macro.
7600 (gdb_bfd_errmsg): New function.
7601
48379de6
DE
76022010-02-04 Doug Evans <dje@google.com>
7603
7604 * solib-svr4.c (enable_break): Add comment.
7605
4ee73e90
AG
76062010-02-04 Anthony Green <green@moxielogic.com>
7607
7608 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
7609 gracefully.
7610
1a334831
TT
76112010-02-04 Tom Tromey <tromey@redhat.com>
7612
7613 * valops.c (search_struct_field): Account for
7614 value_embedded_offset. Fix check for virtual base past the end of
7615 the object. Use value_copy when making a slice of the value.
7616
1180b2c8
L
76172010-02-04 H.J. Lu <hongjiu.lu@intel.com>
7618
7619 PR tui/9622
7620 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
7621 only if gdb_stdout is a tty.
7622
c3f08eb7
L
76232010-02-04 H.J. Lu <hongjiu.lu@intel.com>
7624
7625 * target-descriptions.c: Include "osabi.h".
7626 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
7627 OSABI.
7628
2d33f7b8
TG
76292010-02-04 Tristan Gingold <gingold@adacore.com>
7630
7631 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
7632 (macho_symtab_read): Adjust calls to macho_add_oso.
7633 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
7634 (macho_symfile_read): Adjust call to macho_oso_symfile.
7635 (macho_new_init): Move this function after declarations.
7636 (macho_symfile_init): Ditto.
7637 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
7638 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
7639
11334b82
VP
76402010-02-04 Vladimir Prus <vladimir@codesourcery.com>
7641
7642 Include MI command in remotelog.
7643
7644 * mi/mi-main.c (mi_execute_command): Call target_log_command.
7645
ff97be06
L
76462010-02-03 H.J. Lu <hongjiu.lu@intel.com>
7647
7648 * remote.c (remote_state): Remove gdbarch.
7649 (init_remote_state): Don't set gdbarch.
7650 (remote_query_supported): Pass target_gdbarch instead of
7651 rs->gdbarch to gdbarch_qsupported.
7652
75cebea9
L
76532010-02-03 H.J. Lu <hongjiu.lu@intel.com>
7654
7655 * gdbarch.sh: Add qsupported.
7656
7657 * gdbarch.c: Regenerated.
7658 * gdbarch.h: Likewise.
7659
7660 * remote.c (remote_state): Add gdbarch.
7661 (init_remote_state): Set gdbarch.
7662 (remote_query_supported): Support gdbarch_qsupported.
7663
c1dec97b
DJ
76642010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
7665
7666 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
7667 __FreeBSD_kernel_version.
7668
ac8035ab
TG
76692010-02-03 Tristan Gingold <gingold@adacore.com>
7670
7671 * symfile.h (struct sym_fns): Add sym_relocate field.
7672 (default_symfile_relocate): New prototype.
7673 (symfile_relocate_debug_section): First argument is now an objfile.
7674 * symfile.c (default_symfile_relocate): Rename from
7675 symfile_relocate_debug_section, first argument is now an objfile.
7676 (symfile_relocate_debug_section): New function.
7677 * coffread.c (coff_sym_fns): Set sym_relocate field.
7678 * somread.c (som_sym_fns): Ditto.
7679 * mipsread.c (ecoff_sym_fns): Ditto.
7680 * machoread.c (macho_sym_fns): Ditto.
7681 * elfread.c (elf_sym_fns): Ditto.
7682 * dwarf2read.c (dwarf2_read_section): Ditto.
7683 * xcoffread.c (xcoff_sym_fns): Ditto.
7684 * dbxread.c (aout_sym_fns): Ditto.
7685 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
7686 (elfstab_build_psymtabs): Ditto.
7687
be52b756
L
76882010-02-03 H.J. Lu <hongjiu.lu@intel.com>
7689
7690 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
7691
9c3c02fd
TT
76922010-02-02 Tom Tromey <tromey@redhat.com>
7693
7694 * valops.c (value_cast_structs): Try downcasting using the RTTI
7695 type.
7696
f23f4c59
TT
76972010-02-02 Tom Tromey <tromey@redhat.com>
7698
7699 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
7700 (gnuv2_baseclass_offset): Now static.
7701 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
7702 * gnu-v2-abi.h: Remove.
7703
0cc2414c
TT
77042010-02-02 Tom Tromey <tromey@redhat.com>
7705
7706 * m2-typeprint.c (m2_record_fields): Don't use
7707 TYPE_DECLARED_TYPE.
7708 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
7709 (struct main_type) <flag_declared_class>: New field.
7710 (struct cplus_struct_type) <declared_type>: Remove.
7711 <ntemplate_args>: Move earlier.
7712 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
7713 (DECLARED_TYPE_TEMPLATE): Remove.
7714 (TYPE_DECLARED_TYPE): Remove.
7715 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
7716 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
7717 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
7718 TYPE_DECLARED_TYPE.
7719
edf3d5f3
TT
77202010-02-02 Tom Tromey <tromey@redhat.com>
7721
7722 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
7723 * valops.c (search_struct_field): Compute nbases after calling
7724 CHECK_TYPEDEF.
7725 (check_field): Call CHECK_TYPEDEF.
7726 * cp-valprint.c (cp_print_value): Pass correct address to
7727 baseclass_offset. Fix check for virtual base past the end of the
7728 object. Don't offset address passed to cp_print_value_fields or
7729 apply_val_pretty_printer.
7730 (cp_print_value_fields): Fix call to val_print.
7731 (cp_print_value_fields_rtti): New function.
7732 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
7733 * p-valprint.c (pascal_object_print_value_fields): Fix call to
7734 val_print.
7735 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
7736 offset to address.
7737 * language.h (struct language_defn) <la_val_print>: Document.
7738 * c-lang.h (cp_print_value_fields_rtti): Declare.
7739
e4b7f41c
JK
77402010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7741
7742 PR libc/11214:
7743 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
7744 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
7745 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
7746
7618e12b
DJ
77472010-02-01 Michael Matz <matz@suse.de>
7748 Daniel Jacobowitz <dan@codesourcery.com>
7749
e4b7f41c 7750 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
7751 functions use a frame pointer.
7752
b381ea14
JK
77532010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7754
7755 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
7756 by a conditional setting DYN_ADDR. Use DYN_ADDR.
7757 * config/djgpp/fnchange.lst: Add translations for
7758 symbol-without-target_section.exp and symbol-without-target_section.c.
7759
0e05dfcb
DJ
77602010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
7761
7762 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
7763 (remote_breakpoint_for_pc): Correct invalid_p check.
7764 * gdbarch.c: Regenerated.
7765
f9d67f43
DJ
77662010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
7767
7768 * arm-tdep.c (arm_find_mapping_symbol): New function, from
7769 arm_pc_is_thumb.
7770 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
7771 (extend_buffer_earlier): New function.
7772 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
7773 (arm_adjust_breakpoint_address): New function.
7774 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
7775
177321bd
DJ
77762010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
7777
7778 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
7779 (arm_linux_thumb2_le_breakpoint): New constants.
7780 (arm_linux_init_abi): Set thumb2_breakpoint and
7781 thumb2_breakpoint_size.
7782 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
7783 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
7784 Implement support for single stepping through IT blocks if
7785 a 32-bit Thumb breakpoint instruction is available.
7786 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
7787 is available, use it when needed.
7788 (arm_remote_breakpoint_from_pc): New function.
7789 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
7790 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
7791 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
7792
a1dcb23a
DJ
77932010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
7794
7795 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
7796 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
7797 * gdbarch.c, gdbarch.h: Regenerated.
7798 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
7799 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
7800 gdbarch_remote_breakpoint_from_pc.
7801
2b009048
DJ
78022010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
7803
7804 * infrun.c (prepare_to_proceed): Handle other signals which might
7805 match a breakpoint.
7806 (handle_inferior_event): Move the check for unusual breakpoint
7807 signals earlier.
7808
e4e2711a
JB
78092010-01-29 Paul Hilfinger <hilfinger@adacore.com>
7810
7811 amd64 - function returning record with field straddling 2 registers.
7812 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
7813 a record of length <= 16 in which a field straddles the two
7814 eightbytes.
7815
cba6fab5
JB
78162010-01-29 Joel Brobecker <brobecker@adacore.com>
7817
7818 Implement return values on amd64-windows.
7819 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
7820 (amd64_windows_return_value): New function.
7821 (amd64_windows_init_abi): Call set_gdbarch_return_value with
7822 amd64_windows_return_value.
7823
3af6ddfe
JB
78242010-01-29 Joel Brobecker <brobecker@adacore.com>
7825
7826 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 7827 parameter registers.
3af6ddfe
JB
7828 * i386-tdep.h (struct gdbarch_tdep): Add new field
7829 integer_param_regs_saved_in_caller_frame.
7830 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
7831 tdep->integer_param_regs_saved_in_caller_frame to 1.
7832 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
7833 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
7834
80d19a06
JB
78352010-01-29 Joel Brobecker <brobecker@adacore.com>
7836
7837 amd64-windows: memory args passed by pointer during function calls.
7838 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
7839 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
7840 where tdep->memory_args_by_pointer is non-zero.
7841 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
7842 tdep->memory_args_by_pointer to 1.
7843
ba581dc1
JB
78442010-01-29 Joel Brobecker <brobecker@adacore.com>
7845
4966b6c2 7846 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
7847 * i386-tdep.h (enum amd64_reg_class): New, moved here from
7848 amd64-tdep.c.
7849 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
7850 call_dummy_integer_regs, and classify.
7851 * amd64-tdep.h (amd64_classify): Add declaration.
7852 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
7853 (amd64_reg_class): Delete, moved to i386-tdep.h.
7854 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
7855 Replace call to amd64_classify by call to tdep->classify.
7856 (amd64_push_arguments): Get the list of registers to use for
7857 passing integer parameters from the gdbarch tdep structure,
7858 rather than using a hardcoded one. Replace calls to amd64_classify
7859 by calls to tdep->classify.
7860 (amd64_push_dummy_call): Get the register number used for
7861 the "hidden" argument from tdep->call_dummy_integer_regs.
7862 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
7863 and tdep->call_dummy_integer_regs. Set tdep->classify.
7864 * amd64-windows-tdep.c: Add include of gdbtypes.h.
7865 (amd64_windows_dummy_call_integer_regs): New static global.
7866 (amd64_windows_classify): New function.
7867 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
7868 tdep->call_dummy_integer_regs and tdep->classify.
7869
d37346f0
DJ
78702010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
7871
7872 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
7873 for the new regcache. All callers updated.
7874 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
7875 (get_thread_arch_regcache): Do not set aspace here.
7876 * regcache.h (regcache_xmalloc): Update declaration.
7877
7878 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
7879 regcache_xmalloc updated.
7880
7434dadd
JB
78812010-01-28 Joel Brobecker <brobecker@adacore.com>
7882
7883 Another -Wunused-function error in procfs.c (sparc-solaris)
7884 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
7885 Only define if SYS_syssgi is defined.
7886 (remove_dbx_link_breakpoint): Delete declaration. Move up.
7887 (dbx_link_addr, insert_dbx_link_bpt_in_file)
7888 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
7889 is itself defined.
7890
16d905e2
CF
78912010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
7892
7893 * windows-nat.c (windows_initialization_done): New variable.
7894 (get_windows_debug_event): Issue error when process dies before
7895 completely initializing.
7896 (do_initial_windows_stuff): Set flag to indicate when we are done with
7897 the initial steps of attaching to the child.
7898
cd55e50f
JK
78992010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7900
7901 * symtab.h (struct symbol <symtab>): New comment on NULL values.
7902
99cc78aa
DE
79032010-01-27 Doug Evans <dje@google.com>
7904
4c7dcb84
DE
7905 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
7906
99cc78aa
DE
7907 * breakpoint.c (bpstat_stop_status): Delete useless code.
7908
52334bf5
JK
79092010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7910
7911 * printcmd.c (display_uses_solib_p): Remove variable section. Access
7912 objfile via SYMBOL_SYMTAB.
7913
708ead4e
TT
79142010-01-26 Tom Tromey <tromey@redhat.com>
7915
7916 PR exp/7643:
7917 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
7918 coerce_array on result.
7919
b14e635e
SW
79202010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
7921
7922 * cp-namespace.c (cp_lookup_symbol_namespace): Added
7923 search_parent argument.
7924 (cp_add_using): Initialize 'searched' field.
7925 (reset_directive_searched): New function.
7926 * cp-support.h: Add 'searched' field to using_direct struct.
7927 (cp_lookup_symbol_imports): Ditto.
7928 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
7929 Perform recursive search.
7930 Implement non parent search.
7931 * valops.c (value_maybe_namespace_elt): Updated.
7932
8540c487
SW
79332010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
7934
7935 PR gdb/10929:
7936 * dwarf2read.c (read_lexical_block_scope): Create blocks for
7937 scopes which contain using directives even if they contain no
7938 declarations.
7939 * symtab.c (lookup_symbol_aux): Pass lowest level block to
7940 la_lookup_symbol_nonlocal.
7941 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
7942 cp_lookup_symbol_namespace.
7943 (cp_lookup_symbol_namespace): Perform an import lookup at every
7944 block level.
7945 (cp_lookup_symbol_imports): New function.
7946 (cp_lookup_symbol_in_namespace): New function.
7947
421d5d99
TT
79482010-01-25 Tom Tromey <tromey@redhat.com>
7949
7950 PR gdb/11049:
7951 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
7952 result.
7953
6bcc772d
RO
79542010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7955
7956 * configure.ac: Only use host_os part when disabling TUI on osf.
7957 Use test to check variables, prefix strings with x.
7958 * configure: Regenerate.
7959
7960 * solib-osf.c (osf_current_sos): Initialize tail.
7961
1c1238a5
TG
79622010-01-25 gingold <gingold@adacore.com>
7963
c8d5aac9
L
7964 * windows-nat.c (windows_continue): Use %x to print thread id.
7965 (get_windows_debug_event): Ditto.
1c1238a5 7966
0b92b5bb
TT
79672010-01-22 Tom Tromey <tromey@redhat.com>
7968
7969 PR symtab/11199:
7970 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
7971 type and arguments. Use smash_to_methodptr_type.
7972 (read_structure_type): Call quirk_gcc_member_function_pointer
7973 later.
7974 * gdbtypes.h (smash_to_methodptr_type): Declare.
7975 * gdbtypes.c (smash_to_methodptr_type): New function.
7976 (lookup_methodptr_type): Use it.
7977
0d5392b8
TT
79782010-01-21 Tom Tromey <tromey@redhat.com>
7979
7980 PR symtab/11198:
7981 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
7982 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
7983 * glibc-tdep.c (find_minsym_and_objfile): Remove.
7984 (glibc_skip_solib_resolver): Use
7985 lookup_minimal_symbol_and_objfile.
7986
e6d088ec
KT
79872010-01-21 Kai Tietz <kai.tietz@onevision.com>
7988
7989 * inflow.c (check_syscall): Guard by #if clause for GO32 and
7990 WIN32 targets.
7991
b966cb8a
TT
79922010-01-20 Tom Tromey <tromey@redhat.com>
7993
7994 PR backtrace/10770:
7995 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
7996 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
7997 * dwarf2expr.c (new_dwarf_expr_context): Allocate
7998 dwarf_stack_values, not CORE_ADDRs.
7999 (execute_stack_op): Change DW_OP_div and comparison operators to
8000 use signed operands.
8001
3f81c18a
VP
80022010-01-20 Vladimir Prus <vladimir@codesourcery.com>
8003
8004 Per-inferior args and tty and environment.
8005
8006 * infcmd.c (inferior_args): Rename to ...
8007 (inferior_args_scratch): ... this.
8008 (inferior_io_terminal): Rename to ...
8009 (inferior_io_terminal_scratch): ... this.
8010 (inferior_argc, inferior_argv): Remove.
8011 (set_inferior_io_terminal, get_inferior_io_terminal): Store
8012 inside current_inferior().
8013 (set_inferior_tty_command, show_inferior_tty_command): New.
8014 (get_inferior_args, set_inferior_args): Store inside
8015 current_inferior().
8016 (notice_args_set): Likewise and rename to...
8017 (set_args_command): ... this.
8018 (set_inferior_args_vector): Likewise.
8019 (notice_args_read): Rename to...
8020 (show_args_command): ...new.
8021 (tty_command): Remove.
8022 (run_command_1): Don't free old args, as they are freed by
8023 set_inferior_arg now.
8024 (run_no_args_command): Likewise.
8025 (inferior_environ): Remove.
8026 (run_command_1): Use environment of the current inferior.
8027 (environment_info, set_environment_command)
8028 (unset_environment_command, path_info, path_command): Likewise.
8029 (_initialize_infcmd): Adjust for function and variable renames.
8030 Do not init inferior_environ.
8031 * inferior.h (set_inferior_arg): Adjust prototype.
8032 (struct inferior): New fields args, argc, argv, terminal, environment.
8033 (inferior_environ): Remove declaration.
8034 * inferior.c (free_inferior): Free new fields.
8035 (add_inferior_silent): Initialize 'environment' field.
8036 * main.c (captured_main): Set arguments only after the initial
8037 inferior has been created. Set set_inferior_io_terminal,
8038 not tty_command.
8039 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
8040 inferior.
8041 (_initialize_mi_cmd_env): Adjust for disappearance of global
8042 inferior_environ.
8043 * solib.c (solib_find): Use environment of the current inferior.
8044
d8b65138
JK
80452010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8046
8047 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
8048 HAVE_PYTHON.
8049 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
8050
692465f1
JB
80512010-01-20 Joel Brobecker <brobecker@adacore.com>
8052
8053 Get rid of ada-lang.c:function_name_from_pc.
8054 * ada-lang.c: Add "stack.h" #include.
8055 (function_name_from_pc): Delete.
8056 (is_known_support_routine): Replace call to function_name_from_pc
8057 by call to find_frame_funname.
8058 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8059
95519e0e
TT
80602010-01-19 Tom Tromey <tromey@redhat.com>
8061
8062 PR c++/11026:
8063 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
8064 objfile obstack.
8065
95c11dc7
TT
80662010-01-19 Tom Tromey <tromey@redhat.com>
8067
8068 * top.c (stop_sig, float_handler, do_nothing): Remove.
8069
a0f49112
JK
80702010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8071
8072 * breakpoint.c (watchpoint_check): Check the call
8073 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
8074 Extend the comment.
8d95cc3b 8075 * config/djgpp/fnchange.lst: Add translations for
a0f49112
JK
8076 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
8077 watchpoint-cond-gone-stripped.c.
8078
ceeb3d5a
TT
80792010-01-19 Tom Tromey <tromey@redhat.com>
8080
8081 PR c++/8000:
8082 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
8083 into parent scope, and enumerator into grandparent scope.
8084
2b71fc8e
JB
80852010-01-19 Joel Brobecker <brobecker@adacore.com>
8086
8087 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
8088
03564ed9
JB
80892010-01-19 Joel Brobecker <brobecker@adacore.com>
8090
8091 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
8092 i[34567]86-*-solaris2.1[0-9]*.
8093 * configure.tgt: Likewise.
8094
fb2e7cb4
JB
80952010-01-19 Joel Brobecker <brobecker@adacore.com>
8096
8097 * NEWS: Document the source command enhancement allowing it
8098 to load Python scripts. Document the "set/show script-extension"
8099 commands.
8100
1cb5e2a4
JB
81012010-01-19 Joel Brobecker <brobecker@adacore.com>
8102
8103 Add -Wunused-function to compile flags.
8104 * configure.ac: Add -Wunused-function to build_warnings.
8105 * configure: Regenerate.
8106
0ec6cd0c
JB
81072010-01-19 Joel Brobecker <brobecker@adacore.com>
8108
8109 "delete" ada-lex.c:input function, not used.
8110 * ada-lex.l: #define YY_NO_INPUT.
8111
b74845da
JB
81122010-01-19 Joel Brobecker <brobecker@adacore.com>
8113
8114 Delete free_named_symtabs and associated cleanup.
8115 * symfile.h (free_named_symtabs): Delete declaration.
8116 * symfile.c: Remove some commented out code (clear_symtab_users_once).
8117 (cashier_psymtab): Comment function out.
8118 Delete declaration.
8119 (free_named_symtabs): Delete.
8120 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
8121 * dbxread.c (end_psymtab): Likewise.
8122 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
8123 * exec.c (exec_close_1): Ditto.
8124 * xcoffread.c (xcoff_end_psymtab): Likewise.
8125
65c06092
JB
81262010-01-19 Joel Brobecker <brobecker@adacore.com>
8127
8128 * stack.c (print_block_frame_labels): Comment function out.
8129
d5cd6034
JB
81302010-01-19 Joel Brobecker <brobecker@adacore.com>
8131
8132 Delete unused or undefined functions.
8133 * breakpoint.c (ep_parse_optional_filename): Delete.
8134 * dcache.c (dcache_write_line): Remove declaration.
8135 * infrun.c (build_infrun): Remove declaration.
8136 * tracepoint.c (tracepoint_save_command): Remove declaration.
8137 * linux-nat.c (init_lwp_list): Delete. No longer used.
8138 * event-loop.c (check_async_signal_handlers): Delete declaration.
8139 * infrun.c (init_execution_control_state): Delete.
8140 (proceed): Update comment to avoid mentioning
8141 init_execution_control_state.
8142 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
8143 * ada-lang.c (ada_to_static_fixed_value): Delete.
8144 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
8145 * cp-namespace.c (cp_copy_usings): Delete.
8146 * xml-syscall.c (xml_number_of_syscalls): Delete.
8147 * progspace.c (find_program_space_by_num): Delete.
8148 * inflow.c (handle_sigio): Delete declaration.
8149 * hppa-tdep.c (hppa_alignof): Delete.
8150 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
8151 (mipsnbsd_core_osabi_sniffer): Delete.
8152
4e8f195d
TT
81532010-01-18 Tom Tromey <tromey@redhat.com>
8154
8155 PR c++/9680:
8156 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
8157 (CONST_CAST): New tokens.
8158 (exp): Add new productions.
8159 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
8160 reinterpret_cast.
8161 (is_cast_operator): New function.
8162 (yylex): Handle cast operators specially.
8163 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
8164 UNOP_REINTERPRET_CAST>: New cases.
8165 * expprint.c (print_subexp_standard): Likewise.
8166 (op_name_standard): Likewise.
8167 (dump_subexp_body_standard): Likewise.
8168 * parse.c (operator_length_standard): Likewise.
8169 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
8170 UNOP_REINTERPRET_CAST.
8171 * gdbtypes.c (class_types_same_p): New function.
8172 (is_ancestor): Use it.
8173 (is_public_ancestor): New function.
8174 (is_unique_ancestor_worker): Likewise.
8175 (is_unique_ancestor): Likewise.
8176 * gdbtypes.h (class_types_same_p, is_public_ancestor)
8177 (is_unique_ancestor): Declare.
8178 * valops.c (value_reinterpret_cast): New function.
8179 (dynamic_cast_check_1): Likewise.
8180 (dynamic_cast_check_2): Likewise.
8181 (value_dynamic_cast): Likewise.
8182 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
8183
d9c57d9f
JB
81842010-01-18 Joel Brobecker <brobecker@adacore.com>
8185
8186 Fix build failure when building without Python support.
8187 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
8188 is not defined.
8189
f80d3ff2
JB
81902010-01-18 Joel Brobecker <brobecker@adacore.com>
8191
8192 Use XVS field type instead of doing a parallel lookup.
8193 * ada-lang.c (ada_get_base_type): Follow the XVS field type
8194 if it is a reference type instead of doing a type lookup using
8195 the XVS field name.
8196
5bf03f13
JB
81972010-01-18 Joel Brobecker <brobecker@adacore.com>
8198
8199 Trust PAD types instead of using PAD___XVS.
8200 * ada-lang.c (trust_pad_over_xvs): New static variable.
8201 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
8202 parallel XVS type, follow the XVS type instead of the PAD type.
8203 (unwrap_value): Make sure that there is no parallel XVE type
8204 before returning the value as is.
8205 (set_ada_list, show_ada_list): New static variables.
8206 (set_ada_command, show_ada_command): New functions.
8207 (_initialize_ada_language): Add new "set/show ada" prefix commands.
8208 Add new "set/show ada trust-PAD-over-XVS" setting.
8209
973817a3
JB
82102010-01-18 Tom Tromey <tromey@redhat.com>
8211 Thiago Jung Bauermann <bauerman@br.ibm.com>
8212
8213 Allow "source" to load python scripts.
8214 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
8215 * python/python.c (source_python_script): New function.
8216 * python/python.h (source_python_script): Add declaration.
8217 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
8218 (script_ext_off, script_ext_soft, script_ext_strict)
8219 (script_ext_enums, script_ext_mode): New static constants.
8220 (show_script_ext_mode, find_and_open_script): New functions.
8221 (source_script): Enhance to handle Python scripts.
8222 (init_cli_cmds): Add set/show script-extension commands.
8223
98e03262
SS
82242010-01-16 Stan Shebs <stan@codesourcery.com>
8225
8226 * tracepoint.h (struct trace_status): Use unsigned long long
8227 instead of size_t.
8228 * tracepoint.c (trace_status_command): Fix printf directive.
8229 (trace_save_command): Check fwrite returns, fix printf directive.
8230 (trace_filename): New global.
8231 (tfile_open): Set it, check read returns.
8232 (tfile_close): Free trace_filename.
8233 (tfile_get_traceframe_address): Check read returns.
8234 (tfile_trace_find): Ditto.
8235 (tfile_fetch_registers): Ditto.
8236 (tfile_xfer_partial): Ditto.
8237 (tfile_get_trace_state_variable_value): Ditto.
8238
00bf0b85
SS
82392010-01-15 Stan Shebs <stan@codesourcery.com>
8240
8241 Add trace file support.
8242 * tracepoint.h (enum trace_stop_reason): New enum.
8243 (struct trace_status): New struct.
8244 (parse_trace_status): Declare.
8245 (struct uploaded_tp): Move here from remote.c,
8246 add fields for actions.
8247 (struct uploaded_tsv): New struct.
8248 * tracepoint.c (tfile_ops): New target vector.
8249 (trace_fd): New global.
8250 (tfile_open): New function.
8251 (tfile_close): New function.
8252 (tfile_files_info): New function.
8253 (tfile_get_trace_status): New function.
8254 (tfile_get_traceframe_address): New function.
8255 (tfile_trace_find): New function.
8256 (tfile_fetch_registers): New function.
8257 (tfile_xfer_partial): New function.
8258 (tfile_get_trace_state_variable_value): New function.
8259 (init_tfile_ops): New function.
8260 (_initialize_tracepoint): Call it, add tfile target.
8261 (trace_status): New global.
8262 (current_trace_status): New function.
8263 (trace_running_p): Remove, change all users to get from
8264 current_trace_status()->running.
8265 (get_trace_status): Remove.
8266 (trace_status_command): Call target_get_trace_status directly,
8267 report more detail including tracing stop reasons.
8268 (trace_find_command): Always allow tfind on a file.
8269 (trace_find_pc_command): Ditto.
8270 (trace_find_tracepoint_command): Ditto.
8271 (trace_find_line_command): Ditto.
8272 (trace_find_range_command): Ditto.
8273 (trace_find_outside_command): Ditto.
8274 (trace_frames_offset, cur_offset): Declare as off_t.
8275 (trace_regblock_size): Rename from reg_size, update users.
8276 (parse_trace_status): New function.
8277 (tfile_interp_line): New function.
8278 (disconnect_or_stop_tracing): Ensure current trace
8279 status before asking what to do.
8280 (stop_reason_names): New global.
8281 (trace_save_command): New command.
8282 (get_uploaded_tp): Move here from remote.c.
8283 (find_matching_tracepoint): Ditto.
8284 (merge_uploaded_tracepoints): New function.
8285 (parse_trace_status): Use stop_reason_names.
8286 (_initialize_tracepoint): Define tsave command.
8287 * target.h (target_ops): New fields to_save_trace_data,
8288 to_upload_tracepoints, to_upload_trace_state_variables,
8289 to_get_raw_trace_data, change to_get_trace_status
8290 to take a pointer to a status struct.
8291 (target_save_trace_data): New macro.
8292 (target_upload_tracepoints): New macro.
8293 (target_upload_trace_state_variables): New macro.
8294 (target_get_raw_trace_data): New macro.
8295 * target.c (update_current_target): Add new methods, change
8296 signature of to_get_trace_status.
8297 * remote.c (hex2bin): Make globally visible.
8298 (bin2hex): Ditto.
8299 (remote_download_trace_state_variable): Download name also.
8300 (remote_get_trace_status): Update parameter, use
8301 parse_trace_status.
8302 (remote_save_trace_data): New function.
8303 (remote_upload_tracepoints): New function.
8304 (remote_upload_trace_state_variables): New function.
8305 (remote_get_raw_trace_data): New function.
8306 (remote_start_remote): Use them.
8307 (_initialize_remote_ops): Add operations.
8308 * ax-gdb.c: Include breakpoint.h.
8309 * breakpoint.c (create_tracepoint_from_upload): Use
8310 break_command_really, return tracepoint, warn about unimplemented
8311 parts.
8312 * NEWS: Mention trace file addition.
8313
d904de5b
JK
83142010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8315
8316 Fix compilation warning on gcc-3.4.
8317 * exec.c (print_section_info): Move the `displacement' variable
8318 initialization to its declaration.
8319
64aa9731
JK
83202010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8321
8322 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
8323 comparison.
8324
ca1f5def 83252010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
8326
8327 "info tasks" broken by typedefs in ATCB type definitions.
8328 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
8329 ada_check_typedef before retrieving the length of the type for
8330 regular fields.
8331
12ab9e09
JB
83322010-01-15 Joel Brobecker <brobecker@adacore.com>
8333
8334 Do not use name-based lookup for unconstrained packed arrays.
8335 * ada-lang.c (find_parallel_type_by_descriptive_type):
8336 Limit the fallback to name-based lookups to the case where
8337 the type is a constrained packed array.
8338
c389c3dc
JB
83392010-01-15 Joel Brobecker <brobecker@adacore.com>
8340
8341 Enhance gdb-gdb.py to handle main_type.type_specific.
8342 * gdb-gdb.py: Print the type-specific part of struct main_type.
8343
7991dee7
JK
83442010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8345
8346 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
8347 * configure: Regenerate.
8348 * config.in: Regenerate.
8349 * utils.c: Include sys/resource.h.
8350 (dump_core, can_dump_core): New.
8351 (internal_vproblem): Update the comment. Check can_dump_core while
8352 setting dump_core_p. Replace two abort calls by dump_core calls.
8353
93c26624
JK
83542010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8355 Eli Zaretskii <eliz@gnu.org>
8356
8357 * NEWS: Document the PIE support.
8358
55235ad7
JK
83592010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8360
8361 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
8362 (check_is_pie_binary, _initialize_linux_tdep): Remove.
8363
41752192
JK
83642010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8365
8366 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
8367 Replace exec_entry_point call by bfd_get_start_address.
8368
9f2982ff
JK
83692010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8370
8371 Support Valgrind attachments broken by the PIE support.
8372 * auxv.c: Include gdbcore.h.
8373 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
8374 parameters ops, object and annex. Remove their assertions.
8375 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
8376 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
8377 (memory_xfer_auxv): ... here.
8378 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
8379 memory_xfer_auxv.
8380 * procfs.c (procfs_xfer_partial): Likewise.
8381 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
8382 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
8383 (svr4_solib_create_inferior_hook): Conditionalize the
8384 svr4_relocate_main_executable call.
8385
61f0d762
JK
83862010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8387
8388 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
8389 target_section. Find SECT in current_target_sections, gdb_assert it.
8390 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
8391 New variable abfd.
8392 * symtab.c (lookup_objfile_from_block): Return the binary file instead
8393 of separate debug info file.
8394
51bee8e9
JK
83952010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8396
8397 Support PIEs with no symfile_objfile.
8398 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
8399 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
8400
b8040f19
JK
84012010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8402
8403 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
8404 code part to ...
8405 (svr4_static_exec_displacement): ... a new function.
8406 (svr4_exec_displacement): New function.
8407 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
8408 new_offsets using alloca now. Remove variable old_chain and changed.
8409 Call objfile_relocate unconditionally now.
8410
eb90ce83
DE
84112010-01-14 Doug Evans <dje@google.com>
8412
8413 * gdbtypes.c (arch_flags_type): Fix comment.
8414 * gdbtypes.h (arch_composite_type): Fix comment.
8415
bdfed3bc
TG
84162009-01-14 Tristan Gingold <gingold@adacore.com>
8417
8418 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
8419 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
8420 to symbol_file_add_from_bfd. Add OSO as separate objfile.
8421 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
8422 macho_add_oso_symfile.
8423 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
8424
1596ad23
JB
84252010-01-14 Joel Brobecker <brobecker@adacore.com>
8426
8427 Tru64: Dead threads are never deleted.
8428 * dec-thread.c (dec_thread_ptid_is_alive): New function.
8429 (dec_thread_count_gdb_threads): Fix counter increment.
8430 (dec_thread_add_gdb_thread): Fix *listp increment.
8431 (resync_thread_list): Fix bug in deletion of dead threads that
8432 caused all threads to be deleted, instead of just the dead ones.
8433
be759fcf
PM
84342010-01-13 Phil Muldoon <pmuldoon@redhat.com>
8435
8436 PR python/10705
8437
8438 * python/python-internal.h: Add lazy_string_object_type
8439 definition.
8440 (create_lazy_string_object, gdbpy_initialize_lazy_string)
8441 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
8442 * python/py-value.c (valpy_lazy_string): New function.
8443 (convert_value_from_python): Add lazy string conversion.
8444 * python/py-prettyprint.c (pretty_print_one_value): Check if
8445 return is also a lazy string.
8446 (print_string_repr): Add lazy string printing branch.
8447 (print_children): Likewise.
8448 * python/py-lazy-string.c: New file. Implement lazy strings.
8449 * python/python.c (_initialize_python): Call
8450 gdbpy_initialize_lazy_string.
8451 * varobj.c (value_get_print_value): Add lazy string printing
8452 branch. Account for encoding.
8453 * c-lang.c (c_printstr): Account for new encoding argument. If
8454 encoding is NULL, find encoding suited for type, otherwise use
8455 user encoding.
8456 * language.h (language_defn): Add encoding argument.
8457 (LA_PRINT_STRING): Likewise.
8458 * language.c (unk_lang_printstr): Update to reflect new encoding
8459 argument to language_defn.
8460 * ada-lang.h (ada_printstr): Likewise.
8461 * c-lang.h (c_printstr): Likewise.
8462 * p-lang.h (pascal_printstr);
8463 * f-lang.c (f_printstr): Likewise.
8464 * m2-lang.c (m2_printstr): Likewise.
8465 * objc-lang.c (objc_printstr): Likewise.
8466 * p-lang.c (pascal_printstr): Likewise.
8467 * scm-lang.c (scm_printstr): Likewise.
8468 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
8469 encoding argument.
8470 * ada-valprint.c (ada_printstr): Likewise.
8471 * f-valprint.c (f_val_print): Likewise
8472 * m2-valprint.c (m2_val_print): Likewise.
8473 * p-valprint.c (pascal_val_print): Likewise.
8474 * expprint.c (print_subexp_standard): Likewise.
8475 * valprint.c (val_print_string): Likewise.
8476 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
8477 (SUBDIR_PYTHON_SRCS): Likewise.
8478 (py-lazy-string.o): New rule.
8479
1fe72117 84802010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
8481
8482 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
8483 uninitialized" warning from gcc on local `tree'.
8484
dc146f7c
VP
84852010-01-13 Vladimir Prus <vladimir@codesourcery.com>
8486
8487 Implement core awareness.
8488
8489 * bcache.c (compare_ints): Remove
8490 (print_percentage): Use compare_positive_ints.
8491 * defs.h (compare_positive_ints): Declare.
8492 * linux-nat.h (struct lin_lwp): New field core.
8493 (linux_nat_core_of_thread_1): Declare.
8494 * linux-nat.c (add_lwp): Init the 'core' field.
8495 (linux_nat_wait_1): Record the core.
8496 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
8497 (linux_nat_add_target): Register the above.
8498 * linux-thread-db.c (update_thread_core): New.
8499 (thread_db_find_new_threads): Update core information for
8500 every thread.
8501 * remote.c (struct private_thread_info): New.
8502 (free_private_thread_info, demand_private_info): New.
8503 (PACKET_qXfer_threads, use_osdata_threads): New.
8504 (struct thread_item, threads_parsing_context
8505 (start_thread, end_thread, thread_attributes)
8506 (thread_children, threads_children, threads_elements): New.
8507 (remote_threads_info): Try qXfer:threads before anything
8508 else.
8509 (remote_protocol_packets): Register qXfer:threads.
8510 (remote_open_1): Init use_osdata_threads.
8511 (struct stop_reply): New field 'core'.
8512 (remote_parse_stop_reply): Parse core number.
8513 (process_stop_reply): Record core number.
8514 (remote_xfer_partial): Handle qXfer:threads.
8515 (remote_core_of_thread): New.
8516 (init_remote_ops): Register remote_core_of_thread.
8517 (_initialize_remote): Register qXfer:read.
8518 * target.c (target_core_of_thread): New
8519 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
8520 (struct target_ops): New field to_core_of_threads.
8521 (target_core_of_thread): Declare.
8522 * gdbthread.h (struct thread_info): New field private_dtor.
8523 * thread.c (print_thread_info): Report the core.
8524 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
8525 * utils.c (compare_positive_ints): New.
8526 * features/threads.dtd: New.
8527 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
8528 * mi/mi-main.c (struct collect_cores_data, collect_cores)
8529 (do_nothing, free_vector_of_osdata_items)
8530 (splay_tree_int_comparator, free_splay_tree): New.
8531 (print_one_inferior_data): Implemented printing of selected
8532 inferiors. Collect and print cores.
8533 (output_cores): New.
8534 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
8535 thread groups together with --available.
8536
d30c5336
JK
85372010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8538
8539 * configure: Regenerate (for _STRUCTURED_PROC).
8540
02893727
JB
85412010-01-12 Joel Brobecker <brobecker@adacore.com>
8542
8543 Delete dead function.
8544 * ada-lang.c (extract_string): Delete. No longer used.
8545
46ed2d6f
JB
85462010-01-12 Joel Brobecker <brobecker@adacore.com>
8547
8548 Fix -Wunused warning in dec-thread.c.
8549 * dec-thread.c (dec_thread_count_gdb_threads)
8550 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
8551
606b8d1a
JB
85522010-01-12 Joel Brobecker <brobecker@adacore.com>
8553
8554 * ada-valprint.c (ada_print_floating): Remove trailing space.
8555
b4ba55a1
JB
85562010-01-12 Joel Brobecker <brobecker@adacore.com>
8557
8558 Add support for DW_AT_GNAT_descriptive_type.
8559 * gdbtypes.h (enum type_specific_kind): New enum.
8560 (struct main_type) [type_specific_field]: New component.
8561 [type_specific]: Add new component "gnat_stuff".
8562 (struct gnat_aux_type): New type.
8563 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
8564 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
8565 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
8566 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
8567 (TYPE_SPECIFIC_FIELD): New macros.
8568 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
8569 type does not hold any cplus-specific data.
8570 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
8571 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
8572 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
8573 cplus-specific data.
8574 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
8575 Set new component TYPE_SPECIFIC_FIELD (type).
8576 (gnat_aux_default): New constant.
8577 (allocate_gnat_aux_type): New function.
8578 (init_type): Add initialization the type-specific stuff for
8579 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
8580 (print_gnat_stuff): New function.
8581 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
8582 specific data. Adjust code that prints the contents of the
8583 type-specific union using the TYPE_SPECIFIC_FIELD value.
8584 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
8585 the type cplus stuff for Ada types.
8586 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
8587 Error out if these routines are called with an Ada type.
8588 (read_structure_type, read_array_type, read_subrange_type):
8589 Add call to set_descriptive_type.
8590 (set_die_type): Initialize the gnat-specific data if necessary.
8591 (need_gnat_info, die_descriptive_type, set_descriptive_type):
8592 New functions.
8593 * ada-lang.c (decode_constrained_packed_array_type): Use
8594 decode_constrained_packed_array_type instead of doing a standard
8595 lookup to locate a parallel type.
8596 (find_parallel_type_by_descriptive_type): New function.
8597 (ada_find_parallel_type_with_name): New function.
8598 (ada_find_parallel_type): Reimplement using
8599 ada_find_parallel_type_with_name.
8600 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
8601 to check if type has a cplus stuff.
8602 * linespec.c (total_number_of_methods): Likewise.
8603 * mdebugread.c (new_type): Likewise.
8604
b0f02ee9
JK
86052010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8606
8607 * NEWS: Document the 0b binary number prefix parsing.
8608
b260e109
JK
86092010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8610
8611 * objfiles.c (objfile_relocate1): Change the return type to int.
8612 Describe the new return value. Return non-zero if data changed.
8613 (objfile_relocate): New variable changed. Set it. Call
8614 breakpoint_re_set depending on CHANGED.
8615
b5cfddf5
JK
86162010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8617
8618 Implement binary numbers parsing.
8619 * c-exp.y (parse_number): New case 'b' and 'B'.
8620
e0ae4240
JK
86212010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8622 Tristan Gingold <gingold@adacore.com>
8623
8624 * solib.c (info_sharedlibrary_command): Replace
8625 objfile_has_partial_symbols and objfile_has_full_symbols calls by
8626 objfile_has_symbols.
8627
6e0e5977
JB
86282010-01-10 Joel Brobecker <brobecker@adacore.com>
8629
8630 * NEWS: Document the improvements made to the mips-irix port.
8631
7348c5e1
JB
86322010-01-09 Joel Brobecker <brobecker@adacore.com>
8633
8634 Fix the documentation of valprint.c:value_print.
8635 * valprint.c (value_print): Update the function description to
8636 mention that the syntax of the output follows the current_language,
8637 not necessarily C.
8638
567995e1
JK
86392010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8640
8641 Fix displacement of separate debug info files.
8642 * objfiles.c (objfile_relocate): Rename to ...
8643 (objfile_relocate1): ... here and make it static. Extend the comment.
8644 (objfile_relocate): New function.
8645 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
8646 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
8647 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
8648 allocated using alloca.
8649 * symfile.c (copy_section_addr_info): Remove.
8650 (build_section_addr_info_from_objfile): Make it global. New variables
8651 addr_bit and mask, use them.
8652 * symfile.h (build_section_addr_info_from_objfile): New prototype.
8653 (copy_section_addr_info): Remove.
8654
6d8eadbd
JB
86552010-01-09 Joel Brobecker <brobecker@adacore.com>
8656
8657 Signal unwinder for mips-irix N32.
8658 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
8659 tramp-frame.h.
8660 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
8661 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
8d95cc3b
PA
8662 (SIGCONTEXT_LO_OFF): New macros.
8663 (mips_irix_n32_tramp_frame_init): New function.
6d8eadbd
JB
8664 (mips_irix_n32_tramp_frame): New static constant.
8665 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
8666
27087a3d
JB
86672010-01-09 Joel Brobecker <brobecker@adacore.com>
8668
8669 Breakpoint in shared library does not work on mips-irix.
8670 * procfs.c: #include "observer.h".
8671 (procfs_inferior_created): New function, moving here the code
8672 which unsets the syssgi syscall-exit notifications.
8673 (procfs_create_inferior): Remove the code which unsets the syssgi
8674 syscall-exit notifications. It is too early to do this here.
8675 (_initialize_procfs): Attach the procfs_inferior_created observer.
8676
f08877ba
JB
86772010-01-09 Joel Brobecker <brobecker@adacore.com>
8678
8679 Wrong return convention for arrays (mips-irix).
8680 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
8681 128 bits or smaller are returned the same way as structs
8682 and unions of the the same size.
8683
e4b97d48
JB
86842010-01-09 Joel Brobecker <brobecker@adacore.com>
8685
8686 Cannot set the PC on mips-irix.
8687 * irix5-nat.c (fill_gregset): Check regno against the raw PC
8688 register number, no the cooked one.
8689
11377e68
JB
86902010-01-09 Joel Brobecker <brobecker@adacore.com>
8691
8692 Error while loading core file on mips-irix.
8693 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
8694 if debugging from a core file.
8695
b2391021
JB
86962010-01-09 Joel Brobecker <brobecker@adacore.com>
8697
8698 GDB hangs when attaching to process on mips-irix.
8699 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
8700 attaching to a process.
8701
f2ec0ecf
JB
87022010-01-09 Joel Brobecker <brobecker@adacore.com>
8703
8704 Use the correct breakpoint instruction on mips-irix.
8705 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
8706 containing the correct breakpoint instruction to use on mips-irix.
8707 Use it when the osabi is GDB_OSABI_IRIX.
8708
3c95f01c
JB
87092010-01-09 Joel Brobecker <brobecker@adacore.com>
8710
8711 -Wunused warning in procfs.c (mips-irix only).
8712 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
8713 throughout instead of using praddset and prdelset respectively.
8714
4b7703ad
JB
87152010-01-09 Joel Brobecker <brobecker@adacore.com>
8716
8717 GDB crash while stepping into function.
8718 * infrun.c (handle_inferior_event): Refetch the current frame
8719 after handling what.main_action, in case that pointer became
8720 dangling.
8721
12c89474
JB
87222010-01-09 Joel Brobecker <brobecker@adacore.com>
8723
8724 Fix build failure of solaris-hosted cross debuggers.
8725 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
8726
1a3fd262 87272010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
8728
8729 Fix build failure on sparc-solaris.
8730 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
8731
75242ef4
JK
87322010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8733
8734 Move some symfile code into subroutines.
8735 * symfile.h (relative_addr_info_to_section_offsets)
8736 (addr_info_make_relative): New prototypes.
8737 * symfile.c (default_symfile_offsets): Move a part to ...
8738 (relative_addr_info_to_section_offsets): ... this new function.
8739 (default_symfile_offsets): Call it.
8740 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
8741 this part to ...
8742 (addr_info_make_relative): ... this new function.
8743
268a4a75
JK
87442010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8745
8746 Add from_tty to solib_create_inferior_hook.
8747 * infcmd.c (post_create_inferior): Move solib_add after
8748 solib_create_inferior_hook. Pass from_tty to
8749 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
8750 0 from_tty and comment why.
8751 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
8752 * linux-nat.c (linux_child_follow_fork): Likewise.
8753 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
8754 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
8755 from_tty.
8756 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
8757 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
8758 * solib-null.c (null_solib_create_inferior_hook): Likewise.
8759 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
8760 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
8761 * solib-som.c (som_solib_create_inferior_hook): Likewise.
8762 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
8763 Pass it to svr4_so_ops.solib_create_inferior_hook.
8764 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
8765 from_tty.
8766 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
8767 solib_add.
8768 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
8769 enable_break.
8770 * solib-target.c (solib_target_solib_create_inferior_hook): New
8771 parameter from_tty.
8772 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
8773 it to ops->solib_create_inferior_hook.
8774 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
8775 Move solib_add after solib_create_inferior_hook, call it now with
8776 from_tty as 0. New comment there.
8777 * solib.h (solib_create_inferior_hook): New parameter from_tty.
8778 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
8779 Likewise.
8780
cf00dfa7
VP
87812010-01-08 Vladimir Prus <vladimir@codesourcery.com>
8782
8783 Fix multiexec race.
8784 * infrun.c (handle_inferior_event): Use get_thread_regcache
8785 with events ptid, not get_current_regcache.
8786
f91e5ac3
JB
87872009-01-08 Joel Brobecker <brobecker@adacore.com>
8788
8789 GDB crash with empty executable name (MinGW).
8790 * source.c (openp): Add assert that parameter string is not NULL.
8791 if parameter string is an empty string, then return with a failure
8792 immediately.
8793
92b9ce5b
JB
87942009-01-08 Joel Brobecker <brobecker@adacore.com>
8795
8796 Get rid of support for VAX Floats.
8797 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
8798 (ada_vax_float_print_function): Delete.
8799 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
8800 (ada_vax_float_print_function): Delete.
8801 * ada-typeprint.c (print_vax_floating_point_type): Delete.
8802 (ada_print_type): Remove support for VAX floats.
8803 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
8804
268a4a75 88052010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
8806
8807 * stabsread.c (read_args): Handle zero arguments.
8808
f0f20949
JB
88092009-01-08 Joel Brobecker <brobecker@adacore.com>
8810
8811 Cannot find in-tree libiconv.a after reconfigure.
8812 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
8813 that we can use, then cache the path to this archive.
8814 * configure: Regenerate.
8815
6b6218c5
SS
88162010-01-07 Stan Shebs <stan@codesourcery.com>
8817
35b1e5cc
SS
8818 Make tracepoint operations go through target vector.
8819 * target.h (enum trace_find_type): New enum.
8820 (struct target_ops): New fields to_trace_init,
8821 to_download_tracepoint, to_download_trace_state_variable,
8822 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
8823 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
8824 to_set_disconnected_tracing.
8825 (target_trace_init): New macro.
8826 (target_download_tracepoint): New macro.
8827 (target_download_trace_state_variable): New macro.
8828 (target_trace_start): New macro.
8829 (target_trace_set_readonly_regions): New macro.
8830 (target_get_trace_status): New macro.
8831 (target_trace_stop): New macro.
8832 (target_trace_find): New macro.
8833 (target_get_trace_state_variable_value): New macro.
8834 (target_set_disconnected_tracing): New macro.
8835 * target.c (update_current_target): Inherit and set defaults for
8836 tracepoint operations.
8837 * tracepoint.c (default_collect): Make globally visible.
8838 (target_is_remote): Remove, along with all calls.
8839 (tvariables_info): Call target_get_trace_state_variable_value.
8840 (remote_set_transparent_ranges): Remove.
8841 (trace_start_command): Call target_trace_init,
8842 target_download_tracepoint, etc.
8843 (download_tracepoint): Remove.
8844 (trace_stop_command): Simplify.
8845 (stop_tracing): Call target_trace_stop.
8846 (get_trace_status): Call target_get_trace_status.
8847 (trace_status_command): Add case for targets that cannot trace.
8848 (finish_tfind_command): Change to take numerical arguments, call
8849 target_trace_find.
8850 (trace_find_command): Update call to finish_tfind_command.
8851 (trace_find_pc_command): Ditto.
8852 (trace_find_tracepoint_command): Ditto.
8853 (trace_find_line_command): Ditto.
8854 (trace_find_range_command): Ditto.
8855 (trace_find_outside_command): Ditto.
8856 (set_disconnected_tracing_value): Call
8857 target_set_disconnected_tracing.
8858 * remote.c: Add protocol encoding bits from tracepoint.c.
8859 (trace_error): Move from tracepoint.c.
8860 (remote_get_noisy_reply): Ditto.
8861 (free_actions_list_cleanup_wrapper): Ditto.
8862 (free_actions_list): Ditto.
8863 (remote_trace_init): New function.
8864 (remote_download_tracepoint): New function.
8865 (remote_download_trace_state_variable): New function.
8866 (remote_trace_set_readonly_regions): New function.
8867 (remote_trace_start): New function.
8868 (remote_get_trace_status): New function.
8869 (remote_trace_stop): New function.
8870 (remote_trace_find): New function.
8871 (remote_download_trace_state_variable): New function.
8872 (remote_set_disconnected_tracing): New function.
8873 (init_remote_ops): Add tracepoint operations.
8874
6b6218c5
SS
8875 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
8876
089b4803
TG
88772010-01-07 Tristan Gingold <gingold@adacore.com>
8878
8879 * symfile.c (build_section_addr_info_from_objfile): New function.
8880 (symbol_file_add_separate): Don't use offsets from objfile but
8881 built an addr info.
8882
d5551862
SS
88832010-01-06 Stan Shebs <stan@codesourcery.com>
8884
8885 Support disconnected tracing.
8886 * infcmd.c (detach_command): Ask whether to stop tracing.
8887 * cli/cli-cmds.c (quit_command): Ditto.
8888 * breakpoint.h (struct breakpoint): New field number_on_target.
8889 * breakpoint.c (create_tracepoint_from_upload): New function.
8890 (get_tracepoint_by_number_on_target): New function.
8891 * remote.c (struct remote): New field disconnected_tracing.
8892 (remote_disconnected_tracing_feature): New function.
8893 (remote_protocol_features): Add DisconnectedTracing.
8894 (struct uploaded_tp): New struct.
8895 (uploaded_tps): New global.
8896 (get_uploaded_tp): New function.
8897 (find_matching_tracepoint): New function.
8898 (remote_get_tracing_state): New function.
8899 (remote_start_remote): Call it.
8900 * tracepoint.c (disconnected_tracing): New global.
8901 (trace_start_command): Initialize number_on_target.
8902 (stop_tracing): New function, split out from...
8903 (trace_stop_command): Call stop_tracing.
8904 (get_trace_status): New function, split out from...
8905 (trace_status_command): Call get_trace_status, add info on
8906 disconnection behavior.
8907 (disconnect_or_stop_tracing): New function.
8908 (finish_tfind_command): Translate from number on target.
8909 (trace_find_tracepoint_command): Translate to number on target.
8910 (send_disconnected_tracing_value): New function.
8911 (set_disconnected_tracing): New function.
8912 (_initialize_tracepoint): Add disconnected-tracing variable.
8913 * NEWS: Mention disconnected tracing.
8914
15d123c9
TG
89152010-01-06 Tristan Gingold <gingold@adacore.com>
8916
8917 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
8918 parameter to main_objfile. Iterate on all separate debug objfiles.
8919 * symfile.h (symbol_file_add_separate)
8920 (find_separate_debug_file_by_debuglink): Remove parameter names.
8921 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
8922 (reread_symbols): Use free_objfile_separate_debug.
8923 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
8924 Adjust comment.
8925 (objfile_separate_debug_iterate, add_separate_debug_objfile)
8926 (free_objfile_separate_debug): New prototypes.
8927 * objfiles.c (objfile_separate_debug_iterate): New function.
8928 (add_separate_debug_objfile, free_objfile_separate_debug): New
8929 functions.
8930 (free_objfile): Use free_objfile_separate_debug. Adjust for
8931 multiple separate debug objfile.
8932 (objfile_has_symbols): Adjust comment. Iterate on all separate
8933 debug objfiles.
8934 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
8935 debug objfile.
8936 (lookup_minimal_symbol_text): Ditto.
8937 (lookup_minimal_symbol_by_pc_name): Ditto.
8938 (lookup_minimal_symbol_solib_trampoline): Ditto.
8939 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
8940 debug objfiles.
8941
7a697b8d
SS
89422010-01-05 Stan Shebs <stan@codesourcery.com>
8943
8944 Add fast tracepoints.
8945 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
8946 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
8947 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
8948 * breakpoint.c (tracepoint_type): New function.
8949 (ALL_TRACEPOINTS): Use it.
8950 (should_be_inserted): Ditto.
8951 (bpstat_check_location): Ditto.
8952 (print_one_breakpoint_location): Ditto.
8953 (user_settable_breakpoint): Ditto.
8954 (set_breakpoint_location_function): Ditto.
8955 (disable_breakpoints_in_shlibs): Ditto.
8956 (delete_trace_command): Ditto.
8957 (print_it_typical): Add bp_fast_tracepoint case.
8958 (bpstat_what): Ditto.
8959 (print_one_breakpoint_location): Ditto.
8960 (allocate_bp_location): Ditto.
8961 (mention): Ditto.
8962 (breakpoint_re_set_one): Ditto.
8963 (disable_command): Ditto.
8964 (enable_command): Ditto.
8965 (check_fast_tracepoint_sals): New function.
8966 (break_command_really): Call it.
8967 (ftrace_command): New function.
8968 (_initialize_breakpoint): Add ftrace command.
8969 * gdbarch.sh (fast_tracepoint_valid_at): New.
8970 * gdbarch.h, gdbarch.c: Regenerate.
8971 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
8972 (i386_gdbarch_init): Use it.
8973 * remote.c (struct remote_state): New field fast_tracepoints.
8974 (PACKET_FastTracepoints): New packet config type.
8975 (remote_fast_tracepoint_feature): New function.
8976 (remote_protocol_features): Add FastTracepoints.
8977 (remote_supports_fast_tracepoints): New function.
8978 (_initialize_remote): Add FastTracepoints.
8979 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
8980 * NEWS: Mention fast tracepoints.
8981
737a160e
JB
89822010-01-06 Joel Brobecker <brobecker@adacore.com>
8983
8984 * gdb-gdb.py: New file.
8985
ce6cca6d
MS
89862010-01-05 Michael Snyder <msnyder@vmware.com>
8987
8988 * infrun.c (handle_inferior_event): Fix typo in comment.
8989
0d15807d
JK
89902010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8991
8992 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
8993
7803799a
UW
89942010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8995
c8d5aac9 8996 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7803799a
UW
8997 and s390x-linux64.
8998 (s390-linux32-expedite): Define.
8999 (s390-linux64-expedite): Define.
9000 (s390x-linux64-expedite): Define.
9001 * features/s390-acr.xml: New file.
9002 * features/s390-fpr.xml: New file.
9003 * features/s390-core32.xml: New file.
9004 * features/s390-core64.xml: New file.
9005 * features/s390x-core64.xml: New file.
9006 * features/s390-linux32.xml: New file.
9007 * features/s390-linux64.xml: New file.
9008 * features/s390x-linux64.xml: New file.
9009 * features/s390-linux32.c: New generated file.
9010 * features/s390-linux64.c: New generated file.
9011 * features/s390x-linux64.c: New generated file.
9012
9013 * regformats/s390-linux32.dat: New generated file.
9014 * regformats/s390-linux64.dat: New generated file.
9015 * regformats/s390x-linux64.dat: New generated file.
9016 * regformats/reg-s390.dat: Remove.
9017 * regformats/reg-s390x.dat: Remove.
9018
9019 * s390-nat.c: Include "auxv.h" and <elf.h>.
9020 (HWCAP_S390_HIGH_GPRS): Define if undefined.
9021 (s390_target_wordsize): New function.
9022 (s390_auxv_parse): Likewise.
9023 (s390_get_hwcap): Likewise.
9024 (s390_read_description): Likewise.
9025 (_initialize_s390_nat): Install s390_auxv_parse and
9026 s390_read_description.
9027
9028 * s390-tdep.c: Include "features/s390-linux32.c",
9029 "features/s390-linux64.c", and "features/s390x-linux64.c".
9030 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
9031 (s390_register_call_saved): New function.
9032 (s390_register_name): Remove.
9033 (s390_register_type): Remove.
9034 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
9035 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
9036 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
9037 (s390_pseudo_register_name): New function.
9038 (s390_pseudo_register_type): New function.
9039 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
9040 Handle full GPR pesudos and varying pseudo register numbers.
9041 (s390_pseudo_register_write): Likewise
9042 (s390x_pseudo_register_read): Remove.
9043 (s390x_pseudo_register_write): Likewise.
9044 (s390_register_group): Remove.
9045 (s390_pseudo_register_group): New function.
9046 (s390_regmap_gregset): Add GPR upper halves.
9047 (s390x_regmap_gregset): Likewise.
9048 (s390_regmap_fpregset): Likewise.
9049 (s390_regmap_upper): New global variable.
9050 (s390_upper_regset): New global variable.
9051 (s390_upper_regset_sections): New global variable.
9052 (s390_regset_from_core_section): Handle GPR upper halves.
9053 (s390_core_read_description): New function.
9054 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
9055 register information. Handle varying pseudo register numbers.
9056 (s390_backchain_frame_unwind_cache): Likewise.
9057 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
9058 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
9059 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
9060 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
9061 Handle varying pseudo register numbers.
9062 (s390_unwind_pc): Handle varying pseudo register numbers.
9063 (s390_dwarf2_prev_register): New function.
9064 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
9065 register information. Handle varying pseudo register numbers.
9066 Install s390_dwarf2_prev_register to unwind full GPRs.
9067 (s390_gdbarch_init): Handle target descriptions. Assign varying
9068 pseudo register numbers. Install s390_adjust_frame_regnum.
9069 (_initialize_s390_tdep): Initialize target descriptions.
9070
9071 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
9072 (S390_NUM_REGS): Redefine to include upper half registers.
9073 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
9074 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
9075 (tdesc_s390_linux32): Add declaration.
9076 (tdesc_s390_linux64): Likewise.
9077 (tdesc_s390x_linux64): Likewise.
9078
1b1818e4
UW
90792010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9080
9081 * regset.h (struct core_regset_section): Add HUMAN_NAME.
9082 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
9083 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
9084 (ppc_linux_vmx_regset_sections): Likewise.
9085 (ppc_linux_fp_regset_sections): Likewise.
9086
9087 * corelow.c (get_core_register_section): Constify arguments.
9088 (get_core_registers): Use gdbarch_core_regset_sections instead
9089 of hard-coded platform-specific register section names.
9090
dcbf108f
UW
90912010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9092
9093 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 9094 a register, assume the least-significant part is used.
dcbf108f
UW
9095 (write_pieced_value): Likewise.
9096
704e9165
UW
90972010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9098
9099 * printcmd.c: Include "arch-utils.h".
9100 (do_one_display): Re-parse expression if current architecture changed.
9101
c54eabfa
JK
91022010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9103 Joel Brobecker <brobecker@adacore.com>
9104
9105 * gdbtypes.c (check_typedef): New comment on type length.
9106 * value.c (allocate_value_lazy): Remove the unused atype variable. New
9107 comment on type length.
9108 (value_primitive_field): Keep the original TYPE value, new comment.
9109
50cb2941
JK
91102010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9111
9112 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
9113 p_start. Change != comparisons to > and < comparisons.
9114
be66db07
JK
91152010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9116
9117 * cli/cli-script.c (process_next_line): Check P2 overrun.
9118
abd775ce
JB
91192009-01-01 Joel Brobecker <brobecker@adacore.com>
9120
9121 Update the copyright hearder to add year 2010 for most GDB files.
9122
6479260d
JB
91232009-01-01 Joel Brobecker <brobecker@adacore.com>
9124
9125 Fix build failure in inf-ptrace.c.
9126 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
9127
4a70f654
JB
91282010-01-01 Joel Brobecker <brobecker@adacore.com>
9129
9130 * top.c (print_gdb_version): Update copyright year.
9131
595939de 91322010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
b9ee2233
JB
9133
9134 Fix break *FUN'address thread NUM.
9135 * ada-lex.l (task): Expand rule to also match the thread keyword.
9136
70575d34
JB
91372010-01-01 Joel Brobecker <brobecker@adacore.com>
9138
9139 Fix break *FUN'address task NUM.
9140 * ada-lex.l (task): New rule.
9141 * ada-lang.c (valid_task_id): Make sure the Ada task list has
9142 been built before using it.
9143
e1e4d4a4 9144For older changes see ChangeLog-2009.
c906108c
SS
9145\f
9146Local Variables:
9147mode: change-log
9148left-margin: 8
9149fill-column: 74
9150version-control: never
57da7796 9151coding: utf-8
c906108c 9152End:
This page took 1.613623 seconds and 4 git commands to generate.