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